path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
node_modules/react-router/es6/Link.js
rblin081/drafting-client
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components/client/PagePreview.js
PtitNoony/abretonworkshop
'use strict'; import React from 'react'; import { browserHistory, Link } from 'react-router-dom'; export default class PagePreview extends React.Component { render() { return ( <Link to={this.props.url}> <div className="abw_pagePreview" > <div className=...
src/TextareaAutosize.js
koistya/react-textarea-autosize
/** * <TextareaAutosize /> */ import React from 'react'; import calculateNodeHeight from './calculateNodeHeight'; const emptyFunction = function(){}; export default class TextareaAutosize extends React.Component { static propTypes = { /** * Current textarea value. */ value: React.PropTypes.str...
loc8-react-redux-front-end/src/components/Article/ArticleMeta.js
uberslackin/django-redux-loc8-ARweb
import ArticleActions from './ArticleActions'; import { Link } from 'react-router'; import React from 'react'; const ArticleMeta = props => { const article = props.article; return ( <div className="article-meta"> <Link to={`@${article.author.username}`}> <img src={article.author.image} /> <...
src/PaginationButton.js
tonylinyy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
examples/gatsby_sample/src/pages/404.js
appleboy/react-recaptcha
import React from 'react' import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
examples/CustomPicker/index.android.js
thegamenicorus/react-native-phone-input
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app' AppRegistry.registerComponent('CustomPicker', () => App);
stories/utils/Components/AutoExample/FormComponents/index.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import isEqual from 'deep-eql'; import Markdown from '../../Markdown'; import CodeBlock from '../../CodeBlock'; import {Container, Row, Col} from 'wix-style-react/Grid'; import {default as WixInput} from 'wix-style-react/Input'; import ToggleSwitch from '...
src/decorators.js
Merri/nuka-carousel
'use strict'; import React from 'react'; const DefaultDecorators = [ { component: React.createClass({ render() { return ( <button style={this.getButtonStyles(this.props.currentSlide === 0)} onClick={this.props.previousSlide}>PREV</button> ) }, ...
test/integration/css-fixtures/bad-custom-configuration-arr-8/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
docs/pages/api-docs/outlined-input.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/outlined-input'; const requireRaw = require.context('!raw-loader!./', false, /\/outlined-input\.md$/); export default functi...
packages/material-ui-icons/src/Score.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 2h1.5v3l2-3h1.7l-2 3 2 3h-1.7l-2-3v3H12V5zM7 7.25h2.5V6.5H7V5h4v3.75H8.5v.75H11V11H7V7.25zM19 13l-6 6-4-4-4 4v-2.5l4-4 4...
client/extensions/woocommerce/app/order/order-activity-log/new-note.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import Button from 'components/butto...
node_modules/react-icons/fa/pinterest-square.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaPinterestSquare = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30.9 2.9q2.6 0 4.5 1.8t1.9 4.6v21.4q0 2.7-1.9 4.6t-4.5 1.8h-16.2q1.9-2.7 2.4-4.6 0.2-0.8 1.2-4.7 0.4 0.9 1.6 1.5t2.5 0.6q4.1 0 6.6-3.3t2.6-8.3q0-1.9-0.8-3.6t...
tests/lib/rules/vars-on-top.js
KenPowers/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
examples/validation/components/user-form.js
nikitka/react-redux-form
import React from 'react'; import { connect } from 'react-redux'; import { Field, Form, Errors, actions } from 'react-redux-form'; import SubmitButton from './submit-button'; const isRequired = (val) => val && val.length > 0; const lessThan10 = (val) => { const lessThan = 10; if (!(val < 10)) { return { lessT...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-13/friend-detail/FriendFlipper.js
Brandon-J-Campbell/codemash
import React from 'react'; import styles from './FriendFlipper.css'; export default class FriendFlipper extends React.Component { render() { return ( <div className={styles.flipWrapper}> <div className={styles.flipper}>{this.renderFront()}</div> </div> ); } renderFront() { const...
files/rxjs/2.4.8/rx.lite.extras.js
megawac/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...
packages/material-ui-icons/src/BookmarkBorderSharp.js
allanalexandre/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="M19 3H5v18l7-3 7 3V3zm-2 15l-5-2.18L7 18V5h10v13z" /></g></React.Fragment> , 'BookmarkBorderSharp');
ajax/libs/react-bootstrap/0.22.3/react-bootstrap.min.js
vetruvet/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ...
src/Chip/Chip.spec.js
matthewoates/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import sinon from 'sinon'; import Chip from './Chip'; import getMuiTheme from '../styles/getMuiTheme'; const Avatar = (props) => <div {...props} />; Avatar.muiName = 'Avatar'; describe('<Chip />', () => { ...
src/components/icons/CollapseIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const CollapseIcon = props => ( <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" fill="white" width="18px" height="18px" x="0px" y="0px" viewBox="0 0 18 18"> {props.title && <title>{props.title}</title>} <g id="collapse" transform="translate(-872...
src/components/NumberInput/NumberInput-story.js
joshblack/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 { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withK...
app/containers/FeaturePage/index.js
coocooooo/webapp
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
misc/tabledrag.js
foodcoop/ort
(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...
frontend/components/loaders/PlaylistsLoader.js
matiasgarcia/tubify
import React, { Component, PropTypes } from 'react'; import Loader from './Loader' export default class PlaylistsLoader extends Component { static propTypes = { playlistsData: PropTypes.object.isRequired, playlistsMeta: PropTypes.object.isRequired, loadPlaylists: PropTypes.func.isRequired }; construc...
app/containers/HomePage/NavBox.js
kevinnorris/bookTrading
import React from 'react'; import styled from 'styled-components'; import LinkButton from 'components/LinkButton'; import * as colors from 'utils/colors'; import Title from 'components/Title'; const Wrapper = styled.div` border: ${colors.primaryDark} 2px solid; border-radius: 5px; width: 100%; margin-top: 10p...
app/containers/BannerPage/index.js
iFatansyReact/react-boilerplate-imagine
/* * BannerPage * * List all the Banner */ import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; // import PropTypes from 'prop-types'; // import Immutable from 'immutable'; import H1 fro...
packages/material-ui/src/OutlinedInput/OutlinedInput.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import InputBase from '../InputBase'; import NotchedOutline from './NotchedOutline'; import withStyles from '../styles/withStyles'; export const styles = theme => { const borderColor = theme.palette.type === 'light' ? 'rgba(0...
examples/medium-app/src/js/server-profiles/ServerProfileEdit.js
TiagoJustino/grommet
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. var React = require('react'); var Rest = require('grommet/utils/Rest'); var ServerProfileForm = require('./ServerProfileForm'); var ServerProfileEdit = React.createClass({ contextTypes: { router: React.PropTypes.func.isRequired }, _onTas...
ajax/libs/glamorous/4.4.0/glamorous.umd.js
nolsherry/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) : typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) : (global.glamorous = factory(global.React,global.Glamor)); }(this, (function ...
local-cli/runAndroid/runAndroid.js
ankitsinghania94/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...
ajax/libs/mobx/2.1.0/mobx.umd.js
cdnjs/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.mobx = f()}})(...
node_modules/antd/es/popconfirm/index.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
ajax/libs/material-ui/5.0.0-alpha.20/internal/svg-icons/StarBorder.js
cdnjs/cdnjs
import * as React from 'react'; import createSvgIcon from '../../utils/createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon( /*#__PURE__*/React.createElement("path", { d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2...
app/containers/LanguageProvider/index.js
anhldbk/react-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/components/NewConversationSource.js
DrPandemic/TwiolioRN
// @flow import React, { Component } from 'react'; import { Dimensions, FlatList, View, StyleSheet } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActionCreators } from '../actions'; impo...
examples/clustering/app.js
boundlessgeo/sdk
/** Demo of clustered points in an SDK map. * * Contains a Map and demonstrates some of the dynamics of * using the store. * */ import {createStore, combineReducers} from 'redux'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import SdkMap from '@boundless...
server/client/containers/RunAdHocExperiment/SelectableOptions.js
Agnition/agnition
var React = require('react'); var connect = require('react-redux').connect; var _ = require('underscore'); var bindActionCreators = require('redux').bindActionCreators; var Actions = require('../../actions/Samples'); var utils = require('../../utils/componentUtils'); var mapStateToProps = function (state, ownProps) { ...
actor-apps/app-web/src/app/utils/require-auth.js
ONode/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js
nauman-ahmad-qureshi/adsManagement
/** * 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. * * @provides...
ajax/libs/sockjs-client/1.1.4/sockjs.js
froala/cdnjs
/* sockjs-client v1.1.4 | http://sockjs.org | MIT license */ (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(t...
ajax/libs/babel-core/5.0.7/browser-polyfill.js
2947721120/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...
client/routes/Route.js
reactexcel/todo-relay-graphql-mongo
import React from 'react'; import { IndexRoute, Route, Redirect } from 'react-router'; import ViewerQuery from './ViewerQuery'; import AppContainer from '../components/App/AppContainer'; import FeatureContainer from '../components/Feature/FeatureContainer'; import SignupComponent from '../components/Signup/SignupCompo...
ajax/libs/react-highcharts/8.3.0/ReactHighcharts.js
iwdmb/cdnjs
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts")):"function"==typeof define&&define.amd?define(["react","highcharts"],r):"object"==typeof exports?exports.ReactHighcharts=r(require("react"),require("highcharts")):t.ReactHighcharts=r(t.React,t.Highch...
ajax/libs/handsontable/0.10.0/jquery.handsontable.js
senekis/cdnjs
/** * Handsontable 0.10.0 * 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: Fri Dec 27 2013 17:46:22 GMT+0100 (Central European...
ajax/libs/react-native-web/0.13.15/modules/UnimplementedView/index.js
cdnjs/cdnjs
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENS...
ajax/libs/forerunnerdb/1.3.497/fdb-core.js
honestree/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...
app/components/ListItem/index.js
nimzco/takemyidea-ui
import React from 'react'; import styles from './styles.css'; class ListItem extends React.Component { render() { return ( <li className={ this.props.className || styles.item }> <div className={ styles.itemContent }> { this.props.content } </div> </li> ); } } export ...
src/svg-icons/image/hdr-strong.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrStrong = (props) => ( <SvgIcon {...props}> <path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ...
docs/pages/discover-more/languages.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'discover-more/languages'; const requireDemo = require.context('docs/src/pages/discover-more/languages', false, /\.(js|tsx)$/); co...
packages/material-ui-icons/src/PhotoLibraryOutlined.js
allanalexandre/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="M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z" /><path d="M11.5 11.67l1.69 2.26 2.48-3.1L19 15H9...
src/CantButton.js
hryanjones/kyakarun
import React from 'react'; // constraint suggestions // "a quiet place" // "to be at home" // "an internet connection" // "a real computer" class CantButton extends React.Component { constructor() { super(); this.state = { cant: false, // whether or not to show constraints as sub-options to pick ...
src/svg-icons/device/signal-cellular-2-bar.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/> </SvgIcon> ); DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar); Device...
ajax/libs/highcharts/4.0.4/highcharts.src.js
RNELord/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.4 (2014-09-02) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear...
src/svg-icons/action/restore.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
node_modules/react-three-renderer/lib/descriptors/Geometry/CircleBufferGeometryDescriptor.js
NathanBWaters/website
'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
ajax/libs/yui/3.8.1/simpleyui/simpleyui-debug.js
steakknife/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespace obj...
docs/src/app/components/pages/components/Table/ExampleComplex.js
rhaedes/material-ui
import React from 'react'; import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; const styles = { propContainer: { width: 200, overflow: 'hidden', ...
src/svg-icons/editor/mode-edit.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeEdit = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"...
src/components/__tests__/InfoBar-test.js
kievechua/react-redux-universal-hot-example
import React from 'react'; import ReactDOM from 'react-dom'; import {renderIntoDocument} from 'react-addons-test-utils'; import { expect} from 'chai'; import { InfoBar } from 'components'; import { Provider } from 'react-redux'; import createStore from 'redux/create'; import ApiClient from 'helpers/ApiClient'; const cl...
app/imports/ui/client/components/ForgotPassword/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Meteor } from 'meteor/meteor'; import LinkItem from '../misc/LinkItem'; import { createContainer } from 'meteor/react-meteor-data'; import { Session } from 'meteor/session'; import FeedbackMessage from '../misc/FeedbackMessage'; import { Accounts } from 'meteor/accoun...
src/index.js
sairion/svg-inline-react
import React from 'react'; import { string, bool } from 'prop-types'; import { getSVGFromSource, extractSVGProps } from './util'; const process = process || { env: {} }; export default class InlineSVG extends React.Component { componentDidMount() { const { children } = this.props; if ("productio...
packages/mui-icons-material/lib/esm/SettingsRemoteSharp.js
oliviertassinari/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M16 9H8v14h8V9zm-4 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1.41C9.37 6.56 10.62 6 12 6s2.63.56 3.54 1.46l1.41-1.41C15.68 4.78 13.93 4 1...
src/parser/shared/modules/spells/bfa/azeritetraits/Savior.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import { formatNumber } from 'common/format'; /** Y...
frontend/src/components/ProfilePhotoUpload.js
OpenCollective/opencollective-website
import React from 'react'; import ImageUpload from './ImageUpload'; import ProfilePhoto from './ProfilePhoto'; export default (props) => { const states = { template: () => <ProfilePhoto url={props.value} size='110px' />, uploading: () => <ProfilePhoto url={props.value} size='110px' spinner='yes'/> }; re...
packages/wix-style-react/src/Tag/test/Tag.visual.js
wix/wix-style-react
import React from 'react'; import Tag from '../Tag'; import Box from '../../Box'; import { storyOfAllPermutations } from '../../../test/utils/visual/utils'; const Story = props => <Tag {...props}>This is a very beautiful tag!</Tag>; const ThemeStory = props => ( <Box direction={'vertical'}> {['tiny', 'small', '...
src/TextField/TextFieldLabel.js
mit-cml/iot-website-source
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; function getStyles(props) { const defaultStyles = { position: 'absolute', lineHeight: '22px', top: 38, transition: transitions.easeOut(), zIndex: 1, // Needed to display label above Chr...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
christiantinauer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import aFileWithExtUnknown from './assets/aFileWithExt.unknown'; const text = aFileWithExtUnknown.includes('...
src/common/components/FormsyAutoText.js
deflexor/react_route_seek
import React from 'react'; import Formsy from 'formsy-react'; import AutoComplete from 'material-ui/lib/auto-complete'; import { _setMuiComponentAndMaybeFocus } from 'formsy-material-ui/lib/utils'; let FormsyAutoText = React.createClass({ mixins: [ Formsy.Mixin ], propTypes: { name: React.PropTypes.string.isR...
src/node_modules/redux-devtools-dock-monitor/node_modules/babel-runtime/node_modules/core-js/client/core.js
oferkafry/gps-tracker-ui
/** * core-js 1.2.6 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
js/settings/StatusBarItem.js
sotayamashita/wizardsLifeCounter
// @flow import React from 'react'; import { View, Text, TouchableOpacity, Switch, StyleSheet } from 'react-native'; import { StyledItem, StyledItemIcon, StyledItemIconImage, StyledItemContent } from './StyledItem'; const StatusBarItem = ({ isStatusBarEnabled, onUserChangeStatusBar }) => { return ( <StyledItem>...
scripts/release/build-release-locally-commands/update-version-numbers.js
acdlite/react
#!/usr/bin/env node 'use strict'; const {logPromise, updateVersionsForNext} = require('../utils'); const theme = require('../theme'); module.exports = async ({reactVersion, tempDirectory, version}) => { return logPromise( updateVersionsForNext(tempDirectory, reactVersion, version), theme`Updating version n...
examples/js/others/demo.js
AllenFang/react-bootstrap-table
import React from 'react'; import MouseEventTable from './mouse-event-table'; import TableInTabs from './table-in-tabs'; import GetPageNumByKeyTable from './expose-api-table'; import PrintableTable from './printable-table'; import { Col, Panel } from 'react-bootstrap'; class Demo extends React.Component { render() {...
app/javascript/mastodon/components/icon_button.js
Craftodon/Craftodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.stri...
ajax/libs/react-data-grid/0.14.41/react-data-grid.js
Piicksarn/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
src/svg-icons/image/crop-16-9.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
ajax/libs/react-native-web/0.14.13/exports/TouchableWithoutFeedback/index.js
cdnjs/cdnjs
/** * 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. * * * @format */ 'use strict'; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnProper...
ajax/libs/jquery-localScroll/1.3.1/jquery.localScroll.js
mohitbhatia1994/cdnjs
/*! * jQuery.localScroll * Copyright (c) 2007-2013 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT * http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html * @author Ariel Flesler * @version 1.3.1 */ ;(function( $ ){ var URI = location.href.replace(/#.*/,''); // ...
applications/backend/assets/d6329bfd/jquery.min.js
mobidevpublisher/backvendor-demo
/*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
client/src/javascript/components/modals/torrent-details-modal/TorrentHeading.js
jfurrow/flood
import {FormattedMessage} from 'react-intl'; import classnames from 'classnames'; import React from 'react'; import stringUtil from '@shared/util/stringUtil'; import torrentStatusMap from '@shared/constants/torrentStatusMap'; import ClockIcon from '../../icons/ClockIcon'; import DownloadThickIcon from '../../icons/Dow...
app/scripts/main.js
moyogo/prototypo
import '../styles/main.scss'; import '../../node_modules/normalize.css/normalize.css'; import '../../node_modules/please-wait/build/please-wait.css'; import '../../node_modules/react-select/dist/react-select.css'; import '../../node_modules/react-joyride/lib/styles/react-joyride-compiled.css'; import '../../node_module...
website/irulez/src/components/admin_menu/fields/MultipleSelectionField.js
deklungel/iRulez
import React, { Component } from 'react'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import MenuItem from '@material-ui/core/MenuItem'; import FormControl from '@materia...
server/sonar-web/src/main/js/apps/account/organizations/OrganizationCard.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
webClient/components/Component.js
GContaldi/water-my-plants
import React from 'react'; const propTypes = { param: React.PropTypes.string.isRequired, value: React.PropTypes.number.isRequired }; class Component extends React.Component { static get propTypes() { return propTypes; } render() { return ( <div data-key={this.props.key}>{`${this.props.param}: ${thi...
projects/file-finder-web-app/src/main/resources/static/video-js/video.novtt.dev.js
jizzoe/swing-tech
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
app/components/pages/page.js
ramsaylanier/ApolloPress
import React from 'react'; import PageAnimations from './PageAnimations.js'; import { AnimateItem } from '../../animations.js'; import CSSModules from 'react-css-modules'; import styles from './page.scss'; @CSSModules(styles, {allowMultiple:true}) class Page extends React.Component{ componentDidMount(){ let animat...
src/routes/contact/Contact.js
SgtRock91/FantasyOptimizer
/** * 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-...
MyFit/src/utilities/PrivateRouteForAdmin.js
zenddignite/MyFit
import React from 'react' import { Route, Redirect } from 'react-router-dom' import Auth from './Auth' const PrivateRoute = ({component: Component, ...rest}) => ( <Route {...rest} render={props => ( Auth.isInRole('Admin') ? ( <Component {...props} /> ) : ( <...
docs/src/pages/getting-started/page-layout-examples/pricing/Pricing.js
allanalexandre/material-ui
import React from 'react'; import AppBar from '@material-ui/core/AppBar'; import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/...
wp-content/plugins/wp-migrate-db/asset/js/script.min.js
baronwatts/awesomeco
var migration_complete,migration_complete_events,migrate_table_recursive,execute_next_step;!function(a){function b(a,b,c){return c=c||"0",a+="",a.length>=b?a:new Array(b-a.length+1).join(c)+a}function c(){y=0,counter_display=a(".timer"),label=wpmdb_strings.time_elapsed+" ",u=setInterval(e,1e3)}function d(){hours=Math.f...
ajax/libs/forerunnerdb/1.3.562/fdb-legacy.js
keicheng/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...
packages/material-ui-icons/src/SettingsCellSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM6 0v20h12V0H6zm10 16H8V4h8v12z" /> , 'SettingsCellSharp');
src/Glyphicon.js
mengmenglv/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
ajax/libs/rxjs/2.3.20/rx.lite.compat.js
MMore/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
packages/xo-web/src/common/shortcuts.js
vatesfr/xo-web
import Component from 'base-component' import React from 'react' import { Shortcuts as ReactShortcuts } from 'react-shortcuts' import { forEach, remove } from 'lodash' let enabled = true const instances = [] const updateInstances = () => { forEach(instances, instance => instance.forceUpdate()) } export const enabl...
ajax/libs/jquery/1.8.3/jquery.min.js
visualjeff/cdnjs
/*! 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===...
client/utils/requireAuthForHomePage.js
EricDav/PostIt
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; export default function(ComposedComponent) { class AuthenticateHome extends React.Component { componentWillMount() { if (this.props.isAuthenticate...
src/opensource/jquery/js/jquery-1.7.2.min.js
mpschr/zock
/*! 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...
__tests__/components/icons/Status-test.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Status from '../../../src/js/components/icons/Status'; describe('Status', () => { it('has correct default options', () => { const component = renderer.create( ...