path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
public/src/containers/selectArea/selectArea.js
white87332/react-redux-sample
import React from 'react'; import { findDOMNode } from 'react-dom'; import { forIn } from 'lodash'; import PropTypes from 'prop-types'; import { addEventListener, removeEventListener } from '../../utils/event'; // import Drag from '../drag/drag'; import createSelectable from './createSelectable'; class SelectArea ext...
js/routes/transfersView/index.js
merodeadorNocturno/transfer
import React from 'react'; import { NavigationBar } from '../../components/common/NavigationBar'; import ListTransfers from '../../components/transfers/ListTransfers'; class MainBank extends React.Component { render () { return ( <div> <NavigationBar /> <div clas...
components/profile.js
pho3nixf1re/followupboss-example
import React from 'react'; function Profile({ user }) { let { name, email, role } = user; return ( <div> <h2>{name}</h2> <p><strong>Email:</strong> <a href={`mailto:${email}`}>{email}</a></p> <p><strong>Role:</strong> {role}</p> </div> ); } Profile.prop...
src/components/feed/container.js
alexcurtis/react-fbpage
'use strict'; import React from 'react'; import {Map} from 'immutable'; import InfiniteScroll from 'react-infscroll'; import Loading from './loading'; import Item from './item'; class FeedContainer extends React.Component { constructor(props){ super(props); } loadNext(){ console.log('load ...
src/common/components/table/AutoCompleteField.js
vassar-cogscilab/turing-machine
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; const style = { root: { marginRight: '15px', marginLeft: '15px', maxWidth: '200px' }, AutoComplete: { fullWidth: true, floatingLabelFixed: true, popoverProps: { canAutoPosition: true }, menuStyle: { maxHeight: 200,...
threeforce/node_modules/dom-helpers/util/hyphenateStyle.js
wolfiex/VisACC
/** * Copyright 2013-2014, Facebook, Inc. * All rights reserved. * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js */ "use strict"; var hyphenate = require("./hyphenate"); var msPattern = /^ms-/; module.exports = function hyphenateStyleNam...
js/components/common/AddLocationModal.js
a-omsk/Vegreact
import React from 'react'; import Modal from 'react-modal'; import AddLocationForm from './AddLocationForm'; const modalStyle = { overlay: { zIndex: 10, }, content: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', h...
app/jsx/files/utils/openMoveDialog.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/containers/NotFoundPage/index.js
zmora-agh/zmora-ui
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
ajax/libs/react-slick/0.12.0/react-slick.min.js
keicheng/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,...
packages/material-ui-icons/src/PhoneIphoneOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v...
src/Dialog.js
kctang/mdl-ui
import React from 'react'; import * as Mdl from 'react-mdl'; export default ({ title='Dialog title', content='Dialog content', actions=['Ok', 'Cancel'], doClick=onClick, doCancel=onCancel, }) => { return ( <div> <Mdl.Dialog open={true} onCancel={() => doCancel()}> <Mdl.DialogTitle>{title}...
src/routes.js
jeftarmascarenhas/react-redux-study
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import ProductsPage from './components/products/ProductsPage'; import MenageProductPage from './compon...
tests/react/default_props_any.js
TiddoLangerak/flow
// @flow import React from 'react'; class Foo extends React.Component<{required: number}> { static defaultProps: Object; } class Bar extends React.Component<{required: number}> { static defaultProps: any; } <Foo/>; <Bar/>;
App.js
Madadata/MDDropDownMenu
import React from 'react'; import MDDropDownMenu from './src/MDDropDownMenu.jsx'; import styles from './App.css'; import 'font-awesome/css/font-awesome.css'; const App = () => ( <div className={styles.container}> <MDDropDownMenu options={['caiyao', 'jiayu', 'yuxiang']} onSelect={(option) => console.l...
client/app/Core/ReactTags/index.js
mahimaag/DTA
/** * Created by saubhagya on 24/8/17. */ import React from 'react'; import ReactTags from 'react-tag-autocomplete'; class Tags extends React.Component { constructor(props) { super(props); this.state = { tags: [], suggestions: [ { id: 2...
web-ui/src/account_recovery/new_password_form/new_password_form.js
pixelated-project/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Pixelated i...
src/routes/about/index.js
zsu13579/pinterest-apollo
/** * 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/utils/traverseAllChildren.js
jakeboone02/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
src/assets/js/react/router/fontManagerRouter.js
GravityPDF/gravity-forms-pdf-extended
/* Dependencies */ import React from 'react' import PropTypes from 'prop-types' import { render } from 'react-dom' import { HashRouter as Router, Route, Switch } from 'react-router-dom' import { Provider } from 'react-redux' /* Components */ import FontManager from '../components/FontManager/FontManager' import Empty f...
ui/node_modules/react-bootstrap/src/Button.js
bpatters/eservice
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool, disabled: React.PropTypes.bool, block: React.PropTypes.bool, navItem: React.PropTypes...
packages/vulcan-core/lib/modules/containers/withRemove.js
bshenk/projectIterate
/* Generic mutation wrapper to remove a document from a collection. Sample mutation: mutation moviesRemove($documentId: String) { moviesEdit(documentId: $documentId) { ...MoviesRemoveFormFragment } } Arguments: - documentId: the id of the document to remove Child Props: - removeMutation(...
src/library/Form/__tests__/Form.theme.spec.js
mineral-ui/mineral-ui
/** * @jest-environment node */ /* @flow */ import React from 'react'; import testThemeOverrides from '../../../../utils/testThemeOverrides'; import { getProcessedComponentThemeKeys } from '../../themes/processComponentTheme'; import { FormField, FormFieldDivider, FormFieldset, formFieldDividerTheme, formFi...
node_modules/reflexbox/docs/components/Footer.js
HasanSa/hackathon
import React from 'react' import { Flex, Box } from '../../src' const Footer = () => ( <footer> <Flex align='flex-end' py={3}> <Box auto p={3}> <a href='//github.com/jxnblk/reflexbox'> View on GitHub </a> </Box> <Box p={3}> <a href='//jxnblk.com'>Made by Jxnbl...
node_modules/react-select/examples/src/components/CustomRender.js
Alex-Shilman/Drupal8Node
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
test/specs/views/Stastistic/StatisticGroup-test.js
ben174/Semantic-UI-React
import React from 'react' import * as common from 'test/specs/commonTests' import StatisticGroup from 'src/views/Statistic/StatisticGroup' describe('StatisticGroup', () => { common.isConformant(StatisticGroup) common.implementsWidthProp(StatisticGroup, { propKey: 'widths', canEqual: false }) common.hasUIClassNam...
blueocean-material-icons/src/js/components/svg-icons/communication/call-end.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.42-.29-.7 0-.28.11-.53.29-.71C3.3...
ajax/libs/material-ui/4.9.10/internal/svg-icons/ArrowDownward.js
cdnjs/cdnjs
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
packages/react-reconciler/src/ReactFiberClassComponent.js
krasimir/react
/** * Copyright (c) 2013-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. * * @flow */ import type {Fiber} from './ReactFiber'; import type {ExpirationTime} from './ReactFiberExpirationTime'; import React from ...
springboot/GReact/src/main/resources/static/app/routes/ui/containers/JQueryUi.js
ezsimple/java
import React from 'react' import ReactDOM from 'react-dom' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import UiDialogLauncher from '../../../components/ui/UiDialogLauncher' import UiTabs from '../../../components/ui/UiTabs' import UiMenu from '../../../components/ui/UiMenu' i...
docs/pages/examples/simple/index.js
Limenius/liform-react
import React from 'react' import ReactDOM from 'react-dom' import { createStore, combineReducers } from 'redux' import { reducer as formReducer } from 'redux-form' import { Provider } from 'react-redux' import Liform from '../../../../src/' const Demo = () => { const reducer = combineReducers({ form: formReducer }...
ajax/libs/riot/2.3.13/riot+compiler.min.js
maruilian11/cdnjs
/* Riot v2.3.13, @license MIT, (c) 2015 Muut Inc. + contributors */ (function(e,t){"use strict";var n={version:"v2.3.13",settings:{}},r=0,i=[],o={},f="riot-",a=f+"tag",u="string",s="object",c="undefined",l="function",p=/^(?:opt(ion|group)|tbody|col|t[rhd])$/,d=["_item","_id","_parent","update","root","mount","unmount",...
src/components/menus/SettingsContextMenu/index.js
Secretmapper/react-transmission
import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import CSSModules from 'react-css-modules'; import { inject, observer } from 'mobx-react'; import autobind from 'autobind-decorator'; import ContextMenu from 'components/menus/ContextMenu'; import SortByContextMenu from 'components/menu...
src/components/index/videoList.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/02/12. */ import React from 'react'; import {Grid, Row, Col} from 'react-flexbox-grid'; import VideoContent from '../../containers/video/videoContent'; import styles from './videoList.css'; export default class VideoList extends React.Component { componentWillMount() { if(this.p...
src/internal/EnhancedSwitch.js
hai-cea/material-ui
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import EventListener from 'react-event-listener'; import keycode from 'keycode'; import transitions from '../styles/transitions'; import FocusRipple from './FocusRipple'; import TouchRipple from './TouchRipple'; import Paper from './../Paper'; ...
ajax/libs/analytics.js/2.2.3/analytics.min.js
alkutin/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
tests/components/NavigationPage.spec.js
eugenrein/voteshirt
import React from 'react'; import { shallow } from 'enzyme'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import Page from '../../src/components/Page.js'; import Navigation from '../../src/components/Navigation.js'; import NavigationPage from '../../src/components/...
src/svg-icons/editor/vertical-align-center.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
ajax/libs/react-router/0.7.0/react-router.min.js
yogeshsaroya/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi...
ajax/libs/yasgui/1.1.10/yasgui.bundled.min.js
WebReflection/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
src/Glyphicon.js
aabenoja/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import styleMaps from './styleMaps'; const Glyphicon = React.createClass({ mixins: [BootstrapMixin], propTypes: { glyph: React.PropTypes.oneOf(styleMaps.GLYPHS).isRequired }, getDefaultProps() {...
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js
pmoravec/katello
import React from 'react'; import PropTypes from 'prop-types'; import { MessageDialog } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; const DeleteDialog = ({ show, selectedRows, onDeleteSubscriptions, onSubscriptionDeleteModalClose, }) => ( <MessageDialog show={s...
docs/app/Examples/elements/Image/Variations/ImageExampleFloated.js
mohammed88/Semantic-UI-React
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src = '/assets/images/wireframe/image-text.png' const ImageExampleFloated = () => ( <Segment> <Image src={src} size='small' floated='left' /> <p> Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia ...
packages/material-ui-icons/src/AllInboxRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 3H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6h-3.14c-.47 0-.84.33-.97.78C14.53 11.04 13.35 12 12 12s-2.53-.96-2.89-2.22c-.13-.45-.5-.78-.97-.78H5V6c0-.55.45-1 1-1h12c...
ajax/libs/analytics.js/1.5.9/analytics.js
DeuxHuitHuit/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; ...
client/src/containers/stats.js
DailyGrind/Chain-Reaction
import React from 'react'; import { connect } from 'react-redux'; import Stats from '../components/stats'; import { clearWinner } from '../state/game/actions'; export const mapDispatchToProps = { clearWinner // setBotsOnly }; export const mapStateToProps = state => { return { winner: state.game.winner, ...
app/src/components/common/Input.js
kort/kort-native
import React from 'react'; import { TextInput, View } from 'react-native'; const Input = ({ value, onChangeText, placeHolder, secureTextEntry, keyboardType }) => { const { containerStyle, inputStyle } = styles; return ( <View style={containerStyle}> <TextInput valu...
packages/material-ui-icons/src/FirstPageOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6 1.41-1.41zM6 6h2v12H6V6z" /></React.Fragment> , 'FirstPageOutlined');
packages/eslint-config-airbnb/test/test-react-order.js
appcom-interactive/javascript
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/components/InnerBox.js
chentsulin/react-blessed-hot-motion
import React, { Component } from 'react'; export default class InnerBox extends Component { constructor(props) { super(props); this.state = { hey: true }; setInterval(() => { this.setState({hey: !this.state.hey}); }, 1000); } render() { const position = this.props.position;...
docs/src/app/components/AppNavDrawer.js
rscnt/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import {List, ListItem, MakeSelectable} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem';...
node_modules/react-icons/io/ios-game-controller-b-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosGameControllerBOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.6 15.9c0.8 0 1.5 0.7 1.5 1.6s-0.7 1.6-1.5 1.6-1.6-0.7-1.6-1.6 0.7-1.6 1.6-1.6z m3.4 3.5c0.9 0 1.6 0.7 1.6 1.5s-0.7 1.6-1.6 1.6-1.6-0.7-1.6-1.6 0...
ajax/libs/react-router-bootstrap/0.12.1/ReactRouterBootstrap.min.js
him2him2/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/NavItem")):"function"==typeof define&&define.amd?define(["react","react-bootstrap/lib/MenuItem","react-bootstrap/l...
ajax/libs/yui/3.17.0/datatable-core/datatable-core-debug.js
dc-js/cdnjs
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
packages/material-ui-icons/src/CollectionsBookmarkOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6z" /><path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3 2v5l-1-.75L15 ...
ajax/libs/shariff/1.9.1/shariff.complete.js
jasonpang/cdnjs
/*! * shariff - v1.9.1 - 08.04.2015 * https://github.com/heiseonline/shariff * Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])...
ajax/libs/yui/3.16.0/scrollview-base/scrollview-base.js
kirbyfan64/cdnjs
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
src/interface/RootLocalizationProvider.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { setupI18n } from '@lingui/core'; import { I18nProvider } from '@lingui/react'; import LocalizationLoader from './LocalizationLoader'; export const i18n = setupI18n(); class RootLocalizationProvider extends React.PureComponent { static propType...
lib/cli/test/snapshots/webpack_react/stories/index.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import { Button, Welcome } from '@storybook/react/demo'; storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button...
ajax/libs/forerunnerdb/1.3.420/fdb-legacy.js
emmy41124/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/onsen/2.0.0-alpha.10/js/onsenui.min.js
vetruvet/cdnjs
/*! onsenui v2.0.0-alpha.10 - 2015-11-09 */ function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a fun...
js/src/views/Account/Transactions/transactions.spec.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
assets/javascript/main.js
colinjeanne/learning-site
import AppContainer from './components/app/container'; import { getMe, signInUser, updateMe } from './actions/user'; import { getMyActivities } from './actions/activity'; import { getMyFamily } from './actions/family'; import { getMyInvitations } from './actions/invite'; import { Provider } from 'react-redux'; import R...
src/Event/components/formSteps/AddEventStep1.js
jirkae/hobby_hub
import React, { Component } from 'react'; import { Button, FormGroup, ControlLabel, FormControl, Row, Col } from "react-bootstrap"; import TagsSuggestInput from "./../../../Base/components/TagsSuggestInput"; import { fetchTags } from './../../../Base/services/restApi'; class AddEventStep1 extends Component { constru...
ajax/libs/material-ui/4.11.3-deprecations.0/esm/List/ListContext.min.js
cdnjs/cdnjs
import*as React from"react";var ListContext=React.createContext({});"production"!==process.env.NODE_ENV&&(ListContext.displayName="ListContext");export default ListContext;
ReactWebPack.CoreRC2/app/components/KanbanBoardContainer.js
JonPSmith/AspNetReactSamples
import React, { Component } from 'react'; import { bindActionCreators } from 'redux' import { connect } from 'react-redux'; import KanbanBoard from '../components/KanbanBoard'; import CardActionCreators from '../actions/CardActionCreators'; export class KanbanBoardContainer extends Component { componentDidMount(){ ...
packages/material-ui-icons/legacy/SignalWifi1BarTwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M6.67 14.86L12 21.49v.01l.01-.01 5.33-6.63C17.06 14.65 15.03 13...
example-react/memory/src/index.js
raoul2000/js-playground
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/svg-icons/action/info.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...
ajax/libs/primereact/6.5.0-rc.1/password/password.esm.js
cdnjs/cdnjs
import React, { createRef, Component } from 'react'; import { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, ObjectUtils, classNames } from 'primereact/utils'; import { tip } from 'primereact/tooltip'; import { InputText } from 'primereact/inputtext'; import { CSSTransition } from 'primereact/csstransition'; i...
examples/src/components/SelectedValuesField.js
urvashi01/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
src/controls/Emoji/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modifier, EditorState } from 'draft-js'; import LayoutComponent from './Component'; export default class Emoji extends Component { static propTypes: Object = { editorState: PropTypes.object.isRequired, onChan...
client/extensions/woocommerce/app/settings/taxes/taxes-wcs.js
Automattic/woocommerce-connect-client
/** * External dependencies * * @format */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import ActionHeader from 'woocommerc...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
x303597316/actor-platform
import React from 'react'; import classNames from 'classnames'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React.Component { static propTypes = { di...
ajax/libs/react/0.13.2/react.js
algolia/cdnjs
/** * React v0.13.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}els...
examples/async/index.js
Lucifier129/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
src/svg-icons/notification/do-not-disturb-off.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOff = (props) => ( <SvgIcon {...props}> <path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78...
src/index.js
mantrajs/mantra-core
import { useDeps as _useDeps } from 'react-simple-di'; import { compose as _compose, composeWithTracker as _composeWithTracker, composeWithPromise as _composeWithPromise, composeWithObservable as _composeWithObservable, composeAll as _composeAll, disable as _disable, } from 'react-komposer'; import App ...
src/pages/graph/Floyd/Floyd.js
hyy1115/react-redux-webpack2
import React from 'react' class Floyd extends React.Component { render() { return ( <div>Floyd</div> ) } } export default Floyd
ajax/libs/clappr/0.0.13/clappr.js
koggdal/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]...
wp-includes/js/jquery/jquery.js
iftekar007/pearlhealth-wp
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
src/views/user/index.js
dyygtfx/react-redux-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import homeAction from '../home/action'; import action from './action'; import './style.less'; const propTypes = { message: PropTypes.string.isRequired, user...
ajax/libs/6to5/1.12.14/browser-polyfill.js
aashish24/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...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
ArcanisCz/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
app/components/elements/Link.js
steemit-intl/steemit.com
import React from 'react'; import links from 'app/utils/Links' import {browserHistory} from 'react-router' import shouldComponentUpdate from 'app/utils/shouldComponentUpdate' export default class Link extends React.Component { static propTypes = { // HTML properties href: React.PropTypes.string, ...
src/containers/AdminCreateBehaviourCategoryPage.js
merrettr/school-ui
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { createBehaviourCategory } from '../actions'; import BehaviourCategoryForm from '../components/BehaviourCategoryForm'; import Error from '../components/Error'; class AdminCreateBehaviourC...
wrappers/html.js
tim-thimmaiah/iyla
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const page = this.props.route.page.data return ( <div dangerouslySetInnerHTML={{ __...
generators/js-framework/modules/react/components/Account/Login.js
sahat/boilerplate
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux' import { login } from '../../actions/auth'; import { facebookLogin, twitterLogin, googleLogin, vkLogin, githubLogin } from '../../actions/oauth'; import Messages from '../Messages'; class Login extends React.Component...
webpack/components/AnsibleRolesAndVariables/index.js
theforeman/foreman_ansible
import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { push } from 'connected-react-router'; import { STATUS } from 'foremanReact/constants'; import ImportRolesAndVariablesTable from './AnsibleRolesAndVariables'; import { onSubmit } from './AnsibleRolesAndVariablesActions'; import...
docs/tutorial/DO_NOT_TOUCH/07/src/components/App/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import Toast from '../Toast' export default connect({ title: state`title`, subTitle: state`subTitle`, buttonClicked: signal`buttonClicked` }, function App (props) { return ( <div className='o-...
ajax/libs/video.js/4.11.2/video.dev.js
nagyist/OpenF2-cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-color-text.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatColorText = (props) => ( <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/> </SvgIcon> ); EditorFormatColorText.displayNam...
examples/counter/index.js
chicoxyzzy/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
ajax/libs/react-bootstrap-typeahead/0.9.2/react-bootstrap-typeahead.js
iwdmb/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
components/AtomiesSidebar.js
die-antwort/atomies
'use babel'; import React from 'react'; import {connect} from 'react-redux'; import sidebarActions from '../actions/sidebar'; import Profile from '../components/Profile'; class AtomiesSidebar extends React.Component { render() { return ( <span className="atomies-sidebar"> <h1>Chat</h1> is...
src/components/ChatApp/MessageSection/MessageSection.react.js
madhavrathi/chat.susi.ai
import MessageComposer from '../MessageComposer.react'; import Snackbar from 'material-ui/Snackbar'; import MessageListItem from '../MessageListItem/MessageListItem.react'; import MessageStore from '../../../stores/MessageStore'; import React, { Component } from 'react'; import ThreadStore from '../../../stores/ThreadS...
ajax/libs/yui/3.11.0/simpleyui/simpleyui.js
potomak/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
docs/src/pages/components/links/ButtonLink.js
kybarg/material-ui
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from 'react'; import Link from '@material-ui/core/Link'; export default function ButtonLink() { return ( <Link component="button" variant="body2" onClick={() => { alert("I'm a button."); }} > Button Link </L...
src/svg-icons/action/touch-app.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
ajax/libs/6to5/1.12.6/browser-polyfill.js
sufuf3/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...