path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/babel-core/5.2.9/browser-polyfill.js | brix/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/renderer/components/App.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row } from 'react-bootstrap';
import KeyBinding from 'react-keybinding-component';
import Header from './Header/Header.react';
import Footer from './Footer/Footer.react';
import Toasts from './Toasts/Toasts.react';
import lib fr... |
packages/material-ui-icons/src/EventSeat.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z" /></g>
, 'EventSeat');
|
test/OverlayTriggerSpec.js | egauci/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import OverlayTrigger from '../src/OverlayTrigger';
import Popover from '../src/Popover';
import Tooltip from '../src/Tooltip';
import { render } from './helpers';
describe('OverlayTrigger', () => {
... |
src/components/common/SimpleEditor/Schema/Blocks/ParagraphNode.js | anztrax/simple-image-server-frontend | import React from 'react';
export default class ParagraphNode extends React.Component{
static get nodeType(){
return 'paragraph';
}
constructor(props){
super(props);
}
render(){
return (
<a>{this.props.children} </a>
);
}
} |
web/js/jquery.js | sea4me/zizoo | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
src/LoadGEXF.js | dunnock/react-sigma | // @flow
import React from 'react'
import '../sigma/parsers.gexf'
import { embedProps } from './tools'
type State = {
loaded: boolean
};
type Props = {
path: string,
onGraphLoaded?: () => void,
children?: mixed,
sigma?: Sigma
};
/**
LoadGEXF component, interface for parsers.json sigma plugin. Can be used with... |
Com.ChatR.Web/Scripts/React/react.js | davidsekar/ChatR | /**
* React v0.14.2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}... |
fields/types/datearray/DateArrayFilter.js | ONode/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import {
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No e... |
test/extras.js | andykog/mobx | var test = require("tape")
var mobx = require("..")
var m = mobx
test("treeD", function(t) {
m.extras.resetGlobalState()
mobx.extras.getGlobalState().mobxGuid = 0
var a = m.observable(3)
var aName = "ObservableValue@1"
var dtree = m.extras.getDependencyTree
t.deepEqual(dtree(a), {
name... |
src/svg-icons/places/business-center.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBusinessCenter = (props) => (
<SvgIcon {...props}>
<path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1... |
src/routes/error/ErrorPage.js | bobbybeckner/ha-catalyst-test | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 PropTypes from 'prop-... |
node_modules/node_modules/recharts/demo/component/CartesianGrid.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { Surface, CartesianGrid } from 'recharts';
export default React.createClass({
render () {
let horizontalPoints = [10, 20, 30, 100, 400];
let verticalPoints = [100, 200, 300, 400];
return (
<Surface width={500} height={500}>
<CartesianGrid
width=... |
app/components/__tests__/Routes-test.js | harryworld/webpack-parse-react-karma-demo | import React from 'react';
import Router from 'react-router';
import { Route, DefaultRoute } from 'react-router';
import Routes from '../../Routes';
describe('default route', () => {
it('renders home', (done) => {
Router.run(Routes, '/', (Handler) => {
var html = React.renderToString(<Handler/>);
ex... |
src/IconButton/IconButtonLayout.js | boldr/boldr-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const IconButtonLayout = props => {
const { theme, hover, active, disabled, height, children } = props;
const className = classNames(
{
['boldrui-iconbtn']: true,
[`boldrui-iconbtn--${[theme]}`]: tr... |
packages/editor/src/components/Icons/Video.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const Video = props => (
<Icon viewBox="0 0 576 512" {...props}>
<path d="M528 64h-12.118a48 48 0 0 0-33.941 14.059L384 176v-64c0-26.51-21.49-48-48-48H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-64l97.941 97.941A48 48 0 0 ... |
src/js/components/Articles/TableBody.js | appdev-academy/appdev.academy-react | import PropTypes from 'prop-types'
import React from 'react'
import { Link } from 'react-router'
import { DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-html5-backend'
import TableRow from './TableRow'
@DragDropContext(HTML5Backend)
export default class TableBody extends React.Component {
... |
ajax/libs/jQuery-Validation-Engine/2.6.3/jquery-1.8.2.min.js | amsul/cdnjs | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
clients/libs/webpage/src/lib/plugins/pressure/components/targets.js | nossas/bonde-client | import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'react-intl'
import { arrayUtils, pressureUtils } from '../utils'
if (require('exenv').canUseDOM) require('./targets.scss')
const parseTarget = target => {
const targetSplit = target.split('<')
const valid = targetSplit.... |
app/containers/HomePage/ProviderToggle.js | andyzeli/Bil | import React from 'react'
import List from './List';
import ListItem from './ListItem';
import CheckButton from 'components/CheckButton';
var chooseColor = function(provObj) {
if (provObj.get('display')) {
return provObj.get('hex')
} else return 'white'
}
var chooseTextColor = function(provObj) {
if(provObj... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | viankakrisna/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(name) {
return [
{ id: 1, name: `${na... |
src/hoc/selectable-enhance.js | alitaheri/material-ui | import React from 'react';
import ThemeManager from '../styles/theme-manager';
import StylePropable from '../mixins/style-propable';
import ColorManipulator from '../utils/color-manipulator';
import DefaultRawTheme from '../styles/raw-themes/light-raw-theme';
export const SelectableContainerEnhance = (Component) => {
... |
src/parser/shared/modules/items/PrePotion.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import SPECS from 'game/SPECS';
import ITEMS from 'common/ITEMS/index';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import ItemLink from 'common/ItemLink';
import Analyzer from 'parser/core/Analyzer';
import SUGGESTION_IMPORTANCE from 'parser/... |
ajax/libs/yui/3.3.0pr2/event-custom/event-custom-debug.js | KOLANICH/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* 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.
* @module ev... |
external-libs/jquery-color/test/jquery-1.6.3.js | saitodisse/typing-skill-training | /*!
* jQuery JavaScript Library v1.6.3
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/components/AddVideoModal.js | Nurasael/WeWatch | import React from 'react'
import Modal from 'react-modal'
const AddVideoModal = (props) => {
return (
<Modal isOpen={props.modalIsOpen} onRequestClose={() => props.onRequestClose()}>
<div>
<input type="text" onChange={ event => props.handleVideoSearchChange(event.target.value)} value={props.selected... |
upgrade-guides/v0.12-v0.13/esnext/src/components/Layout.js | lore/lore | /**
* This component is intended to reflect the high level structure of your application,
* and render any components that are common across all views, such as the header or
* top-level navigation. All other components should be rendered by route handlers.
**/
import React from 'react';
import PropTypes from 'prop... |
src/svg-icons/communication/portable-wifi-off.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPortableWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02.... |
packages/material-ui-icons/src/Add.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" /></g>
, 'Add');
|
Rate.UI/app/components/Categories.js | jcnavarro/rateflicks | import React from 'react';
import { Link } from 'react-router';
import styled from 'styled-components';
const StyledLink = styled(Link)`
color: tomato;
display: block;
margin: 0.5em 0;
font-family: Helvetica, Arial, sans-serif;
&:hover {
text-decoration: underline;... |
ajax/libs/material-ui/4.9.4/esm/Breadcrumbs/BreadcrumbCollapsed.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from '../styles/withStyles';
import { emphasize } from '../styles/colorManipulator';
impo... |
src/components/InputSearch.js | halo-design/halo-optimus | import React, { Component } from 'react'
import { Form, Input, Icon, message } from 'antd'
const FormItem = Form.Item
@Form.create()
export default class InputSearch extends Component {
render () {
const { form, placeholder, initialValue, onSearch } = this.props
const { getFieldDecorator, getFieldsValue } ... |
app/javascript/mastodon/features/account/components/header.js | TheInventrix/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
profiles/openscholar/modules/contrib/jquery_update/replace/jquery/1.9/jquery.js | jrounsav/fac-sites-tmp | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/svg-icons/image/crop-landscape.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape = pure(ImageCro... |
ajax/libs/yui/3.7.0pr2/event-focus/event-focus-debug.js | dlueth/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 = YLang.isFunction(
... |
examples/with-scoped-stylesheets-and-postcss/pages/index.js | kevmannn/next.js | import React from 'react'
import Head from 'next/head'
import {stylesheet, classNames} from './styles.css'
export default () => (
<p className={classNames.paragraph}>
<Head><style dangerouslySetInnerHTML={{__html: stylesheet}} /></Head>
bazinga
</p>
)
|
redux-todos/containers/Root.prod.js | stoepszli/js-demos | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import TodoApp from './TodoApp';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<TodoApp />
</Provider>
);
}
}
|
src/HeaderAndFooter.js | TutorFox/TutorFox | import React from 'react';
import { Header } from './Header';
import { Footer } from './Footer';
import Router from 'react-router';
let { RouteHandler } = Router;
export class HeaderAndFooter extends React.Component {
render () {
return (
<div>
<Header/>
<RouteHander/>
<Footer/>
... |
examples/full-example/isomorphic/base/components/_test_/button_test.js | stephanwlee/mendel | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
See the accompanying LICENSE file for terms. */
import React from 'react'; // eslint-disable-line no-unused-vars
import { findDOMNode } from 'react-dom'; // eslint-disable-line no-unused-vars
import {
renderIntoDocument
} from 'react-ad... |
src/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-arrow-functions/node_modules/babel-runtime/node_modules/core-js/modules/es6.promise.js | ksparakis/cyan | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
src/Autocomplete.js | mattBlackDesign/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import constants from './constants';
import Icon from './Icon';
import Row from './Row';
import Col from './Col';
class Autocomplete extends Component {
constructor (props) {
super(props);
this.state =... |
lib/MultiColumnList/MCLRenderer.js | folio-org/stripes-components | /*
** MultiColumnList
- For displaying tabular data.
How DOM measuring works within the list:
Cell-widths are measured first via a CellMeasurer component. These are calculated and compared with
the width of the headers, greatest one prevailing.
Next, row heights are measured, and stored in the h... |
src/svg-icons/image/crop-5-4.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop54 = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCrop54 = pure(ImageCrop54);
ImageCro... |
packages/material-ui-icons/src/Forward30TwoTone.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="M18 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z" /><path d="M10.54 15.22c-.06.05-.12.09... |
src/index.js | dane-johnson/catchme-ui | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, compose } from 'redux';
import { Provider } from 'react-redux';
import registerListener from './lib/geowatcher'
import reducer from './reducers';
import App from './App';
import './index.css';
let store;
if (process.env.NODE_ENV === "de... |
node_modules/react-bootstrap/es/ModalFooter.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 ... |
src/svg-icons/action/settings-power.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
App_28/public/lib/jquery/speed/jquery-basis.js | vibhatha/mean | /*!
* 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/App.js | xmano/filterlistview | import React, { Component } from 'react';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from './reducers';
import { CardSection, Header, Button } from './components/common';
import LibraryList from './components/LibraryList';
class A... |
lib/components/hide-markdown-button.js | danjwinter/note-taker | import sendGist from '../send-gist';
import store from '../store';
import React from 'react';
import GistEmailLink from './gist-email-link';
module.exports = (file) => {
return (
<div className="active-buttons">
<button className="remove-mark-down-btn" onClick={() => store.removeMarkdown(file.id)}>Hide Mar... |
core/src/plugins/gui.ajax/res/js/ui/Workspaces/detailpanes/InfoPanelCard.js | ChuckDaniels87/pydio-core | import React from 'react'
const styles = {
card: {
backgroundColor: 'white'
}
};
/**
* Default InfoPanel Card
*/
let InfoPanelCard = React.createClass({
propTypes: {
title:React.PropTypes.string,
actions:React.PropTypes.array
},
render: function(){
let iconStyle... |
examples/counter/containers/CounterApp.js | gdi2290/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
co... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet3BarTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M18 22V6L2 22h16zm2-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet3BarTwoTone');
|
src/containers/guide/level6.js | wunderg/PTC | import React from 'react';
import Highlight from '../../helpers/highlight.js';
import { objectProps, objectPropsExample, objectPropsSolution, eachModified, reduceModified } from './code/objectProps.js';
import { indexOf, indexOfExample, indexOfSolution, eachModifiedIndex, reduceModifiedIndex } from './code/indexOf.js';... |
app/components/ShopListItemRenderer/ShopListItemRenderer.js | tenhaus/bbwelding | import React from 'react';
import Radium from 'radium';
import AltActions from '../../actions/AltActions';
import Style from './_ShopListItemRenderer.style';
class ShopListItemRenderer extends React.Component {
constructor() {
super();
this.onClick = this.onClick.bind(this);
}
onClick() {
AltActi... |
docs/src/pages/demos/buttons/IconButtons.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Icon from 'material-ui/Icon';
import IconButton from 'material-ui/IconButton';
import DeleteIcon from 'material-ui-icons/Delete';
import AddShoppingCartIcon from 'material-ui-icons/AddSh... |
ajax/libs/react-native-web/0.16.0/exports/StyleSheet/constants.min.js | cdnjs/cdnjs | export var STYLE_ELEMENT_ID="react-native-stylesheet";export var STYLE_GROUPS={reset:0,modality:.1,classicReset:.5,classic:1,atomic:2.2,custom:{borderColor:2,borderRadius:2,borderStyle:2,borderWidth:2,display:2,flex:2,margin:2,overflow:2,overscrollBehavior:2,padding:2,marginHorizontal:2.1,marginVertical:2.1,paddingHori... |
src/pages/sorting/Selection/Selection.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Selection extends React.Component {
render() {
return (
<div>Selection</div>
)
}
}
export default Selection |
examples/01 Dustbin/Multiple Targets/index.js | tylercollier/react-dnd-demo | import React, { Component } from 'react';
import Container from './Container';
export default class DustbinMultipleTargets extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the So... |
src/layouts/layout-3-4.js | binary-com/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className} onClick={onClick}>
<div className="horizontal">
{components[0]}
</div>
<div className="vertical">
{components[1]}
{components[2]}
</div>
... |
ajax/libs/react-motion-ui-pack/0.0.1/react-motion-ui-pack.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("Spring")):"function"==typeof define&&define.amd?define(["Spring"],t):"object"==typeof exports?exports["react-motion-ui-pack"]=t(require("Spring")):e["react-motion-ui-pack"]=t(e.Spring)}(this,function(e){return function(e){functio... |
ajax/libs/yui/3.12.0/scrollview-base/scrollview-base.js | RoryStolzenberg/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
client/socket.js | CGamesPlay/hterminal | import React from 'react';
import ReactDOM from 'react-dom';
import io from 'socket.io-client';
import Terminal from './Terminal';
import TerminalDriver from './TerminalDriver';
function driverWrite(data) {
ReactDOM.unstable_batchedUpdates(() => {
driver.write(data);
});
}
var socket = io();
function connectD... |
Samples/ContinuousDeploymentWebsite/src/app/Fake_WebSite/Scripts/jquery-1.4.1.js | wooga/FAKE | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files... |
src/routes/Home/components/HomeView.js | chozandrias76/responsive-sesame-test | import React from 'react'
import './HomeView.scss'
import Slideshow from './SlideshowLayout/Slideshow'
import BodyText from './BodyText/BodyText'
import ParallaxPhoto from './ParallaxPhoto/ParallaxPhoto'
import Spotlight from './Spotlight/Spotlight'
export const HomeView = () => (
<div>
<Slideshow />
<BodyTe... |
web/src/components/layout.js | ajmalafif/ajmalafif.com | import React from 'react'
import { SkipNavLink, SkipNavContent } from '@reach/skip-nav'
import Header from './header'
import Footer from './footer'
import tw, { GlobalStyles, css } from 'twin.macro'
import { Global } from '@emotion/react'
import stylesBase from './stylesBase'
const Layout = ({ children, siteTitle, ..... |
src/components/__tests__/general/loading-test.js | npdat/Demo_React_Native | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Loading from '@components/general/Loading';
it('Loading renders correctly', () => {
const tree = renderer.create(
<Loading />,
... |
src/pages/404.js | alecgorge/alecgorge.com | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
src/parser/druid/guardian/modules/spells/IronFur.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SCHOOLS from 'game/MAGIC_SCHOOLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Analyzer from 'parser/core/Anal... |
spec/MaskedField_spec.js | murzvo/react-masked-field | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import LinkedStateMixin from 'react/lib/LinkedStateMixin';
import MaskedField from '../src/MaskedField';
import * as EventUtils from './EventUtils';
import chai from 'chai';
import sinon from 'sinon';
const ex... |
public/lib/components/Button.js | noahpeden/adoptfund | import React from 'react'
const Button = (props) => {
return (
<button
onClick={props.handleClick} className={props.className}>{props.text}
</button>
)
}
export default Button
|
ajax/libs/styled-components/3.3.1/styled-components.browser.es.js | cdnjs/cdnjs | import isPlainObject from 'is-plain-object';
import Stylis from 'stylis';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { Component, cloneElement, createElement } from 'react';
import PropTypes from 'prop-types';
import hoist from 'hoist-non-react-statics';
import { isValidElementType } from 'react-i... |
packages/react-ui-core/src/Gmap/__tests__/Gmap-test.js | rentpath/react-ui | import React from 'react'
import { shallow } from 'enzyme'
import renderer from 'react-test-renderer'
import { Gmap as ThemedGmap } from '../Gmap'
const Gmap = ThemedGmap.WrappedComponent
const theme = {
Gmap: 'mapClass',
}
describe('Gmap', () => {
it('applies a custom className', () => {
const wrapper = sha... |
js/components/search2/index.js | leehyoumin/asuraCham |
'use strict';
//This is a Add project
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { popRoute } from '../../actions/route';
import { openDrawer, closeDrawer } from '../../actions/drawer';
import { setIndex } from '../../actions/list';
import { replaceRoute, replaceOrPushRoute... |
node_modules/react-icons/md/format-underlined.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdFormatUnderlined = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.4 31.6h23.2v3.4h-23.2v-3.4z m11.6-3.2c-5.5 0-10-4.5-10-10v-13.4h4.1v13.4c0 3.2 2.7 5.7 5.9 5.7s5.9-2.5 5.9-5.7v-13.4h4.1v13.4c0 5.5-4.5 10-10 10z"/></g>
... |
ajax/libs/recompose/0.20.1/Recompose.js | pvnr0082t/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
packages/material-ui/src/DialogActions/DialogActions.js | kybarg/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import '../Button'; // So we don't have any override priority issue.
export const styles = {
/* Styles applied to the root element. */
root: {
display: 'flex',
alignItems: ... |
Rosa_Madeira/Revendedor/src/components/screens/VendaScreen.js | victorditadi/IQApp | import React, { Component } from 'react';
import { Text, View, AsyncStorage } from 'react-native';
import VendasLista from '../vendas/VendasLista';
class NoteScreen extends Component {
render() {
return(
<View style={{flex: 1, backgroundColor: '#ede6de'}}>
<View style={{marginTop: 20, marginBottom... |
ajax/libs/material-ui/4.9.2/internal/svg-icons/CheckBoxOutlineBlank.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireDefault(require("react")),_createSvgIcon=_interopRequireDefault(require("./createSvgIcon")),_default=(0,_createSvgIcon.d... |
react-ui/src/components/presentation/PageTeams.js | cajmyers/cydercup | //
// PageTeams.js
import React, { Component } from 'react';
import Title from './Title'
import TeamContainer from '../containers/TeamContainer';
class PageTeams extends Component {
render () {
const style = {
teamTabs: {
paddingTop: 20,
},
}
consol... |
public/components/MyApp.js | ranebo/project-ipsum | import React from 'react';
import actions from '../actions/ipsumActions.js';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { renderChart } from '../D3graphTemplate';
import { Panel, Grid, Row, Col, PageHeader, Button, Image} from 'react-bootstrap';
import request from '../util/restH... |
actor-apps/app-web/src/app/components/common/Banner.react.js | Rogerlin2013/actor-platform | import React from 'react';
import BannerActionCreators from 'actions/BannerActionCreators';
class Banner extends React.Component {
constructor(props) {
super(props);
if (window.localStorage.getItem('banner_jump') === null) {
BannerActionCreators.show();
}
}
onClose = () => {
BannerActionC... |
app/components/children/PointedOutsiderView.js | asconwe/formulate | import React, { Component } from 'react';
import axios from 'axios';
import OutsiderElement from './outsiderView-children/OutsiderElement';
import formElementLibrary from './formBuilder-children/formElementLibrary';
import debounce from '../../util/debounce';
const whiteBackground = {
background: "white"
};
con... |
app/javascript/flavours/glitch/features/compose/components/character_counter.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
packages/@uppy/react-native/file-picker/index.js | transloadit/uppy | import React from 'react'
import {
StyleSheet,
Modal,
Text,
ScrollView,
TouchableOpacity,
} from 'react-native'
import takePicture from './takePicture.js'
import selectImage from './selectImage.js'
import selectDocument from './selectDocument.js'
import Provider from './provider.js'
export default class Uppy... |
app/components/Players/AddPlayer.js | bplabombarda/hockeyatx.com | import React from 'react';
require('./addPlayer.scss');
class AddPlayer extends React.Component {
handleSubmit() {
const newPlayer = {
name: this.refs.playerName.getDOMNode().value,
email: this.refs.playerEmail.getDOMNode().value,
reply: true
};
this.pro... |
client/components/Photo.js | dimitardanailov/reduxstagram | import React from 'react';
import { Link } from 'react-router';
import CSSTransitionGroup from 'react-addons-css-transition-group';
const Photo = React.createClass({
render() {
const { post, i, comments } = this.props;
return (
<figure className="grid-figure">
<div className="grid-photo-wrap">
<Lin... |
src/pages/index.pt.js | angeloocana/tic-tac-toe-ai | import React from 'react';
import Index from '../components/IndexPage';
export default (props) => <Index {...props} />;
|
node_modules/react-router/es6/RouteUtils.js | broodfusion/react-udemy | 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; };
import React from 'react';
function isValidChild(object) {
... |
js/components/viewsources.js | Vortex83/Shot | import React, { Component } from 'react';
import { Radio, View } from 'react-desktop/windows';
export default class extends Component {
render() {
const radios = this.props.sources.map((source) => <Radio id={source.id} name="sources" label={this.makeShort(source.name)} onChange={this.props.callback} />);
return (... |
ajax/libs/forerunnerdb/1.3.892/fdb-core+views.min.js | maruilian11/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/components/demo/messageboard.js | jer0701/gallery-by-react | require('normalize.css/normalize.css');
require('styles/MessageBoard.css');
import React from 'react';
import ReactDOM from 'react-dom';
//import $ from 'jquery';
import $ from './js/jquery.min.js'
var ContentEditable = React.createClass({
shouldComponentUpdate: function(nextProps){
return... |
client/index.js | amitpaperg/roadmap-planner | import 'babel-polyfill'
import { trigger } from 'redial'
import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router/lib/Router'
import match from 'react-router/lib/match'
import browserHistory from 'react-router/lib/browserHistory'
import { Provider } from 'react-redux'
import { StyleS... |
app/javascript/spec/cloud-volume-form/attach-detach-cloud-volume-form.spec.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import toJson from 'enzyme-to-json';
import fetchMock from 'fetch-mock';
import { shallow } from 'enzyme';
import { act } from 'react-dom/test-utils';
import AttachDetachCloudVolumeForm from '../../components/cloud-volume-form/attach-detach-cloud-volume-form';
import { mount } from '../helper... |
src/js/wx.config.js | dadongfang/react_redux_webpack_es6_qiniu | import React from 'react'
import { render } from 'react-dom'
const shareImg = require('../img/share.jpg')
const shareImg_app = shareImg
// const shareImg = window.location.origin + '/activity/20160305/release/static/share.jpg'
// const shareImg_app = window.location.origin + '/activity/20160305/release/static/app_share... |
frontend/src/components/showpicker/ShowPickerList.spec.js | tanzdervampire/website | // @flow
import React from 'react';
import moment from 'moment';
import ShowPickerList from './ShowPickerList';
import CircularProgress from 'material-ui/CircularProgress';
const shows = [
{
'id': 1,
'day': '20.05.2017',
'time': '14:30',
'type': 'Matinée',
'location': 'Stu... |
client/spec/components/info_icon_spec.js | tronroy/sickhauls | import React from 'react';
import InfoIcon from '../../assets/javascripts/components/info_icon';
describe('InfoIcon', function() {
beforeEach(function() {
this.wrapper = this.shallow(<InfoIcon toolTipText='hi mom' />)
});
it('renders the icon', function() {
var element = this.wrapper.find('span');
... |
ajax/libs/react/0.11.2/JSXTransformer.js | sitic/cdnjs | /**
* JSXTransformer v0.11.2
*/
!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.JSXTransformer=e()}... |
src/screens/team/components/TeamDetail/TeamDetail.js | vio-lets/Larkyo-Client | import React from 'react';
import {Link} from 'react-router-dom';
import './TeamDetail.css';
export default class TeamDetail extends React.Component {
constructor(props){
super(props);
this.handleCreateNewTeamClicked = this.handleCreateNewTeamClicked.bind(this);
this.handleMyTeamClicked = t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.