path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
showcase/sunbursts/animated-sunburst.js
Apercu/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/hardware/tablet-mac.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletMac = (props) => ( <SvgIcon {...props}> <path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1...
vendor/jquery/jquery.js
JohnnyWorlds/JohnnyWorlds.github.io
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
packages/material-ui-icons/src/PictureInPicture.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z" /></g> , 'PictureInPicture');
perf/dom-react-vs-vanilla/src/app.js
dazld/samples
/** * Copyright 2015 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
ajax/libs/angular.js/1.0.0rc8/angular-scenario.js
sajochiu/cdnjs
/*! * jQuery JavaScript Library v1.7.2 * 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. ...
app/javascript/mastodon/features/ui/components/navigation_panel.js
ikuradon/mastodon
import React from 'react'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; import { profile_directory, showTrends } from 'mastodon/initial_state'; import NotificationsCounterIcon from './notifications_counter_icon'; impo...
ajax/libs/jssip/0.6.3/jssip.js
sevypannella/cdnjs
/* * JsSIP.js 0.6.3 * the Javascript SIP library * Copyright 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan) * Homepage: http://jssip.net * License MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define....
docs/src/components/state-viewer.js
kwangkim/nuclear-js
import React from 'react' import { toJS } from 'nuclear-js' import Code from './code' function formatState(state) { return JSON.stringify(toJS(state), null, ' ').replace(/\{([^{}]+)\}/g, function(match, contents, index, all) { return match.replace(/\n\s+/g, '') }) } export default React.createClass({ comp...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-helper-define-map/node_modules/babel-helper-function-name/node_modules/babel-traverse/lib/path/lib/hoister.js
Crisa221/Lista-Giocatori
"use strict"; exports.__esModule = true; var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck"); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _getIterator2 = require("babel-runtime/core-js/get-iterator"); var _getIterator3 = _interopRequireDefault(_getIterator2); var _babel...
src/routes/import/index.js
tonimoeckel/lap-counter-react
/** * 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 Layout from '../../co...
ajax/libs/rxjs/2.1.15/rx.modern.js
mikelambert/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
node_modules/react-icons/io/ios-pricetag.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosPricetag = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m27.3 10c0-0.9 0.3-1.2 1.2-1.2s1.3 0.3 1.3 1.2-0.4 1.3-1.3 1.3-1.2-0.4-1.2-1.3z m-3.8-7.5h12.5v12.5l-20 22.5-12.5-12.5z m5 10c0.7 0 1.3-0.3 1.7-0.8s0.8-1 0.8-1.7-...
ajax/libs/react-dom/15.3.1-rc.1/react-dom-server.js
sufuf3/cdnjs
/** * ReactDOMServer v15.3.1-rc.1 * * 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 s...
ajax/libs/rxjs/2.2.10/rx.compat.js
neveldo/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, 'u...
node_modules/react-router/es6/Lifecycle.js
lauracurley/2016-08-ps-react
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
dist/react-switch-button.js
gfazioli/react-switch-button
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return ...
ajax/libs/react-native-web/0.0.0-dfb716c98/exports/createElement/index.js
cdnjs/cdnjs
/** * Copyright (c) Nicolas Gallagher. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import AccessibilityUtil from '../../modules/AccessibilityUtil'; import createDOMProps from '../../modules/createDOMProps'; import React fro...
app/javascript/mastodon/components/status_list.js
MitarashiDango/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
stories/select/index.js
shulie/dh-component
import React from 'react'; import { Select } from '../../src'; const Option = Select.Option; import { storiesOf, action, linkTo } from '@kadira/storybook'; const options = { inline: true, propTables: false } storiesOf('Select 选择器', module) .addWithInfo( '选择器', () => ( <div style={{marginLeft: '30px'}...
ajax/libs/react/0.14.0-beta2/JSXTransformer.js
shelsonjava/cdnjs
/** * JSXTransformer v0.14.0-beta2 */ (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!=="undefin...
packages/material-ui-icons/src/GridOn.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-...
test/SplitButtonSpec.js
mmartche/boilerplate-shop
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import SplitButton from '../src/SplitButton'; import MenuItem from '../src/MenuItem'; import Button from '../src/Button'; describe('SplitButton', () => { const simple = ( <SplitButton title='Title...
src/main.js
Clothet/web
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
client/src/components/Accordion/Accordion.js
Taidine/masks-character-tracker
import React, { Component } from 'react'; import Collapse from 'react-collapse'; import './styles.css'; class Accordion extends Component { constructor(props) { super(); this.state = { isOpen: false, }; } toggleOpen = () => { this.setState({isOpen: !this.state.isOpen}); } generateCar...
ui/src/containers/signIn.js
jollopre/mps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { postSignIn } from '../actions/user'; const wrapper = { margin: '0 auto', width: '340px', paddingBottom: '50px', }; class SignIn extends Componen...
source/containers/home-section-container.js
oldirony/portfolio
import React from 'react'; import {connect} from 'react-redux'; import HomeSection from '../components/home-section'; import {unsetScrollTriggered, setActiveSection} from '../actions/home-actions'; function mapStateToProps({home}, {name}){ return { isActive : home.activeSection === name, isScrollTriggered: home.i...
packages/es-components/src/components/navigation/horizontalnav/HorizontalNav.js
TWExchangeSolutions/es-components
import React from 'react'; import { useNavigation } from '../useNavigation'; import { useNavigationItem } from '../useNavigationItem'; const Navigation = useNavigation('horizontal'); function HorizontalNav(props) { return <Navigation {...props} />; } HorizontalNav.Item = useNavigationItem('horizontal'); export d...
src/js/components/Calendar/stories/SundayFirstDay.js
HewlettPackard/grommet
import React from 'react'; import { Box, Calendar, Grommet } from 'grommet'; import { grommet } from 'grommet/themes'; // When the first day of the month is Sunday, and the request of firstDayOfWeek // is Monday, we are verifing we are not missing a week, issue 3253. export const SundayFirstDayCalendar = () => ( <G...
node_modules/material-ui/DatePicker/DatePickerDialog.js
aalpgiray/react-hot-boilerplate-ts
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
packages/material-ui-lab/src/TreeView/TreeView.js
kybarg/material-ui
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import TreeViewContext from './TreeViewContext'; import { withStyles } from '@material-ui/core/styles'; export const styles = { /* Styles applied to the root element. */ root: { padding: 0, margin: 0, listStyle: 'no...
src/main/webapp/static/bootstrap/2.3.1/docs/assets/js/jquery.js
hahhaheheh/lexiu
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
ajax/libs/amplitudejs/3.2.1/amplitude.js
jonobr1/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("Amplitude", [], factory); else if(typeof exports === 'object') exports["Amplitude"] = factory(); els...
packages/icons/src/md/editor/InsertEmoticon.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdInsertEmoticon(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M23.99 4C35.04 4 44 12.95 44 24s-8.96 20-20.01 20S4 35.05 4 24 12.94 4 23.99 4zM24 40c8.84 0 16-7.16 16-16S32.84 8 24 8 8 15.16 8 24s7.16 16 1...
src/pages/packages_overview/PackageOverviewRootPage.js
belaczek/BeerCheese-client
import React from 'react'; import { Container, Row, Col } from 'reactstrap'; import PackageOverviewNav from '../../components/navigation/PackageOverviewNav'; import PriceCalculation from '../../components/packageOverview/PriceCalculation'; const packageOverviewRootPage = (props) => ( <Container> <PackageOv...
src/routes/proposal/ProposalContainer.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, FormattedMessage, FormattedRelative, } from 'react-intl'; import history from '../../history'; import { loadProposal } from '../../actions/proposal'; import Notification from '../../compo...
test/nuclearMixin.spec.js
jordangarcia/nuclear-js-react-addons
import { Reactor, Store } from 'nuclear-js' import expect from 'expect' import React from 'react' import ReactDOM from 'react-dom' import { Provider, nuclearMixin } from '../src/index' import setup from './setup' function mountTestComponent(reactor, children) { class TestComponent extends React.Component { const...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.PureComponent<DefaultProps, Props, State> { static defaultProps: DefaultProps = {}; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extend...
test/PanelSpec.js
PeterDaveHello/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Panel from '../src/Panel'; import Table from '../src/Table'; describe('Panel', function () { it('Should have class and body', function () { let instance = ReactTestUtils.renderIntoDocument( <Panel>Panel content</Panel>...
node_modules/react-icons/io/android-checkbox-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidCheckboxOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m13.2 16.8l5.2 5.2 14.3-14.3 2.3 2.3-16.6 16.6-7.5-7.5z m18.4 14.8v-13.2h3.4v13.2c0 1.8-1.6 3.4-3.4 3.4h-23.2c-1.8 0-3.4-1.6-3.4-3.4v-23.2c0-1.8 1.6-3....
src/layouts/index.js
gomesalexandre/gomesalexandre.github.io
require("prismjs/themes/prism.css"); import React from 'react' import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { Flex, Box } from '@rebass/grid'; import Link from "gatsby-link"; import GoMarkGithub from 'react-icons/lib/go/mark-github'; import {Header, Footer} from '../components'; imp...
src/components/Header/Header.js
alicjakujawa/speedtest
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/visualisation' activeClassName='route--active'> Visualisation </L...
src/app/js/MathCol.js
skratchdot/colorify
import React, { Component } from 'react'; import { Col, Table, Popover } from 'react-bootstrap'; import { withRouter } from 'react-router-dom'; class MathCol extends Component { constructor(props) { super(props); this.state = { hover: false, }; } handleClick = () => { this.props.history.pus...
src/Button.js
natlownes/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
src/main/webapp/js/jquery-1.11.0.js
blebougge/haogrgr-test
/*! * jQuery JavaScript Library v1.11.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-01-23T21:02Z */ (function( global, factory ) { if ...
src/__tests__/components/Team/Team.js
isuruAb/chat.susi.ai
import React from 'react'; import Team from '../../../components/Team/Team.react'; import { shallow } from 'enzyme'; it('render without crashing',()=>{ shallow(<Team location={{'pathname': '/team'}} />); });
app/components/UploadImg.js
ikafire/OpenObjectMarker
import React from 'react'; import UploadImgStore from '../stores/UploadImgStore'; import cookie from 'react-cookie'; class UploadImg extends React.Component { constructor(props) { super(props); this.state = UploadImgStore.getState(); } /* render regular page after login. */ renderPage() { return...
test/spec/convertFromHTML-test.js
HubSpot/draft-convert
import React from 'react'; import { Entity, convertToRaw } from 'draft-js'; import convertFromHTML from '../../src/convertFromHTML'; import convertToHTML from '../../src/convertToHTML'; const customBlockToHTML = { unstyled: { start: '<p>', end: '</p>', }, }; const getEntityFromContentState = (contentState...
webui/src/Components/WebSocketStatus.js
evoja/docker-Github-Gitlab-Auto-Deploy
import React, { Component } from 'react'; import './WebSocketStatus.scss'; class WebSocketStatus extends Component { render() { if(this.props.wsIsOpen && !this.props.wsIsAuthenticated) return ( <div className="WebSocketStatus"> Authenticating against {this.props.wsURI} </div> ...
src/renderer/components/tweet.js
babie/retro-twitter-client
import React from 'react' import Time from './time' import TweetBody from './tweet-body' export default class Tweet extends React.Component { get url() { return `https://twitter.com/${this.props.tweet.user.screen_name}/status/${this.props.tweet.id_str}`; } onAnchorClicked(event) { event.preventDefault()...
client/modules/core/components/postlist.js
MechJosh0/storybook-mdl-error
import React from 'react'; const PostList = ({posts}) => ( <div className='postlist'> <ul> {posts.map(post => ( <li key={post._id}> <a href={`/post/${post._id}`}>{post.title}</a> </li> ))} </ul> </div> ); export default PostList;
modules/webapp/src/main/resources/META-INF/resources/aksess/js/mediaelement/jquery.js
kantega/Flyt-cms
/*! * 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 t...
src/react/JSONTree/JSONArrayNode.js
bloodyowl/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { ExpandedStateHandlerMixin } from './mixins'; import JSONArrow from './JSONArrow'; import grabNode from './grab-node'; const styles = { base: { position: 'relative', paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLe...
react/src/components/dashboard/tools/toolsMultisigAddress.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import addCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto'; import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC'; import Select from 'react-select'; import { triggerToaster, apiToolsBalance, apiToolsBuildUnsigned,...
packages/material-ui-icons/src/VolumeMuteOutlined.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14 8.83v6.34L11.83 13H9v-2h2.83L14 8.83M16 4l-5 5H7v6h4l5 5V4z" /> , 'VolumeMuteOutlined');
server/sonar-web/src/main/js/apps/projects/components/NoFavoriteProjects.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
ajax/libs/yui/3.5.0/simpleyui/simpleyui.js
nolanlawson/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 * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespac...
files/react/0.12.2/react.min.js
bdukes/jsdelivr
/** * React v0.12.2 * * 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. *...
components/Dropdown.js
dawnlabs/carbon
import React from 'react' import Downshift from 'downshift' import matchSorter from 'match-sorter' import VisuallyHidden from '@reach/visually-hidden' import { Down as ArrowDown } from './svg/Arrows' import CheckMark from './svg/Checkmark' import { COLORS } from '../lib/constants' class Dropdown extends React.PureComp...
ajax/libs/angular-google-maps/1.1.13/angular-google-maps.js
ljharb/cdnjs
/*! angular-google-maps 1.1.13 2014-07-29 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
packages/slate-html-serializer/test/serialize/inline-nested.js
ashutoshrishi/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.object == 'block' && obj.type == 'paragraph') { return React.createElement('p', {}, children) } if (obj.object == 'inline' && obj.type == 'link') { ...
app/containers/App/index.js
balintsoos/app.rezsi.io
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot ...
example/src/app.js
moqada/flux-simple-action-creator
import React from 'react'; import ReactDOM from 'react-dom'; import {Container} from 'flux/utils'; import App from './components/App'; document.addEventListener('DOMContentLoaded', () => { const AppContainer = Container.create(App); ReactDOM.render(<AppContainer />, document.getElementById('app')); });
src/js/components/hexgrid/Path.js
VitorHP/TI3
import React from 'react'; const { object } = React.PropTypes import HexUtils from './HexUtils'; class Path extends React.Component { getPoints() { if (!this.props.start || !this.props.end) { return ''; } // Get all the intersecting hexes between start and end points let distance = HexUtils.d...
node_modules/rebass/test/Label.spec.js
HasanSa/hackathon
import React from 'react' import TestUtils from 'react-addons-test-utils' import expect from 'expect' import { Label, Base } from '../src' const renderer = TestUtils.createRenderer() describe('Label', () => { let tree beforeEach(() => { renderer.render(<Label />) tree = renderer.getRenderOutput() }) ...
node_modules/react-bootstrap/es/Pagination.js
Chen-Hailin/iTCM.github.io
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
node_modules/react/lib/ReactReconcileTransaction.js
danwebdev/DARSE
/** * 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 ...
src/components/Header.js
afonsobarros/reactnd-project-readable
import React, { Component } from 'react'; import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { AppBar, IconButton, Menu, MenuItem, Toolbar, Typography } from 'material-ui/'; import themeDefault from '../theme-default'; import { showHeaderSubmenu, hideHeaderSubmenu } from '../actions...
docs/src/examples/modules/Popup/Variations/PopupExampleFlowing.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Header, Button, Popup, Grid } from 'semantic-ui-react' const PopupExampleFlowing = () => ( <Popup trigger={<Button>Show flowing popup</Button>} flowing hoverable> <Grid centered divided columns={3}> <Grid.Column textAlign='center'> <Header as='h4'>Basic Plan</Head...
src/index.js
janapejic/tic-tac-toe
import React from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './App'; import './index.css'; injectTapEventPlugin(); ReactDOM.render( <MuiThemeProvider> <App /> </Mu...
src/svg-icons/av/shuffle.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvShuffle = (props) => ( <SvgIcon {...props}> <path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2....
test/integrations/plugin-examples.js
enduire/happo.io
import React from 'react'; export default [{ component: 'Plugin-Component', variants: { pluginVariantOne: () => <div>Hello world</div>, }, }];
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.all.compat.js
MericGarcia/deployment-mean
// 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...
core/com.b2international.snowowl.core.rest/snow-owl-api-docs/src/App.js
b2ihealthcare/snow-owl
import 'antd/dist/antd.css'; import 'rapidoc'; import React from 'react'; import { BackTop } from 'antd'; import { parse } from 'qs'; class App extends React.Component { state = { selectedKey: 'core', apis: [], serverUrl: process.env.REACT_APP_SO_BASE_URL || process.env.PUBLIC_URL } componentDidMo...
files/videojs/5.0.0-rc.46/video.js
gswalden/jsdelivr
/** * @license * Video.js 5.0.0-rc.46 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
app/routes/Drawer/Drawer.js
arnef/ligatool-hamburg
import React from 'react'; import { View } from 'react-native'; import { connect } from 'react-redux'; import { sortBy } from 'lodash'; import { Container, Image, Text, Separator } from '../../components'; import Routes from '../../config/routes'; import styles from './styles'; import DrawerItem from './DrawerItem'; i...
react-fundamentals-es6/lessons/09-lifecycle-mounting-usage/main.js
wandarkaf/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
ajax/libs/react-select/0.8.1/react-select.js
pvnr0082t/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}...
server/index.js
gaearon/react-redux-starter-kit
const fs = require('fs'), koa = require('koa'), config = require('../config'), router = require('../dist/server'), React = require('react'), serve = require('koa-static'); const app = koa(); // ------------------------------------ // Response Time Header and Logging // ---------...
sandbox/index.js
towry/composer-core
/** * MIT License http://www.opensource.org/licenses/mit-license.php * @author Towry Wang */ import React, { Component } from 'react'; import Composer from '../lib/components/Composer'; import DataAdapter from '../lib/DataAdapter'; import EditorState from '../lib/EditorState'; import entityStore from './entityStor...
src/routes.js
dongtong/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
js/components/common/simple-card-body/simpleCardBody.js
justarrived/p2p-client
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { CardItem, Body, Text, Right, Icon } from 'native-base'; import SimpleCardBodyStyle from './simpleCardBodyStyle'; // Card body with title, subtitle, and optionally an icon. export default class SimpleCardBody extends Component...
src/lib/indexers.js
pzhine/derribase
/* eslint-disable no-console */ import React from 'react'; import latinize from 'latinize'; import * as JsDiff from 'diff'; import pluralize from 'pluralize'; import { textify, urlify, stemify } from './_helpers'; import junkWords from './junk.js'; export function sourcesFromEntries(entries) { return Object.keys(en...
__tests__/components/LoginForm-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import LoginForm from '../../src/js/components/LoginForm'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('LoginForm',...
src/components/Sigmet/SigmetMinifiedMode.spec.js
diMosellaAtWork/GeoWeb-FrontEnd
import React from 'react'; import SigmetMinifiedMode from './SigmetMinifiedMode'; import { mount, shallow } from 'enzyme'; import { Button } from 'reactstrap'; const sigmet = { phenomenon: 'TEST', levelinfo: { levels: [{ unit: 'FL', value: 4 }, { unit: 'M', value: 4 }] }, va_extra_fields: { volcano: {} } }...
dispatch/static/manager/src/js/components/inputs/filters/AuthorFilterInput.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import FilterSelectInput from './FilterSelectInput' import personsActions from '../../../actions/PersonsActions' class AuthorFilterInputComponent extends React.Component { listPersons(query) { let queryObj = {} if (query) { queryObj['q...
website/templates/template-doc-page.js
trentmillar/keystone
import React, { Component } from 'react'; import DocumentTitle from 'react-document-title'; import EditIcon from 'react-icons/lib/go/pencil'; import { rhythm } from '../utils/typography'; import theme from '../theme'; import Container from '../components/Container'; class DocumentPage extends Component { render () {...
src/main/webapp/resources/js/components/echarts/YearDataChart.js
peterchenhdu/infosys
import './style/charts.css' import React from 'react' import echarts from 'echarts' import $ from 'jquery'; //jquery export default class YearDataChart extends React.Component{ constructor(props){ super(props); this.chartData={ years:[], yearCounts:[] }; $.ajax({ async: fal...
src/ModalHeader.js
zerkms/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)} > { this.props.closeButton && <button ...
test/PageItemSpec.js
gianpaj/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', function () { it('Should output a "list item" as root element, and an "anchor" as a child item', function () { let instance = ReactTestUtils.renderIntoDocument( <Pa...
ajax/libs/webshim/1.14.3-RC2/dev/shims/combos/26.js
jonathantneal/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 ...
docs/client/components/shared/FacebookButton/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; export default class FacebookLikeButton extends Component { componentDidMount() { const fbscript = document.createElement('script'); fbscript.src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5'; fbscript.id = 'facebook-jssdk'; fbscript.onload = ...
src/components/flex/flex_item.js
woshisbb43/coinMessageWechat
//1.0.0 components import React from 'react'; import PropTypes from 'prop-types'; /** * Evenly distribute flex items * */ const FlexItem = (props) => { const { component, children, ...others } = props; return ( <component className="weui-flex__item" {...others}> { children } </c...
src/components/ChatHistory.spec.js
shirasudon/chat
// @format import React from 'react' import { shallow, mount } from 'enzyme' import moment from 'moment' import { withChatHistoryHandlers, ChatHistory, sendReadIfExistNonRead, withLifecycleFactory, scrollToBottom, } from './ChatHistory' import Balloon from './Balloon' describe('handleScroll', () => { it(...
docs/app/Examples/modules/Accordion/Types/AccordionExamplePanelsProp.js
vageeshb/Semantic-UI-React
import React from 'react' import { Accordion } from 'semantic-ui-react' import faker from 'faker' import _ from 'lodash' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExamplePanelsProp = () => ( <Accordion panels={panels} /> ) export def...
public/swaggerui/lib/jquery-1.8.0.min.js
sunfuze/kox
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
src/components/Auth/SecuredRoute.js
nahody/biografia
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import { isAuthenticated } from '../../helper/auth'; export const SecuredRoute = ({ component: Component, ...rest }) => ( isAuthenticated() ?<Route {...rest} render={ props => <Component {...props} /> } /> :<Redirect to="/signin...
ajax/libs/mobx/2.1.4/mobx.umd.min.js
dada0423/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:...
src/react/index.js
josebalius/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
ajax/libs/yasqe/1.2.1/yasqe.min.js
billybonz1/cdnjs
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!...