path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
dist/moxie.js
mochenyin/mySchoolProject
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.0 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-01-16 */ /** * Compiled inline version. (Library ...
src/components/modals/Modal.js
ello/webapp
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { css, media, modifier, select } from '../../styles/jss' import * as s from '../../styles/jso' const modalStyle = css( s.fullscreen, s.zModal, s.pt4...
BarcodeClient/index.ios.js
ggauravr/BarcodeProject
import React from 'react'; import { AppRegistry } from 'react-native'; import BarcodeScanner from './BarcodeScanner'; AppRegistry.registerComponent('BarcodeScanner', () => BarcodeScanner);
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js
tan-jerene/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * DatePicker` can be implemented as a controlled input, * where `value` is handled by state in the parent component. */ export default class DatePickerExampleControlled extends React.Component { constructor(props) { super(props);...
Realization/frontend/czechidm-core/src/content/role/IncompatibleRoles.js
bcvsolutions/CzechIdMng
import React from 'react'; import Helmet from 'react-helmet'; // import * as Basic from '../../components/basic'; import SearchParameters from '../../domain/SearchParameters'; import IncompatibleRoleTable from './IncompatibleRoleTable'; /** * Incompatible role - defines Segregation of Duties. * * @author Radek Tomi...
src/Accordion/Accordion.stories.js
boldr/boldr-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Accordion, AccordionItem, AccordionItemTitle, AccordionItemBody } from './index'; storiesOf('Accordion', module).add('Default', () => <Accordion accordion> <AccordionItem isExpande...
client/src/javascript/components/views/Register.js
jfurrow/flood
import React from 'react'; import ApplicationView from '../layout/ApplicationView'; import AuthForm from '../auth/AuthForm'; export default class LoginView extends React.Component { render() { return ( <ApplicationView modifier="auth-form"> <AuthForm mode="register" /> </ApplicationView> ...
src/components/Pills.js
alphasp/pxview
import React from 'react'; import { View, StyleSheet, Platform } from 'react-native'; import { withTheme } from 'react-native-paper'; import { Button } from 'react-native-elements'; import { globalStyleVariables } from '../styles'; const styles = StyleSheet.create({ container: { flexDirection: 'row', alignIt...
frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContentConnector.js
geogolem/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveDelayProfile, setDelayProfileValue } from 'Store/Actions/settingsActions'; import selectSettings from 'Store/Selectors/sele...
src/svg-icons/device/signal-wifi-4-bar-lock.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
test/test_helper.js
ElliotSanchez/YoutubeViewer
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
examples/todomvc/index.js
Poplava/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
node_modules/react-icons/ti/eye.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiEye = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m36.4 20.7c-0.2-0.2-3.5-4.9-8-8.1-2.4-1.7-5.4-2.6-8.4-2.6-3 0-6 0.9-8.4 2.6-4.5 3.2-7.8 7.9-8 8.1-0.4 0.6-0.4 1.3 0 1.9 0.2 0.2 3.5 4.9 8 8.1 2.4 1.7 5.4 2.6 8.4 2.6 3 0 ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
examples/gatsby/plugins/gatsby-plugin-top-layout/TopLayout.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import CssBaseline from '@material-ui/core/CssBaseline'; import { ThemeProvider } from '@material-ui/styles'; import theme from '../../src/theme'; export default function TopLayout(props) { return ( <React.Fragm...
ajax/libs/forerunnerdb/1.3.718/fdb-all.min.js
sreym/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/interface/modals/Modal.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CloseIcon from 'interface/icons/Cross'; import Portal from 'interface/Portal'; import { openModal, closeModal } from 'interface/actions/modals'; import './Modal.scss'; class Modal extends React.PureComponent ...
src/components/MiniInfoBar/MiniInfoBar.js
cheeselover/WCF2015
import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; @connect(state => ({ time: state.info.data.time })) export default class MiniInfoBar extends Component { static propTypes = { time: PropTypes.number } render() { const {time} = this.props; return ( <div cla...
test/helpers/shallowRenderHelper.js
Hanakisou/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
frontend/test/app/actions/newsletter-form-test.js
clouserw/testpilot
import fetchMock from 'fetch-mock'; import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { basketUrl } from '../../../src/app/actions/newsletter-form'; const FAILED = 'newsletterFormSetFailed'; const SUBMITTING = 'newsletterFormSetSubmitting'; const SUCCEEDED = 'newsletterFormSe...
imports/ui/pages/JournalArchivesNotUsedAnyMore/JournalArchives.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, FormGroup, HelpBlock , Alert , ControlLabel, Button , Well , FormControl , ProgressBar , Jumbotron , ListGroup , ListGroupItem , Table , Panel , Label , ButtonToolbar , ButtonGroup , Media } from 'react-boots...
packages/material-ui-icons/lib/Paid.js
mbrookes/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
packages/material-ui-icons/src/ArrowRightAltRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M16.01 11H5c-.55 0-1 .45-1 1s.45 1 1 1h11.01v1.79c0 .45.54.67.85.35l2.78-2.79c.19-.2.19-.51 0-.71l-2.78-2.79c-.31-.32-.85-.09-.85.35V11z" /> , 'ArrowRightAltRounded');
src/js/Dialogs/__tests__/DialogTitle.js
lwhitlock/grow-tracker
/* eslint-env jest */ jest.unmock('../DialogTitle'); import React from 'react'; import { findDOMNode } from 'react-dom'; import { renderIntoDocument } from 'react-dom/test-utils'; import DialogTitle from '../DialogTitle'; describe('DialogTitle', () => { it('merges className and style', () => { const props = { ...
src/components/index.js
bat-edenera/react-tbz
import React, { Component } from 'react'; import {connect} from 'react-redux'; import tbzColor from 'utils/tbzColor.js'; import {checkLog,changeColor} from 'action/action.js'; import Header from 'components/header.js'; import Siderbar from 'components/siderBar.js'; import Container from 'components/container.js' cla...
react-twitter-save-data-loading(client-hint)/src/components/Twitter/Quote.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles'; import Text from './Text'; class Quote extends React.Component { render () { const {data, linkProps} = this.props; return ( <div className="QuoteTweet" style={styles.QuoteTweet}> <a className="QuoteT...
src/svg-icons/action/donut-large.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutLarge = (props) => ( <SvgIcon {...props}> <path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18....
resources/assets/js/routes.js
camilosegura/horus
var React = require('react'); var Router = require('react-router').Router; var Route = require('react-router').Route; var Index = require('./components/index'); var Login = require('./components/login'); var routes = ( <Router> <Route path="/" component={Index}/> <Route path="/login" component={Login}/> </Router...
src/shared/element-react/dist/npm/es6/src/tree/Tree.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import { PropType...
src/routes/dashboard/components/quote.js
hhj679/mybition-web
import React from 'react' import PropTypes from 'prop-types' import styles from './quote.less' function Quote ({ name, content, title, avatar }) { return ( <div className={styles.quote}> <div className={styles.inner}> {content} </div> <div className={styles.footer}> <div classNa...
data-browser-ui/public/app/components/tableComponents/td/listComponents/geoList.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import Dialog from 'material-ui/Dialog'; import TextField from 'material-ui/TextField'; class GeoListComponent extends React.Component { constructor(){ super() this.state = { isModalOpen:false } } componentDidMount(){ } openCloseModal(what){...
local-cli/link/link.js
olofd/react-native-photos-framework
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ const log ...
examples/huge-apps/routes/Calendar/components/Calendar.js
dyzhu12/react-router
import React from 'react'; class Calendar extends React.Component { static loadProps(params, cb) { setTimeout(() => { cb(null, { events: [{ id: 0, title: 'essay due' }] }) }, 1000); } render () { var { events } = this.props; return ( <div> <h2...
challenge6/finished/node_modules/browserify-middleware/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/assets/codemirror/codemirror.js
Betisman/node-workshop-learning
// CodeMirror version 2.32 // // All functions that need access to the editor's state live inside // the CodeMirror function. Below that, at the bottom of the file, // some utilities are defined. // CodeMirror is the only global var we claim var CodeMirror = (function() { // This is the function that produce...
internals/templates/containers/LanguageProvider/index.js
bsherrill480/website-asd-init
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
client/src/components/HeaderField/tests/HeaderField-test.js
silverstripe/silverstripe-admin
/* global jest, describe, it, expect */ import React from 'react'; import HeaderField from '../HeaderField'; import Enzyme, { shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16/build/index'; Enzyme.configure({ adapter: new Adapter() }); describe('HeaderField', () => { it('minimal render', () => ...
app/components/Character.js
zanjs/newedenfaces-react
import React from 'react'; import CharacterStore from '../stores/CharacterStore'; import CharacterActions from '../actions/CharacterActions' class Character extends React.Component { constructor(props) { super(props); this.state = CharacterStore.getState(); this.onChange = this.onChange.bind(this); } ...
src/v2/components/UI/Avatar/index.js
aredotna/ervell
import React from 'react' import styled, { css } from 'styled-components' import { space } from 'styled-system' const mixin = css` display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; width: ${x => x.size}px; height: ${x => x.size}px; background-color...
src/components/Text.js
hbuchel/heather-buchel.com
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/core'; const Text = ({as, children, variant, size, className, lh, color, inline}) => { let El = as; let fontVariant; if(variant !== 'default') { fontVariant = css` font-family: var(--font-${variant}); ...
ajax/libs/react-intl/1.2.0/react-intl.js
yinghunglai/cdnjs
(function() { "use strict"; var $$utils$$hop = Object.prototype.hasOwnProperty; function $$utils$$extend(obj) { var sources = Array.prototype.slice.call(arguments, 1), i, len, source, key; for (i = 0, len = sources.length; i < len; i += 1) { source = sources[i]; ...
ajax/libs/mediaelement/2.10.1/jquery.js
jackdoyle/cdnjs
/*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. *...
app/src/components/Department/LearnMore.js
open-austin/budgetparty
import React from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types'; import Navigation from '../Navigation' import departments from '../../data/departments.js' const LearnMore = (props) => { const serviceId = props.match.params.service_id const departmentId = props.match.params.id...
app/components/IssueIcon/index.js
Dmitry-N-Medvedev/motor-collection
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
app/__tests__/index.ios.js
1598692232/rn-xcf
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 /> ); });
src/svg-icons/editor/format-size.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatSize = (props) => ( <SvgIcon {...props}> <path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/> </SvgIcon> ); EditorFormatSize = pure(EditorFormatSize); EditorFormatSize.displayName = 'EditorFo...
Libraries/Components/WebView/WebView.ios.js
Ehesp/react-native
/** * 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. * * @provides...
ajax/libs/strophe.js/1.1.3/strophe.js
tomsoir/cdnjs
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com var Base64 = (function () { var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var obj = { ...
ajax/libs/rxjs/2.3.19/rx.js
seogi1004/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
src/routes/error/index.js
murthymuddu/murthy-umg
/** * 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 ErrorPage from './Err...
snippets/camunda-tasklist-examples/camunda-react-app/src/components/forms/invoice/newTask.js
camunda/camunda-consulting
import React from 'react' import { Field, reduxForm } from 'redux-form' const SimpleForm = props => { const { handleSubmit, pristine, reset, submitting } = props return ( <form onSubmit={handleSubmit}> <div> <label>First Name</label> <div> <Field name="firstName" ...
ajax/libs/angular.js/0.9.2/angular-scenario.js
SanaNasar/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/material-ui/5.0.0-alpha.30/modern/List/ListContext.min.js
cdnjs/cdnjs
import*as React from"react";const ListContext=React.createContext({});"production"!==process.env.NODE_ENV&&(ListContext.displayName="ListContext");export default ListContext;
client/index.js
bzswords/blackstallion
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; // Import your routes so that you can pass them to the <Router /> component import routes from './routes.js'; render(( <Router routes={routes} history={browserHistory} /> ), document.getElementById(...
tests/react/useRef_hook.js
facebook/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} class Bar extends React.Component<{}, void> {} { const stringValue: {current: string} = React.useRef("abc"); // Ok const numberValue: {current: number} = React.useRef(123); // Ok const booleanValue: {current: boolean} = React.us...
src/svg-icons/device/dvr.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ...
web/src/js/__tests__/components/Header/ConnectionIndicatorSpec.js
StevenVanAcker/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import ConnectedIndicator, { ConnectionIndicator } from '../../../components/Header/ConnectionIndicator' import { ConnectionState } from '../../../ducks/connection' import { Provider } from 'react-redux' import { TStore } from '../../ducks/tutils' de...
src/client/components/hoc/Scroll/withScrollToComponent.hoc.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import scrollToComponent from 'react-scroll-to-component'; import {SCROLL_TO_COMPONENT_COMPLETE} from '../../../redux/scrollToComponent'; import {get} from 'lodash'; const withScrollToComponent = (WrappedComponent, options = {}) => { const Wrapped = cla...
SvgEditor.js
arqex/react-svge
var React = require('react'), Freezer = require('freezer-js'), SvgCanvas = require('./components/SvgCanvas'), PathMode = require('./components/modes/PathMode'), SelectMode = require('./components/modes/SelectMode'), pathReactions = require('./reactions/pathReactions'), selectReactions = require('./reactions/selec...
examples/js/manipulation/custom-btn-text-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const...
ajax/libs/forerunnerdb/1.3.57/fdb-core+views.min.js
CyrusSUEN/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...
node_modules/ajv/dist/regenerator.min.js
GitMazzone/OpenCampus
/* regenerator 0.9.7: Source transformer enabling ECMAScript 6 generator functions (yield) in JavaScript-of-today (ES5) */ require=function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");thr...
src/containers/LoadParamsRoute.js
codaco/Network-Canvas
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { actionCreators as resetActions } from '../ducks/modules/reset'; import { actionCreators as sessionsActions } from '../ducks/modules/sessions'...
src/desktop/apps/auction/components/artwork_browser/sidebar/MediumFilter.js
kanaabe/force
import _BasicCheckbox from './BasicCheckbox' import PropTypes from 'prop-types' import React from 'react' import _, { contains } from 'underscore' import block from 'bem-cn-lite' import { connect } from 'react-redux' import { updateMediumParams } from 'desktop/apps/auction/actions/artworkBrowser' // FIXME: Rewire let ...
ajax/libs/cyclejs-dom/1.0.2/cycle-web.js
sajochiu/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.CycleWeb = f()...
src/client/components/ui/FormLayout.js
JulienPradet/quizzALJP
import React from 'react' export function FormGroup(props) { const legend = props.legend ? <legend>{props.legend}</legend> : null const Component = props.fieldset ? "fieldset" : "div" const className = "form_group " + (props.className || '') return <Component className={className}> {...
js/rendererjs/loadingScreen.js
NebulousLabs/New-Sia-UI
// loadingScreen.js: display a loading screen until communication with Siad has been established. // if an available daemon is not running on the host, // launch an instance of siad using config.js. import { remote, shell } from 'electron' import * as Siad from 'sia.js' import Path from 'path' import React from 'react'...
examples/src/routes.js
nkiateam/polestar-antd
import React from 'react'; import { Route } from 'react-router-dom'; import { ButtonPage, WizardPage } from './pages'; export default ( <div> <Route exact path="/" component={ButtonPage} /> <Route exact path="/button" component={ButtonPage} /> <Route exact path="/wizard" compon...
docs/src/examples/modules/Accordion/Usage/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const AccordionUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Active Index' descrip...
ajax/libs/react/18.0.0-alpha-9c8161ba8-20211028/cjs/react-jsx-dev-runtime.development.min.js
cdnjs/cdnjs
"use strict";"production"!==process.env.NODE_ENV&&function(){var e=require("react"),p=require("object-assign"),y=60103,a=60106;exports.Fragment=60107;var r,d=60108,m=60114,g=60109,v=60110,b=60112,h=60113,_=60120,k=60115,w=60116,t=60128,j=60129,O=60130,R=60131,i=60132;"function"==typeof Symbol&&Symbol.for&&(y=(r=Symbol....
client/src/components/IpfsSettingsView.js
shamb0t/orbit
'use strict'; import React from 'react'; import IpfsDaemonStore from 'stores/IpfsDaemonStore'; import IpfsDaemonActions from 'actions/IpfsDaemonActions'; import AppActions from 'actions/AppActions'; import IpfsAddressSettings from 'components/IpfsAddressSettings'; import IpfsApiSettings from 'components/IpfsApiSetting...
react/apidocs/apidocs.js
phil-lopreiato/the-blue-alliance
import React from 'react' import ReactDOM from 'react-dom' import ApiDocsFrame from './ApiDocsFrame' const swaggerUrl = document.getElementById('swagger_url').innerHTML ReactDOM.render( <ApiDocsFrame url={swaggerUrl} />, document.getElementById('content') )
src/scripts/about-view.js
Vicula/portfolio
const React = require('react'); const AboutView = React.createClass({ render: function(){ return( <div className="aboutMeBox"> <h1>ABOUT ME</h1> <p>These are a few of my projects that i am currently working on or have already completed. Each project uses different Javascript librar...
src/components/ScrollToTopRoute.js
theCoolKidsJavaScriptMeetup/PeoriaHackathon
import React, { Component } from 'react'; import { Route, withRouter } from 'react-router-dom'; class ScrollToTopRoute extends Component { componentDidUpdate(prevProps) { if (this.props.path === this.props.location.pathname && this.props.location.pathname !== prevProps.location.pathname) { window.scrollTo(...
src/svg-icons/notification/personal-video.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
ajax/libs/react/0.9.0/react-with-addons.min.js
ekeneijeoma/cdnjs
/** * React (with addons) v0.9.0 * * 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 re...
docs/app/Examples/modules/Dropdown/Content/Header.js
jcarbo/stardust
import React from 'react' import { Dropdown } from 'stardust' const options = [ { text: 'English', value: 'English' }, { text: 'French', value: 'French' }, { text: 'Spanish', value: 'Spanish' }, { text: 'German', value: 'German' }, { text: 'Chinese', value: 'Chinese' }, ] const DropdownHeaderExample = () =>...
test/CollapsibleMixinSpec.js
nickuraltsev/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CollapsibleMixin from '../src/CollapsibleMixin'; import classNames from 'classnames'; describe('CollapsibleMixin', () => { let Component, instance; beforeEach(() => { Component = React.createClass({ mixins: [Collap...
Realization/frontend/czechidm-core/src/content/scheduler/LongRunningTaskQueue.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { LongRunningTaskItemManager, LongRunningTaskManager } from '../.....
packages/material-ui-icons/src/DeleteSweep.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z" /></g> , 'DeleteSweep');
packages/react/src/internal/ClickListener.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; /** * Generic component used for reacting to a click event happening outside...
js/jquery-1.8.3.min.js
majtenyim/thesis-webserver
/*! 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===...
src/routes/dashboard/components/completed.js
miaoji/guojibackend
import React from 'react' import PropTypes from 'prop-types' import styles from './completed.less' import classnames from 'classnames' import { color } from '../../../utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Completed ({ data }) { r...
src/app/components/Grid.js
sphinxominator/councils-feathers
import React from 'react' import styled from 'styled-components' const breakpoints = { small: '40em', medium: '52em', large: '64em' } const ms = size => `@media screen and (min-width: ${size})` const mx = point => props => typeof props.theme.breakpoints === 'object' ? ms(props.theme.breakpoints[point]) ...
node_modules/realm/lib/browser/index.js
weatherfordmat/YorViewReactNative
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/li...
ajax/libs/yui/3.14.0/scrollview-base/scrollview-base-coverage.js
jieter/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.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":...
src/Icon_DinersClub.js
codefoundries/material-ui-credit-card-icons
'use strict'; import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; export default function( props ) { return( <SvgIcon viewBox="0 0 60 40" {...props}> <g> <path fill="#F3F4F4" d="M60,35c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V5c0-2.75,2.25-5,5-5h50c2.75,0,5,2.25,5,5V35z"/> <g...
examples/todo/js/components/TodoListFooter.js
meteor/relay-runtime-query
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
ajax/libs/core-js/0.7.0/shim.js
Piicksarn/cdnjs
/** * Core.js 0.7.0 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ var __e = null, __g = null; (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0...
src/containers/views/tests/configuration.spec.js
bunto/bunto-admin
import React from 'react'; import { shallow } from 'enzyme'; import Errors from '../../../components/Errors'; import Editor from '../../../components/Editor'; import Button from '../../../components/Button'; import { Configuration } from '../Configuration'; import { config } from './fixtures'; const defaultProps = { ...
src/server.js
Rhadow/isomorphic-react-example
import express from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { RouterContext , match } from 'react-router'; import { Provider } from 'react-redux'; import appRoutes from './shared/routes'; import configureStore from './shared/configureStore'; import fetchComponentD...
ajax/libs/backbone-react-component/0.8.0-alpha.1/backbone-react-component-min.js
kellyselden/cdnjs
!function(a,b){"function"==typeof define&&define.amd?define(["react","backbone","underscore"],b):"undefined"!=typeof module&&module.exports?module.exports=b(require("react"),require("backbone"),require("underscore")):b(a.React,a.Backbone,a._)}(this,function(a,b,c){"use strict";function d(a,b){b=b||{};var d=b.model,e=b....
electron/app/pages/component/generic.js
midsnow/snowelectric
import React from 'react'; /** * A generic container * expects a html prop * */ class Generic extends React.Component { constructor(props) { super(props) this.displayName = 'Generic '; this.state = { html: props.html || props.response }; this.props = props; } componentWillReceiveProps(props) ...
js/ui/cinnamonMountOperation.js
acmihal/Cinnamon
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Lang = imports.lang; const Signals = imports.signals; const Gio = imports.gi.Gio; const Gtk = imports.gi.Gtk; const Pango = imports.gi.Pango; const St = imports.gi.St; const Cinnamon = imports.gi.Cinnamon; const Main = imports.ui.main; const Message...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/playlist-add.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd.displayName = 'AvPlaylistAdd'; AvPlaylistAdd.muiName = 'SvgIcon'; ex...
src/components/Group.js
TonyYang9527/my-app
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; class Group extends React.Component{ static propTypes = { type: PropTypes.string, className: PropTypes.string, }; static defaultProps = { type : '', clas...
src/svg-icons/action/find-in-page.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
App/node_modules/react-navigation/lib-rn/createNavigationContainer.js
Dagers/React-Native-Differential-Updater
import React from 'react'; import invariant from 'fbjs/lib/invariant'; import { BackAndroid, Linking } from './PlatformHelpers'; import NavigationActions from './NavigationActions'; import addNavigationHelpers from './addNavigationHelpers'; var babelPluginFlowReactPropTypes_proptype_NavigationNavigatorProps = require(...
src/routes.js
cellva/alluminate-temp-setup
import React from 'react'; import {IndexRoute, Route} from 'react-router'; // import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { Dashboard, // Coin, HomePage, CoinDetail, Empty } from 'alluminate/containers'; export default () => { // const requireLogin = (nextState...
zanata-editor/src/__tests__/components/IconTest.js
Halcom/zanata-server
jest.disableAutomock() import React from 'react' import ReactDOMServer from 'react-dom/server' import Icon from '../../app/components/Icon' describe('IconTest', () => { it('Icon markup', () => { const actual = ReactDOMServer.renderToStaticMarkup( <Icon name="classical" title="Mozart" className="pop-icon"/...
client/src/components/layouts/components/guide/NavPanel.js
pahosler/freecodecamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Panel } from '@freecodecamp/react-bootstrap'; import { navigate } from 'gatsby'; const propTypes = { children: PropTypes.any, dashedName: PropTypes.string, handleClick: PropTypes.func.isRequired, hasChildren: PropTypes.bool,...