path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/Input/Input.spec.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import { assert } from 'chai'; import { spy } from 'sinon'; import { createShallow, createMount, getClasses } from '../test-utils'; import Textarea from './Textarea'; import Input, { hasValue, isDirty } from './Input'; describe('<Input />', () => { let shallow; let classes...
test/components/VolumeField.spec.js
sgillespie/beer-recipe-adapter
import chai from 'chai'; import jsdom from 'mocha-jsdom'; import VolumeField from '../../components/VolumeField'; import React from 'react'; import { renderIntoDocument } from 'react-addons-test-utils'; import { simulateChange } from '../test-utils'; import sinon from 'sinon-chai'; import 'mocha-sinon'; chai.should();...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
darioajr/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; imp...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
andrewmaudsley/create-react-app
/** * 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. */ import Rea...
js/dna.js
concord-consortium/react-lab-examples
import React from 'react'; import ReactDOM from 'react-dom'; import Lab from 'react-lab'; import interactive from '../json/dna-interactive.json'; import model from '../json/dna-model.json'; class Interactive extends React.Component { render() { return ( <div> <Lab interactive={interactive} model={m...
app/javascript/mastodon/components/relative_timestamp.js
primenumber/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ today: { id: 'relative_time.today', defaultMessage: 'today' }, just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time...
modules/components/__tests__/Route-test.js
masterfung/react-router
var expect = require('expect'); var React = require('react'); var Router = require('../../index'); var DefaultRoute = require('../DefaultRoute'); var Route = require('../Route'); var { Foo, Bar } = require('../../TestUtils'); describe('Route', function () { it('renders default child route if path match but no handl...
ajax/libs/rxjs/2.4.7/rx.compat.js
sitic/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 }; ...
client/modules/App/components/About/UnAuthWidget/UnAuthWidget.js
jessicarobins/det
import React, { Component, PropTypes } from 'react'; import RestartingTypist from './RestartingTypist/RestartingTypist'; import { Button } from 'reactstrap'; import * as _ from 'lodash'; if (process.env.BROWSER) { require('./UnAuthWidget.scss'); } export class UnAuthWidget extends Component { constructor(props...
src/containers/Student/StudentEvents.js
llukasxx/school-organizer-front
import React from 'react' import { connect } from 'react-redux' import * as actions from '../../redux/modules/EventsReducer' import { allEventsArraySelector } from '../../selectors/EventsSelector' import EventsPanel from '../../components/Events/EventsPanel' export class StudentEvents extends React.Component { co...
local-cli/generator/templates/index.ios.js
christopherdro/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class <%= name %> extends Component { render() { return ( <View style={styles.contain...
lib/jquery-1.7.1.min.js
gregjacobs/jquery-fillmore
/*! 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...
ajax/libs/react-move/4.0.1/react-move.js
cdnjs/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (global = global || self, factory(global.ReactMove = {}, global.React)); }(this, function (exports,...
src/doc/Timer.js
wangboy/health-client
/** * Created by wangbo on 2016/12/1. */ import React from 'react'; import './Timer.css' import 'es6-promise' import 'isomorphic-fetch' class Timer extends React.Component { constructor(props) { super(props); this.state = { seconds: 0, resetTimes: 0, text: '', sel: '10', fet...
src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js
jonhester/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/Rainbow/WIDEBundle/Resources/public/lib/ext-js/docs/output/Ext.picker.Month.js
cristi23/WIDE
Ext.data.JsonP.Ext_picker_Month({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Alternate names</h4><div class='alternate-class-name'>Ext.MonthPicker</div><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.Base' rel='Ext.Base' class='docClass'>Ext.Base</a><div class='subclass '><a href...
packages/react-native/src/login/login-form.js
js-accounts/react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { View, Text, TextInput, Button, ActivityIndicator, StyleSheet } from 'react-native'; import UserField from './components/user-field.container'; import PasswordField from './components/password-field.container'; export class LoginFor...
packages/mineral-ui-icons/src/IconDeviceHub.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 IconDeviceHub(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
maksad/react-router
import React from 'react'; class Grades extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments; return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment.grade} - {assi...
src/Parser/Druid/Guardian/Modules/Sets/Tier21_4P.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import ItemHealingDone from 'Main/ItemHealingDone'; import SPELLS from 'common/SPELLS'; /** * T21 4p incr...
ajax/libs/angular-azure-mobile-service/1.0.2/angular-azure-mobile-service.js
shallaa/cdnjs
'use strict'; angular.module('azure-mobile-service.module', []) .service('Azureservice', function Azureservice($q) { var API_URL = 'https://<AZURE_APP_NAME>.azure-mobile.net/'; var API_KEY = '<AZURE_APP_API_KEY>'; var VAILD_OAUTH_PROVIDERS = ['google', 'twitter', 'facebook', 'windowsaccount', 'windowsaz...
src/index.js
tanykim/julie-and-julia
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import 'bootstrap-css-only/css/bootstrap.min.css' import './index.css'; ReactDOM.render( ( <App/> ), document.getElementById('root') );
ajax/libs/yui/3.5.0pr2/event-custom-base/event-custom-base.js
khasinski/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
node_modules/react-router/es6/RouterContext.js
ajkhatibi/wheevy
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
app/routes.js
InfiniteLibrary/infinite-electron
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import BookDetailsPage from './containers/BookDetailsPage'; import ReaderPage from './containers/ReaderPage'; export default ( <Route path="/" component={App...
src/components/Header.js
kipp0/course_directory
import React from 'react'; import { NavLink } from 'react-router-dom'; // for setting active styles or classes for navlink items // activeStyle={} // activeClassName={} const Header = () => ( <header> <span className="icn-logo"><i className="material-icons">code</i></span> <ul className="main-nav"> <li...
fixtures/nesting/src/legacy/createLegacyRoot.js
ArunTesco/react
/* eslint-disable react/jsx-pascal-case */ import React from 'react'; import ReactDOM from 'react-dom'; import ThemeContext from './shared/ThemeContext'; // Note: this is a semi-private API, but it's ok to use it // if we never inspect the values, and only pass them through. import {__RouterContext} from 'react-route...
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { fetchFollowRequests } from 'mastodon/actions/accounts'; import { connect } from 'react-redux'; import { NavLink, withRouter } from 'react-router-dom'; import IconWithBadge from 'mastodon/components/icon_with_badge'; import { me } from 'mastodon/ini...
client/modules/accounts/containers/auth/authContainer.js
evereveofficial/reaction
import _ from "lodash"; import React, { Component } from "react"; import PropTypes from "prop-types"; import { Meteor } from "meteor/meteor"; import { Router } from "/client/api"; import { composeWithTracker } from "/lib/api/compose"; import { SignIn, SignUp, LoginButtons } from "../../components"; import { MessagesCon...
src/js/components/icons/base/Power.js
odedre/grommet-final
/** * @description Power SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
ajax/libs/react-data-grid/0.12.22/react-data-grid.min.js
honestree/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.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[...
frontend/tests/routes/Counter/components/Counter.spec.js
blalasaadri/TechTalent
import React from 'react'; import { bindActionCreators } from 'redux'; import { Counter } from 'routes/Counter/components/Counter'; import { shallow } from 'enzyme'; describe('(Component) Counter', () => { let _props, _spies, _wrapper; beforeEach(() => { _spies = {}; _props = { counter : 5, .....
src/components/Progress/__tests__/ProgressIndicator.spec.js
propertybase/react-lds
import React from 'react'; import { shallow } from 'enzyme'; import ProgressIndicator from '../ProgressIndicator'; import ProgressIndicatorItem from '../ProgressIndicatorItem'; const getProgress = (props = {}) => shallow( <ProgressIndicator {...props}> <ProgressIndicatorItem title="A" /> <ProgressIndicatorI...
src/app/App.js
hiubers/pick
import React from 'react' import Minibar from './minibar/Minibar' class App extends React.Component { render() { return <Minibar /> } } export default App
src/components/GroupInput.js
wookiecookie87/lunch_group_creator_with_reactjs
import React from 'react' class GroupInput extends React.Component { constructor(props, context) { super(props, context); this.state = { group_num : '', min_num : '' } } handleClick () { if(!this.state.group_num || parseInt(this.state.group_num) == 0) { alert("Please enter group number."); return...
src/Glyphicon.js
snadn/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...
src/client.js
JohnTasto/housing-frontend
import '@hackoregon/component-library/src/global.styles.css'; // eslint-disable-next-line import '!style-loader!css-loader!@hackoregon/component-library/assets/leaflet.css'; import React from 'react'; import { syncHistoryWithStore } from 'react-router-redux'; import { render } from 'react-dom'; import { Provider } fr...
chrome/browser/resources/chromeos/login/oobe.js
Plain-Andy-legacy/android_external_chromium_org
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Out of the box experience flow (OOBE). * This is the main code for the OOBE WebUI implementation. */ <include src="login_commo...
ajax/libs/jquery/1.7.2/jquery.min.js
fjsnogueira/cdnjs
/*! 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...
frontend/app_v2/src/components/DashboardCreate/DashboardCreatePresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import DashboardLandingPresentation from 'components/DashboardLanding/DashboardLandingPresentation' function DashboardCreatePresentation({ tileContent, headerContent, site }) { return <DashboardLandingPresentation tileContent={tileContent} headerC...
packages/material-ui-icons/src/BrightnessLowOutlined.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="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zm-2 5.79V18h-3.52L12 20.48 9.52 18H6...
examples/src/components/RemoteSelectField.js
mr-wildcard/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
src/js/components/Retail/partial/SpeechToText.js
ajainsyn/project
import React, { Component } from 'react'; import recognizeMicrophone from 'watson-speech/speech-to-text/recognize-microphone'; import {Transcript} from './transcript'; class SpeechToText extends Component { constructor() { super(); this.reset = this.reset.bind(this); this.captureSettings = th...
ajax/libs/primereact/4.0.0/components/tieredmenu/TieredMenuSub.min.js
cdnjs/cdnjs
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TieredMenuSub=void 0;var _react=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_classnames=_interopRequireDefault(require("classnames")),_DomHandler=_interopRequireDefault(require("../utils/Do...
spreadsheet_site/src/index.js
xsami/spreadsheet
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './components/App/'; import CredentialsForm from './components/CredentialsForm' import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); ReactDOM.render(<Cre...
node_modules/react-dom/lib/EventPluginUtils.js
thenatural09/Bread
/** * Copyright 2013-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/components/AlbumArt.js
lsweatman/GPMDPWebController
/** * Created by lukes on 1/21/2017. */ import React from 'react'; import PropTypes from 'prop-types'; export default class albumArt extends React.Component { render() { return ( <div className="album-art-div base-div"> <img id="album-art-box" src={this.props.albumArtURL} ...
ajax/libs/material-ui/5.0.0-alpha.19/node/Tooltip/Tooltip.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.testReset = testReset; exports.default = exports.styles ...
ajax/libs/react-native-web/0.0.0-da3429ed3/cjs/vendor/react-native/VirtualizedSectionList/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var React=_interopRequireWildcard(require("react")),_View=_interopRequireDefault(require("../../../exports/View")),_VirtualizedList=_interopRequireDefault(require("../VirtualizedList")),_invariant=_interopRequireDefault(require("fbjs/lib/invariant"));function _i...
karma.conf.js
bokuweb/react-motion-menu
module.exports = (config) => { config.set({ basePath: '', frameworks: ['mocha', 'browserify'], files: [ 'test/**/*.js', ], // list of files to exclude exclude: [ ], browserify: { debug: true, extensions: ['.js'], transform: [ require('babelify').con...
src/components/FollowUpStatus.js
FiviumAustralia/RNSH-Pilot
import React, { Component } from 'react'; import Panel from './Panel'; import { Select, DateTimeInput } from './widgets'; import styles from './FollowUpStatus.scss'; export default class FollowUpStatus extends Component { constructor () { super(); this.state = { deceased: false, }; } handleSta...
src/admin/components/UsersList/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Table from '@mui/material/Table'; import TableHead from '@mui/material/TableHead'; import TableBody from '@mui/material/TableBody'; import TableFooter from '@mui/material/TableFooter'; import T...
static/scripts/gis/gxp/plugins/SelectedFeatureActions.js
flavour/iscram
/** * Copyright (c) 2008-2011 The Open Planning Project * * Published under the GPL license. * See https://github.com/opengeo/gxp/raw/master/license.txt for the full text * of the license. */ /** * @requires plugins/Tool.js */ /** api: (define) * module = gxp.plugins * class = SelectedFeatu...
gatsby-markdown-personal-website/src/components/HeroBanner/index.js
lrsnider/lrsnider.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { useStaticQuery, graphql } from 'gatsby'; import Banner from 'components/ui/Banner'; const HeroBanner = () => { const { markdownRemark } = useStaticQuery(graphql` query { markdownRemark(frontmatter: { category: { eq: "hero section" } }...
src/components/IBPDetails/IBPDetails.js
matthewgallo/portfolio
import React from 'react'; import DetailHeader from '../DetailPage/DetailHeader'; import SectionMaxWidth from '../SectionMaxWidth/SectionMaxWidth'; import Text from '../Text/Text'; import Tag from '../Tag/Tag'; import GradientLink from '../GradientLink/GradientLink'; import IBPheaderImg from '../../assets/images/block...
ajax/libs/yui/3.10.0/event-custom-base/event-custom-base-debug.js
begriffs/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
fixtures/fiber-debugger/src/Fibers.js
cpojer/react
import React from 'react'; import {Motion, spring} from 'react-motion'; import dagre from 'dagre'; // import prettyFormat from 'pretty-format'; // import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; }...
docs/src/Routes.js
herojobs/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
ajax/libs/jquery/1.11.0-beta3/jquery.js
BobbieBel/cdnjs
/*! * jQuery JavaScript Library v1.11.0-beta3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-12-20T22:44Z */ (function( global, factory ) {...
templates/react-native/routes/foo.js
api-platform/generate-crud
import React from 'react'; import { Scene, Actions } from 'react-native-router-flux'; import List from '../components/{{{lc}}}/List'; import Create from '../components/{{{lc}}}/Create'; import Show from '../components/{{{lc}}}/Show'; import Update from '../components/{{{lc}}}/Update'; import {delayRefresh} from '../uti...
src/panels/EmptyPlaceholder/index.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import style from 'HPCCloudStyle/Layout.mcss'; // used for empty placeholders on some pages const classes = [ style.verticalFlexContainer, style.fullWidth, style.halfHeight, style.horizontalCenter, style.verticalCenter, style.textCenter, ].joi...
features/fileCenter/components/fileList.js
zymokey/mission-park
import React from 'react'; import { connect } from 'react-redux'; import FileItem from './fileItem'; class FileList extends React.Component { render(){ let files = this.props.filelist.map(function(item){ return ( <FileItem key={item._id} file={item} /> ); }); return( <div className="file-list"> ...
lib/views/mount-settings.js
koding/kd-atom
'use babel' import { Emitter } from 'atom' import { View } from 'atom-space-pen-views' import React from 'react' import { render } from 'react-dom' import { find } from 'lodash' import MountsTable from './mounts-table' export default class MountSettings extends View { static content({ mounts }) { this.section(...
node_modules/react-icons/md/texture.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdTexture = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15.5 35l19.5-19.5v4.7l-14.8 14.8h-4.7z m19.5-3.4c0 1.8-1.6 3.4-3.4 3.4h-3.2l6.6-6.6v3.2z m-26.6-26.6h3.2l-6.6 6.6v-3.2c0-1.8 1.6-3.4 3.4-3.4z m11.4 0h4.7l-19.5 19.5v...
ajax/libs/angular.js/0.9.15/angular-scenario.js
froala/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/browser/app/BaseRoot.js
TheoMer/este
// @flow import Fela from '../../common/components/FelaProvider'; import React from 'react'; import configureFela from '../configureFela'; import { Provider as Redux } from 'react-redux'; const getFelaMountNode = () => { const node = document.getElementById('stylesheet'); const parent = node && node.parentNode; ...
manager/src/components/Users/Users.js
anchoretics/ztf-work-app
import React from 'react'; import { connect } from 'dva'; import { Table, Pagination, Popconfirm } from 'antd'; import { routerRedux } from 'dva/router'; import styles from './Users.css'; import { PAGE_SIZE } from '../../constants'; const Users = ({ dispatch, list: dataSource, loading, total, page: current }) => { c...
packages/react-scripts/fixtures/kitchensink/src/App.js
GreenGremlin/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, { Component, createElement } from 'react'; import PropTypes from 'prop-types'; class BuiltEmitter extends Component { s...
packages/ringcentral-widgets-docs/src/app/pages/Components/ReplyWithMessage/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ReplyWithMessage from 'ringcentral-widgets/components/ReplyWithMessage'; const props = {}; props.onCancel = () => null; props.onReply = () => null; props.currentLocale = 'en-US'; props.onChange = () => null; props.disabled = false; /** * A example of `Repl...
node_modules/semantic-ui-react/src/lib/AutoControlledComponent.js
IgorKilipenko/KTS_React
/* eslint-disable no-console */ /** * Why choose inheritance over a HOC? Multiple advantages for this particular use case. * In short, we need identical functionality to setState(), unless there is a prop defined * for the state key. Also: * * 1. Single Renders * Calling trySetState() in constructor(), compo...
ajax/libs/rxjs/2.3.9/rx.lite.extras.js
ahocevar/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
src/routes.js
noahehall/udacity-trainschedule
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Page from './containers/page/page.js'; import Main from './containers/main/main.js'; import Notfound from './containers/notfound/notfound.js'; import Start from './containers/start/start.js'; export default ( <Route component={Page} ...
MvcReact/MvcReact/node_modules/reactify/node_modules/react-tools/vendor/fbtransform/transforms/__tests__/react-test.js
slav/reactJsNetExamples
/** * Copyright 2013-2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
src/examples/example/example.js
smollweide/react-speed-dial
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText } from 'material-ui/Card'; import './example.css'; const Example = ({ exampleCode, title, subtitle }) => { const githubSrcUrl = 'https://github.com/smollweide/react-speed-dial/tree/master/src'; return ( <div classN...
es/Input/InputAdornment.js
uplevel-technology/material-ui-next
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 = {...
ajax/libs/webshim/1.15.1-RC1/dev/shims/moxie/js/moxie-html4.js
koggdal/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 ...
ajax/libs/clappr/0.0.4/clappr.js
eduardo-costa/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/javascript/mastodon/features/ui/components/bundle_modal_error.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
__tests__/index.ios.js
Blacktoviche/RNChat
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
exercise-07/src/components/PageNavigation.js
learnapollo/pokedex-react
import React from 'react' export default class PageNavigation extends React.Component { static propTypes = { onClick: React.PropTypes.func.isRequired, isPrevious: React.PropTypes.bool.isRequired, } render () { return ( <div onClick={this.props.onClick} style={{ minWidth: 200 }...
app/javascript/mastodon/features/ui/components/upload_area.js
narabo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.bool, onClose: PropT...
src/svg-icons/device/signal-wifi-3-bar.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0...
node_modules/react-bootstrap/es/CarouselCaption.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
tests/routes/Counter/components/Counter.spec.js
neverfox/react-redux-starter-kit
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
client/decorators/Link.js
springload/wagtaildraftail
import PropTypes from 'prop-types'; import React from 'react'; import { Icon } from 'draftail'; const Link = ({ entityKey, contentState, children }) => { const { url } = contentState.getEntity(entityKey).getData(); return ( <span data-tooltip={entityKey} className="RichEditor-link"> <Icon name={`icon-${...
client/src/components/UserDetails/UserDetails.js
wolnewitz/raptor-ads
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Container, Header, List } from 'semantic-ui-react'; import { getUserDetails } from './actions'; class UserDetails extends Component { constructor(props) { super(props); } componentD...
ajax/libs/vis/0.7.1/vis.js
seogi1004/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.7.1 * @date 2014-03-27 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
src/index.js
shierby/shierby.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Route} from 'react-router-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import './index.css'; import routes from './routes' import App from './App'; import registerServiceWorker from './registerServiceWorker...
components/ProjectContainer.js
owennicol/yaiza
// External modules import React from 'react'; import ExecutionEnvironment from 'exenv'; import { Link } from 'react-router'; import classNames from 'classnames'; import SVGRightChevron from '../components/SVG/SVGRightChevron'; import SVGLeftChevron from '../components/SVG/SVGLeftChevron'; import { default as Video, Pl...
RNApp/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
abhaytalreja/react-native-telescope
/** * 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...
src/pages/Register/index.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import style from 'HPCCloudStyle/Login.mcss'; import getNetworkError from '../../utils/getNetworkError'; import { dispatch } from '../../redux'; import { register } from '../../redux/actions/user'; class Register e...
docs/src/app/components/pages/components/List/ExampleNested.js
kasra-co/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ContentDrafts from 'material-ui/svg-icons/content/draft...
bower_components/sammy/examples/backend/public/javascripts/jquery.js
si618/pi-time
/*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/frontend/utils/debug/createDevToolsWindow.js
inosphe/React-Redux-Webpack-starter
// Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7 import React from 'react'; import { render } from 'react-dom'; import DevTools from '../../views/devTools'; export default function createDevToolsWindow(store) { // Give it a name so it reuses the same window const name = 'Redux DevTools'; co...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
lolaent/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, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id = 0, ...rest }) { return [ { id:...
packages/material-ui-icons/src/UnfoldLessTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z" /...
src/views/NotFoundView/NotFoundView.js
jwoods1/xpress
import React from 'react' import '../../../Libs/styles/bootstrap.css' import '../../../Libs/styles/bootstrap-extend.css' import '../../../Libs/styles/site.css' import '../../../Libs/styles/errors.scss' import { Link } from 'react-router' export class NotFoundView extends React.Component { render () { return ( ...
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js
rhaedes/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithoutAvatar = () => ( <Card> <CardHeader title="Without Avatar" actAsExpander={true} showExpandableButton={true} /> <C...
src/components/Weui/cell/cell_header.js
ynu/res-track-wxe
/** * Created by jf on 15/11/12. */ import React from 'react'; import classNames from 'classnames'; export default class CellHeader extends React.Component { render() { const {className, children, ...others} = this.props; const cls = classNames({ 'weui-cell__bd_hd': true, ...
src/components/time-controls/CurrentTimeDisplay.js
video-react/video-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { formatTime } from '../../utils'; const propTypes = { player: PropTypes.object, className: PropTypes.string }; function CurrentTimeDisplay({ player: { currentTime, duration }, className }) { const format...