path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/muiThemeable.js
izziaraffaele/material-ui
import React from 'react'; import getMuiTheme from './styles/getMuiTheme'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComponent) { const MuiComponent = (props, {muiTheme = getMuiTheme()}) =>...
index.android.js
andriantosg/react-native-echo
/** * 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 Echo extends Component { render() { return ( <View style={styles.container}> ...
src/components/pieces/TopNav.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; import classNames from 'classnames'; import Animation from 'react-addons-css-transition-group'; import AlertActions from '../../library/alerts/actions/AlertActions'; import { Link, browserHistory } from 'react-router'; import UserStore from '../../library/authentication/stores/...
ajax/libs/yui/3.5.1/datatable-body/datatable-body.js
rivanvx/cdnjs
YUI.add('datatable-body', function(Y) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, ...
js/components/card/card-header-and-footer.js
yasster/Divide-react-native
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text } from 'native-base'; import styles from './styles'; const { replaceAt, } = actions; clas...
ajax/libs/redux-form/0.0.9/react-redux.js
brix/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReduxForm"] = facto...
src/components/common/header/Header.js
great-design-and-systems/cataloguing-app
import '../../../images/profile.jpg'; import * as actions from '../../../actions/HeaderActions'; import { APP_NAME, LABEL_BOOKS, LABEL_LIBRARY, LABEL_SETTINGS } from '../../../labels/'; import FontAwesome from 'react-fontawesome'; import { HeaderControls } from './HeaderControls'; import Nav from 'react-bootstrap/li...
src/components/Containers.react.js
phnz/kitematic
import $ from 'jquery'; import _ from 'underscore'; import React from 'react'; import Router from 'react-router'; import containerStore from '../stores/ContainerStore'; import ContainerList from './ContainerList.react'; import Header from './Header.react'; import metrics from '../utils/MetricsUtil'; import shell from '...
src/deprecated/Navbar.js
Lucifier129/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import deprecated from 'react-prop-types/lib/deprecated'; import elementType from 'react-prop-types/lib/elementType'; import Grid from '../Grid'; import NavBrand from '../NavBrand'; import tbsUtils, { bsClass, bsStyles } from '../utils/bootstrapUtils'; i...
modules/react-move/src/components/Move.js
Scratch-it/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; export class Move extends ReactCSS.Component { classes() { return { 'default': { outer: { opacity: this.props.inStartOpacity, transform: this.props.inStartTransform, transition: this.props.inSt...
client/views/omnichannel/directory/chats/contextualBar/DepartmentField.js
VoiSmart/Rocket.Chat
import React from 'react'; import { useTranslation } from '../../../../../contexts/TranslationContext'; import { AsyncStatePhase } from '../../../../../hooks/useAsyncState'; import { useEndpointData } from '../../../../../hooks/useEndpointData'; import Field from '../../../components/Field'; import Info from '../../.....
examples/forms-bootstrap/src/components/dialogs-create-wizard-generic/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import config from './config'; export default createReactClass({ displayName: 'Hook', render: function() { return ( <div style={{ padding: '20px' }}> <button className="btn btn-primary" onClick={() ...
node_modules/echarts-for-react/src/echarts-for-react.js
rekyyang/ArtificalLiverCloud
import echarts from 'echarts'; import React from 'react'; import elementResizeEvent from 'element-resize-event'; const ReactEcharts = React.createClass({ propTypes: { option: React.PropTypes.object.isRequired, notMerge: React.PropTypes.bool, lazyUpdate: React.PropTypes.bool, ...
node_modules/axios/lib/utils.js
ishan993/IshanBlogReactRedux
'use strict'; var bind = require('./helpers/bind'); /*global toString:true*/ // utils is a library of generic helper functions non-specific to axios var toString = Object.prototype.toString; /** * Determine if a value is an Array * * @param {Object} val The value to test * @returns {boolean} True if value is a...
packages/material-ui-icons/src/QueueMusicTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="16" cy="17" r="1" opacity=".3" /><path d="M3 10h12v2H3zM3 14h8v2H3zM3 6h12v2H3z" /><path d="M17 14.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5v8.18zM1...
node_modules/react/lib/ReactErrorUtils.js
wojtczat/WeatherApp
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
ajax/libs/angular-google-maps/2.0.17/angular-google-maps.js
blairvanderhoof/cdnjs
/*! angular-google-maps 2.0.17 2015-03-16 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, ...
packages/react-ui-core/src/Photo/__tests__/Photo-test.js
rentpath/react-ui
import React from 'react' import { shallow } from 'enzyme' import renderer from 'react-test-renderer' import ThemedPhoto from '../Photo' const Photo = ThemedPhoto.WrappedComponent const url = '/foo' const fallbackUrl = '/fallbackWah' describe('Photo', () => { const setup = props => ( shallow( <Photo ...
src/parser/warlock/demonology/modules/pets/PetTimelineTab/TabComponent/PetRow.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import Icon from 'common/Icon'; class PetRow extends React.PureComponent { static propTypes = { className: PropTypes.string, pets: PropTypes.array, start: PropType...
src/server/server.js
Frezc/Share-Favors-App
import 'babel-polyfill'; import Express from 'express'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import React from 'react' import { Router, RouterContext, match } from 'react-router'; import { renderToString } fr...
frontend/node_modules/react-router/es/Route.js
goodman001/20170927express
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 _classCallCheck(instance, Constructor) { if (!(insta...
WorldMoodTracker/js/components/Header.js
kavithaenair/kavithaenair.github.io
import React from 'react'; import styles from '../../../css/bootstrap.min.css'; import customStyles from '../../css/style.css'; export default class Header extends React.Component { render() { return ( <nav className={[styles.navbar].join(' ')}> <div className={styles.container}...
src/components/ui/SignInForm/index.js
Starotitorov/online-notes
import React from 'react'; import PropTypes from 'prop-types'; import './index.scss'; export default class SignInForm extends React.Component { static propTypes = { onSubmit: PropTypes.func.isRequired }; constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind...
src/ui/Field.js
RoyalIcing/gateau
import React from 'react' import { findDOMNode } from 'react-dom' import { Seed } from 'react-seeds' function sizeTextAreaToFit(el) { const { style } = el style.height = '1px' const measuredHeight = `${ el.scrollHeight + el.offsetHeight - el.clientHeight }px` style.height = measuredHeight style.resize = 'none' ...
src/project/WorkingSetView.js
zhukaixy/brackets
/* * Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the ri...
ajax/libs/ionic/0.9.17-alpha/js/ionic.js
a8m/cdnjs
/*! * Copyright 2013 Drifty Co. * http://drifty.com/ * * Ionic, v0.9.17 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @helloimben, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */; // Create namespaces window.ionic...
js/components/Home.js
taylordaug/site
import React from 'react'; export class Home extends React.Component { render() { return ( <div className="home"> </div> ) } } export default Home;
client/app/src/pages/NotFoundPage/index.js
RyanCCollins/meetup-event-planner
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; const NotFound = () => ( <div className={styles.container}> <h1 className={styles.header}>Not Found</h1> </div> ); export default cssModules(NotFound, styles);
test/passing-plural-ref-to-child.js
benstepp/rrf
import React, { Component, PureComponent } from 'react' import { mount } from 'enzyme' import ref from '../src' describe('Passing plural references', () => { it('adds the reference to refs', () => { class Test extends Component { render() { return <ChildComponent reference={ref(this, 'letters')} />...
src/js/views/cincin.js
astagi/cincin
import Container from 'react-container'; import React from 'react'; import { Link, UI } from 'touchstonejs'; import Timers from 'react-timers'; import getBarStore from '../stores/barstore' module.exports = React.createClass({ mixins: [Timers], componentDidMount () { let watchID = navigator.acceleromete...
src/index.js
ChinaCEO/React-Qa
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/views/About/index.js
coolday4me/react-starter-kit
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './styles.less'; import bemHelper from '../../libs/utils/bemHelper'; import { API } from '../../constants'; const getClassName = bemHelper('About-Container'); export class Demo extends Component { render() { const { query } = ...
front/app/js/components/controls/common/Animate.js
nudoru/React-Starter-3
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {compose, identity} from 'ramda'; import TransitionGroupPlus from 'react-transition-group-plus'; import {NOOP, omit, getDOMElements} from '../../../utils/componentUtils'; /* Wrapper for GreenSock Animations and Reac...
src/svg-icons/device/battery-std.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
node_modules/react-router/es/MemoryRouter.js
SuperUncleCat/ServerMonitoring
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/index.js
kyleturco/redux-tutorial
import 'babel-polyfill' import React from 'react' import { Provider } from 'react-redux' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import routes from './routes' import '../node_modules/bootstrap/dist/css/bootstrap.min.css' import configureStore from './store/configureStor...
my-blog/src/main.js
mozhengFly/test
import React from 'react'; import ReactDOM from 'react-dom'; import Blog from './components/weibo/weibo.js'; import $ from 'jquery'; ReactDOM.render(<Blog />, $('#content')[0]); //$('#content')[0] == document.getElementById('content')
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js
ankitjamuar/cdnjs
/*! * jQuery Mobile 1.4.1 * Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC * http://jquerymobile.com * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ (function ( root, doc, factory ...
docs/app/Examples/modules/Dropdown/Content/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownContentExamples = () => ( <Example...
src/components/Nav/index.js
fuqua/fuqua.github.io
import React from 'react' import { Link } from 'gatsby' import styled from 'styled-components' const NavContainer = styled.div` display: flex; justify-content: space-around; background: #999; color: #fff; ` const StyledLink = styled(Link)` ${tw`no-underline text-inherit font-mono`} color: #fff; padding: ...
test/integration/client-navigation/pages/nav/as-path.js
flybayer/next.js
import React from 'react' export default class extends React.Component { static getInitialProps({ asPath, req }) { return { asPath } } render() { return <div className="as-path-content">{this.props.asPath}</div> } }
src/components/SegmentedControl.js
kidaa/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
3.StockQuote/src/scripts/components/footer.js
TravelingTechGuy/svcc-chrome-extension
import React from 'react'; import PropTypes from 'prop-types'; import './footer.css'; export default class Footer extends React.Component { render() { let size = 'footer ' + this.props.size; return ( <div className={size}> <a href="http://www.travelingtechguy.com" target="_blank">Traveling Tech...
src/svg-icons/image/filter-none.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
docs/src/app/components/pages/components/List/ExampleSettings.js
hai-cea/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; const style...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/sortable-list/index.js
boquiabierto/wherever-content
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; class SortableList extends React.Component { /** * Lifecycle hook. * * @return {void} */ componentDidMount() { this.handleSortableUpdate = this.handleSortableUpdate.bind(this); this...
src/components/Management/AirmetParameterManagementPanel.spec.js
diMosellaAtWork/GeoWeb-FrontEnd
import React from 'react'; import AirmetParameterManagementPanel from './AirmetParameterManagementPanel'; import Panel from '../Panel'; import { mount, shallow } from 'enzyme'; import moxios from 'moxios'; describe('(Component) AirmetParameterManagementPanel', () => { beforeEach(() => { moxios.install(); }); ...
app/javascript/mastodon/features/pinned_statuses/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
packages/mui-icons-material/lib/OfflinePinOutlined.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")...
admin/client/App/screens/Home/components/ListTile.js
rafmsou/keystone
import React from 'react'; import { Link } from 'react-router'; /** * Displays information about a list and lets you create a new one. */ var ListTile = React.createClass({ propTypes: { count: React.PropTypes.string, hideCreateButton: React.PropTypes.bool, href: React.PropTypes.string, label: React.PropType...
WebSite4/Scripts/jquery-1.9.1.js
alekseybochkov/WebRAS
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do ...
node_modules/node-captcha/node_modules/canvas/node_modules/jade/node_modules/stylus/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/node_modules/tap/node_modules/signal-exit/node_modules/standard/node_modules/standard-format/test.js
wenjoy/homePage
#!/usr/bin/env node // This file is automatically ran through standard-format // and checked by standard. Add test cases for the formatter by adding // to this file // eol semicolons var x = 1; // eol whitespace x = 2 // standard-format has nothing to say about unused vars // so this is here to prevent invalid tes...
packages/react-dom/src/shared/checkReact.js
krasimir/react
/** * Copyright (c) 2013-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. * * @flow */ import React from 'react'; import invariant from 'shared/invariant'; invariant( React, 'ReactDOM was loaded before Reac...
Example/components/Error.js
gectorat/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet, Animated, Dimensions} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; var { height: deviceHeight } = Dimensions.get("window"); var styles = StyleSheet.create({ container: { positio...
src/components/Entities/EntitiesContainer.js
stevenhauser/i-have-to-return-some-videotapes
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import immutableToJs from 'utils/immutableToJs'; import level from 'state/models/level'; import Tiles from 'components/Tiles/Tiles'; import 'components/Entities/Entity.scss'; function mapStateToProps(state) { ret...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
tan-jerene/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); export default AppBarExampleIcon;
CompositeUi/src/views/component/NavigableListItemLink.js
kreta-io/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react'; import {Link} ...
src/js/modules/DiagramAttribute.js
fredyagomez/reactjs-D3-V4-grommet
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import * as d3 from 'd3'; export default class DiagramV2 extends Component { constructor (props) { super(props); this.state = {color: 'black', x: props.x, y: props.y, flag_tooltip: false}; } componentWillAppear(callbac...
ajax/libs/react-native-web/0.0.0-466063b7e/exports/Touchable/Position.min.js
cdnjs/cdnjs
import PooledClass from"../../vendor/react-native/PooledClass";var twoArgumentPooler=PooledClass.twoArgumentPooler;function Position(o,t){this.left=o,this.top=t}Position.prototype.destructor=function(){this.left=null,this.top=null},PooledClass.addPoolingTo(Position,twoArgumentPooler);export default Position;
templates/rubix/node-seed/src/common/sidebar.js
jeffthemaximum/jeffline
import React from 'react'; import { Sidebar, SidebarNav, SidebarNavItem, SidebarControls, SidebarControlBtn, LoremIpsum, Grid, Row, Col, FormControl, Label, Progress, Icon, SidebarDivider } from '@sketchpixy/rubix'; import { Link, withRouter } from 'react-router'; @withRouter class ApplicationSidebar exten...
node_modules/rc-table/es/TableHeader.js
yhx0634/foodshopfront
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...
node_modules/react-bootstrap/es/Label.js
saltypaul/SnipTodo
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
src/components/app/QuestionBasic.js
gom3s/math4Kids
import { connect } from 'react-redux' import React, { Component } from 'react'; class QuestionBasic extends Component { render() { return ( <div className="task" style={{ fontSize: '40px', padding: '15px'}}> { this.props.a } { this.props.operator } { this.props.b } = ...
ajax/libs/rxjs/2.5.1/rx.all.js
maruilian11/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 }; ...
ajax/libs/Turf.js/4.1.0/turf.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.turf = f()}})(...
app/components/LoadingIndicator/index.js
Zurico/t7
import React from 'react'; import styles from './styles.css'; function LoadingIndicator() { return ( <div> <div className={styles['sk-fading-circle']}> <div className={styles.skCircle}></div> <div className={styles['sk-circle2']}></div> <div className={styles['sk-circle3']}></div> ...
src/parser/mage/fire/modules/features/HeatingUp.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer, { SELECTED_PLAYER } from 'p...
app/jsx/bundles/assignment_show.js
djbender/canvas-lms
/* * Copyright (C) 2013 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
client/index.js
cape-io/cape-forms-demo
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createRootComponent from '../common'; const initialState = window.__INITIAL_STATE__; if (!initialState) { console.log('initState', initialState); throw new Error('Missing __INITIAL_STATE__'); } const RootComponent =...
stories/navigation.js
emsiengineering/emsi-ui
import { action, linkTo, storiesOf } from '@kadira/storybook'; import { boolean, number, text, withKnobs } from '@kadira/storybook-addon-knobs'; import NavItem from '../src/components/NavItem'; import NavPanel from '../src/components/NavPanel'; import React from 'react'; const stories = storiesOf('NavPanel', module);...
frontend/test/app/components/RetireConfirmationDialog-test.js
dannycoates/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import RetireConfirmationDialog from '../../../src/app/components/RetireConfirmationDialog'; describe('app/components/RetireConfirmationDialog', () => { let props, mockClickEvent, subject; ...
src/DOMRenderer.js
arunchaganty/briefly
import React from 'react'; // Renders an ElementTree into React. class DOMRenderer { render(root, key) { if (root.nodeType === Node.TEXT_NODE) { return root.nodeValue; } else if (root.nodeType === Node.COMMENT_NODE) { return ""; } else if (root.nodeType === Node.ELEMENT_NODE) { let prop...
jquery-1.11.3.min.js
lolfusion/lolfusion.github.io
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
app/routes/home/languageSelector/__tests__/languageSelector.component.spec.js
dleszcz/ladder
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import { spy } from 'sinon'; import { LanguageSelector } from '../languageSelector.component'; import { appLocales } from '../../../../i18n'; describe('LanguageSelector: Component', () => { const defaultProps = { langua...
tests/fixtures/apps/fluxible-router/components/Page.js
mridgway/react-server
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import PageStore from '../stores/PageStore'; class Page extends React.Component { constructor(props, context) { super(props, context); thi...
packages/react-interactions/npm/drag.js
jzmq/react
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-interactions-events/drag.production.min.js'); } else { module.exports = require('./cjs/react-interactions-events/drag.development.js'); }
app/components/VictoryChart.js
7kfpun/AudienceNetworkReactNative
import React from 'react'; import { Dimensions, } from 'react-native'; import { VictoryArea, VictoryAxis, VictoryChart, VictoryTheme, } from 'victory-native'; import moment from 'moment-timezone'; moment.tz.setDefault('America/Los_Angeles'); const window = Dimensions.get('window'); const LineChart = (pro...
node_modules/native-base/Components/Widgets/InputGroup.js
aspanu/threeSeaShells
/* @flow */ 'use strict'; import React from 'react'; import {View} from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import Icon from './Icon'; import Button from './Button'; import computeProps from '../../Utils/computeProps'; import Input from './Input'; import _ from 'lodash'; exp...
public/bower_components/bower/Tests/lib/jquery.js
jphillips05/CAH
/*! * jQuery JavaScript Library v1.4.4 * 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...
ajax/libs/core-js/0.4.5/shim.js
ahocevar/cdnjs
/** * Core.js 0.4.5 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
ajax/libs/react/0.13.2/react-with-addons.js
BenjaminVanRyseghem/cdnjs
/** * React (with addons) v0.13.2 */ (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!=="undefine...
tests/components/Counter/Counter.spec.js
levsero/planning-app-ui
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'components/Counter/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter: 5, ...bindActionCre...
src/main/pileup.js
snaheth/pileup.js
/** * This exposes the main entry point into pileup.js. * @flow */ 'use strict'; import type {Track, VisualizedTrack, VizWithOptions} from './types'; import _ from 'underscore'; import React from 'react'; import ReactDOM from 'react-dom'; // Data sources import TwoBitDataSource from './sources/TwoBitDataSource'; ...
components/priority-view.js
lyahdav/qreminders-rn
import React from 'react'; import {StyleSheet} from 'react-native'; import {Text} from 'react-native'; import {HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY, NO_PRIORITY} from './types'; export class PriorityView extends React.Component { render() { const priority = this.props.priority; const text = PriorityV...
test/pages/LivePage.spec.js
360ls/desktop
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { expect } from 'chai'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import LivePage from '../../app/pages/LivePage'; import configureStore from '../../app/store/configureStore'; function se...
client/src/app/routes/e-commerce/index.js
zraees/sms-project
import React from 'react'; import HtmlRender from '../../components/utils/HtmlRender' export default { path: 'e-commerce', component: require('../../components/common/Layout').default, childRoutes: [ { path: 'products-detail', getComponent(nextState, cb){ System.import('html-loader?-attr...
packages/showcase/sunbursts/basic-sunburst.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/svg-icons/action/face.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
docs/app/Examples/views/Feed/Types/FeedExampleEventsProp.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [{ date: '1 Hour Ago', image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: 'http://semantic-ui.com/images/avatar/small/h...
examples/montage/index.html.bundle-1-0.js
Brycetastic/todomvc
montageDefine("6364dae","core/range-controller",{dependencies:["montage","core/promise","collections/generic-collection"],factory:function(require,exports,module){var Montage = require("montage").Montage; var Promise = require("core/promise").Promise; var GenericCollection = require("collections/generic-collection"); ...
ajax/libs/analytics.js/1.3.9/analytics.js
Rbeuque74/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
ajax/libs/onsen/1.2.2-beta/js/onsenui_all.min.js
pvnr0082t/cdnjs
/*! onsenui - v1.2.2-beta - 2015-02-20 */ function FastClick(layer){"use strict";function bind(method,context){return function(){return method.apply(context,arguments)}}var oldOnClick;this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0...
src/components/ProposalPanel/ProposalPanel.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, FormattedMessage } from 'react-intl'; import ProposalInput from '../ProposalInput'; import ProposalsManager from '../ProposalsManager'; import Accordion from '../Accordion'; import AccordionPan...
src/components/TopBar.js
peragro/peragro-ui
import React from 'react' import Reflux from 'reflux' import { Link } from 'react-router' var NotificationStore = require('../stores/NotificationStore.js'); import auth from '../utils/auth' const Badge = React.createClass({ render: function() { var className = 'fa fa-'+this.props.icon; return ( <li clas...
components/ListView.js
sdumetz/sam
import React from 'react'; import AppView from './AppView'; import GotoView from './GotoView'; import xhrMixin from './mixins/XhrMixin'; export default class ListView extends React.Component{ constructor(props){ super(props) this.state={apps:{},select:-1} } handleClick(i) { var apps = this._getApps()...
Example/www/jquery_1.5.2.min copy 100.js
jiezhao123/PushPlugin-master
/*! * jQuery JavaScript Library v1.5.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. ...
client/admin/settings/groups/GenericGroupPage.js
subesokun/Rocket.Chat
import React from 'react'; import { GroupPage } from '../GroupPage'; import { Section } from '../Section'; export function GenericGroupPage({ _id, sections, ...group }) { const solo = sections.length === 1; return <GroupPage _id={_id} {...group}> {sections.map((sectionName) => <Section key={sectionName} gr...
client/src/header/AdminButton.js
ziel5122/autograde
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; const linkStyle = { textDecoration: 'none', }; const style = { color: 'whitesmoke', fontSize: '16px', lineHeight: '16px', padding: '12px', }; const AdminButton = ({ admin }) => ( admin ? ( <div>...
src/components/NoRouteMatch/index.js
nahody/biografia
import React from 'react'; const NoRouteMatch = () => ( <div className="page-noMatch"> <h2>Sorry but we do have your are looking for.</h2> </div> ) export { NoRouteMatch };
ajax/libs/handsontable/0.10.2/jquery.handsontable.js
voronianski/cdnjs
/** * Handsontable 0.10.2 * 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: Thu Jan 23 2014 23:06:23 GMT+0100 (CET) */ /*jslin...