path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js | flarnie/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import Immutable from 'immutable';
const set = new Set(['abc', 123]);
const map = new Map(... |
src/universalRouter.js | fustic/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import routes from './views/routes';
import { Provider } from 'react-redux';
const getFetchData = (component) => {
return component.fetchData || (component.DecoratedComponent && component.DecoratedComponent.fetchData);
};
export function createTransition... |
src/containers/Home/index.js | anitrack/anitrack-web | import React, { Component } from 'react';
import { Col, Row, Button, Form, FormGroup, Label, Input, InputGroup, InputGroupButton, UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import MediaQuery from 'react-responsive';
import * as css from './css';
const flexItem = [
{icon: ... |
packages/showcase/showcase-app.js | uber/react-vis | import React from 'react';
import PropTypes from 'prop-types';
import ShowcaseDropdown from './showcase-components/showcase-dropdown';
import {
AxesShowcase,
PlotsShowcase,
SunburstSection,
RadialShowcase,
RadarShowcase,
LegendsShowcase,
SankeysShowcase,
TreemapShowcase,
ParallelCoordinatesShowcase,
... |
examples/auth-with-shared-root/components/PageOne.js | mattkrick/react-router | import React from 'react'
const PageOne = React.createClass({
render() {
return <h2>Page One!</h2>
}
})
export default PageOne
|
src/components/CallToAction/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './call-to-action.scss';
import Section from 'components/Section';
import Heading2 from 'components/Heading2';
import TextCenter from 'components/TextCenter';
import Container from 'components/Container';
import Paragraph from 'components/Paragraph';
import ButtonLink from ... |
ajax/libs/material-ui/4.9.11/esm/Hidden/Hidden.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 HiddenJs from './HiddenJs';
import HiddenCss from './HiddenCss';
/**
* Responsively hides chil... |
src/parser/shared/modules/features/Checklist/Requirements/GenericCastEfficiencyRequirement.js | FaideWW/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import Requirement from '../Requirement';
/**
* This is a common requirement for all checklists that uses settings for CastEfficiency to create a Requirement. It shows the spell and your efficiency as performance depending on the configured cast e... |
ajax/libs/6to5/1.13.13/browser-polyfill.js | ZDroid/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... |
examples/using-gatsby-with-json-yaml/src/templates/basicTemplate.js | gatsbyjs/gatsby | import React from "react"
import { Link } from "gatsby"
const basicTemplate = props => {
const { pageContext } = props
const { pageContent, links } = pageContext
return (
<div style={{ maxWidth: `960px`, margin: `1.45rem` }}>
<ul>
{pageContent.map((data, index) => (
<li key={`content... |
packages/material-ui-icons/src/SignalWifi2BarTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M4.79 12.52L12 21.5l7.21-8.99C18.85 12.24 16.1 10 12 10s-6.85 2.24-7.21 2.52z" /></R... |
app/javascript/mastodon/features/lists/index.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
__tests__/Breadcrumb.spec.js | Landish/react-spectre-css | import React from 'react';
import { shallow } from 'enzyme';
import BreadCrumb from '../src/components/BreadCrumb/BreadCrumb';
import BreadCrumbItem from '../src/components/BreadCrumbItem/BreadCrumbItem';
import Link from '../src/components/Link/Link';
describe('<BreadCrumb />', () => {
it('renders empty breadcrumbs... |
src/parser/warlock/demonology/modules/features/SummonDemonicTyrant.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer , {SELECTED_PLAYER} from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import Events from 'parser/core/Events';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import... |
node_modules/react-icons/ti/cancel-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiCancelOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 34.2c-7.8 0-14.2-6.4-14.2-14.2s6.4-14.2 14.2-14.2c7.8 0 14.2 6.4 14.2 14.2s-6.4 14.2-14.2 14.2z m0-25c-6 0-10.8 4.8-10.8 10.8s4.8 10.8 10.8 10.8 10.8-4.8 10... |
app/components/Component1/StaticMap.js | joaquinPega/ReactTutorial | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_... |
docs/build.js | brentertz/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
app/components/react-template-component.js | amyrebecca/simple-react-webpack | import React from 'react'
import myTemplate from 'react-template-component.rt'
module.exports = React.createClass({
getInitialState: function(){
return { tool: 'React Templates' };
},
render: myTemplate
}); |
src/main.js | Hortomatic/app-web | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { syncReduxAndRouter } from 'redux-simple-router'
import routes from './routes'
import Root from './containers/Root'
import configureStore from './redux/configureStore'
const history = ... |
ajax/libs/react-redux-form/1.0.0-beta.11/ReactReduxForm.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux"),require("react-dom")... |
ajax/libs/react-widgets/4.0.3/react-widgets.js | jonobr1/cdnjs | /*! (c) 2014 - present: Jason Quense | https://github.com/jquense/react-widgets/blob/master/LICENSE.md */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
packages/material-ui-icons/src/BorderColor.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29a.9959.9959 0 0 0-1.41 0L15 2.25 18.75 6l1.96-1.96z" /><path fillOpacity=".36" d="M0 20h24v4H0z" /></Rea... |
fields/types/select/SelectField.js | everisARQ/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
valueChanged (newValue) {
// TODO: This should be natively handled by the Selec... |
Demo/src/components/Loading.js | bspaulding/presentation-react-router-4-universal-links | import React, { Component } from 'react';
import { Animated, Easing, Image, StyleSheet, View } from 'react-native';
import vader from '../../public/lightsaber-darth-vader.png';
import luke from '../../public/lightsaber-luke-rotj.png';
const styles = StyleSheet.create({
container: {
alignItems: 'center',
flex: 1,
... |
src/svg-icons/content/delete-sweep.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDeleteSweep = (props) => (
<SvgIcon {...props}>
<path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/>
</SvgIcon>
);
ContentDeleteSwee... |
src/components/NotFoundPage/NotFoundPage.js | phoenixbox/vesty-fe | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
//require('./NotFoundPage.less');
import React from 'react';
export defa... |
packages/vx-gradient/src/gradients/SteelPurple.js | Flaque/vx | import React from 'react';
import LinearGradient from './LinearGradient';
export default (props) => {
return (
<LinearGradient
from='#65799B'
to='#5E2563'
{...props}
/>
);
}
|
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Warnings/MigratableResourcesWarning.js | KlusterKite/KlusterKite | import React from 'react';
import Relay from 'react-relay'
export class MigratableResourcesWarning extends React.Component {
render() {
const resourceState = this.props.resourceState;
return (
<div>
{resourceState && resourceState.configurationState && resourceState.configurationState.migratab... |
app/assets/scripts/components/main-figure-bar-chart-horizontal.js | HoustonEndowment/after-school-programs | import React from 'react'
export default function (data) {
return (
<div className='barchart'>
<div className='barchart-stats'>
<div className='students-count'>
<span className='data-number data-students'>{data.students}</span>
<span className='data-description'> eligible students... |
files/mathbox.js/0.1/MathBox-bundle.min.js | jgravois/jsdelivr | (function(){function a(){if(!g&&(g=!0,h)){for(var a=0;a<h.length;a++)h[a].call(window,[]);h=[]}}function b(){if(!f){f=!0;document.addEventListener&&!e.opera&&document.addEventListener("DOMContentLoaded",a,!1);e.msie&&window==top&&function(){if(!g){try{document.documentElement.doScroll("left")}catch(b){setTimeout(argume... |
client/dev-env/src/ui/App.js | fernandoxu/react-express-api-demo | import React, { Component } from 'react';
import {Link} from 'react-router';
import PostList from './posts/PostList';
class App extends Component {
getStyles() {
return {
header: {
height: '64px',
width: '100%',
backgroundColor: '#00bcd4',
textAlign: 'center',
lineHe... |
packages/material-ui-icons/src/SatelliteOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /><path d="M8.57 6H6v2.58c1.42 0 2.57-1.16 2.57-2.... |
packages/mineral-ui-icons/src/IconFilterList.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 IconFilterList(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
app/javascript/legacy/member-facing/backbone/action_form.js | SumOfUs/Champaign | import $ from 'jquery';
import I18n from 'champaign-i18n';
import React from 'react';
import { render } from 'react-dom';
import _ from 'lodash';
import Backbone from 'backbone';
import ee from '../../../shared/pub_sub';
import ErrorDisplay from '../../../shared/show_errors';
import MobileCheck from './mobile_check';
i... |
app/javascript/mastodon/features/compose/components/upload_button.js | anon5r/mastonon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | honpya/taketodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
lib/client/js/components/apps/app-card.js | Bornholm/yasp | /* jshint esnext: true, node: true */
'use strict';
import moment from 'moment';
import React from 'react';
import { translate } from 'react-i18next';
class AppCard extends React.Component {
constructor() {
super();
this.state = {};
this.handleStopClick = this.handleStopClick.bind(this);
this.handl... |
assets/jqwidgets/demos/react/app/datatable/csvdata/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
class App extends React.Component {
render() {
let source =
{
dataType: 'csv',
dataFields: [
{ name: 'Date... |
4-routing/src/pages/RoomList.js | pirosikick/react-hands-on-20171023 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class RoomList extends Component {
static propTypes = {
history: PropTypes.shape({
replace: PropTypes.func.isRequired,
}),
};
state = {
rooms: [],
};
componentWillUnmount() {
if (this.unsubscribe) {
th... |
ajax/libs/intl-tel-input/5.0.2/js/intlTelInput.js | holtkamp/cdnjs | /*
International Telephone Input v5.0.2
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
force_dir/node_modules/react-bootstrap/es/InputGroup.js | wolfiex/VisACC | 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/components/Bio.js | markshlick/markshlick.github.io | import React from 'react';
import profilePic from './me.jpg';
import { rhythm } from '../utils/typography';
class Bio extends React.Component {
render() {
return (
<div
style={{
display: 'flex',
marginBottom: rhythm(1),
}}
>
<img
src={profilePic}... |
ajax/libs/redux-form/5.2.1/redux-form.min.js | extend1994/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
src/isomorphic/deprecated/__tests__/joinClasses-test.js | Rafe/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.
*
* @emails react-co... |
src/components/Auth/SignUp/SignUp.react.js | madhavrathi/chat.susi.ai | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import $ from 'jquery';
import './SignUp.css';
import PasswordField from 'material-ui-password-field';
import Dialog from 'material-ui/Dial... |
nailgun/static/views/login_page.js | eayunstack/fuel-web | /*
* Copyright 2014 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
src/components/FixedDataTableSortFilt.js | Sigfried/vocab-pop | /*
Copyright 2016 Sigfried Gold
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 in writ... |
node_modules/react-router/es/Redirect.js | hong1012/FreePay | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.st... |
test/components/EnterpriseSummaryComponentTest.js | chimo/se-dir-frontend-react | /* eslint-env node, mocha */
/* global expect */
/* eslint no-console: 0 */
'use strict';
import React from 'react';
import { shallow } from 'enzyme';
// Uncomment the following lines to use the react test utilities
// import TestUtils from 'react-addons-test-utils';
// import createComponent from 'helpers/shallowRen... |
react-ui/src/components/Admin/Articles.js | civicparty/legitometer | import React, { Component } from 'react';
import axios from 'axios';
import { Button, Table } from 'semantic-ui-react';
// import { Input, Select } from 'semantic-ui-react';
import UpdateArticle from './UpdateArticle';
import { Redirect, Link } from 'react-router-dom';
class Collections extends Component {
construct... |
tests/react/ConcurrentMode.js | popham/flow | // @flow
import React from 'react';
{
const {ConcurrentMode} = React;
<ConcurrentMode>
<div />
</ConcurrentMode>
}
{
const {Component, ConcurrentMode} = React;
class ClassExample extends Component<{||}> {
render() {
return null;
}
}
<ConcurrentMode>
<ClassExample />
</Concurr... |
packager/react-packager/src/SocketInterface/index.js | Lohit9/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
src/client/app/views/home.js | boris91/hype | import React, { Component } from 'react';
//import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import 'app/styles/home.less';
class HomePage extends Component {
render() {
return <div id='home' class='home'>
Home page.
</div>;
}
};
const stateToProps = state => state;
const di... |
app/javascript/mastodon/components/missing_indicator.js | increments/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
ajax/libs/react/0.14.2/react-with-addons.min.js | dada0423/cdnjs | /**
* React (with addons) v0.14.2
*
* 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... |
modules/login/jsx/requestAccount.js | kongtiaowang/Loris | import React, {Component} from 'react';
import PropTypes from 'prop-types';
import Panel from 'Panel';
/**
* Request account form.
*
* @description form for request account.
*
* @author Alizée Wickenheiser
* @version 1.0.0
*
*/
class RequestAccount extends Component {
/**
* @constructor
* @param {objec... |
node_modules/react-native-svg/lib/props.js | 15chrjef/mobileHackerNews | import {PropTypes} from 'react';
import {PanResponder} from 'react-native';
const numberProp = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
const touchableProps = {
disabled: PropTypes.bool,
onPress: PropTypes.func,
onPressIn: PropTypes.func,
onPressOut: PropTypes.func,
onLongPress: ... |
test/spec/JSUtils-test-files/jquery-1.7.js | gcommetti/brackets | /*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*... |
src/bindings/ejdb2_react_native/binding/index.js | Softmotions/ejdb | import { NativeEventEmitter, NativeModules } from 'react-native';
const { EJDB2DB: ejdb2, EJDB2JQL: ejdb2jql } = NativeModules;
/**
* EJDB2 Error helpers.
*/
class JBE {
/**
* Returns `true` if given error [err] is `IWKV_ERROR_NOTFOUND`
* @param {Error} err
* @returns {boolean}
*/
static isNotFound(... |
frontend/src/index.js | zachwalton/truebpm | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
src/Parser/RestoDruid/Modules/Traits/EssenceOfNordrassil.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellL... |
bower_components/jquery/dist/jquery.min.js | DerekMarcinyshyn/lessoneseven-blog | /*! jQuery v1.11.1 | (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... |
packages/ringcentral-widgets-docs/src/app/pages/Components/RateExceededAlert/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import RateExceededAlert from 'ringcentral-widgets/components/RateExceededAlert';
const props = {};
props.timestamp = 0;
props.duration = 0;
props.currentLocale = 'en-US';
/**
* A example of `RateExceededAlert`
*/
const RateExceededAlertDemo = () => (
<RateEx... |
tools/copy.js | f15gdsy/react-starter-kit | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import replace from 'replace';
imp... |
node_modules/rc-rate/lib/Star.js | prodigalyijun/demo-by-antd | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esMod... |
src/Map/Layers/CanvasCache.js | woutervh-/cancun-react | import React from 'react';
export default class CanvasCache extends React.Component {
static propTypes = {
id: React.PropTypes.string.isRequired
};
render() {
return null;
}
};
|
Rosa_Madeira/Cliente/src/components/carrinho/CarrinhoItem.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View } from 'react-native';
import { Container, Content, List, ListItem, Thumbnail, Text, InputGroup, Input, Button } from 'native-base';
import { connect } from 'react-redux';
import { remove_to_cart, remove_to_cart_produto } from '../../actions';
import { Actions } f... |
packages/mui-icons-material/lib/esm/CreateNewFolderSharp.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 6H12l-2-2H2v16h20V6zm-3 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"
}), 'CreateNewFolderSharp'); |
app/javascript/mastodon/components/extended_video_player.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
time: PropTypes.number,
contr... |
src/components/topic/snapshots/foci/builder/search/SearchPreview.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import SearchStoryCountPreviewContainer from './SearchStoryCountPreviewContainer';
import SearchStoryPreviewContainer from './SearchStoryPreviewCon... |
geonode/monitoring/frontend/monitoring/src/components/cels/layer-select/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
public/assets/js/jquery-1.11.1.min.js | 4711G38/timjonathan | /*! jQuery v1.11.1 | (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... |
wp-includes/js/jquery/jquery.js | emjayoh/drbronner | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | gdi2290/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcements: COURSES[params.courseId].announcements
//});
//}
render () {
//var { announcements } = this.props... |
src/components/material/spec.js | casesandberg/react-color | /* global test, test, expect */
import React from 'react'
import renderer from 'react-test-renderer'
import { red } from '../../helpers/color'
import Material from './Material'
test('Material renders correctly', () => {
const tree = renderer.create(
<Material { ...red } />,
).toJSON()
expect(tree).toMatchS... |
ucl-project/core/modules/ckeditor/js/ckeditor.admin.js | mgalas/Community4OpenDataHub | /**
* @file
* CKEditor button and group configuration user interface.
*/
(function ($, Drupal, drupalSettings, _) {
'use strict';
Drupal.ckeditor = Drupal.ckeditor || {};
/**
* Sets config behaviour and creates config views for the CKEditor toolbar.
*
* @type {Drupal~behavior}
*
* @prop {Dru... |
tests/react_children/text.js | popham/flow | // @flow
import React from 'react';
class Text extends React.Component<{children: string}, void> {}
class TextOptional extends React.Component<{children?: string}, void> {}
class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {}
<Text />; // Error: `children` is required.
<TextOptional />; // O... |
modules/__tests__/isActive-test.js | jdelight/react-router | import expect from 'expect';
import React from 'react';
import createHistory from 'history/lib/createMemoryHistory';
import IndexRoute from '../IndexRoute';
import Router from '../Router';
import Route from '../Route';
describe('isActive', function () {
var node;
beforeEach(function () {
node = document.creat... |
ajax/libs/primereact/3.4.0/components/checkbox/Checkbox.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Checkbox=void 0;var _react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_classnames=_interopRequireDefault(require("classnames")),_Tooltip=_interopRequireDefault(require("../tooltip/Tooltip"... |
src/svg-icons/device/signal-wifi-2-bar-lock.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi2BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
ajax/libs/yui/3.14.0/datatable-core/datatable-core-coverage.js | luigimannoni/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
hello/src/App.js | driverInside/react-basic | import React, { Component } from 'react';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<h2>Hello World</h2>
</div>
<p className="App-intro">
This is my first app.
</p>
</div... |
src/React/Properties/ColorProperty/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import ToggleIconButton from 'paraviewweb/src/React/Widgets/ToggleIconButtonWidget';
import style from 'paraviewweb/style/ReactProperties/CellProperty.mcss';
import ColorItem from './ColorItem';
export function hex2float(hexStr, outFloatArray = [0, 0.5, ... |
packages/material-ui-icons/src/AlarmOnOutlined.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="M10.54 14.53L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06zM17.3365 1.811l4.6074 3.8436-1.2812 1.5358-4.6074-3.8436zM6.6633 1.8104l1.2812 1.53... |
src/components/ui/FormLabel.js | elarasu/roverz-chat | /**
* Text Input
*
<FormLabel></FormLabel>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormLabel } from 'react-native-elements';
// Consts and Libs
import { AppColors, AppFonts } ... |
frontend/src/Settings/Profiles/Quality/QualityProfilesConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { cloneQualityProfile, deleteQualityProfile, fetchQualityProfiles } from 'Store/Actions/settingsActions';
import createSortedSectionSelector from 'Store/... |
app/components/Loading.js | wederribas/battle-of-coders | import React from 'react';
import PropTypes from 'prop-types';
const styles = {
content: {
textAlign: 'center',
fontSize: '35px'
}
};
class Loading extends React.Component {
static propTypes = {
text: PropTypes.string.isRequired,
speed: PropTypes.number.isRequired
}
static defaultProps = ... |
packages/material-ui-icons/src/KitchenTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M8 5h2v3H8zM8 12h2v5H8z" opacity=".3" /><path d="M6 20h12v-9.02H6V20zm2-8h2v5H8v-5zM6 9h12V4H6v5zm2-4h2v3H8V5z" opacity=".3" /><path d="M18 2.01... |
ajax/libs/angular-google-maps/1.1.6/angular-google-maps.js | gagan-bansal/cdnjs | /*! angular-google-maps 1.1.6 2014-06-28
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
ajax/libs/jquery/1.9.1/jquery.min.js | jaindeepali/cdnjs | /*! 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... |
app/components/Counter/Counter.js | taggun/app-benchmark | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
render() ... |
src/hint/DisplayUntilActive.js | ethanselzer/react-image-magnify | import React from 'react';
import PropTypes from 'prop-types';
export default class DisplayUntilActive extends React.Component {
constructor(props) {
super(props);
this.hasShown = false;
}
static propTypes = {
children: PropTypes.element,
isActive: PropTypes.bool,
... |
packages/todomvc-example/components/TodoTextInput.js | wangzuo/cxx | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
const ENTER_KEY_CODE = 13;
const ESC_KEY_CODE = 27;
export default class TodoTextInput extends React.Component {
static defaultProps = {
commitOnBlur: false
};
static propTypes = {
className: PropTypes.strin... |
ajax/libs/webshim/1.14.6/dev/shims/moxie/js/moxie.js | keicheng/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
packages/material-ui-icons/src/PermIdentity.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9... |
node_modules/material-ui-datatables/DataTables/DataTablesRowColumn.js | deepidea/brisk-table | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _objectWitho... |
src/components/Header.js | scapp281/cliff-effects | import React from 'react';
import {
Segment,
Visibility,
} from 'semantic-ui-react';
import { MainMenu } from '../MainMenu';
import FixedMenu from '../FixedMenu';
class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
fix: false
};
}
render() {
const... |
node_modules/react-keydown/example/src/app/class_decorator/code.js | SpatialMap/SpatialMapDev | import React from 'react';
import ReactDOM from 'react-dom';
const code =
`<code>
import React from 'react';
import keydown from 'react-keydown';
@keydown
class MyComponent extends React.Component {
constructor( props ) {
super( props );
this.state = {
key: 'n/a'
};... |
definitions/npm/react-testing-library_v2.0.x/flow_v0.58.0-/test_react-testing-library_v2.0.x.js | orlandoc01/flow-typed | // @flow
import React from 'react';
import { render, Simulate, wait } from 'react-testing-library';
import { describe, it } from 'flow-typed-test';
describe('wait()', () => {
it('should fail on invalid inputs', () => {
// $ExpectError
wait(1);
// $ExpectError
wait(() => {}, 1);
});
it('should p... |
ajax/libs/reactstrap/3.6.0/reactstrap.min.js | seogi1004/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-addons-transition-group")):"function"==typeof define&&define.amd?define("Reactstrap",["react","react-dom","react-addons-transition-group"],t):"object"==typeof exports?exports.Reactstrap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.