path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/containers/ImpactMap/index.js
shanzhaicity/frontend-demo
/* * * ImpactMap * */ import React from 'react'; import { connect } from 'react-redux'; import D3Map, { toD3Path } from 'components/D3Map'; import provinceBordersCHN from 'data/state_chn.topo.json'; import jinxiu from 'data/jinxiu.topo.json'; import styles from './styles.css'; import { createStructuredSelector } f...
ajax/libs/orb/1.0.4/orb.js
lucasls/cdnjs
/** * orb v1.0.4, Pivot grid javascript library. * * Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>. * * @version v1.0.4 * @link http://nnajm.github.io/orb/ * @license MIT */ 'use strict'; ! function(e) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); els...
examples/real-world/index.js
dimaip/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
src/components/EditMilestone.js
tborisova/fridment-react
import React from 'react'; import { Col, Button, Form, FormGroup, Label, Input, FormText, Jumbotron } from 'reactstrap'; export default class EditMilestone extends React.Component { constructor(props) { super(props); this.state = { milestone: [] } this.sendForm = this.sendForm.bind(t...
assets/jqwidgets/demos/react/app/kanban/kanbanediting/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; import JqxTextArea from '../../../jqwidgets-react/react_jqxtextarea.js'; class App extends React.Component { componentDidMount() { this.refs.myKanban.on('itemAttrClicked', (eve...
public/Projekktor/jquery-1.7.2.min.js
vigliag/nodesubsplayer
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
.eslintrc.js
NotBlizzard/bluebird
module.exports = { root: true, parser: "@typescript-eslint/parser", plugins: ["@typescript-eslint"], extends: [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "plugin:react/recommended", "prett...
app/javascript/flavours/glitch/features/keyboard_shortcuts/index.js
glitch-soc/mastodon
import React from 'react'; import Column from 'flavours/glitch/features/ui/components/column'; import ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'p...
client/extensions/woocommerce/components/reading-widget/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import emailValidator from 'email-validator'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import Button from 'components/b...
src/svg-icons/action/motorcycle.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2...
ajax/libs/babel-core/5.8.21/browser-polyfill.min.js
tonytomov/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/mui/form/SimpleForm.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import { validateForm } from '../../util/validate'; import getDefaultValues from '../form/getDefaultValues'; import FormField from './For...
docs/components/routes.js
nikgraf/belle
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import Base from './Base'; import ComboBoxDocumentation from './components/ComboBoxDocumentation'; import DatePickerDocumentation from './components/DatePickerDocumentation'; import ButtonDocumentation from './components/ButtonDocumentation';...
app/javascript/mastodon/features/compose/components/search_results.js
h-izumi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import Link from 'react-router-dom/Link'; import...
app/javascript/mastodon/components/attachment_list.js
Toootim/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends ImmutablePureComponent { static propTypes...
demos/tooltips/demos/above.js
isogon/styled-mdl-website
import React from 'react' import { Tooltip, Button, Icon } from 'styled-mdl' const demo = () => ( <Tooltip message="Follow"> <Button icon> <Icon name="add" /> </Button> </Tooltip> ) const caption = 'Tooltip Above' const code = `<Tooltip message="Follow"> <Button icon><Icon name="add" /></Button> ...
src/decorators/withViewport.js
vanessadyce/react-proto
/*! 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 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
packages/icons/src/md/action/Shop.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdShop(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M32 13h12v26c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V13h12V9c0-2.21 1.79-4 4-4h8c2.21 0 4 1.79 4 4v4zM20 9v4h8V9h-8zm-2 28l15-10-15-8v18z" /> </IconB...
src/Parser/Core/Modules/NetherlightCrucibleTraits/Shocklight.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; /** * Shocklight * W...
packages/material-ui/src/List/ListItemSecondaryAction.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = { root: { position: 'absolute', right: 4, top: '50%', transform: 'translateY(-50%)', }, }; function ListItemSecondaryAction(props...
admin/client/components/Toolbar/ToolbarSection.js
andreufirefly/keystone
import React from 'react'; import blacklist from 'blacklist'; import classNames from 'classnames'; module.exports = React.createClass({ displayName: 'ToolbarSection', propTypes: { className: React.PropTypes.string, left: React.PropTypes.bool, right: React.PropTypes.bool, }, render () { var className = clas...
public/javascripts/jquery.js
mberning/tiredb
/*! * jQuery JavaScript Library v1.6.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. ...
packages/material-ui-icons/src/QueuePlayNextSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M23 3H1v16h7v2h8v-2h2v-2H3V5h18v8h2V3zm-10 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3 1.5-1.5L24 18z" /> , 'QueuePlayNextSharp');
src/components/shared/ui/button.js
jnarowski/react-metropolis
import React, { Component } from 'react'; export default class Buttons extends Component { render() { return ( <button>Stuff</button> ); } };
ajax/libs/react/18.0.0-alpha-b54f36f2b-20210803/cjs/react.development.js
cdnjs/cdnjs
/** @license React vundefined * react.development.js * * 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. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (function() { '...
ajax/libs/highstock/2.0.3/highstock.src.js
gokuale/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highstock JS v2.0.3 (2014-07-03) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,...
project_react_template/src/js/components/Navbar.js
Mikeysax/mikey
import React from 'react'; export default class Navbar extends React.Component { render() { return ( <div> <nav className="navbar navbar-default text-center" role="navigation"> <a href="https://www.npmjs.com/package/mikey"> Mikey </a> &nbsp; was b...
ajax/libs/yasr/2.2.1/yasr.bundled.min.js
kellyselden/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.YASR=e()}}(function(){var e;return function t(e,n,r){...
node_modules/react-icons/md/filter-1.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdFilter1 = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 28.4v-23.4h-23.4v23.4h23.4z m0-26.8c1.8 0 3.4 1.6 3.4 3.4v23.4c0 1.8-1.6 3.2-3.4 3.2h-23.4c-1.8 0-3.2-1.4-3.2-3.2v-23.4c0-1.8 1.4-3.4 3.2-3.4h23.4z m-11.6 23.4v-1...
src/svg-icons/av/av-timer.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
node_modules/eslint-config-airbnb/test/test-react-order.js
jdl031/FHIR-test-app
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import baseConfig from '../base'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: {indent: 0}, }); function...
ajax/libs/analytics.js/2.3.10/analytics.js
Teino1978-Corp/Teino1978-Corp-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...
examples/counter/containers/App.js
joshblack/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
src/components/FileList.js
msalem07/LectureRecorder
import React, { Component } from 'react'; import { ScrollView } from 'react-native'; import axios from 'axios'; import FileDetails from './FileDetail'; export default class FileList extends Component { state = { files: [] }; componentWillMount() { console.log("Component Will Mount"); ...
src/admin/components/datefield/index.js
ccetc/platform
import React from 'react' import moment from 'moment' class DateField extends React.Component { static propTypes = { autoComplete: React.PropTypes.string, maxLength: React.PropTypes.number, disabled: React.PropTypes.bool, placeholder: React.PropTypes.string, defaultValue: React.PropTypes.string,...
ReactJS/jspm_packages/npm/react@0.14.6/lib/ReactClass.js
aitch0083/extjs-and-more
/* */ (function(process) { 'use strict'; var ReactComponent = require('./ReactComponent'); var ReactElement = require('./ReactElement'); var ReactPropTypeLocations = require('./ReactPropTypeLocations'); var ReactPropTypeLocationNames = require('./ReactPropTypeLocationNames'); var ReactNoopUpdateQueue = req...
server/sonar-web/src/main/js/apps/overview/components/Timeline.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
akingyin1987/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
__tests__/MapComponent.js
boromisp/react-leaflet
import Leaflet from 'leaflet'; import React from 'react'; import { render } from 'react-dom'; jest.dontMock('../src/MapComponent'); const MapComponent = require('../src/MapComponent').default; describe('MapComponent', () => { class Component extends MapComponent { componentWillMount() { super.componentWi...
packages/mui-icons-material/lib/BlurCircularSharp.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")...
ajax/libs/video.js/5.0.0-rc.73/alt/video.novtt.js
2947721120/cdnjs
/** * @license * Video.js 5.0.0-rc.73 <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> */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports...
src/svg-icons/av/skip-previous.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious = pure(AvSkipPrevious); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.mu...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDoubling.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const GridExampleDoubling = () => ( <Grid doubling columns={5}> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Gri...
ajax/libs/tinymce/4.3.0/plugins/legacyoutput/plugin.js
hanbyul-here/cdnjs
/** * 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...
src/App.js
atyenoria/chat-server-client-mixed
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
src/svg-icons/image/looks-3.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks3 = (props) => ( <SvgIcon {...props}> <path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v...
src/svg-icons/maps/local-library.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLibrary = (props) => ( <SvgIcon {...props}> <path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-...
wagtail/wagtailadmin/static_src/wagtailadmin/js/vendor/jquery-1.10.3.js
bjesus/wagtail
/*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim...
docs/src/app/components/pages/components/Card/Page.js
mmrtnz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
source/redux/client/render.js
halt-hammerzeit/react-isomorphic-render
import React from 'react' import { getLocationUrl } from '../../location' import { matchRoutes } from '../../router' import { createRouterElement } from '../../router/client' import { isServerSidePreloaded } from '../../client/flags' // Renders the current page React element inside the `to` DOM element. // // Returns...
docs/app/Examples/elements/Input/Variations/InputExampleIconProps.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleIconProps = () => ( <Input icon={{ name: 'search', circular: true, link: true }} placeholder='Search...' /> ) export default InputExampleIconProps
ajax/libs/react-datepicker/0.32.0/react-datepicker.js
wout/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("react"), require("react-onclickoutside"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["moment", "rea...
app/index.js
Git-Together/GitTogether
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Segment, Divider } from 'semantic-ui-react' const DividerExampleVertical = () => ( <Grid columns={3} relaxed> <Grid.Column> <Segment basic> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. </Segment> </Grid.Column> <Divider...
node_modules/react-bootstrap/es/DropdownButton.js
Crisa221/Lista-Giocatori
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
packages/material-ui-icons/src/PhoneInTalk.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17...
app/javascript/flavours/glitch/features/standalone/public_timeline/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container'; import { refreshPublicTimeline, expandPublicTimeline, } from 'flavours/glitch/actions/timelines'; import Column from '...
app/App.js
raelcun/simple-webpack-react-starter
import React from 'react' import Content from './components/Content' import Header from './components/Header' import Favicon from 'react-favicon' const faviconUrl = require('./assets/favicon.ico'); export default class App extends React.Component { render() { return ( <div> <Header/> <Cont...
src/createFormValues.js
erikras/redux-form
// @flow import { isEmpty, isEqual, mapValues } from 'lodash' import React from 'react' import { connect } from 'react-redux' import prefixName from './util/prefixName' import { withReduxForm } from './ReduxFormContext' import type { ComponentType } from 'react' import type { Structure } from './types' import type { Fo...
pages/join.js
coderplex/coderplex
import React from 'react'; import Form from '../components/common/airtable-form'; export default () => { return <Form formId="shrY3VfShFqerCJmX" height="1881" />; };
src/containers/BulbLabel.js
dolchi21/web-lifx
import React from 'react' import { connect } from 'react-redux' export default connect((state, { id }) => { var bulb = state.bulbs.find(bulb => bulb.id === id) || {} return { label: bulb.label } })(props => <span>{props.label}</span>)
Examples/UIExplorer/BoxShadowExample.js
nathanajah/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/SeverityChange-test.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/app/components/VolumeSlider.js
skratchdot/audio-editor
import React, { Component } from 'react'; import { Row, Col } from 'react-bootstrap'; import { connect } from 'react-redux'; import { setMuted } from '../actions/muted'; import { setVolume } from '../actions/volume'; import MuteButton from '../components/MuteButton'; import Range from '../components/Range'; class Volu...
src/docs/Navigation.js
dryzhkov/ps-react-dr
import React from 'react'; import PropTypes from 'prop-types'; const Navigation = ({components}) => { return ( <ul className="navigation"> { components.map( name => { return ( <li key={name}> <a href={`#${name}`}>{name}</a> </li> ) }...
ajax/libs/react-select/1.0.0-beta10/react-select.js
BenjaminVanRyseghem/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}...
web/src/main/client/src/components/filterbar/FilterBar.js
BakkerTom/happy-news
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './FilterBar.css'; class FilterBar extends Component { constructor(props) { super(props); this.state = { flaggedContent: this.props.filtered } this.handleClick = this.handleClick.bind(this); } handleClic...
app/containers/LocaleToggle/index.js
Cherchercher/Wedding-Llama
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
geonode/contrib/monitoring/frontend/src/components/organisms/error-detail/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Tabs, Tab } from 'material-ui/Tabs'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; import actions from './actions'; const mapStateToProps = (state) => ({ errorDetails: st...
src/routes/ExchangeRates/components/ExchangeRatesView.js
successkrisz/fx-rates-right
import React from 'react' import ControlPanel from '../components/ControlPanel' import RatesPanel from './RatesPanel' export const ExchangeRatesView = () => ( <div> <h1>Exchange Rates</h1> <ControlPanel /> <RatesPanel /> </div> ) export default ExchangeRatesView
files/rxjs-dom/2.0.6/rx.dom.js
Swatinem/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (root, factory) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports && modu...
frontend/src/components/ReceiptPreview.js
OpenCollective/opencollective-website
import React from 'react'; export default ({href, src, srcSet, label=''}) => { return ( <a href={href}> <div> <img src={src} srcSet={srcSet}/> <label>{label}</label> </div> </a> ); };
packages/react-reconciler/src/__tests__/ReactFiberFundamental-test.internal.js
TheBlasfem/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. * * @emails react-core */ 'use strict'; let React; let ReactNoop; let Scheduler; let ReactFeatureFlags; let ReactTestRenderer; let...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefined.js
AgentME/flow
// @flow import React from 'react'; class MyComponent extends React.Component { defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} ...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/List/ExamplePhone.js
pbogdan/react-flux-mui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationChatBubble from 'material-ui/svg-icons/communicatio...
src/components/transactions/transactionsHeader.js
slaweet/lisk-nano
import React from 'react'; import { translate } from 'react-i18next'; import styles from './transactions.css'; const TransactionsHeader = ({ tableStyle, t }) => ( <thead> <tr> <th className={`${tableStyle.headCell} ${styles.centerText}`}>{t('Time')}</th> <th className={`${tableStyle.headCell} ${style...
test/InputSpec.js
yuche/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Input from '../src/Input'; import Button from '../src/Button'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import {shouldWarn} from './helpers'; describe('Input', function () { it(...
ajax/libs/vkui/4.23.0/cssm/components/Tappable/Tappable.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/extends"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import _slicedToArray from "@babel...
ajax/libs/clappr/0.0.26/clappr.js
rileyjshaw/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
app/js/connect-storage/index.js
blockstack/blockstack-portal
import React from 'react' import PropTypes from 'prop-types' import { withRouter } from 'react-router' import { connect } from 'react-redux' import qs from 'query-string' import { SettingsActions } from '../account/store/settings' import { AppHomeWrapper, Shell } from '@blockstack/ui' import Modal from 'react-modal' im...
app/javascript/mastodon/components/admin/Dimension.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { roundTo10 } from 'mastodon/utils/numbers'; import Skeleton from 'mastodon/components/skeleton'; export default class Dimension extends React.PureComponent { static pr...
fields/types/html/HtmlField.js
jstockwin/keystone
import _ from 'lodash'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-html-' + lastId++; } // Workaround for #2834 found here h...
src/component/hero-container/index.js
arn1313/kritter-frontend
import React from 'react'; import ReactDOM from 'react-dom'; import scrollToComponent from 'react-scroll-to-component'; import './_heroContainer.scss'; import img from '../../img/Kritter.png'; import AuthForm from '../auth-form'; import SignUpForm from '../sign-up-form' import { signupRequest, loginRequest, userFetchRe...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js
clemensw/stardust
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleMenuDirectionLeft = () => ( <Dropdown text='Menu' floating labeled button className='icon'> {/* <i class="dropdown icon"></i> */} <Dropdown.Menu className='left'> <Dropdown.Item> <i className='dropdown i...
src/index.js
nsisodiya/react-json-viewer
import React, { Component } from 'react'; import { checkIfArrayIsAOB, checkIfObjectIsOOB, getFirstEle, getType, loopObject } from './util'; import PropTypes from 'prop-types'; import ValueViewer from './ValueViewer'; export default class JSONViewer extends Component { static propTypes = { json: PropTypes.any.is...
client/src/CompConfig/CompConfig.js
Nichsiciul/User-Friendly-CMS
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Col, Form, FormControl, FormGroup, ControlLabel, Glyphicon, Button, Panel } from 'react-bootstrap'; import axios from 'axios'; import { SliderPicker } from 'react-color'; import ColorBullet from './../ColorBullet/ColorBullet.js'; impor...
ajax/libs/yasgui/1.0.3/yasgui.bundled.min.js
nareshs435/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
src/Alert.js
laran/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
node_modules/react-router/es6/Redirect.js
GregSantulli/react-drum-sequencer
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; var string = _React$PropTypes.st...
ajax/libs/react-redux/0.8.2/react-redux.min.js
wout/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu...
src/containers/weather_list.js
richgurney/ReactTemperatureApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = _.map(cityData.list.map(we...
examples/pinterest/app.js
stanleycyang/react-router
import React from 'react'; import { Router, Link } from 'react-router'; import HashHistory from 'react-router/lib/HashHistory'; var history = new HashHistory({ queryKey: 'k' }); var pictures = [ {id: 0, src: 'http://placekitten.com/601/601'}, {id: 1, src: 'http://placekitten.com/610/610'}, {id: 2, src: 'http://p...
app/components/CardPadded/index.js
tqn/tqn.github.io
/** * * CardPadded * */ import React from 'react'; import { Paper } from 'material-ui'; import styles from './styles.css'; export default class CardPadded extends React.Component { constructor(props) { super(props); this.props = props; } render() { return ( <Paper className={styles.cardPadd...
app/javascript/mastodon/features/hashtag_timeline/index.js
TheInventrix/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandHashtagTimeline } from '...
client/src/containers/AssetAdmin/tests/AssetAdminRouter-test.js
open-sausages/silverstripe-assets-gallery
/* global jest, describe, it, pit, expect, beforeEach, jasmine */ // mock sub-components, as they could rely on a Redux store context and not necessary for unit test jest.mock('containers/AssetAdmin/AssetAdmin'); import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { Component as Asset...
node_modules/react-icons/io/nuclear.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoNuclear = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m13.8 21.3c0-2.5 1.2-3.8 3.7-3.8s3.8 1.3 3.8 3.8-1.3 3.7-3.8 3.7-3.7-1.2-3.7-3.7z m0 0c0-2.5 1.2-3.8 3.7-3.8s3.8 1.3 3.8 3.8-1.3 3.7-3.8 3.7-3.7-1.2-3.7-3.7z m21.2 0c...
src/Parser/Core/Modules/Items/Legion/Legendaries/CinidariaTheSymbiote.js
enragednuke/WoWAnalyzer
import React from 'react'; import Wrapper from 'common/Wrapper'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Analyzer from 'Parser/Core/Analyzer'; import ItemDama...
ajax/libs/sir-trevor-js/0.6.2/sir-trevor.min.js
redmunds/cdnjs
/*! * Sir Trevor JS v0.6.2 * * Released under the MIT license * www.opensource.org/licenses/MIT * * 2016-10-17 */ !function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports.SirTrevo...
packages/material-ui-icons/src/SignalCellular2Bar.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M2 22h20V2z" /><path d="M14 10L2 22h12z" /></React.Fragment> , 'SignalCellular2Bar');
src/routes/admin/Admin.js
stanxii/laiico
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...