path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
Other/styleguide/src/main.js
barretthafner/learning
/* @flow */ /* eslint-disable react/jsx-filename-extension, import/no-named-as-default-member */ import React from 'react'; import { render, TextStyles, View } from 'react-sketchapp'; import designSystem from './designSystem'; import type { DesignSystem } from './designSystem'; import Label from './components/Label';...
js/components/Overlay.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { View, } from 'react-native'; const Overlay = React.createClass({ // Android: zIndex property is not properly supported as of RN 0.29 render() { const container = { flex: 1, position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, ...
packages/material-ui-icons/src/WatchLaterRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm3.55 13.8l-4.08-2.51c-.3-.18-.48-.5-.48-.85V7.75c.01-.41.35-.75.76-.75.41 0 ...
analysis/warriorarms/src/modules/core/Execute/MortalStrike.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import calculateMaxCasts from 'parser/core/calculateMaxCasts'; import Events from 'parser/core...
imports/client/components/MainLayout/Footer/FooterShareList.js
evancorl/skate-scenes
import React from 'react'; const FooterShareList = ({ list }) => ( <ul className="footer-share-list"> {Object.keys(list).map((service, i) => ( <li key={i} className="footer-share-item"> <a href={list[service]} target="_blank" className={`icon icon-${service.toLowerCase...
src/routes.js
ManYang/react-yelp-web
import React from 'react' import {browserHistory, Router, Route, Redirect} from 'react-router' import makeMainRoutes from './views/routes' export const makeRoutes = () => { const main = makeMainRoutes(); return ( <Route path=''> {main} </Route> ) } export default makeRoutes
src/web/client/src/components/audit/review-flags.js
devmynd/cloud-access-manager
import React from 'react' import graphqlApi from '../../graphql-api' export default class ReviewFlags extends React.Component { state= { showUpdateButtonText: true } handleSelectedServiceToAudit = async (event, serviceId) => { this.setState({ showUpdateButtonText: false }) await this.prop...
src/components/Account/ResourceList/Resource/index.js
ndlib/usurper
import React, { Component } from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import typy from 'typy' import Presenter from './presenter' export class ResourceContainer extends Component { constructor(props) { super(props) this.state = { hidden: true, } thi...
tests/form.js
kctang/f2o
const { beforeEach, afterEach, describe, it } = global; import { expect } from 'chai'; import { mount } from 'enzyme'; import { spy, stub } from 'sinon'; import jsdom from 'jsdom'; import React from 'react'; import { handleForm, Processor, CallMeteorProcessor } from '../src/index'; beforeEach(() => { global.docume...
test/jquery-1.8.3.min.js
ken-muturi/jszip
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
client/components/InvitePlayerModal.js
ConnerReeves/sportsballnet
import React, { Component } from 'react'; import { Button, Table, Modal, Input, ButtonInput } from 'react-bootstrap'; import { validate } from '../utils/Validation'; import { VALIDATION } from '../utils/Constants'; require('../styles/leagues.scss'); export default class InvitePlayerModal extends Component { constru...
src/Components/Table/TableRow/index.js
severnsc/brewing-app
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const FlexTableRow = styled.tr` display:flex; flex-direction:row; position:relative; border-bottom:1px solid rgb(224, 224, 224); margin-top:5px; &:hover button { opacity: 1 } ` const TableCell = style...
App/DefaultLayout/AdminLayout.js
wangmengling/MaoMobxBlog
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom' class AdminLayout extends Component{ constructor(props){ super(props); } render(){ return( <div>Admin{this.props.children}</div> ) } } export defa...
js/vendor/jquery-1.10.2.min.js
Fiooona/ProjectTemplate2
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
node_modules/react-icons/fa/soundcloud.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaSoundcloud = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m13.7 28.3l0.3-4.2-0.3-9.1q0-0.2-0.1-0.3t-0.3-0.2q-0.2 0-0.3 0.2t-0.1 0.3l-0.2 9.1 0.2 4.2q0 0.2 0.1 0.3t0.3 0.1q0.4 0 0.4-0.4z m5.2-0.5l0.2-3.7-0.2-10.2q0-0.3-0.2...
files/core-js/0.9.8/library.js
MadhavBitra/jsdelivr
/** * Core.js 0.9.8 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******...
packages/material-ui-icons/src/PregnantWomanTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" /></React.Fragment> , 'PregnantWomanTwoTone');
local-cli/templates/HelloWorld/__tests__/index.ios.js
Ehesp/react-native
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 /> ); });
ajax/libs/yui/3.12.0/datatable-core/datatable-core-coverage.js
mikaelbr/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
client/modules/Workout/pages/WorkoutListPage.js
Danielbook/liftinglog
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import WorkoutList from '../components/WorkoutList'; import { addWorkoutRequest, deleteWorkoutRequest, fetchWorkouts } from '../WorkoutActions'; import { getWorkouts } from '../WorkoutReducer'; import Ad...
packages/material-ui-icons/lib/esm/LocalPlaySharp.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M20 12c0-1.1.9-2 2-2V4H2.01v6c1.1 0 1.99.9 1.99 2s-.89 2-2 2v6h20v-6c-1.1 0-2-.9-2-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.12-3.29-2.69 4.24-.25L12 5.8l1.54 3...
examples/huge-apps/routes/Course/components/Dashboard.js
sleexyz/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
public/lib/jquery.js
xihumaker/xihumaker
/*! * 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...
packages/react-query-builder/src/components/Builder.js
fubhy/react-query-builder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import Item from '../components/Item'; export class Builder extends Component { static propTypes = { tree: PropTypes.instanceOf(Immutable.Map).isRequired, config: PropTypes.object.isRequir...
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js
Dervisevic/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
ajax/libs/handsontable/0.10.5/jquery.handsontable.js
ruiaraujo/cdnjs
/** * Handsontable 0.10.5 * 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: Mon Mar 31 2014 14:19:47 GMT+0200 (CEST) */ /*jsli...
developers.diem.com/src/components/docs/Excerpt/index.js
libra/libra
import React from 'react'; import PropTypes from 'prop-types'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const Excerpt = ({children, image}) => { return ( <div className={styles.root}> <div className={styles.content}> <div className={styles.imageCo...
packages/react/components/stepper.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7Stepper extends React.Co...
src/Parser/Warlock/Destruction/Modules/Talents/Eradication.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'com...
src/containers/Ecommerce/algolia/instantSearch.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import DesktopView from './desktopView'; import MobileView from './mobileView'; class InstantSearch extends Component { render() { const { view } = this.props; const View = view !== 'MobileView' ? DesktopView : MobileView; r...
src/mixin.js
Zyj163/React_learning
/** * Created by ddn on 16/11/14. */ import React from 'react'; import ReactDOM from 'react-dom'; var SetIntervalMixin = { componentWillMount: function() { this.intervals = []; }, setInterval: function() { this.intervals.push(setInterval.apply(null, arguments)); }, componentWillUn...
lib/app.js
callumlocke/next.js
import React, { Component } from 'react' import PropTypes from 'prop-types' import shallowEquals from './shallow-equals' import { warn } from './utils' import { makePublicRouterInstance } from './router' export default class App extends Component { state = { hasError: null } static childContextTypes = { ...
node_modules/express/node_modules/connect/node_modules/qs/test/browser/jquery.js
jbroquist/bookingappdemo-node
/*! * 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/renderers/shared/reconciler/__tests__/ReactEmptyComponent-test.js
kakadiya91/react
/** * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
test/TabPaneSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import TabPane from '../src/TabPane'; describe('TabPane', function () { it('Should have class', function () { let instance = ReactTestUtils.renderIntoDocument( <TabPane>Item content</TabPane> ); assert.ok(ReactTestUti...
node_modules/react-icons/md/pan-tool.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdPanTool = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m38.4 9.1v24.3c0 3.6-3.1 6.6-6.8 6.6h-12.1c-1.8 0-3.5-0.7-4.7-2l-13.2-13.3s2.2-2 2.2-2c0.4-0.4 0.9-0.5 1.4-0.5 0.3 0 0.7 0.1 1 0.2 0.1 0 7.2 4.1 7.2 4.1v-19.9c0-1.4 1...
src/js/views/transitions-target.js
electronspin/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; import Timers from 'react-timers'; import { Mixins } from 'touchstonejs'; module.exports = React.createClass({ mixins: [Mixins.Transitions, Timers()], statics: { navigationBar: 'main', getNavigation (props) { return { title: props.navbarT...
src/svg-icons/action/label.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
Realization/frontend/czechidm-core/src/content/identity/AuditRoutes.js
bcvsolutions/CzechIdMng
import React from 'react'; import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; /** * Audit routes * * @author Ondrej Kopr * @since 9.5.0 */ export default class AuditRoutes extends Basic.AbstractContent { getContentKey() { return 'content.audit'; } ...
ajax/libs/es6-shim/0.19.2/es6-shim.js
stuartpb/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.19.2 * see https://github.com/paulmillr/es6-shim/blob/master/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
ajax/libs/6to5/3.0.15/browser-polyfill.js
emmansun/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...
Examples/UIExplorer/UIExplorerIntegrationTests/js/IntegrationTestsApp.js
maskkid/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
core/built/public/jquery.js
dabria/DownBeat-Tech-Blog
/*! * jQuery JavaScript Library v1.11.2 * 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-12-17T15:27Z */ (function( global, factory ) { if ...
examples/filters/src/List.js
vtaits/redux-filterlist
import React from 'react' import PropTypes from 'prop-types' import Paginator from './Paginator' import Th from './Th' import {reduxFilterlist, filterlistPropTypes} from 'redux-filterlist' import constructUrl from './constructUrl' const List = ({ listState: { additional, items, loading, sort, ...
index.js
MPDL/LabCam
import { AppRegistry } from 'react-native'; import App from './App'; import UploadTask from './app/tasks/UploadTask'; AppRegistry.registerComponent('LabCam', () => App); AppRegistry.registerHeadlessTask('UploadTask', () => UploadTask);
src/interface/home/NotFound.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Link } from 'react-router-dom'; const NotFound = () => ( <div className="container"> <h1>404: Content not found</h1> <Link to="/">Go back home</Link> </div> ); export default NotFound;
modules/Redirect.js
limarc/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
src/root.js
markduck/markduck
import React, { Component } from 'react'; // import Sidebar from 'react-sidebar'; import { Grid, Row, Col } from 'react-bootstrap'; import Markdown from 'react-markdown2'; import Ace from 'react-ace'; import 'brace/mode/markdown'; import 'brace/theme/github'; export default class Root extends Component { constructor...
adminclient/_src/components/ResponsiveIFrame/index.js
typesettin/periodicjs.ext.reactapp
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_...
react_app/src/js/components/about/app-about.js
przeor/react-pdfjs-viewer-playground
/** @jsx React.DOM */ var React = require('react'); var Login = require('../auth/app-login'); var AuthStore = require('../../stores/app-auth.js'); var AuthenticationMixin = require('../../mixins/AuthenticationMixin.js'); var About = React.createClass({ mixins: [ AuthenticationMixin ], render: function () { re...
webclient/src/components/TimelineItem.js
jadiego/bloom
import React, { Component } from 'react'; import { Image, Segment } from 'semantic-ui-react'; class TimelineItem extends Component { handleItemMouseEnter = () => { } render() { return ( <li className="timeline-item" onMouseEnter={this.handleItemMouseEnter}> <div classNa...
src/components/elements/Text/index-test.js
ygoto3/simple-frontend-starter-kit
// @flow import test from 'tape'; import React from 'react'; import sd from 'skin-deep'; import { Text } from './index'; const tree = sd.shallowRender(<Text>expected</Text>); test('Text', t => { const actual = tree.subTree('span').text(); const expected = 'expected'; t.equal(actual, expected, 'Text should displ...
examples/clustering/app.js
jjmulenex/sdk
/** Demo of clustered points in an SDK map. * * Contains a Map and demonstrates some of the dynamics of * using the store. * */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {P...
src/parser/mage/arcane/modules/features/ArcaneFamiliar.js
ronaldpereira/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 from 'parser/core/Analyzer';...
src/components/PageControl.js
jacklam718/react-native-carousel-component
// @flow import React, { Component } from 'react'; import type { ReactElement } from 'react'; import { View, StyleSheet } from 'react-native'; const CIRCLE_SIZE = 4; const styles = StyleSheet.create({ container: { alignItems: 'center', justifyContent: 'center', }, innerContainer: { flexDirection: '...
packages/wix-style-react/src/Dropzone/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import Dropzone from '..'; import Box from '../../Box'; export defa...
app/components/Home.js
shannonjohnstone/react-weather
import React from 'react'; import GetCityContainer from '../containers/GetCityContainer'; // styles import '../styles/main.css'; import '../styles/layout-home.css'; const Home = props => ( <div className="home"> <h2>Please enter a city</h2> <GetCityContainer /> </div> ); export default Home;
test/common/components/App-test.js
vgarcia692/wutmi_frontend
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/common/components/App'; test('render with container div', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('#container').length, 1); });
src/components/common/Icon.js
kmcarter/karaoke-song-lister
import React from 'react'; import PropTypes from 'prop-types'; const Icon = props => { return <i className={`fa ${props.className}`} />; }; Icon.propTypes = { className: PropTypes.string.isRequired }; export default Icon;
packages/core/src/components/Video/Scrubber/Scrubber.js
appearhere/bloom
// @flow import React, { Component } from 'react'; import cx from 'classnames'; import css from './Scrubber.css'; type Props = { currentTime: number, duration: number, seek: Function, } type State = { focused: boolean } export default class Scrubber extends Component<Props, State> { constructor(props: Pr...
scripts/build/with-react.js
ambrinchaudhary/alloy-editor
import * as AlloyEditor from '../../src/adapter/main'; import React from 'react'; import PropTypes from 'prop-types'; if (typeof window !== 'undefined') { window.CKEDITOR.disableAutoInline = true; window.AlloyEditor = AlloyEditor; AlloyEditor.React = React; AlloyEditor.React.PropTypes = PropTypes; AlloyEditor.VER...
src/@ui/styled/__tests__/createStyleSheet.tests.js
NewSpring/Apollos
import React from 'react'; import { View } from 'react-native'; import renderer from 'react-test-renderer'; import createStyleSheet, { cachedStyles } from '../createStyleSheet'; describe('the createStyleSheet function', () => { it('returns styles that work on components', () => { const style = createStyleSheet(...
public/default/js/admin-app.js
UnQuaiz/SleepingOwlAdmin
!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esMo...
src/components/Main.js
iceking112/gallery-by-react
require('normalize.css/normalize.css'); //require('styles/App.css'); require('styles/App.scss'); import React from 'react'; var ControllerUnit = require('./ControllerUnit'); var ImgFigure = require('./ImgFigure'); // 获取图片相关的数据 let imageDatas = require('../data/imageDatas.json'); // 利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas=...
app/static/src/diagnostic/TestRecommendationList.js
SnowBeaver/Vision
import React from 'react'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import Accordion from 'react-bootstrap/lib/Accordion'; import Panel from 'react-bootstrap/lib/Panel'; import {Link} from 'react-router'; import NewTestForm from './NewTestForm'; i...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
SoundOffInc/SoundOffInc.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'));
src/components/App.js
dskurbatov/fullstack-js
import React from 'react'; //components import Header from './Header'; import ContestPreview from './ContestPreview'; class App extends React.Component { state = { pageHeader: "Naming Contest!!!" } componentDidMount(){ } componentWillUnmount(){ } render() { return( <div className="App"> <Header...
ajax/libs/yui/3.15.0/event-focus/event-focus-min.js
panshuiqing/cdnjs
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,fu...
app/javascript/mastodon/containers/domain_container.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
gatsby-strapi-tutorial/cms/plugins/content-type-builder/admin/src/components/PopUpRelations/index.js
strapi/strapi-examples
/** * * PopUpRelations * */ import React from 'react'; import PropTypes from 'prop-types'; import { findIndex, get, isEmpty, map, take, takeRight } from 'lodash'; import { FormattedMessage } from 'react-intl'; import pluralize from 'pluralize'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'r...
ajax/libs/react-data-grid/0.14.30/react-data-grid-with-addons.min.js
brix/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th...
packages/material-ui-icons/src/GpsFixedRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V2c0-.55-.45-1-1-1s-1 .45-1 1v1.06C6.83 3.52 3.52 6.83 3.06 11H2c-.55 0-1 .45-1 1s.45 1 1 1h1.06c.46 4.17...
docs/src/components/item-filter-example.js
bhamodi/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import StateViewer from './state-viewer' import ExampleStep from './example-step' import Browser from './browser' const reactor = new Reactor({ debug: true, expose: 'itemFilterReactor' }); reactor.registerStores({ typeFilter: Sto...
files/rxjs/4.0.8/rx.lite.extras.compat.js
gswalden/jsdelivr
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExports ...
src/js/index.js
nekuno/client
import 'babel-polyfill'; import './polyfill/manup'; import './hellojs/init'; import React from 'react'; import { render } from 'react-dom'; import { hashHistory } from 'react-router'; import Root from './Root'; import RouterContainer from './services/RouterContainer'; import LoginActionsCreator from './actions/LoginAct...
client/containers/Home/Home.js
joshjg/explore
/* eslint-disable react/jsx-indent-props, react/jsx-closing-bracket-location */ import React from 'react'; import { connect } from 'react-redux'; import GoogleMap from 'google-map-react'; import Marker from '../../components/Marker'; import FilterPanel from '../../components/FilterPanel'; import FilterButton from '.....
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/receivebutton.js
patel344/Mr.Miner
import React from 'react' const ReceiveButton = ({actions}) => { const handleReceiveButtonClick = () => actions.getNewReceiveAddress() return ( <div className="receive-button" onClick={handleReceiveButtonClick}> <i className="fa fa-download fa-2x" /> <span>Receive Siacoin</span> </div> ) } export default...
Examples/UIExplorer/TouchableExample.js
JoeStanton/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
workspace3/src/index.js
xixixao/meta-coffee
// @flow import React from 'react'; import nullthrows from 'nullthrows'; import ReactDOM from 'react-dom'; import './index.css'; import UI, {Editor} from './ui/UI'; import * as serviceWorker from './serviceWorker'; // $FlowFixMe import TranslationWorker from './translation.worker'; // $FlowFixMe import RunWorker from ...
ajax/libs/video.js/4.12.8/video.dev.js
zimbatm/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
dokomoforms/static/src/survey/js/components/baseComponents/__tests__/ResponseFields-tests.js
SEL-Columbia/dokomoforms
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; // a noop function useful for passing into components that require it. var noop = () => {}; describe('ResponseFields', () => { var ResponseFields, ResponseField; beforeEach(function() { jest....
tests/layouts/CoreLayout.spec.js
TheDadi/oel-pooler
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
actor-apps/app-web/src/app/components/Login.react.js
bensonX/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
ajax/libs/analytics.js/2.8.3/analytics.js
ahocevar/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
internals/templates/homePage/homePage.js
trufa/react-chess
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
NavigatorBarRN.js
WPDreamMelody/NavigatorBarRN
'use strict' import React from 'React'; import { StyleSheet, TouchableOpacity, Navigator, Text, Image, View, Alert, ScrollView } from 'react-native'; var navBarBackImg = require('./app/img/navbar_back.png'); var styles = StyleSheet.create({ navBar: { backgroundColor: '#ff6633', }, navBarText...
frontend/src/Activity/History/History.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import FilterMenu from 'Components/Menu/FilterMenu'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; imp...
node_modules/react-icons/io/navigate.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoNavigate = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 2.5l-15 35v-20h-20z"/></g> </Icon> ) export default IoNavigate
ajax/libs/angular-data/1.3.0/angular-data.js
ankitjamuar/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file angular-data.js * @version 1.3.0 - Homepage <http://angular-data.pseudobry.com/> * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/> * @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE> * * @overview Data store for Angular.js....
ajax/libs/cyclejs-dom/4.1.0/cycle-dom.js
freak3dot/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.CycleDOM = f()...
src/panel/Panel.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import PropTypes from 'prop-types'; /** * Renders a panel. */ const Panel = props => ( <div className={`panel v2 ${props.className}`} style={props.style}> {props.children} </div> ); Panel.propTypes = { /** Additional class names to add to the panel */ className: PropTypes.stri...
packages/material-ui-icons/src/Rotate90DegreesCcwTwoTone.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="M7.35 9.24L3.69 12.9l3.65 3.66L11 12.9z" opacity=".3" /><path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zm0 10.15L3.69 12.9l3.66-3.6...
frontend/src/pages/User2.js
purocean/yii2-template
import React from 'react'; import { Card, Row ,Col ,Button, Table, Modal, Input, Checkbox, Tooltip } from 'antd'; import '../styles/User.css'; import Main from '../layouts/Main'; import SearchInput from '../components/SearchInput'; import UserActions from '../actions/UserActions'; import UserStore from '../stores/Use...
packages/cf-component-table/test/TableFoot.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { TableFoot } from 'cf-component-table'; test('should render', () => { const component = renderer.create(<TableFoot>TableFoot</TableFoot>); expect(component.toJSON()).toMatchSnapshot(); }); test('should render extra class name', () => {...
node_modules/react-web/Libraries/Touchable/TouchableHighlight.web.js
typesettin/NativeCMS
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * @providesModule ReactTouchableHighlight */ 'use strict'; import React, { Component } from 'react'; import View from 'ReactView'; import TimerMixin from 'react-...
src/routes/Home/components/Home/other.js
Ryana513/ccproject
import React from 'react' import Theme from '../../../../theme' import { Link } from 'react-router' import { paths } from '../../../../constants' import classes from './Home.scss' const authWrapperUrl = 'https://github.com/mjrussell/redux-auth-wrapper' const reactRouterUrl = 'https://github.com/ReactTraining/react-rout...
src/Headline/Headline.js
boldr/boldr-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; const validTypes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']; /** * A heading should always be the visual and describing start of * another content section. */ const Headline = ({ className, type, theme, lightText, ...
src/client/lib/flux/devtools.js
cazacugmihai/este
import Component from '../../components/component.react'; import React from 'react'; export default function devTools(BaseComponent) { return class DevTools extends Component { static propTypes = { flux: React.PropTypes.object.isRequired } constructor(props) { super(props); this.hist...
packages/material-ui-icons/src/MobileFriendlyOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zM7.01 13.47l-2.55-2.55-1.27 1.27L7 16l7.19-7.19...
packages/material-ui-icons/src/VpnKeyTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M11.71 10.33C11.01 8.34 9.11 7 7 7c-2.76 0-5 2.24-5 5s2.24 5 5 5c2.11 0 4.01-1.34 4.71-3.33l.23-.67H18v4h2v-4h2v-2H11.94l-.23-.67zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-...