path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/javascript/mastodon/features/home_timeline/components/column_settings.js | rutan/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';
@injectIntl
export default class ColumnSettings extends React.... |
packages/material-ui/src/transitions/Collapse.js | cherniavskii/material-ui | // @inheritedComponent Transition
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
import withStyles from '../styles/withStyles';
import { duration } from '../styles/transitions';
import { getTransitionProps ... |
demos/demo/src/components/ProjectSelector/index.js | bdjnk/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import visibleProjectsByClient from '../../compute/visibleProjectsByClient'
export default connect(
{
editedTask: state`tasks.$draft`,
filter: state`projects.$filter`,
onBackgroundClick: signal`pr... |
archetype/quickbundle-securityweb/WebContent/js/jquery/jquery-1.11.2.min.js | longsebo/javasec | /*! 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... |
test/regressions/tests/RadioGroup/RadioGroupWithLabelRequired.js | kybarg/material-ui | import React from 'react';
import FormLabel from '@material-ui/core/FormLabel';
import FormControl from '@material-ui/core/FormControl';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import RadioGroup from '@material-ui/core/RadioGroup';
import Radio from '@material-ui/core/Radio';
export default ... |
carousel-example/App.js | jacklam718/react-native-carousel-component | import React, { Component } from 'react';
import { View, Button, StatusBar, Text, StyleSheet, ScrollView } from 'react-native';
import CarouselComponent, {
Carousel,
CarouselCard,
CarouselHeader,
CarouselMiniHeader,
ViewPager,
} from 'react-native-carousel-component';
const styles = StyleSheet.create({
co... |
public/app/components/base/confirm-dialog.js | vincent-tr/mylife-wine | import React from 'react';
import PropTypes from 'prop-types';
import * as mui from 'material-ui';
import { confirmable, createConfirmation } from 'react-confirm';
import Theme from './theme';
const ConfirmDialog = ({ show, proceed, /*dismiss,*/ cancel, /*confirmation,*/ options }) => (
<Theme>
<mui.Dialog
... |
src/components/Text.stories.js | dlindahl/stemcell | import {
boolean,
select,
text,
withKnobs
} from '@kadira/storybook-addon-knobs'
import CssReset from './CssReset'
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import TextComponent from './Text'
import VerticalRhythm from './VerticalRhythm'
storiesOf('Text', module)
.addDecorator(w... |
ajax/libs/analytics.js/2.3.4/analytics.js | owcc/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
src/containers/HomePage/index.js | Cloudoki/react-redux-donderstarter |
import React from 'react'
import PropTypes from 'prop-types'
const imgUrl = require('assets/hackforgood.jpg')
const navigate = (fn, path) => event => fn(path)
const HomePage = ({ history }) => (
<div style={styles.container}>
<h2>Cloudoki at <a href='http://hackforgood.pt/index/en/' target='_blank'>#hackforgoo... |
src/Parser/Warlock/Destruction/Modules/Talents/Eradication.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Parser/Core/Modules/Enemies';
import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common... |
src/routes/Measurements/components/nettests/VanillaTor.js | TheTorProject/ooni-wui | import React from 'react'
import { FormattedMessage } from 'react-intl'
export class VanillaTorDetails extends React.Component {
constructor (props) {
super(props)
this.state = { showLog: false }
}
toggleLog () {
this.setState({ showLog: !this.state.showLog })
}
render () {
const { measure... |
src/components/App.js | jmikrut/keen-2017 | import React, { Component } from 'react';
import io from 'socket.io-client';
import { Switch, withRouter, Route } from 'react-router-dom';
import { TransitionGroup, CSSTransition } from 'react-transition-group';
import { connect } from 'react-redux';
import DocumentMeta from 'react-document-meta';
import Header from '... |
ajax/libs/rxjs/2.5.2/rx.all.js | noraesae/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
};
... |
app/components/client/step3/view.js | 7hci/surfboard | import React from 'react';
import Dropzone from 'react-dropzone';
import { Page, InputGroupText, TabbedNav, Link } from '../../shared';
const Step3 = (props) => {
props.updateForm();
const { activeTab, spinner, message, src, handleTabSelected, handleUpload, handleSubmit } = props;
const second = 'Optional - Use ... |
src/icons/ForkRepo.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ForkRepo extends React.Component {
render() {
if(this.props.bare) {
return <g>
<style type="text/css">
.st0{fill:#010101;}
</style>
<g>
<polygon class="st0" points="416,80 368,80 368,32 304,32 304,80 256,... |
__tests__/index.ios.js | 1ibrary/1ibrary-front-end | 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 />
);
});
|
components/element-query/test.js | joeybaker/rachelandjoey | import test from 'tape'
import React from 'react'
import {addons} from 'react/addons'
import ElementQuery from './index.jsx'
const {TestUtils} = addons
const {Simulate, renderIntoDocument, isElement, createRenderer} = TestUtils
const getReactNode = (dom, node) => TestUtils.findRenderedDOMComponentWithTag(dom, node)
con... |
app/javascript/mastodon/components/status_list.js | mstdn-jp/mastodon | import { debounce } from 'lodash';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadGap from './load_gap... |
go-betz/src/views/sign-in/index.js | FabioFischer/go-betz | import React from 'react';
import { TextField, FlatButton } from 'material-ui';
import { auth, ls } from './../../services';
class Signin extends React.Component {
constructor(props) {
super(props);
this.state = {
email: '',
password: ''
};
}
handleEmailChange = (event, newValue) => th... |
assets/node_modules/react-router/es6/IndexRedirect.js | janta-devs/janta | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
ajax/libs/foundation/4.0.8/js/vendor/jquery.min.js | jonobr1/cdnjs | (function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | lstNull/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/rxjs/2.3.2/rx.lite.extras.js | nolanlawson/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
app/javascript/mastodon/features/standalone/compose/index.js | mimumemo/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/svg-icons/action/bookmark-border.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmarkBorder = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionBookmarkBorder = pure(ActionBook... |
ajax/libs/react-foundation-apps/0.6.0/react-foundation-apps.js | perfect-pixell/cdnjs | var RFA =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/*****... |
ajax/libs/material-ui/5.0.0-alpha.33/modern/useScrollTrigger/useScrollTrigger.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";function defaultTrigger(e,t){var{disableHysteresis:r=!1,threshold:o=100,target:s}=t,t=e.current;return s&&(e.current=void 0!==s.pageYOff... |
src/scenes/Comments/CommentsScene.js | Insteem/insteem-web | import React from "react";
import _ from "lodash";
import { connect } from "react-redux";
import steem from "steem";
import { Comment } from "semantic-ui-react";
import Loader from "components/Loader";
import MessageListItem from "components/Message/MessageListItem";
class CommentsScene extends React.Component {
co... |
packages/material-ui-icons/src/BatteryCharging90Outlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L12.47 8H7v12.67C7 21.4 7.6 22 8.33 22h7.33c.... |
packages/mui-icons-material/lib/CameraIndoor.js | oliviertassinari/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")... |
src/svg-icons/action/view-carousel.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewCarousel = (props) => (
<SvgIcon {...props}>
<path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/>
</SvgIcon>
);
ActionViewCarousel = pure(ActionViewCarousel);
ActionViewCarousel.displayName =... |
httpdocs/js/jquery-1.9.0.min.js | amirws/em-1 | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
src/svg-icons/action/rounded-corner.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
src/svg-icons/av/stop.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvStop = (props) => (
<SvgIcon {...props}>
<path d="M6 6h12v12H6z"/>
</SvgIcon>
);
AvStop = pure(AvStop);
AvStop.displayName = 'AvStop';
AvStop.muiName = 'SvgIcon';
export default AvStop;
|
ee/client/omnichannel/cannedResponses/CannedResponseDetails.stories.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import { CannedResponseDetails } from './CannedResponseDetails';
export default {
title: 'omnichannel/CannedResponse/CannedResponseDetails',
component: CannedResponseDetails,
};
const cannedResponse = {
shortcut: 'lorem',
text: 'Lorem ipsum ... |
ajax/libs/inferno-test-utils/4.0.0-14/inferno-test-utils.min.js | cdnjs/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("inferno")):"function"==typeof define&&define.amd?define(["exports","inferno"],n):n((e.Inferno=e.Inferno||{},e.Inferno.TestUtils=e.Inferno.TestUtils||{}),e.Inferno)}(this,function(e,n){"use strict";var t="a runtime error occured! Use ... |
src/components/provisionerForm/Steps.js | Tinker-Ware/eyes | import { browserHistory } from "react-router";
import { fromJS } from "immutable";
import { Step, Stepper, StepButton } from "material-ui/Stepper";
import Addons from "./steps/Addons";
import ArrowForwardIcon from "material-ui/svg-icons/navigation/arrow-forward";
import ContentClear from "material-ui/svg-icons/content/... |
stories/babylonjs/Behaviors/pointerDragBehavior.stories.js | brianzinn/react-babylonJS | import React from 'react'
import {storiesOf} from '@storybook/react'
import {Engine, Scene} from '../../../dist/react-babylonjs'
import {Vector3} from '@babylonjs/core/Maths/math'
import '../../style.css'
export default { title: 'Behaviors' };
/**
* official demo:
* https://www.babylonjs-playground.com/#YEZPVT
*
... |
node_modules/react-bootstrap/es/Tabs.js | acalabano/get-committed | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/editor/title.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
export default EditorTitle;
|
examples/Card.js | TeaBough/react-big-calendar | import React from 'react'
const propTypes = {}
function Card({ children, className, style }) {
return (
<div className={`${className || ''} card`} style={style}>
{children}
</div>
)
}
Card.propTypes = propTypes
export default Card
|
src/components/itemHolder/index.js | ShinyLeee/React-PhotoSwipe | /* eslint-disable no-param-reassign */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AnimationBox from './components/animationBox';
import EnhancedWrapper from './styled';
import {
PAN_FRICTION_LEVEL,
ZOOM_FRICTION_LEVEL,
BOUNCE_BACK_DURATION,
DIRECTION_VERT,
DIRECTION_U... |
ajax/libs/forerunnerdb/1.3.761/fdb-core+views.js | dakshshah96/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/timeline_list.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import TimelineItem from './timeline_item';
import _ from 'lodash';
import { firebaseConnect } from 'react-redux-firebase';
/**
TimelineList list of Timeline elements
Params:
elements: The elements that the list will contain
path: The path of the firebase database... |
user_guide/searchindex.js | fancydesign/CodeIgniter-3.0.0 | Search.setIndex({envversion:42,terms:{represent:[25,110,13,73],mybackup:69,yellow:[6,124],poorli:86,four:[144,82,49,130,50,120,116,125,119],prefix:[82,89,2,29],oldest:125,hate:126,optimize_databas:69,forget:[46,98],whose:29,accur:[0,29,109,146,37,88],aug:86,emailaddress:46,my_control:[96,105],site_url:[91,75,7,29],illu... |
ajax/libs/yasgui/1.0.4/yasgui.min.js | billybonz1/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... |
modules/Link.js | egobrightan/react-router | import React from 'react'
import warning from 'warning'
const { bool, object, string, func } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEmptyObject(obj... |
src/neuralNetwork/networkToolbar/NetworkToolbar.js | csenn/nn-visualizer | import React from 'react';
import Slider from 'material-ui/lib/slider';
// import RaisedButton from 'material-ui/lib/raised-button';
import DrawingSlider from '../components/DrawingSlider';
import NetworkChooser from './NetworkChooserModal';
import { setSnapshotIndex } from '../data/neuralNetworkActions';
import Networ... |
files/yasgui/1.1.1/yasgui.min.js | ManrajGrover/jsdelivr | !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... |
ajax/libs/backbone-react-component/0.9.0/backbone-react-component.js | bootcdn/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.9.0
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a mixin that glues [Backbone](http:/... |
src/components/ReadingTime/index.js | fathomlondon/fathomlondon.github.io | import React from 'react';
import PropTypes from 'prop-types';
export function ReadingTime({ timeToRead }) {
return (
<span title="Estimated read time">
{timeToRead === 1 ? '1 minute' : `${timeToRead} minutes`} read
</span>
);
}
ReadingTime.propTypes = {
timeToRead: PropTypes.number,
};
|
src/index.js | BeachHacks/beachhacks.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
src/components/popup/popup.js | n7best/react-weui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
import Mask from '../mask/index';
import './popup.less';
/**
* An Popup modal from bottom
*
*/
class Popup extends Component {
static propTypes = {
/**
* display the c... |
src/common/DirectoryNavigation/DirectoryNavigation.js | Syncano/syncano-dashboard | import React from 'react';
import _ from 'lodash';
import { FontIcon } from 'material-ui';
import { colors as Colors } from 'material-ui/styles';
import DirectoryNavigationLink from './DirectoryNavigationLink';
const DirectoryNavigation = ({ previousFolders, directoryDepth, moveDirectoryUp }) => {
const styles = {... |
src/svg-icons/av/forward-5.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward5 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.... |
src/js/components/PageHeader.js | bryanjacquot/theme-designer-capstone | import React, { Component } from 'react';
import Gravatar from 'react-gravatar';
import GrommetLogo from 'grommet/components/icons/Grommet';
import Box from 'grommet/components/Box';
import Title from 'grommet/components/Title';
export default class PageHeader extends Component {
constructor(props) {
super(prop... |
node_modules/babel-runtime/helpers/typeof-react-element.js | uraway/react-line-button | "use strict";
var _Symbol = require("babel-runtime/core-js/symbol")["default"];
exports["default"] = typeof _Symbol === "function" && _Symbol."for" && _Symbol."for"("react.element") || 60103;
exports.__esModule = true; |
ajax/libs/yasr/2.4.0/yasr.bundled.min.js | kirbyfan64/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
app/javascript/mastodon/components/avatar_overlay.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
friend:... |
node_modules/belle/lib/components/Card.js | yomolify/cc-server | 'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
app/containers/CounterPage.js | JCombee/wallet | import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/counter';
function mapStateToProps(state) {
return {
counter: state.counter
};
}
function mapDispatchToProps(dispatch) {
return bindActi... |
src/components/Counter/index.js | charleslxh/react-temp | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import actions from 'ACTIONS/counter';
import './style.css';
class Counter extends React.Component {
render() {
const { count, isIncrementing, isDecrementing, increment, incrementAsync, decrement, decr... |
src/components/Promises/promises_list.js | Betree/democracy-watcher | import React from 'react'
import I18n from 'i18n-js'
import groupBy from 'lodash.groupby'
import Promise from './promise'
export default class PromisesList extends React.PureComponent {
render() {
const groupedPromises = groupBy(this.props.promises, 'subject')
const nbSubjects = Object.keys(groupedPromises)... |
docs/app/Examples/modules/Dropdown/Content/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownContentExamples = () => (
<Example... |
src/Placeholder/test/PlaceholderGraphStylesSpec.js | suitejs/suite | import React from 'react';
import ReactDOM from 'react-dom';
import PlaceholderGraph from '../PlaceholderGraph';
import { createTestContainer, getDOMNode, getStyle, toRGB } from '@test/testUtils';
import '../styles/index';
describe('PlaceholderGraph styles', () => {
it('Should render the correct styles', () => {
... |
assets/js/jquery.min.js | brandonhimpfen/bootstrap-ghost | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
packages/react-ui-components/src/Tabs/index.story.js | neos/neos-ui | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs} from '@storybook/addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils';
import Tabs from '.';
storiesOf('Tabs', module)
.addDecorator(withKnobs)
.addWithInfo(
'default',
() => (
<Stor... |
node_modules/react-hot-loader/RootInstanceProvider.js | davyengone/meetup.demo | 'use strict';
var getRootInstancesFromReactMount = require('./getRootInstancesFromReactMount');
var injectedProvider = null,
didWarn = false;
function warnOnce() {
if (!didWarn) {
console.warn(
'It appears that React Hot Loader isn\'t configured correctly. ' +
'If you\'re using NPM, make sure y... |
src/containers/start/GroupView.js | yursky/recommend | /**
* Placeholder Scene
*
<Placeholder text={"Hello World"} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import { Firebase, FirebaseRef } from '@constants/';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, ScrollView, Ale... |
frontend/src/MainDialog.js | GAumala/Facturacion | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
export default class MainDialog extends React.Component {
cerrar = msg => Promise.resolve().then(() => this.props.cerrarDialog(msg));
onCancelarClicked = () => {
this.childElement.onCancelarCl... |
src/index.js | contributor-ninja/beta.contributor.ninja | import React from 'react';
import injectTapEventPlugin from 'react-tap-event-plugin';
import ReactDOM from 'react-dom';
import './index.css';
import App from './Components/App';
if (typeof window !== 'undefined') injectTapEventPlugin();
ReactDOM.render(<App />, document.getElementById('root'));
|
static/src/components/islands/IslandTrees.js | taylorsmcclure/airhornbot-dev | // @flow
// jscs:disable maximumLineLength
import React from 'react';
type Props = {
paused: boolean
};
export default ({paused}: Props): React.Element => (
<svg className={`island trees ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259px" height="276px" viewBox="0 0 259 276">
<g fill... |
src/shared/pages/MainPage/index.js | AlekseyWW/shop-react-ssr | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import Promo from 'components/Promo/';
import Category from 'containers/Category/';
import BrandList from 'components/BrandList/';
import Reviews from 'components/Revie... |
ajax/libs/rxjs/2.4.7/rx.compat.js | raszi/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
};
... |
tests/shared/removeSelectedTest.js | ddcat1115/select | /* eslint-disable no-undef */
import React from 'react';
import { mount } from 'enzyme';
import KeyCode from 'rc-util/lib/KeyCode';
import Select from '../../src/Select';
import Option from '../../src/Option';
export default function removeSelectedTest(mode) {
describe('remove selected options', () => {
it('fire... |
examples/with-now-v2/src/App.js | jaredpalmer/razzle | import './App.css';
import React from 'react';
const App = () => <div>Welcome to Razzle.</div>;
export default App;
|
client/extensions/woocommerce/components/form-weight-input/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { noop } from 'lodash';
/**
* Internal dependencies
*/
import ... |
examples/basic/basic.js | brurez/react-hold-height | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import HoldHeight from '../../src';
class App extends Component {
state = { page: 0 };
renderElements(pageNumber) {
if (pageNumber === 0) {
return (
<ul>
<li>This is a long list</li>
<li>of items</li... |
src/components/ScrollView/index.js | AnSavvides/react-native-web | import React, { PropTypes } from 'react'
import View from '../View'
class ScrollView extends React.Component {
static propTypes = {
children: PropTypes.any
}
static defaultProps = {
className: ''
}
render() {
return (
<View {...this.props} />
)
}
}
export default ScrollView
|
ui/src/common/DurationField.js | cloudsonic/sonic-server | import React from 'react'
import PropTypes from 'prop-types'
import { formatDuration } from '../utils'
export const DurationField = ({ record = {}, source }) => {
try {
return <span>{formatDuration(record[source])}</span>
} catch (e) {
console.log('Error in DurationField! Record:', record)
return <span... |
ajax/libs/graphiql/0.4.2/graphiql.min.js | 2947721120/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(... |
src/containers/App/App.js | devgeeks/4ZZZ-app | import React from 'react';
import { connect } from 'react-redux';
import TransitionGroup from 'react-addons-transition-group';
import classNames from 'classnames';
import ErrorDialog from 'components/ErrorDialog';
import PlaybackControlsViewiOS from 'containers/PlaybackControlsViewiOS';
import PlaybackControlsViewAndr... |
ajax/libs/ember-data.js/2.12.0-beta.1/ember-data.prod.js | hare1039/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.12.0-beta.1
*/
var loader, define, requireModule, require, requirej... |
techCurriculum/ui/solutions/4.6/src/components/Message.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/components/Navbar.js | edwinvrgs/instareact | import React from 'react'
import { NavLink } from 'react-router-dom';
import SearchBar from './SearchBar';
import FaCompass from 'react-icons/lib/fa/compass';
import FaUser from 'react-icons/lib/fa/user';
import FaHeart from 'react-icons/lib/fa/heart';
import FaInstagram from 'react-icons/lib/fa/instagram';
import '... |
examples/real-world/containers/Root.js | af/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
bak/footer.js | WDTAnyMore/WDTAnyMore.github.io | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import { connect } from 'react-redux';
import { fetchSiteInfo } from '../actions/index';
import { SocialMediaList } from './social_media_list';
class Footer extends Component {
componentWillMount() {
this.props.fetchSiteInfo();
... |
blender/release/scripts/addons/netrender/js/jquery.js | Passtechsoft/TPEAlpGen | /*!
* jQuery JavaScript Library v1.7.1
* 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.
... |
src/parser/paladin/holy/modules/azeritetraits/GlimmerOfLight.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Trans} from '@lingui/macro';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import TraitS... |
src/components/TextField/TextField.js | ronihcohen/magic-vote | import React from 'react'
import PropTypes from 'prop-types'
import MaterialTextField from 'material-ui/TextField'
export const TextField = ({
input,
label,
meta: { touched, error },
...custom
}) => (
<MaterialTextField
hintText={label}
floatingLabelText={label}
errorText={touched && error}
{... |
src/Mailman.Server/ClientApp/src/components/MailmanLink.js | coe-google-apps-support/Mailman | import React from 'react'
import { Link } from 'react-router-dom'
import { getHashParams, getHashUrl } from '../util/QueryParam'
const MailmanLink = props => {
let params = getHashParams(window.location.href)
let fullUrl = `${window.location.href.split('#')[0]}#${props.to}`
let toParams = getHashParams(fullUrl)
... |
pages/plugins.js | zapier/formatic | import React from 'react';
import 'isomorphic-unfetch';
import Page from '@/docs/components/Page';
import SubSection from '@/docs/components/SubSection';
import Section from '@/docs/components/Section';
import CodeBlock from '@/docs/components/CodeBlock';
import Sections from '@/docs/components/Sections';
import Code ... |
js/src/modals/LoadContract/loadContract.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... |
cfg/dev.js | BinaryCool/LaceShop | 'use strict';
let path = require('path');
let webpack = require('webpack');
let baseConfig = require('./base');
let defaultSettings = require('./defaults');
// Add needed plugins here
let BowerWebpackPlugin = require('bower-webpack-plugin');
//获取src目录下的所有js文件
//把它们变为{filename1:'filename1', filename2:'filename2'}格式
/... |
src/svg-icons/social/plus-one.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
packages/reactor-kitchensink/src/examples/Lists/PullRefresh/PullRefresh.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { List } from '@extjs/ext-react';
require('../stocks');
Ext.require([
'Ext.plugin.PullRefresh'
]);
export default class PullRefreshListExample extends Component {
store = Ext.create('Ext.data.Store', {
fields: ['name'],
autoLoad: true,
... |
src/svg-icons/content/create.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentCreate = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/... |
assets/react/lib/Transaction.js | migzisreallywewwhat/techno-site | /**
* 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 ... |
packages/material-ui-icons/src/Brightness5Rounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 15.31l2.6-2.6c.39-.39.39-1.02 0-1.41L20 8.69V5c0-.55-.45-1-1-1h-3.69l-2.6-2.6a.9959.9959 0 00-1.41 0L8.69 4H5c-.55 0-1 .45-1 1v3.69l-2.6 2.6c-.39.39-.39 1.02 0 1.41L4 15.3V19c0 .55.45 1 1 1h3.69l2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.