path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/vkui/4.24.0/components/ModalRoot/useModalManager.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectSpread from"@babel/runtime/helpers/objectSpread2";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import{createScopedElement}from"../../lib/jsxRuntime";import*as R... |
src/ParallaxSwiperPage.js | zachgibson/react-native-parallax-swiper | import React, { Component } from 'react';
import { View, Animated, StyleSheet, Dimensions } from 'react-native';
import PropTypes from 'prop-types';
const { width: deviceWidth, height: deviceHeight } = Dimensions.get('window');
class ParallaxSwiperPage extends Component {
setPageSize = ({ nativeEvent }) => {
th... |
app/components/ShoppingCartComponent.js | cdillon85/the-art-store | import React from 'react'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'
import Paper from 'material-ui/Paper'
import RaisedButton from 'material-ui/RaisedButton'
export default function ShoppingCartComponent (props) {
const divStyle = {
}
const ima... |
src/svg-icons/action/view-column.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewColumn = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/>
</SvgIcon>
);
ActionViewColumn = pure(ActionViewColumn);
ActionViewColumn.displayName = 'Actio... |
app/features/settings/device/panels/SettingsDevicePanelReconnecting.js | squatsandsciencelabs/OpenBarbellApp | import React, { Component } from 'react';
import {
Text,
View,
Image
} from 'react-native';
import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles';
// displays connecting device info
class SettingsDevicePanelReconnecting extends Component {
render() {
return (
... |
packages/material-ui-icons/src/ClearAllOutlined.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="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z" /></g></React.Fragment>
, 'ClearAllOutlined');
|
lib/app/public/js/app.js | kizerxl/exercism.io | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/containers/Uielements/Tooltip/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { Row, Col } from 'antd';
import Tooltip from '../../../components/uielements/tooltip';
import PageHeader from '../../../components/utility/pageHeader';
import Box from '../../../components/utility/box';
import LayoutWrapper from '../../../components/utility/layoutWrappe... |
ajax/libs/jquery.fancytree/2.22.5/jquery.fancytree-all.min.js | him2him2/cdnjs | /*! jQuery Fancytree Plugin - 2.22.5 - 2017-05-11T17:01:53Z
* https://github.com/mar10/fancytree
* Copyright (c) 2017 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!fun... |
packages/mineral-ui-icons/src/Icon3DRotation.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function Icon3DRotation(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
src/components/DatePicker/DatePicker-test.js | carbon-design-system/carbon-components-react | /**
* 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 React from 'react';
import DatePicker from '../DatePicker';
import DatePickerSkeleton from '../DatePicker/DatePicker.Skeleton';
import... |
ajax/libs/material-ui/4.11.3/es/FormLabel/FormLabel.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import formControlState from '../FormControl/formControlState';
imp... |
src/TabPane.js | xsistens/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
src/components/settlement/SettlementCardNoForm.js | HuZai/react_settlement | /**
* Created by zhengHu on 16-10-8.
* 图片list处理
*/
import React from 'react';
import SettlementInput from 'components/settlement/SettlementInput';
class SettlementZiTiForm extends React.Component {
constructor(props) {
super(props);
this.state = Object.assign({},this.props.data,{type:"card"});
this.had... |
bower_components/sinon/test/rhino/env.rhino.1.2.js | evitics/localsite | /*
* Envjs core-env.1.2.13
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
*/
var Envjs = function(){
var i,
name,
override = function(){
for(i=0;i<arguments.length;i++){
... |
app/components/ToggleOption/index.js | shaggyshelar/CLA | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
src/Form/RegisterOwnerForm.js | blockchain-IoT/blockchain-IoT-core | /* eslint-disable react/prop-types */
import React from 'react';
const registerOwnerForm = props => (
<div className="uk-card uk-card-default uk-card-body uk-width-1-2@m">
<h3 className="uk-card-title">Register new Owner</h3>
<p>Lorem ipsum <a href="#">dolor</a> sit amet, consectetur adipiscing elit, sed do ... |
docs/components/common/version/version.js | t1m0n/air-datepicker | import React from 'react';
import {version} from 'components/airDatepicker';
import PropTypes from 'prop-types';
import cn from 'classnames';
import css from './version.module.scss';
function Version({className} = {}) {
return (
<div className={cn(css.el, className)}>
v{version}
</div>... |
app/js/components/tabletop-deck.js | kristenmills/pokemon-deck-builder | import React, { Component } from 'react';
import { Surface, Image } from 'react-canvas';
import Button from 'react-bootstrap/lib/Button';
import { imageURL, expandCards } from '../util';
const HEIGHT = 480;
const WIDTH = 350;
const ROWS = 6;
const COLS = 10;
export default class TabletopDeck extends Component {
con... |
JotunheimenPlaces/node_modules/react-native/local-cli/templates/HelloWorld/__tests__/index.android.js | designrad/Jotunheimen-tracking | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
misc/tabledrag.js | alinem/squaretheme | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
assets/plugins/tinymce/plugins/legacyoutput/plugin.js | fandiahm/sipag-cms | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al... |
ajax/libs/babel-core/4.5.4/browser.min.js | yinghunglai/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.babel=e()}}(function(){var e,n,l;return function t(e,... |
packages/slimkit-plus-feed/admin/components/PayControl.js | zhiyicx/thinksns-plus | /**
* The file is admin feeds pay-control manage page.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Grid from '@material-ui/core/Grid';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import CardActions from '@material-ui/... |
ajax/libs/mobx-react/0.1.7/index.js | sufuf3/cdnjs | (function() {
function mrFactory(mobservable, React) {
var reactComponentId = 1;
var isTracking = false;
// WeakMap<Node, Object>;
var componentByNodeRegistery = typeof WeakMap !== "undefined" ? new WeakMap() : undefined;
var renderReporter = new mobservable._.SimpleEventEmi... |
ajax/libs/react-bootstrap/0.20.1/react-bootstrap.js | 2947721120/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactBootstrap"] = ... |
files/jquery.handsontable/0.10.3/jquery.handsontable.full.js | garrypolley/jsdelivr | /**
* Handsontable 0.10.3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Feb 10 2014 14:15:11 GMT+0100 (CET)
*/
/*jslin... |
src/svg-icons/maps/directions-walk.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
src/components/sort/mergeSort/MergeSort.js | ianroberts131/visual-algorithms | import React from 'react';
import { Col } from 'react-bootstrap';
import './mergeSort.css';
class MergeSort extends React.Component {
render() {
const { mergeArrayMain, mergeArrayLeft1, mergeArrayLeft2, mergeArrayLeft3, mergeArrayLeft4, mergeArrayLeft5, mergeArrayLeft6, mergeArrayLeft7, mergeArrayRight1, mergeA... |
src/styles/theme-decorator.js | bgribben/material-ui | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
src/parser/paladin/holy/modules/beacons/FailedBeaconTransfers.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import BeaconTransferFactor from './BeaconTransferFactor';
import BeaconHealSource from '... |
src/components/Tooltip/InnerToolTip.js | instacart/Snacks | import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import Fade from '../Transitions/Fade'
import colors from '../../styles/colors'
import TooltipArrow from './TooltipArrow'
import spacing from '../../styles/spacing'
const styles = {
root: {
position: 'relative',
},
arrowPadding: ... |
ajax/libs/react-highcharts/8.2.0/index.src.js | honestree/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts"], factory);
else if(typeof exports === 'ob... |
ajax/libs/antd-mobile/1.0.1/antd-mobile.min.js | sashberd/cdnjs | /*!
* antd-mobile v1.0.1
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?export... |
assets/js/jquery.min.js | fahrul98/ci-furqan | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
ajax/libs/react-native-web/0.11.7/vendor/react-native/VirtualizedSectionList/index.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
examples/github-explorer/containers/repos-list.js | hetmann/sass-redux-router | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Card from 'material-ui/Card/Card';
import CardHeader from 'material-ui/Card/CardHeader';
import CardTitle from 'material-ui/Card/CardTitle';
import CardText from 'material-ui/Card/CardText';
import Search from './search';
import Lis... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | Jeremy-Meng/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/components/Welcome.js | kangarang/mp-react | import React from 'react'
export default props => {
const styles = {
title: {
padding: '0 1em',
border: '3px solid white',
color: '#303030'
},
header: {
color: '#f5ff82',
fontWeight: '300'
}
}
return (
<div ... |
src/index.js | Junicus/fcc-localweather | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import AsyncApp from './containers/AsyncApp';
import store from './store';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(
<Provider store={store}>
<Asyn... |
app/javascript/mastodon/features/standalone/compose/index.js | honpya/taketodon | 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/renderers/dom/shared/DOMProperty.js | pze/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 ... |
examples/0-basic/src/components/App.js | chikara-chan/react-power | import React from 'react'
import styles from './App.scss'
function App() {
return (
<div>
<h1 className={styles.title}>React Power</h1>
</div>
)
}
export default App
|
tests/components/area-series-tests.js | Apercu/react-vis | import test from 'tape';
import React from 'react';
import {mount} from 'enzyme';
import XYPlot from 'plot/xy-plot';
import AreaSeries from 'plot/series/area-series';
import {testRenderWithProps, GENERIC_XYPLOT_SERIES_PROPS} from '../test-utils';
import AreaChartElevated from '../../showcase/plot/area-chart-elevated';... |
src/svg-icons/navigation/more-horiz.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-input-composite.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsInputComposite = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 ... |
ajax/libs/jquery.fancytree/2.18.0/jquery.fancytree-all.min.js | CyrusSUEN/cdnjs | /*! jQuery Fancytree Plugin - 2.18.0 - 2016-05-02T19:34
* https://github.com/mar10/fancytree
* Copyright (c) 2016 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!functio... |
docs/src/pages/Home.js | sghall/resonance | // @flow
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import Link from 'react-router/lib/Link'
import Button from '@material-ui/core/Button'
import Grid from '@material-ui/core/Grid'
import Paper from '@material-ui/core/Paper'
import Typography from... |
examples/counter/index.js | jonaustin/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/material-ui/5.0.0-alpha.5/esm/TabScrollButton/TabScrollButton.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import KeyboardArrowLeft from"../internal/svg-icons/KeyboardArrowLeft";import KeyboardArr... |
ajax/libs/react-instantsearch/6.8.2/Dom.js | cdnjs/cdnjs | /*! React InstantSearch 6.8.2 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/containers/Home/Home.js | phonne/Chatroom | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
public/node_modules/reactify/node_modules/react-tools/src/core/ReactCompositeComponent.js | rohansingh/cion | /**
* Copyright 2013-2014, 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 ... |
lib/cli/generators/REACT_NATIVE_SCRIPTS/template/storybook/stories/index.js | jribeiro/storybook | import React from 'react';
import { Text } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import CenterView from './CenterView';
import Welcome from './Welcome'... |
MovieApp/app/components/containers/MoviePage/index.js | Ronny25/Ronny25.github.io | //Libraries
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
//Actions
import { fetchMovie, fetchRecommendations, fetchGenres, fetchSimilar } from '../../../redux/actions/MoviePageActions';
//Constants
impor... |
index.js | petterh/react-native-android-activity | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
Button,
NativeEventEmitter,
NativeModules,
Platform,
StyleSheet,
Text,
TextInput,
View
} from 'react-native';
import BatchedBridge from "react-native/Librar... |
docs/src/sections/PaginationSection.js | Lucifier129/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PaginationSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/Tooltip/index.js | xDae/styled-bootstrap | // @flow
import React from 'react';
import StyledTooltip from './StyledTooltip';
type Props = {
children: any,
placement: string
};
const Tooltip = ({ children, ...props }: Props) => (
<StyledTooltip {...props}>
<div />
<div>{children}</div>
</StyledTooltip>
);
export default Tooltip;
|
src/components/app/App.js | husa/e-clock | import './app.styl';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import FadeIn from '../../common/animations/FadeIn';
import Intro from '../../containers/intro/Intro';
import Clock from '../../containers/clock/Clock';
import Date from '../../containers/date/Dat... |
ajax/libs/redux-form/3.0.12/redux-form.js | Piicksarn/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxForm"] = facto... |
wp-includes/js/jquery/jquery.js | trevorgreenleaf/zoom | /*! 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... |
ajax/libs/Sly/1.3.0/sly.js | lobbin/cdnjs | /*!
* sly 1.3.0 - 30th Nov 2014
* https://github.com/darsain/sly
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function ($, w, undefined) {
'use strict';
var pluginName = 'sly';
var className = 'Sly';
var namespace = pluginName;
// Local WindowAnimationTiming interface
va... |
docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js | nathanmarks/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerOpenRightExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
handle... |
ajax/libs/analytics.js/2.3.2/analytics.min.js | mohitbhatia1994/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... |
src/ReactBoilerplate/Scripts/containers/Register/Register.js | pauldotknopf/react-aspnet-boilerplate | import React, { Component } from 'react';
import { RegisterForm } from 'components';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
class Register extends Component {
componentWillReceiveProps(nextProps) {
if (!this.props.user && nextProps.user) {
this.props.pushState('/'... |
ReactNative/Albums/src/components/Button.js | makingsensetraining/mobile-pocs | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{children}
</Text>
</Touch... |
src/components/root.js | roman01la/f-react-kit | // Used directly when rendering on server
import React from 'react';
import App from './app/app';
import { connectRoot } from '../lib/state_tools/connect_root';
import { API_ROOT } from '../config/global';
const Root = ({ children }) => <App>{children}</App>;
export default connectRoot(Root, API_ROOT);
|
files/babel/5.4.4/browser-polyfill.js | jtblin/jsdelivr | (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... |
examples/basic/src/components/NavBar.js | supasate/connected-react-router | import React from 'react'
import { Link } from 'react-router-dom'
const NavBar = () => (
<div>
<div><Link to="/">Home</Link> <Link to="/hello">Hello</Link> <Link to="/counter">Counter</Link></div>
</div>
)
export default NavBar
|
packages/material-ui-icons/src/BluetoothDisabled.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29L20 18.59 5.41 4zM13 18.17v-3.76l1.88 1.88L13 18.17z" />
, ... |
src/components/rolesList/test/index.js | codyloyd/teamup | import describe from 'tape'
import React from 'react'
import dom from 'cheerio'
import ReactDOMServer from 'react-dom/server'
import RolesList from '../'
const render = ReactDOMServer.renderToStaticMarkup
const createRole = (
{
id = '01',
projectId = '02',
name = 'role name',
status = 'open',
de... |
app/javascript/chitchat/containers/MessageForm/index.js | fcbajao/chitchat | // @flow
import React from 'react'
import { connect } from 'react-redux'
import { Field, reduxForm } from 'redux-form'
import { actions } from '../../ducks/chat'
import { validateRequired } from '../../utils'
const MessageForm = (props: { handleSubmit: Function, onSubmit: Function }) => {
const handleSubmit = props.... |
inlineStyles/src/components/Example/Example.js | wandarkaf/React-Bible | import React from 'react';
import styles from './styles';
class Example extends React.Component {
render() {
return (
<p style={styles.announcement}>{this.props.content}</p>
);
}
}
Example.propTypes = {
content: React.PropTypes.string.isRequired
};
export default Example;
|
client/blog/src/components/navmenu/NavLinks.js | we-human-space/website | import React from 'react';
import PropTypes from 'prop-types';
import config from '../../config';
export default class NavLinks extends React.Component{
isActive(link){
return window.location.search && link.location.search && window.location.search.match(link.location.search);
}
subscribeIsActive() {
r... |
ajax/libs/Sly/1.4.1/sly.js | samthor/cdnjs | /*!
* sly 1.4.1 - 5th Mar 2015
* https://github.com/darsain/sly
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function ($, w, undefined) {
'use strict';
var pluginName = 'sly';
var className = 'Sly';
var namespace = pluginName;
// Local WindowAnimationTiming interface
var... |
node_modules/material-ui/svg-icons/av/library-music.js | firdiansyah/crud-req | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
src/components/Display/Display.js | wavicles/fossasia-pslab-apps | import React from 'react';
import { ValueWrapper } from './Display.styles';
const Display = ({ fontSize, value, unit }) => (
<ValueWrapper fontSize={fontSize}>
{value} {unit}
</ValueWrapper>
);
export default Display;
|
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js | ichiohta/material-ui | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
marginRight: 24,
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
const SvgIco... |
demo-buzz-feed/lib/react-dom.min.js | catavolt-oss/catreact-examples | /**
* ReactDOM v0.14.5
*
* 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.... |
public/js/app/components/pages/NewEvent.js | joaoahmad/minha-lista | import React from 'react';
import ReactMixin from 'react-mixin';
import { Route, RouteHandler, Link, History, Lifecycle } from 'react-router';
import EventActions from '../../actions/EventActions';
import Form from '../Form';
import PageWithNavbar from '../PageWithNavbar';
import Container from '../Container';
i... |
src/widgets/input-filter-with-criteria/components/input-filter-with-criteria.spec.js | InseeFr/Pogues | import React from 'react';
import { shallow } from 'enzyme';
import InputFilterWithCriteria from './input-filter-with-criteria';
import { WIDGET_INPUT_FILTER_WITH_CRITERIA } from 'constants/dom-constants';
import { fakeEvent, noop } from 'utils/test/test-utils';
const {
SEARCH_INPUT_CLASS,
BUTTON_SEARCH_CLASS,
}... |
frontend/src/routes/Detail.js | OwenRay/Remote-MediaServer | /* eslint-disable no-underscore-dangle */
/**
* Created by owenray on 6/30/2017.
*/
import React, { Component } from 'react';
import { Button, Icon, Tabs, Tab, Modal } from 'react-materialize';
import ReactTooltip from 'react-tooltip';
import BodyClassName from 'react-body-classname';
import { apiActions, deserialize... |
ajax/libs/video.js/5.11.2/video.js | sreym/cdnjs | /**
* @license
* Video.js 5.11.2 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Vers... |
app/javascript/mastodon/features/status/components/detailed_status.js | NS-Kazuki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
src/views/AboutView.js | octavioturra/pet-patinhas-react | import React from 'react';
import { Link } from 'react-router';
const AboutView = () => (
<div className='container text-center'>
<h1>This is the about view!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
);
export default AboutView;
|
app/scripts/components/FilterBar.js | DDDas/reactjs-datagrid-widgets | import React from 'react';
import OrderAppStore from '../stores/alt/OrderAppStore';
import OrderAppActions from '../actions/alt/OrderAppActions';
class FilterBar extends React.Component {
constructor(props) {
super(props);
this.state = OrderAppStore.getState();
this._handleRadioChange = this._handleRadio... |
public/js/components/ajaxloader.js | gonzochic/inox | import React from 'react';
export default class AjaxLoader extends React.Component {
constructor(props) {
super(props)
}
render() {
const style = {paddingLeft: '50%'};
return (
<div className = "row">
<div className = "col-xs-12">
<img style={style} src="/public/img/ajax-loader.gif" alt ="loadi... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | primenumber/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
src/components/decorators/withViewport.js | DenisIzmaylov/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default s... |
ajax/libs/flocks.js/0.14.7/flocks.js | kirbyfan64/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react'... |
src/RelativeSize.js | dunnock/react-sigma | // @flow
import React from 'react'
import '../sigma/plugins.relativeSize'
type Props = {
initialSize: number,
sigma?: sigma
};
/**
RelativeSize component, interface for RelativeSize sigma plugin.
It supposes that sigma graph is already in place, therefore component should not be
mounted until graph is available. ... |
Sencha/App6.0/workspace/ext/classic/classic/test/specs/button/Segmented.js | Webcampak/ui | describe("Ext.button.Segmented", function() {
var button;
function makeButton(cfg) {
button = Ext.create(Ext.apply({
xtype: 'segmentedbutton',
renderTo: document.body
}, cfg));
}
function clickButton(index) {
jasmine.fireMouseEvent(button.items.getAt(ind... |
EviersLavabos/Lavabos/LeroyMerlin/Vasque à poser basalte Diam.40.6 cm gris anthracite Amelie | Leroy Merlin_fichiers/jquery.js | orlammd/StBH | /*! 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===... |
app/components/Calendar/Calendar.js | zchen9/DonutTab | import React from 'react';
import Weather from '../Weather/Weather.js';
require('./Calendar.scss');
const WEEKS = ['Sun', 'Mon', 'Tues', 'Wed', 'Thur', 'Fri', 'Sat'];
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
export default class Calendar extends React.Compo... |
app/reactions/client/methods/setReaction.js | inoio/Rocket.Chat | import { Meteor } from 'meteor/meteor';
import _ from 'underscore';
import { Messages, Rooms, Subscriptions, EmojiCustom } from '../../../models';
import { callbacks } from '../../../callbacks';
import { emoji } from '../../../emoji';
Meteor.methods({
setReaction(reaction, messageId) {
if (!Meteor.userId()) {
t... |
src/DetailsComponent.js | taskcluster/migration | import moment from 'moment';
import React from 'react';
import Panel from 'react-bootstrap/lib/Panel';
import Col from 'react-bootstrap/lib/Col';
import Row from 'react-bootstrap/lib/Row';
import Button from 'react-bootstrap/lib/Button';
import Alert from 'react-bootstrap/lib/Alert';
import WorkItem from './WorkItem';
... |
lib/templates/src/routes.js | tomgrooffer/basenji | import React from 'react'
import { Route } from 'react-router'
import Index from 'views/Index/Index'
export default function getRoutes (history, store, callback) {
callback(
<Route path='/' component={Index} />
)
}
|
node_modules/reactify/node_modules/react-tools/src/browser/server/ReactServerRenderingTransaction.js | SFDevLabs/wholeocean | /**
* Copyright 2014, 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 React... |
src/js/admin/article-edit/operation-div/operation-div.js | ucev/blog | import React from 'react'
import LabelBar from '../label-bar'
import ButtonBar from '../button-bar'
import './operation-div.style.scss'
export default () => (
<div id="op-div">
<LabelBar />
<ButtonBar />
</div>
)
|
clients/packages/admin-client/src/components/grids/float-layout.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { FloatLayout } from '../../components/grids';
describe('client/components/grids/float-layout', () => {
let wrapper;
const text = 'foo bar';
beforeEach(() => {
wrapp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.