path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
qvoiriot/qvoiriot.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
entry/components/musiclistitem.js
xiaololo/react-music-player
import React from 'react' import './musiclistitem.less' import Pubsub from 'pubsub-js' let MusicListItem = React.createClass({ playMusic(musicItem) { Pubsub.publish('PLAY_MUSIC', musicItem); }, deleteMusic(musicItem, e) { e.stopPropagation(); Pubsub.publish('DELETE_MUSIC', musicItem); }, render() { let mu...
src/static/containers/NotFound/index.js
AdrienAgnel/testDjangoApp
import React from 'react'; export default class NotFoundView extends React.Component { render() { return ( <div> <h1>NOT FOUND</h1> </div> ); } }
src/svg-icons/image/blur-linear.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurLinear = (props) => ( <SvgIcon {...props}> <path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-...
components/About.js
Wykks/My-notes
import React from 'react'; class About extends React.Component { render() { return ( <div> <h2>About</h2> <p>This is a description of the site.</p> </div> ); } } export default About;
packages/wix-style-react/src/SidebarSectionItem/SidebarSectionItem.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable'; import ChevronRight from 'wix-ui-icons-common/ChevronRight'; import { st, classes } from './SidebarSectionItem.st.css'; import { dataHooks } from './constants'; import Text from '../Text'...
src/common/SpellIcon.js
mwwscott0/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from './SPELLS'; import SpellLink from './SpellLink'; import Icon from './Icon'; const SpellIcon = ({ id, noLink, ...others }) => { if (process.env.NODE_ENV === 'development' && !SPELLS[id]) { throw new Error(`Unknown spell: ${id}`); ...
tgui/packages/tgui/components/TitleBar.js
Mark9013100/tgstation-m9
import { classes, pureComponentHooks } from 'common/react'; import { toTitleCase } from 'common/string'; import { tridentVersion } from '../byond'; import { UI_DISABLED, UI_INTERACTIVE, UI_UPDATE } from '../constants'; import { Icon } from './Icon'; const statusToColor = status => { switch (status) { case UI_INT...
src/Parser/Hunter/Marksmanship/Modules/Items/MKIIGyroscopicStabilizer.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; /** * Equip: Your Aimed Shot grants yo...
frontend/src/pages/sys-admin/file-scan-records.js
miurahr/seahub
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { seafileAPI } from '../../utils/seafile-api'; import { gettext } from '../../utils/constants'; import { Utils } from '../../utils/utils'; import Account from '../../components/common/account'; const tablePropTypes = { loading: Pro...
ajax/libs/material-ui/4.9.2/es/Input/Input.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { refType } from '@material-ui/utils'; import InputBase from '../...
js/jqwidgets/demos/react/app/tree/keyboardnavigation/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { componentDidMount() { this.refs.myTree.focus(); } render () { // Create jqxTree let source = [ { icon: '../....
packages/create-app/lib/env-configs/webpack-common/mdx/loader.js
jakedeichert/create-app
// FROM HERE https://github.com/mdx-js/mdx/blob/master/packages/loader/index.js const { getOptions } = require('loader-utils'); // inherited from webpack const mdx = require('@mdx-js/mdx'); const excerptPlugin = require('./excerptPlugin'); module.exports = async function(content) { const callback = this.async(); c...
src/js/components/SearchBox.js
pazguille/react-meli
/** * Module dependencies */ import React from 'react'; /** * SearchBox */ class SearchBox extends React.Component { constructor(props) { super(props); this.state = { query: this.props.query || '' }; this.handleSubmit = this.handleSubmit.bind(this); this.handleChange = this.handleChange.bind(this...
packages/material-ui-icons/src/VerticalAlignCenterOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z" /></g></React.Fragment> , 'VerticalAlignCenterOutlined');
containers/Detail.js
nikgraf/CarteJaune
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import Detail from '../components/Detail'; import vaccines from '../selectors/vaccines'; import currentVaccination from '../selectors/currentVaccination'; import switchToListRoute from '...
src/components/slider/index.js
chenchenyuyu/zhihuDaily-react
import React from 'react'; import CYComponent from '../base/index'; import { connect } from 'react-redux'; import './style.less'; import SliderArrows from './sliderArrows'; import SliderDots from './sliderDots'; import SliderItem from './sliderItem'; import Img1 from './images/demo1.jpg'; import Img2 from './images/de...
wp-includes/js/jquery/jquery.js
cryophobic/ferventfoundry
/*! jQuery v1.11.0 | (c) 2005, 2014 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...
src/app.js
vtsai/game
// Copyright (c) 2015, Mist Systems 'use strict'; import React from 'react'; import PureComponent from './common/pureComponent'; import Nav from './common/nav/nav'; import AppPages from './pages'; //---------------------------------------------------------------------------- // APP VIEW // // Overall webap...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
imomix/mastodon
import React from 'react'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; class AutosuggestAccount extends ImmutablePureComponen...
ajax/libs/clappr/0.0.21/clappr.js
rigdern/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]...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
liamhu/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
src/components/ProductList.js
wkwiatek/dm-react-mobx
import React from 'react' import { inject, observer } from 'mobx-react' import Product from './Product' @inject('productStore') @observer class ProductList extends React.Component { handleBuyClick = id => { this.props.productStore.buyProduct(id) } render() { /// Not only products but also computed sol...
jssource/src_files/include/javascript/yui3/build/loader/loader.js
gnovaro/sugarcrm_dev
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (functi...
__tests__/button-group/button-group.js
ricsv/react-leonardo-ui
import React from 'react'; import renderer from 'react-test-renderer'; import ButtonGroup from '../../src/button-group'; test('Empty ButtonGroup renders correctly', () => { const tree = renderer.create( <ButtonGroup /> ).toJSON(); expect(tree).toMatchSnapshot(); }); test('ButtonGroup with buttons renders c...
src/client/components/EventList/index.js
mweslander/veery
// Imports import React from 'react'; import PropTypes from 'prop-types'; // Components import Event from '../Event'; import Footer from '../Footer'; // CSS import './index.scss'; // PropTypes const propTypes = { events: PropTypes.array, focusedVenue: PropTypes.object, updateFocusedVenue: PropTypes.func }; /*...
node_modules/react-icons/md/aspect-ratio.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdAspectRatio = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 31.7v-23.4h-30v23.4h30z m0-26.7c1.8 0 3.4 1.6 3.4 3.4v23.2c0 1.8-1.6 3.4-3.4 3.4h-30c-1.8 0-3.4-1.6-3.4-3.4v-23.2c0-1.8 1.6-3.4 3.4-3.4h30z m-23.4 10v5h-3.2v-...
ajax/libs/babel-core/4.7.9/browser-polyfill.js
drewfreyling/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/common/form/OpenWebMediaFieldArray.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { reduxForm, FieldArray, Field, propTypes } from 'redux-form'; import withIntlForm from '../hocs/IntlForm'; import OpenWebMediaItem from '../OpenWebMediaItem'; const renderCollectionSelector = ({ allowRemoval...
client/app/components/Play/Playlist.new.js
dring1/gopheringdj
import React from 'react'; import mui from 'material-ui'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import { jumpSong } from '../../actions/DjActions'; const MusicNoteIcon = require('material-ui/lib/svg-icons/image/music-note'); const List = mui.List; const ListItem = mui.ListIte...
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js
theoria24/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import AvatarOverlay from '../avatar_overlay'; describe('<AvatarOverlay', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif',...
src/js/components/icons/base/FormLocation.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
dist/1.10.2/jquery-css-deprecated-event-alias-offset-wrap.js
eric-seekas/jquery-builder
/*! * jQuery JavaScript Library v1.10.2 -wrap,-css,-event-alias,-effects,-offset,-dimensions,-deprecated * 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 * * ...
ajax/libs/react-modal/1.8.1/react-modal.js
wout/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
app/javascript/mastodon/features/favourited_statuses/index.js
verniy6462/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
ajax/libs/yui/3.17.0/scrollview-base/scrollview-base-coverage.js
saitheexplorer/cdnjs
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollv...
frontend/src/components/common/hoc/withConditionalDisplay.js
unicef/un-partner-portal
// eslint-disable-next-line import React from 'react'; import R from 'ramda'; import { connect } from 'react-redux'; const mapStateToProps = conditions => (state) => { const displayComponent = R.reduce((acc, next) => { if (typeof next === 'function') return acc && next(state); return acc && next; }, true,...
src/components/Column.js
williamcabrera4/chrome-app-websocket-tester
import 'flexboxgrid'; // eslint-disable-line import React from 'react'; import PropTypes from 'prop-types'; class Column extends React.Component { generateClass() { let className = this.props.className || ''; className = this.generateClassName(className, 'xs'); className = this.generateClassName(classNam...
src/app/login.js
toxzilla/app
import React from 'react'; import {render} from 'react-dom'; import {Controller} from 'cerebral'; import {Container} from 'cerebral-view-react'; import Forms from 'cerebral-module-forms'; import ViewPort from './ViewPort'; import Authenticate from './modules/Authenticate'; import FTE from './modules/FTE'; import Login...
src/encoded/static/components/static-pages/placeholders/index.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import JsxParser from 'react-jsx-parser'; import memoize from 'memoize-one'; import _ from 'underscore'; import { SlideCarousel } from './SlideCarousel'; import { BasicCarousel } from './BasicCarousel'; import { JointAnalysisMatrix } from './JointAnalysisMatrix'; import { Expe...
docs/src/sections/GridPaginationSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function GridSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="grid-pagination">显示分页</Anchor></h3> <p>使用<code>paging</cod...
client/components/Routing/RoutingProvider.js
LetAmericaVote/strikeout
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import createHistory from 'history/createBrowserHistory'; import { setPathname } from '../../actions'; class RoutingProvider extends React.Component { constructor(props) { super(props); this.history = creat...
generators/rc/templates/component.js
gzgogo/generator-ra
import './<%= componentName %>.<%= stylesheetExtension %>'; import React from 'react'; class <%= componentName %> extends React.Component { render() { return ( <div className="<%= componentName.toLowerCase() %>"> <h1> <%= componentName %> </h1> </div> ); } } export default <%= compone...
ajax/libs/6to5/1.14.13/browser-polyfill.js
humbletim/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ui/component/livestreamList/index.js
lbryio/lbry-app
import { connect } from 'react-redux'; import LivestreamList from './view'; const select = (state) => ({}); export default connect(select)(LivestreamList);
src/components/SearchForm.js
redian/weather-mate
import React from 'react'; import PropTypes from 'prop-types'; import Input from 'react-toolbox/lib/input/Input'; import Button from 'react-toolbox/lib/button/Button'; const sectionStyle = { marginLeft: "2.5rem", marginRight: "2.5rem", } const nearMeStyle = { textAlign: "center", paddingTop: "1rem", } const ...
src/Loader/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function Loader(props) { return ( <div className={classNames(styles.wrapper, { [props.className]: props.className, //[styles[`wrapper_mini_${props.size}`]]: props.siz...
packages/material-ui-icons/src/SettingsBluetoothSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 ...
examples/react/src/components/Button.js
andfk/react-howler
import React from 'react' import classnames from 'classnames' const Button = (props) => { const { children, className, ...otherProps } = props return ( <button className={classnames('button', className)} {...otherProps}> {children} </button> ) } export default Button
lib/utils/testing.js
VACO-GitHub/vaco-components-library
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsTestUtils = require('react-addons-test-utils'); var _reactAddonsTestUtils2 = _interopRequireDefault(_reactAddonsTestUtils); function _interopR...
src/components/common/svg-icons/maps/local-taxi.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
FitTrackerHubCentral/FitTrackerHubCentral/Scripts/jquery-1.10.2.min.js
lionadi/MyFitnessTracker
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
packages/material-ui-icons/src/Timer10TwoTone.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="M2.99 18h2V6h-.25L-.01 7.72V9.4l3-1zM12.58 6.17c-.47-.18-1.01-.27-1.59-.27s-1.11.09-1.59.27c-.48.18-.89.47-1.23.88-.34.41-.6.93-.79 1.59-.18....
vue_front_end/node_modules/vue/dist/vue.runtime.js
GuitarmonYz/AutoKnowledge
/*! * Vue.js v2.3.3 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
example/examples/Overlays.js
jiaminglu/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 31.23295; const LONGITUDE = 121.3822; const LATITUDE_DELTA = 0.0922...
App/homeScreen.js
Dagers/React-Native-Differential-Updater
import React from 'react'; import { StyleSheet,Text, View, Button, Alert } from 'react-native'; /** * Represents the home screen of our app. * * @author Daniel Strebinger * @version 1.0 * */ export class HomeScreen extends React.Component { static navigationOptions = { title: 'Diff Updater', }; ...
step-capstone/src/components/TravelObjectForms/FormPopover.js
googleinterns/step98-2020
import React from 'react'; import {Popover} from '@material-ui/core'; import ItemForm from './ItemForm' export default function FormPopver(props) { return ( <div> <Popover open={props.open} anchorReference={props.anchorReference} anchorPosition={p...
templates/rubix/laravel/laravel-seed/src/routes.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import { IndexRoute, Route } from 'react-router'; import { Grid, Row, Col, MainContainer } from '@sketchpixy/rubix'; import Footer from './common/footer'; import Header from './common/header'; import Sidebar from './common/sidebar'; import Home from './...
docs/src/PropTable.js
xiaoking/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str....
ajax/libs/yui/3.8.0/event-focus/event-focus.js
peteygao/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
tests/SingleRange/SingleRange.js
appbaseio/reactivebase
import React from 'react'; import { ReactiveBase, SingleRange, ReactiveList } from '../../app/app.js'; import {config} from './config'; import { mount } from 'enzyme'; function testComponent(cb) { const onData = function(res, err) { cb(res, err); } const component = mount( <ReactiveBase app={config.Reactive...
app/javascript/mastodon/features/compose/components/action_bar.js
danhunsaker/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
src/Parser/Rogue/Subtlety/Modules/Legendaries/DenialOfHalfGiants.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import SpellLink from 'common/SpellLink'; import Wrapper from 'comm...
src/library/alerts/components/AlertBox.js
zdizzle6717/react-redux-arc
'use strict'; import React from 'react'; import classNames from 'classnames'; export default function AlertBox(props) { let alertClasses = classNames({ 'alert-box': true, 'error': props.type === 'error', 'info': props.type === 'info', 'success': props.type === 'success' }); return ( <div className={aler...
example/App.js
carleryd/react-native-maps
import React from 'react'; import { Platform, View, StyleSheet, TouchableOpacity, ScrollView, Text, Switch, } from 'react-native'; import { PROVIDER_GOOGLE, PROVIDER_DEFAULT } from 'react-native-maps'; import DisplayLatLng from './examples/DisplayLatLng'; import ViewsAsMarkers from './examples/ViewsAsMark...
src/parser/warlock/demonology/modules/azerite/ShadowsBite.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import calculateBonusAzeriteDamage from 'parser/core/calculateBonusAzeriteDamage'; import StatTracker from 'parser/shared/modules/StatTracker'; import SPELLS from 'common/SPELLS'; impo...
local-cli/templates/HelloWorld/App.js
rickbeerendonk/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/components/widgets/md/Reference.js
saas-plat/saas-plat-appfx
import React from 'react'; // 参照界面,适合选中参照数据 export default class extends React.Component { }
docs/app/Examples/modules/Dimmer/Usage/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DimmerStatesExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Dimmer Events' descript...
ajax/libs/openlayers/2.13.1/lib/OpenLayers/Control/Panel.js
icco/cdnjs
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/Control.js * @requires OpenLayers/Even...
ajax/libs/react-slick/0.3.1/react-slick.js
pm5/cdnjs
var Slider = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /**...
src/components/Shuttle.js
ev-ui/ev-ui
import React from 'react' import {render} from 'react-dom' import styled from 'styled-components' import Tree from '__public/component/Tree' import {Button} from 'antd' const Root=styled.div` border:1px solid #aaa; max-width:500px; &>.content{ display:flex; flex-direction:row!important; ...
public/js/components/navbar.js
gonzochic/inox
import React from 'react'; import Avatar from 'public/js/components/avatar' export default class Navbar extends React.Component { constructor(props) { super(props); } render() { return ( <div id="header" className="sticky clearfix header-md"> <header id="topNav"> <div className="...
assets/js/jquery.js
ThoughtWorksInc/twchimp
/*! * jQuery JavaScript Library v1.6.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. ...
src/components/common/AsyncComponent.js
securely-app/web
import React, { Component } from 'react'; export default function asyncComponent(importComponent) { class AsyncComponent extends Component { constructor(props) { super(props); this.state = { component: null }; } async componentDidMount() { const { default: component } = a...
spot-oa/ui/js/components/TimelineMixin.react.js
brandon-edwards/incubator-spot
// // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may ...
ajax/libs/6to5/3.3.7/browser-polyfill.js
pm5/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/babel-core/5.6.1/browser-polyfill.min.js
nareshs435/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/list-item/index.js
chenchenyuyu/zhihuDaily-react
import React from 'react'; import { Link } from 'react-router-dom'; // import { connect } from 'react-redux'; import CYComponent from '../base/index'; import './style.less'; class ListItem extends CYComponent { render() { const item = this.props.item; console.log('this.props.item', this.props.item); retu...
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/compound-assignment/input.js
guybedford/babel
import React from 'react'; import Loader from 'loader'; const errorComesHere = () => <Loader className="full-height"/>, thisWorksFine = () => <Loader className="p-y-5"/>;
src/client/routes.js
terakilobyte/esterethinksocketchat
import App from './app/app.react'; import Examples from './pages/examples.react'; import Home from './pages/home.react'; import Login from './pages/login.react'; import Me from './pages/me.react'; import NotFound from './pages/notfound.react'; import React from 'react'; import Chat from './pages/chat.react'; import {De...
MobilityCity/Highcharts-4.1.5/exporting-server/phantomjs/jquery.1.9.1.min.js
AndresGJ144/mobilitycity
/*! 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...
node_modules/native-base/src/basic/Header.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View, StatusBar } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variables/platform'; import _ from 'lodash'; class Header extends Component { stat...
ajax/libs/inferno/1.0.0-beta6/inferno-mobx.js
him2him2/cdnjs
/*! * inferno-mobx v1.0.0-beta6 * (c) 2016 Ryan Megidov * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('mobx'), require('./inferno'), require('./inferno-create-class')...
src/components/PasswordInput/PasswordInput.spec.js
eliaslopezgt/ps-react-eli
import React from 'react'; import renderer from 'react-test-renderer'; import PasswordInput from './PasswordInput'; import {shallow} from 'enzyme'; xtest('toggles input type when show/hide password clicked', () => { const wrapper = shallow(<PasswordInput htmlId="test" name="test" value="" onChange={(...
examples/exoskeleton/node_modules/exoskeleton/exoskeleton.js
wangjun/todomvc
/*! * Exoskeleton.js 0.7.0 * (c) 2013 Paul Miller <http://paulmillr.com> * Based on Backbone.js * (c) 2010-2013 Jeremy Ashkenas, DocumentCloud * Exoskeleton may be freely distributed under the MIT license. * For all details and documentation: <http://exosjs.com> */ (function(root, factory) { // Set up Backbon...
extensions/amp-sidebar/1.0/component.type.js
jridgewell/amphtml
/** @externs */ /** @const */ var BentoSidebarDef = {}; /** * @typedef {{ * as: (string|PreactDef.FunctionalComponent|undefined), * side: (string|undefined), * onBeforeOpen: (function():void|undefined), * onAfterOpen: (function():void|undefined), * onAfterClose: (function():void|undefined), * backd...
ajax/libs/react-slick/0.3.7/react-slick.min.js
tresni/cdnjs
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var...
src/svg-icons/device/battery-charging-90.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12...
docs/src/app/components/pages/components/Table/Page.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tableReadmeText from './README'; import TableExampleSimple from './Exampl...
src/components/Search/SearchTransition.js
KaPrimov/ArtPodarychePage
import React, { Component } from 'react'; export default class SearchTransition extends Component { componentWillMount() { this.props.router.push({ pathname: "/search-results", state: {query: this.props.location.state.query} }); } render() { r...
ajax/libs/clappr/0.0.82/clappr.js
skidding/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);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
ajax/libs/react/0.11.0/react-with-addons.js
aferlazzo/cdnjs
/** * React (with addons) v0.11.0 */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(fu...
packages/material-ui-icons/src/SmsFailedTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 17.17L5.17 16H20V4H4v13.17zM11 6h2v4h-2V6zm0 6h2v2h-2v-2z" opacity=".3" /><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1....
app/components/PrivacyPolicy/index.js
juanda99/arasaac-frontend
/** * * PrivatePolicy * */ import React from 'react' import { FormattedMessage } from 'react-intl' import messages from './messages' function PrivacyPolicy() { return ( <div> <FormattedMessage {...messages.header} /> </div> ) } export default PrivacyPolicy
Calcuman/__tests__/index.ios.js
antonfisher/game-calcuman
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 /> ); });
ch6/board-reflux/gulpfile.js
azat-co/react
var gulp = require('gulp'), react = require('gulp-react'), watch = require('gulp-watch'), nodemon = require('gulp-nodemon') gulp.task('default', function (done) { nodemon({ script: 'index.js', ext: 'html js' }) return gulp.src('public/js/app.jsx') .pipe(watch('public/js/*.jsx')) .pipe(react()) ...
src/components/network/Resources.js
golemfactory/golem-electron
import React from 'react'; import { Transition, Keyframes, animated } from 'react-spring/renderprops.cjs'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Tooltip from '@tippy.js/react'; import * as Actions from '../../actions'; import { getGPUEnvironment } from '....
information/blendle-frontend-react-source/app/components/BreakPoints/index.js
BramscoChill/BlendleParser
import React from 'react'; import classNames from 'classnames'; import CSS from './style.scss'; /* * This HOC adds a classname to the first child element, which takes care of hiding/showing the * element using CSS breakpoints. * * NOTE: When using these components, the childs *will* get mounted, but they might be ...
src/helpers/__tests__/getDataDependencies-test.js
gregsabo/beanstalk-raining-in-belgrade
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...