path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/javascript/flavours/glitch/features/ui/components/doodle_modal.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'flavours/glitch/components/button'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Atrament from 'atrament'; // the doodling library import { connect } from 'react-redux'; import ImmutablePropTypes from 'reac...
lib/index.js
sgleung/autumn
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from './store' import AppContainer from './containers/AppContainer' import './styles/main.css' ReactDOM.render( <Provider store={store}> <AppContainer /> </Provider>, document.getElementById('root')...
admin/client/App/shared/CreateForm.js
xyzteam2016/keystone
/** * The form that's visible when "Create <ItemName>" is clicked on either the * List screen or the Item screen */ import React from 'react'; import { findDOMNode } from 'react-dom'; import assign from 'object-assign'; import AlertMessages from './AlertMessages'; import { Fields } from 'FieldTypes'; import Invalid...
node_modules/react-bootstrap/es/Tooltip.js
lucketta/got-quote-generator
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 ...
admin/client/App/shared/Popout/index.js
everisARQ/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const sizes = { arrowHeight: 12, }; var Popou...
ajax/libs/clappr/0.0.13/clappr.js
r3x/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
react/src/components/AtomForm/MultiAttachmentsSelect.js
sinfin/folio
import React from 'react' import { connect } from 'react-redux' import { getFiles, makeFilesStatusSelector, makeFilesPaginationSelector, changeFilesPage, makeRawUnselectedFilesForListSelector, makeFilesReactTypeIsImageSelector } from 'ducks/files' import { atomFormPlacementsSelect, atomFormPlacementsU...
app/javascript/mastodon/components/admin/Dimension.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { roundTo10 } from 'mastodon/utils/numbers'; import Skeleton from 'mastodon/components/skeleton'; export default class Dimension extends React.PureComponent { static pr...
src/parser/warlock/affliction/modules/azerite/WrackingBrilliance.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatPercentage } from 'common/format'; import AzeritePowerStatistic from 'interfa...
node_modules/@material-ui/core/esm/FormHelperText/FormHelperText.js
pcclarke/civ-techs
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import formControlState from '../FormControl/formControlState'; import withFormControlCont...
src/svg-icons/action/record-voice-over.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRecordVoiceOver = (props) => ( <SvgIcon {...props}> <circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2....
app/components/ToggleOption/index.js
SenyOrg/kekecmed-frontend
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {intl.formatMessage(message)} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequired, message: Rea...
admin_tools/media/admin_tools/js/jquery/jquery.min.js
liberation/django-admin-tools
/*! * 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. ...
ajax/libs/forerunnerdb/1.3.872/fdb-core.min.js
jonobr1/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...
ajax/libs/material-ui/4.12.2/es/ClickAwayListener/ClickAwayListener.min.js
cdnjs/cdnjs
import*as React from"react";import*as ReactDOM from"react-dom";import PropTypes from"prop-types";import ownerDocument from"../utils/ownerDocument";import useForkRef from"../utils/useForkRef";import useEventCallback from"../utils/useEventCallback";import{elementAcceptingRef,exactProp}from"@material-ui/utils";function ma...
src/app.js
JakeGinnivan/Drone
import React from 'react' import ReactDOM from 'react-dom' import { ReduxRouter, routerStateReducer, reduxReactRouter } from 'redux-router' import Routes from './routes' import createHistory from 'history/lib/createBrowserHistory' import drone from './reducers/drone' import { createStore, compose, combineReducer...
src/js/components/Fields/VolumeControl.js
jaedb/Iris
import React from 'react'; import { throttle } from '../../util/helpers'; export default class VolumeControl extends React.Component { constructor(props) { super(props); this.handleChange = throttle(this.handleChange.bind(this), 100); } handleChange(value) { this.props.onVolumeChange(val...
__benchmarks__/index.js
SamyPesse/aqueduc
import React from 'react'; import Benchmark from 'benchmark'; import * as ReactRedux from 'react-redux'; import createTestStore from '../src/__tests__/utils/createTestStore'; import connect from '../src/connect'; import render from '../src/render'; const suite = new Benchmark.Suite(); @ReactRedux.connect((state, prop...
modules/TransitionHook.js
apoco/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
tests/SingleList/SingleList.js
appbaseio/reactivebase
import React from 'react'; import { ReactiveBase, SingleList, ReactiveList } from '../../app/app.js'; import {config} from './config'; import renderer from 'react-test-renderer'; function testComponent(cb) { const onData = function(res, err) { cb(res, err); } const component = renderer.create( <ReactiveBase ...
pages/less.js
simonrose121/portfolio
import React from 'react' import './example.less' import DocumentTitle from 'react-document-title' import { config } from 'config' export default class Less extends React.Component { render () { return ( <DocumentTitle title={`${config.siteTitle} | Hi lessy friends`}> <div> <h1 ...
src/container.js
ionutmilica/redux-modal-container
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as modalActionCreators from './actions'; class ModalContainer extends React.Component { static defaultProps = { modals: {}, }; render() { const { showModal, hideModal, modals, currentMo...
node_modules/react-icons/io/locked.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoLocked = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m6.7 37.5c-0.9 0-1.7-0.8-1.7-1.7v-16.6c0-0.9 0.8-1.7 1.7-1.7h1.7v-2.4c0-3.3 1.4-6.8 3.4-9s5-3.6 8.2-3.6c3.2 0 6.2 1.4 8.2 3.6s3.4 5.7 3.4 9v2.4h1.7c0.9 0 1.7 0.8 1.7 1...
react/features/video-quality/components/Slider.js
gpolitis/jitsi-meet
// @flow import { makeStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import React from 'react'; import { commonClassName } from '../../base/ui/constants'; type Props = { /** * The 'aria-label' text. */ ariaLabel: string, /** * The maximum value for slider value. *...
ajax/libs/yui/3.11.0/datatable-core/datatable-core-coverage.js
brix/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
ajax/libs/forerunnerdb/1.3.766/fdb-all.min.js
emmy41124/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...
ajax/libs/yui/3.11.0/event-focus/event-focus-coverage.js
StoneCypher/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"...
lib/option.js
ghiden/react-autocomplete
var React = require('react'); var addClass = require('./add-class'); module.exports = React.createClass({ propTypes: { /** * The value that will be send to the `onSelect` handler of the * parent Combobox. */ value: React.PropTypes.any.isRequired, /** * What value to put into the inp...
lib/yuilib/3.17.2/event-focus/event-focus-min.js
cdsmith-umn/moodle
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,fu...
src/routes/stock-correlation/components/stock-correlation-input.js
ArcQ/stocks-on-stats
import React, { PropTypes } from 'react'; import { Button, section, DatePicker } from 'react-toolbox'; import TagsInput from 'react-tagsinput'; import 'react-tagsinput/react-tagsinput.css'; import './stock-correlation.scss'; // TODO when user goes beyond 1 year on date picker, show dialog alerting user of limitation ...
src/client/components/Comments/HiddenCommentMessage.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const HiddenCommentMessage = ({ onClick }) => ( <div className="Comment__hidden__message Body"> <FormattedMessage id="comment_hidden_message" defaultMessage="This comment is currently hidden ...
packages/generator-electron/template/__tests__/renderer/components/App.js
abouthiroppy/dish
import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/renderer/components/App'; describe('Label component', () => { const createDOM = (props = {}) => shallow(<App {...props} />); it('should render self and subcomponents', () => { const wrapper = createDOM(); expect(wr...
ajax/libs/material-ui/4.10.1/es/SvgIcon/SvgIcon.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import capitalize fr...
src/web/client/src/components/shared/modal.js
devmynd/cloud-access-manager
import React from 'react' export default class Modal extends React.Component { componentDidMount = () => { this.props.onMounted && this.props.onMounted() } render () { return ( <div className='modal is-active'> <div className='modal-background' onClick={this.props.closeHandler} /> ...
senic_hub/frontend/src/index.js
grunskis/senic-hub
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/javascript/mastodon/features/generic_not_found/index.js
Ryanaka/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator fullPage /> </Column> ); export default GenericNotFound;
packages/mui-icons-material/lib/esm/Vrpano.js
oliviertassinari/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M20.69 4.05C18.66 4.73 15.86 5.5 12 5.5c-3.89 0-6.95-.84-8.69-1.43-.64-.22-1.31.26-1.31.95V19c0 .68.66 1.17 1.31.95C5.36 19.26 8.1 18.5 12 18.5c3.87 0 6.66....
src/routes/about/index.js
ADourgarian/Syscoin-Payroll
/** * 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 Layout from '../../co...
src/scenes/home/header/topNav/topNav.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './topNav.css'; const TopNav = ({ children }) => ( <div className={styles.topNav} > {children} </div> ); TopNav.propTypes = { children: PropTypes.node.isRequired }; export default TopNav;
src/Row.js
Lucifier129/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import elementType from 'react-prop-types/lib/elementType'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: elementType }, getDefaultProps() { return { ...
protocol-designer/src/steplist/formLevel/errors.js
Opentrons/labware
// @flow import * as React from 'react' import { getWellRatio } from '../utils' import { canPipetteUseLabware } from '../../utils' import { MAGNETIC_MODULE_V1, MAGNETIC_MODULE_V2 } from '@opentrons/shared-data' import { MIN_ENGAGE_HEIGHT_V1, MAX_ENGAGE_HEIGHT_V1, MIN_ENGAGE_HEIGHT_V2, MAX_ENGAGE_HEIGHT_V2, PA...
src/app/components/share-panel-embed-code.js
pashist/soundcloud-like-player
import React from 'react'; export default class SharePanelEmbedCode extends React.Component { render() { if (!this.props.track) return null; return ( <div className="share-link"> <div className="right"> <input type="checkbox" id="embed-code-wordpress"...
src/index.js
HurricaneJames/react-simple-nav
import React from 'react'; import ReactDOM from 'react-dom' import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/svg-icons/action/settings-phone.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
ui/src/components/DeviceProfileForm.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import Select from "react-select"; import NetworkServerStore from "../stores/NetworkServerStore"; import SessionStore from "../stores/SessionStore"; class DeviceProfileForm extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; c...
ui/src/core/components/Loader.js
mkacper/erlangpl
// @flow import React from 'react'; import './Loader.css'; type Props = { text: string }; const Loader = ({ text }: Props) => ( <div className="loader"> <div className="text-center"> <div className="spinner"> <div className="bounce1" /> <div className="bounce2" /> <div className...
src/layout.js
titoesteves/react_practice2
import React from 'react' import ampersandMixin from 'ampersand-react-mixin' import NavHelper from './components/nav-helper' export default React.createClass({ mixins: [ampersandMixin], displayName: 'Layout', render () { const {me} = this.props return ( <NavHelper> <nav className='top-na...
src/android.js
peterox/react-redux-form
/* eslint-disable react/prop-types */ import React from 'react'; import { Picker, Switch, TextInput, Slider, Text, View, } from 'react-native'; import { modelReducer, formReducer, modeled, actions, combineForms, initialFieldState, actionTypes, Control, Form, Fieldset, Errors, batche...
clients/libs/slate-editor-components/src/modal/ModalContent.js
nossas/bonde-client
/* eslint-disable no-undef */ /* eslint-disable react/prop-types */ import React from 'react' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./ModalContent.module.css') const ModalContent = ({ children }) ...
src/About.js
parkjoon/trivia-aficionados
import React from 'react'; import Banner from './Banner'; import Footer from './Footer'; import Header from './Header'; export default class About extends React.Component { render() { return ( <div> <Header view='about' /> <div role="main" className="main">...
boilerplates/basic/src/components/droids/index.js
goncalvesjoao/react-to-commonJS
import React from 'react'; import Droid from './Droid'; import jQuery from 'jquery'; import config from '../../config'; class Droids extends React.Component { constructor() { super(); this.state = { droids: [] }; } componentWillMount() { jQuery.ajax({ url: config.url + 'droids.json', da...
tools/lib/watch.js
yudppp/react-starter-kit-with-falcor
/** * React Starter Kit (http://www.reactstarterkit.com/) * * Copyright © 2014-2015 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 gaze from 'gaze'; export default (pattern) => new P...
examples/custom-server-express/pages/index.js
nikvm/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
app/components/profile/Profile.js
JoaoCnh/picto-pc
import React, { Component } from 'react'; import { Link } from 'react-router'; import Button from '../common/Button'; import styles from './Profile.css'; import AuthAPI from '../../api/auth'; import imageUtils from '../../utils/images'; export default class Profile extends Component { constructor(props) { ...
public/src/admin/AdminPanel.react.js
SLedunois/personal-website
import React, { Component } from 'react'; import Nav from './nav/Nav.react'; import PropTypes from 'prop-types'; class AdminPanel extends Component { render() { return ( <div> <Nav history={this.props.history} location={this.props.location} /> {this.props.children} </div> ); } }...
ajax/libs/react-highcharts/8.4.1/ReactHighstock.js
AMoo-Miki/cdnjs
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts/highstock")):"function"==typeof define&&define.amd?define(["react","highcharts/highstock"],r):"object"==typeof exports?exports.ReactHighstock=r(require("react"),require("highcharts/highstock")):t.React...
src/Accordion.js
victorzhang17/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
docs/src/pages/component-demos/app-bar/ButtonAppBar.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import Button from 'material-ui/Button'; import IconButton f...
packages/material-ui/src/RootRef/RootRef.js
allanalexandre/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { exactProp } from '@material-ui/utils'; import { setRef } from '../utils/reactHelpers'; /** * ⚠️⚠️⚠️ * If you want the DOM element of a Material-UI component check out * [/getting-started/faq/#how-can-i-access-t...
js/jquery.min.js
blastcapgames/blastcapgames.github.io
/*! jQuery v1.11.2 | (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...
examples/todo/js/components/Todo.js
tmitchel2/relay
/** * 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. */ import ChangeTodo...
src/components/Footer/Footer.js
poeschko/ask-refugeescode
/** * 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 withStyles from 'isom...
tests/react/useReducer_hook.js
AgentME/flow
// @flow import React from 'react'; { React.useReducer(); // Error: function requires another argument. } function reducer(state, action) { switch (action.type) { case "reset": return { count: action.payload }; case "increment": return { count: state.count + 1 }; case "decrement": r...
app/components/Icons/icons/icon-info.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function IconInfo() { return ( <svg version="1.1" id="icon-info" x="0px" y="0px" viewBox="-41 164.9 512 512"> <g> <g> <path d="M229.9,467.8c-10.6-14.9-27.5-24.1-45.7-24.8c-0.4,0-0.8-0.1-1.2-0.1c-23.1,0-42.3-17.5-44.9-39.9c6.7-4.9,12.8-11,18.3-18.4c11...
static/metis/lib/jquery-validation-1.11.1/lib/jquery-1.8.3.js
wangbinxiang/csAdmin
/*! * 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(...
ajax/libs/vega/2.2.0/vega.js
calebmer/cdnjs
(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}else{g=this}g.vg = f()}})(fu...
vertex_ui/src/components/Navbar/Navbar.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import { Navbar as ReactBootstrapNavbar } from 'react-bootstrap'; import { OutsideClick } from 'components'; import classNames from 'classnames'; import classes from './Navbar.scss'; import updateChildElementOfType from './../utils/updateChildElement...
wp-content/themes/euclid_theme/euclid/vafpress/public/js/vendor/jquery-1.8.3.min.js
How2ForFree/development
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
test/components/AboutTest.js
unicredit/react-boilerplate
import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import About from '../../src/components/About' describe('<About />', () => { it('renders a <div>', () => { const wrapper = shallow(<About />); expect(wrapper.find('div')).to.have.length(1); }); });
src/ButtonRaised/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import classNames from 'classnames'; import styles from './styles.css'; function ButtonRaised(props) { return ( <button className={classNames(styles.raised, { [styles.darkBackground]: props.theme ...
docs/src/pages/components/progress/LinearQuery.js
allanalexandre/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import LinearProgress from '@material-ui/core/LinearProgress'; const useStyles = makeStyles({ root: { flexGrow: 1, }, }); function LinearQuery() { const classes = useStyles(); return ( <div className={classes.root}> ...
ajax/libs/flocks.js/1.4.0/flocks.min.js
amoyeh/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type...
src/webpack-demos/demo15/App.js
atlantis1024/webpack-notes
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello World</h1> ); } }
misc/jquery.js
ekilfeather/open-storyscope
/*! * 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....
src/client/routes.js
youprofit/este
// import Examples from './examples/page.react'; import App from './app/app.react'; import Home from './home/index.react'; import Login from './auth/index.react'; import Me from './me/index.react'; import NotFound from './components/notfound.react'; import React from 'react'; import Todos from './todos/index.react'; im...
example/src/test_rollinput.js
flywingdevelopers/rn-naive
/** * <TextInput> * Kevin Lee 3 Sept 2017 **/ import React from 'react' import { Screen, Bar, Block, DataBar, DataBlock, Text, CheckBox, Input, Roll, } from 'rn-naive' export default class App extends React.Component { constructor(props) { super(props) this.state = { disabled: false, d1:...
drools-guvnor/src/main/webapp/org.drools.guvnor.Guvnor/js/ext/ext-all-debug.js
bobmcwhirter/drools
/* * Ext JS Library 2.0.2 * Copyright(c) 2006-2008, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.DomHelper = function(){ var tempTableEl = null; var emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i; var tableRe = /^table|tbod...
app/containers/HomePageIconListItem/index.js
interra/data-generate
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import ListItem from 'components/ListItem'; import Wrapper from './Wrapper'; import StyledLink ...
test/containers/CounterPage.spec.js
merklelabs/SlickIRC
import { expect } from 'chai' import React from 'react' import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils' import { Provider } from 'react-redux' import CounterPage from '../../app/containers/CounterPage' import configureSt...
packages/material-ui-icons/src/QueuePlayNext.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3 1.5-1.5L24 18z" /></g> , 'QueuePlayNext');
ajax/libs/angular-data/0.5.0/angular-data.js
calvinf/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file angular-data.js * @version 0.5.0 - Homepage <http://jmdobry.github.io/angular-data/> * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/angular-data> * @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE> * * @overview Dat...
src/components/ContentDropdown/spec.js
quran/quran.com-frontend
import React from 'react'; import { mountWithIntl } from '../../../tests/helpers/intl-enzyme-test-helper.js'; import ContentDropdown, { slugs } from './index'; let wrapper; let onOptionChange = sinon.stub(); const defaultOption = 19; describe('<ContentDropdown />', () => { beforeEach(() => { onOptionChange = s...
static/goview/js/pygal-tooltips.js
fridex/gofed-web
// Generated by CoffeeScript 1.6.3 (function() { var get_translation, init, padding, r_translation, tooltip_timeout; padding = 5; tooltip_timeout = 0; r_translation = /translate\((\d+)[ ,]+(\d+)\)/; get_translation = function($elt) { return (r_translation.exec($elt.attr('transform')) || []).slice(1); ...
packages/core/src/mixins/renderToLayer.js
iCHEF/gypcrete
import React, { Component } from 'react'; import { createPortal } from 'react-dom'; import prefixClass from '../utils/prefixClass'; import getComponentName from '../utils/getComponentName'; import randId from '../utils/randId'; import '../styles/RenderToLayer.scss'; const COMPONENT_NAME = prefixClass('base-layer'); ...
src/blog/flux/views/components/widgets/Header.js
exseed/exseed-boilerplate
import React from 'react'; export default class Header extends React.Component { render() { const { value } = this.props; const level = Number(value.level); if (1 <= level && level <= 5) { const subheader = value.subheader !== '' && <div className="sub header">{value.subheader}</div>; ...
src/svg-icons/action/zoom-out.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomOut = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ...
app/routes/user/IndexRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Collection as Users } from '../../entities/User'; import { PageHeader, Row, Col } from 'react-bootstrap'; import NavLink from '../../components/NavLink'; import GridContainer from '../../components/GridCont...
pages/utils/popovers.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/utils/popovers/popovers.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ ...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
brandonlilly/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
internals/scripts/dependencies.js
Honyrik/my_msg
// No need to build the DLL in production if (process.env.NODE_ENV === 'production') { process.exit(0); } require('shelljs/global'); const path = require('path'); const fs = require('fs'); const exists = fs.existsSync; const writeFile = fs.writeFileSync; const defaults = require('lodash/defaultsDeep'); const pkg =...
packages/material-ui-icons/src/RingVolume.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-...
src/app/views/userProfile.js
benigeri/soapee-ui
import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import { State, Link } from 'react-router'; import { Button } from 'react-bootstrap'; import userActions from 'actions/user'; import meActions from 'actions/me'; import userProfileStore from 'stores/userProfile'; import userRecipesStore f...
ajax/libs/yui/3.3.0/event-custom/event-custom-base.js
pazguille/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...
ajax/libs/core-js/0.4.8/library.js
taydakov/cdnjs
/** * Core.js 0.4.8 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
src/component/board.js
heroinedor/tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; import calculateWinner from '../util/func' function Square(props) { return ( <button className="square" onClick={() => props.onClick()}> {props.value} </button> ); } export default class Board extends React.Component { ...
app/components/Thumb.js
fakob/electron-test-v003
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { SortableHandle } from 'react-sortable-hoc'; import styles from './ThumbGrid.css'; import inPoint from './../img/Thumb_IN.png'; import outPoint from './../img/Thumb_OUT.png'; import back from './../img/Thumb_BACK.png'; import forward from ...
lib/svg-icons/notification/ondemand-video.js
ghondar/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var NotificationOndemandVideo = React.createClass({ displayName: 'NotificationOndemandVideo', mixins: [PureRenderMixin], render: function render() { return React....
src/app/app.js
batazor/LMap
import React from 'react' // eslint-disable-line no-unused-vars import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import Root from './containers/Root' import configureStore from './store/configureStore' const store = configureStor...
day22_search_sort/src/components/TodoEditForm.js
eyesofkids/ironman2017
//@flow import React from 'react' //匯入Props靜態類型的定義 import type { TodoEditFormProps } from '../definitions/TodoTypeDefinition.js' const TodoEditForm = ({ title, onItemUpdate }: TodoEditFormProps) => { //給Flow檢查用的,這個參照值一開始都是null,渲染前是不確定值,所以用any let titleField: any = null return ( <li className="list-group-i...
tests/layouts/CoreLayout.spec.js
youdeshi/single-page-app-best-practice-client
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...