path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
node_modules/react-images/node_modules/aphrodite/examples/src/examples.js
ed1d1a8d/macweb
import ReactDOM from 'react-dom'; import React from 'react'; import { StyleSheet } from '../../src/index.js'; import StyleTester from './StyleTester.js'; StyleSheet.rehydrate(window.renderedClassNames); ReactDOM.render( <StyleTester />, document.getElementById('root'));
ajax/libs/video.js/5.0.0-rc.60/video.novtt.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.videojs = f()}...
ajax/libs/analytics.js/1.5.2/analytics.js
the-destro/cdnjs
;(function(){ /** * Require the given path. * * @param {String} path * @return {Object} exports * @api public */ function require(path, parent, orig) { var resolved = require.resolve(path); // lookup failed if (null == resolved) { orig = orig || path; parent = parent || 'root'; var err = new ...
node_modules/react-icons/md/voice-chat.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdVoiceChat = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 23.4v-13.4l-6.6 5.3v-5.3h-13.4v13.4h13.4v-5.4z m3.4-20c1.8 0 3.2 1.4 3.2 3.2v20c0 1.8-1.4 3.4-3.2 3.4h-23.4l-6.6 6.6v-30c0-1.8 1.4-3.2 3.2-3.2h26.8z"/></g> ...
docs/app/Examples/views/Feed/Content/FeedExampleContentDateShorthand.js
clemensw/stardust
import React from 'react' import { Feed } from 'semantic-ui-react' const image = 'http://semantic-ui.com/images/avatar/small/jenny.jpg' const date = '3 days ago' const summary = 'You added Jenny Hess to your coworker group.' const FeedExampleContentDateShorthand = () => ( <Feed> <Feed.Event image={image} date={...
app/javascript/mastodon/features/follow_requests/index.js
summoners-riftodon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
docs/src/app/AppRoutes.js
nathanmarks/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import Prerequisites from './components/pages/get-started/Prerequisites'; import In...
ajax/libs/react/15.0.0-rc.1/react-dom.js
CyrusSUEN/cdnjs
/** * ReactDOM v15.0.0-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 same di...
src/routes/contact/index.js
louisukiri/react-starter-kit
/** * 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...
src/assets/js/component/carousel.js
task-k/react_prototype
import React from 'react' const App = () => ( <div> carouselのcomponent hello, world <br /> react + redux + babel + webpackでつくってるよ<br /> コンポーネント化するためにここにDEMO作っていくよ<br /> 設計考えましょう。そうしましょう。 </div> ) export default App
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
ro-savage/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id = 0, ...rest }) { return [ { id:...
test/BadgeSpec.js
Firfi/meteor-react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Badge from '../src/Badge'; describe('Badge', function () { it('Should output a badge with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Badge> <strong>Content</strong> </Badge...
src/components/header/header.js
change-soft8/cs-project-antd
import React from 'react'; import { Row, Icon, Popover, Button, Tooltip } from 'antd'; import AvatorPopup from './avatorPopup' import '../../style/header/header.css'; import CloudWht from '../../img/cloudWht.png'; const setText = <span>设置</span>; const content = <AvatorPopup />; export default class Header extends R...
p5Day1/libraries/p5.sound.js
bensk/SE8_p5js
/*! p5.sound.js v0.3.0 2016-01-31 */ (function (root, factory) { if (typeof define === 'function' && define.amd) define('p5.sound', ['p5'], function (p5) { (factory(p5));}); else if (typeof exports === 'object') factory(require('../p5')); else factory(root['p5']); }(this, function (p5) { /** * p5....
ajax/libs/forerunnerdb/1.3.595/fdb-core.min.js
hare1039/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
docs/app/Examples/elements/Button/Types/ButtonExampleContentProp.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleContentProp = () => ( <Button content='Click Here' /> ) export default ButtonExampleContentProp
client/components/campaigns/CreateCampaignForm.spec.js
karuppiah7890/Mail-for-Good
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import CreateCampaignForm from './CreateCampaignForm'; const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars touch: () => {}, valid: true, pristine: true, submitting: true, nextPage: () => {}, ...
src/index.js
aryalprakash/aryalprakash.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import reducers from './reducers'; import InfiniaStores from './reducers/infinia.js' import App from './App'; require('../css/main.cs...
parlai/crowdsourcing/tasks/dialcrowd/webapp-config/src/components/requesters/template/FontPicker.js
facebookresearch/ParlAI
/********************************************* * @ Jessica Huynh, Ting-Rui Chiang, Kyusong Lee * Carnegie Mellon University 2022 *********************************************/ import React from 'react'; import {Input, Form, InputNumber, Button, Select, Radio, Tooltip} from 'antd'; import {AlignLeftOutlined, AlignCent...
app/javascript/mastodon/features/account_timeline/components/header.js
sylph-sin-tyaku/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ImmutablePureComponent from 'react-immutable-pure-component'; import MovedNote from './moved_note'; import { FormattedMessage } fro...
src/svg-icons/image/switch-camera.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchCamera = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5...
src/components/SubNetwork/index.js
fhelwanger/bayesjs-editor
import Network from 'components/Network'; import React, { Component } from 'react'; import Modal from 'components/Modal'; import { linkedNodePropTypes, networkPropTypes, nodePropTypes, subNetworkInferenceResultsPropTypes, } from 'models'; import { propEq } from 'ramda'; import PropTypes from 'prop-types'; impo...
ajax/libs/remoteStorage/0.11.2/remotestorage-nocache.js
viskin/cdnjs
/** remotestorage.js 0.11.2, http://remotestorage.io, MIT-licensed **/ /** FILE: lib/bluebird.js **/ /** * bluebird build version 2.3.4 * Features enabled: core, nodeify * Features disabled: race, call_get, generators, map, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers *...
src/containers/book_details/index.js
Sburke0708/ZBook
import React, { Component } from 'react' import { connect } from 'react-redux' class BookDetail extends Component { render () { if (!this.props.book) { return <div className='book-details'>Select a book to get started.</div> } return ( <div className='book-details'> <h3>Details fo...
src/Popup.js
snario/react-mapbox-gl
import React from 'react'; import { popup } from 'leaflet'; import latlngType from './types/latlng'; import MapComponent from './MapComponent'; export default class Popup extends MapComponent { static propTypes = { position: latlngType }; componentWillMount() { super.componentWillMount(); const { c...
assets/js/containers/BudgetsContainer.js
nicksergeant/leather
import Immutable from 'immutable'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { initChannel } from '../actions/channels'; import { selectActiveAccount } from '../selectors/accounts'; import { selectActivePanel } from '../selectors/panels';...
internal/FixedDataTableColumnResizeHandle.react.js
remyyounes/fixed-data-table
/** * Copyright (c) 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. * * This is to be use...
app/pages/get-involved/education.spec.js
zooniverse/Panoptes-Front-End
/* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */ import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import Education from './education'; describe('Education', function () { it('renders without crashing...
node_modules/rc-input-number/lib/styles.js
qingege/react_draft
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _reactNative = require('react-native'); exports["default"] = _reactNative.StyleSheet.create({ container: { flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'center' }, input: { flex: 1, ...
hit-the-road-react/src/components/AppFooter.js
buckmelton/hit-the-road
import React, { Component } from 'react'; import '../css/App.css'; import '../css/normalize.css'; import '../css/skeleton.css'; class AppFooter extends Component { render() { return ( <div className="htr-footer"> <p>About - Press - Contact Us - FAQ - Privacy Policy - Careers - Popular Destinations ...
ajax/libs/core-js/0.9.12/library.js
luhad/cdnjs
/** * Core.js 0.9.11 * 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 = {}; /*****...
addons/docs/src/lib/convert/__testfixtures__/proptypes/enums.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; export const Component = (props) => <>JSON.stringify(props)</>; Component.propTypes = { oneOfNumber: PropTypes.oneOf([1, 2, 3]), oneOfString: PropTypes.oneOf(['static', 'timed']), };
ajax/libs/rxjs/2.3.18/rx.lite.compat.js
sajochiu/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
templates/protostar/js/date/jquery-ui.js
ms08-067/xe-wot-re-xi-dan2014
/*! jQuery UI - v1.9.1 - 2012-10-25 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete....
preact/simple-blog-cms/src/index.js
5orenso/simple-blog
let poly = require("preact-cli/lib/lib/webpack/polyfills"); import { h } from "preact"; import habitat from "preact-habitat"; import Cms from "./components/cms"; const cms = habitat(Cms); cms.render({ selector: '[data-widget="simpleBlogCms"]', clean: true, });
client/components/FlashMessage.js
andela-ksolomon/blocker
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; class FlashMessage extends React.Component { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { this.props.deleteFlashMessage(this.props.message.id); } rende...
frontend/src/components/forms/formList.js
AmericanRedCross/OpenMapKitServer
import React from 'react'; import { Link } from "react-router-dom"; import { Map } from 'immutable'; import { AnchorButton, Button, ButtonGroup, Card, Elevation } from '@blueprintjs/core'; import { Grid, Row, Col } from 'react-bootstrap'; import { formList } from '../../network/formList'; import { cancelablePromise } ...
clients/packages/admin-client/src/pages/admin/mobilizations/settings/sharing/page.js
nossas/bonde-client
import React from 'react'; import MobSelectors from '../../../../../mobrender/redux/selectors'; import * as MobActions from '../../../../../mobrender/redux/action-creators'; import { FormShare } from '../../../../../mobilizations/components'; import { SettingsForm } from '../../../../../ux/components'; if (require('e...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
app/src/routes/answer/components/answer/answer.spec.js
sproogen/itsgoingto.be
import React from 'react' import { fireEvent, render, screen } from '@testing-library/react' import Answer from './answer' const defaultProps = { index: 1, type: 'radio', answer: { id: 1, answer: 'A', responsesCount: 1, }, poll: { ended: false, }, totalResponses: 1, checked: false, ...
src/desktop/apps/consign/test/components.js
kanaabe/force
import * as actions from '../client/actions' import ChooseArtist from '../components/choose_artist' import UploadedImage from '../components/uploaded_image' import React from 'react' import reducers from '../client/reducers' import { responsiveWindowAction } from '../../../components/react/responsive_window' import { c...
src/svg-icons/editor/linear-scale.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorLinearScale = (props) => ( <SvgIcon {...props}> <path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ...
ajax/libs/yui/3.4.0/loader-base/loader-base-debug.js
kentcdodds/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
js/views/Translation/index.js
c-h-/universal-native-boilerplate
import React from 'react'; import { View, Text, } from 'react-native'; import I18n from 'react-native-i18n'; import styles from './styles'; const Translation = () => { return ( <View style={styles.container}> <Text>Translated greeting:</Text> <Text>{I18n.t('greeting')}</Text> </View> ); };...
src/templates/blog-post.js
mike-plummer/mike-plummer.github.io
import React from 'react'; import Helmet from 'react-helmet'; import get from 'lodash/get'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; class BlogPostTemplate extends React.Component { render() { const post = this.props.data.markdownRemark; const siteTitle = get(this.props, '...
vendor/jquery-1.10.2.min.js
moklick/odyssey.js
/*! 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...
charts/react-chartjs-3/example1/src/components/FlowCheckboxSelector.js
rob-blackbourn/scratch-js
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import CheckBoxGroup from './CheckBoxGroup' import { fetchNames } from '../data' const styles = theme => ({ root: { width: '100%', maxWidth: 500, }, }) class FlowCheckboxSelector extends Reac...
packages/bonde-styleguide/src/navigation/Dropdown/Dropdown.js
ourcities/rebu-client
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Icon from '../../content/Icon/Icon' import Spacing from '../../layout/Spacing/Spacing' export const Header = styled.div`{ width: auto; font-family: 'Nunito Sans', sans-serif; font-size: 16px; font-weight:...
docs/src/app/components/pages/components/IconButton/ExampleTouch.js
ruifortes/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionGrade from 'material-ui/svg-icons/action/grade'; const IconButtonExampleTouch = () => ( <div> <IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right"> <ActionGrade /> </IconButton> <IconB...
dashboard/app/components/SecureData/SecureData.js
tlisonbee/cerberus-management-service
import React from 'react' import { Component } from 'react' import PropTypes from 'prop-types' import SecureDataForm from '../SecureDataForm/SecureDataForm' import * as mSDBActions from '../../actions/manageSafetyDepositBoxActions' import './SecureData.scss' import log from 'logger' const fields = [ 'path', 'k...
app/filter/filter-page-header.js
jaketrent/photo-surf
import React from 'react' import styleable from 'react-styleable' import css from './filter-page-header.css' function FilterPageHeader(props) { return ( <div className={props.css.root}> <div className={props.css.left}>{props.left}</div> <div className={props.css.center}>{props.center}</div> <d...
media/js/jquery.js
Weldeasy/godcode
/*! 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...
src/components/SelectedCharacters.js
rdonnelly/swd-team-builder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { connect } from 'react-redux'; import FontAwesome5Icon from 'react-native-vector-icons/FontAwesome5'; import { withNavigation } from 'react-navigation'; ...
src/components/SwiprApp/SwiprPlayArea/SwiprPlayArea.js
rivertam/jygabyte
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './SwiprPlayArea.css'; import withStyles from '../../../decorators/withStyles'; import SwiprCardStack from './SwiprCardStack'; @withStyles(styles) class SwiprPlayArea extends Component...
test/SafeAnchorSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SafeAnchor from '../src/SafeAnchor'; describe('SafeAnchor', function() { it('renders an anchor tag', function() { const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />); const node = React.findDOMNode(instanc...
src/toolbar/InsertModalFooter.js
AllenFang/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Const from '../Const'; class InsertModalFooter extends Component { handleCloseBtnClick = e => { const { beforeClose, onModalClose } = this.props; beforeClose && beforeClose(e); onModalClose(); } handleSaveBtnClick ...
ajax/libs/yui/3.10.2/scrollview-base/scrollview-base.js
amitabhaghosh197/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
src/utils/domain/props.js
dictyBase/dicty-react-components
import React from 'react'; const domainProps = { params: { domainTrackHeight : React.PropTypes.number, proteinTrackHeight : React.PropTypes.number, leftSideGutter : React.PropTypes.number, rightSideGutter : React.PropTypes.number, topGutter : React.PropTypes....
src/svg-icons/action/gavel.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
lib/utils/plugins.js
rickycodes/hyper
import {remote} from 'electron'; import {connect as reduxConnect} from 'react-redux'; // patching Module._load // so plugins can `require` them wihtout needing their own version // https://github.com/zeit/hyper/issues/619 import React from 'react'; import ReactDOM from 'react-dom'; import Component from '../component'...
ajax/libs/yasr/2.4.7/yasr.bundled.min.js
WilliamRen/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
client/app/screens/Login.js
feedhenry/snapscreen
import React from 'react'; import Login from 'react-native-login'; import { Text, View, Body, Button, Icon, Container, Content, } from 'native-base'; const styles = { buttonBigText: { fontSize: 20, padding: 15, fontWeight: 'bold', }, buttonBlueText: { color: '#3b5998', }, button...
src/common/Comment/index.js
Mrlyjoutlook/cnode-native
import React, { Component } from 'react'; import { View, Text, TextInput, StyleSheet, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; const styles = StyleSheet.create({ comment: { backgroundColor: '#fff', height: 56, borderTopColor: '#DCDCDC', borderTopW...
ajax/libs/yui/3.5.0pr2/event-custom-base/event-custom-base.js
shelsonjava/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
src/js/components/n-text.js
bradwoo8621/parrot2
import React from 'react' import ReactDOM from 'react-dom' import jQuery from 'jquery' import classnames from 'classnames' let $ = jQuery; import {Envs} from '../envs' import {NComponent, NAddonComponent} from './n-component' class NText extends NAddonComponent { // lifecycle postDidUpdate() { let value = this.get...
src/NavDropdown.js
zanjs/react-bootstrap
import React from 'react'; import Dropdown from './Dropdown'; class NavDropdown extends React.Component { render() { let { children, title, noCaret, ...props } = this.props; return ( <Dropdown {...props} componentClass="li"> <Dropdown.Toggle useAnchor disabled={props.disab...
src/interface/icons/UpArrow.js
sMteX/WoWAnalyzer
import React from 'react'; const Icon = ({ ...other }) => ( <svg viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" className="icon" {...other}><path d="M0 25L25 0l25 25H37.4v25h-25V25H0z" /></svg> ); export default Icon;
ajax/libs/flocks.js/0.16.16/flocks.js
hibrahimsafak/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */ /* eslint-env node,browser */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it'...
components/Wysiwyg/index.js
andreslucas/draft-wysiwyg
/** * @license Copyright (c) UserZoom 2016. All Rights Reserved. http://www.userzoom.com/ * * Proprietary and confidential * * NOTICE: All information contained herein is, and remains the property * of UserZoom Technologies SL. The intellectual and technical concepts * contained herein are proprietary to UserZoo...
src/home.js
Sallinov/resume
import React, { Component } from 'react'; var Home = React.createClass({ render: function () { return ( <div className="body center"> <div className="container flex"> <div className="col-lg-4 col-md-4 col-sm-12 col-xs-12 cursdefault"> ...
app/javascript/mastodon/features/followers/index.js
Chronister/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
src/lib/components/appBar/AppBar.js
lighter-cd/ezui_react_one
import React from 'react'; import PropTypes from 'prop-types'; import injectSheet from 'react-jss'; import classNames from 'classnames'; import { Icon } from '../icon'; const styles = { root: { height: props => props.height, width: '100%', background: props => props.background, lineHeight: props => p...
ajax/libs/rxjs/2.3.24/rx.lite.compat.js
joeylakay/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
app/javascript/flavours/glitch/components/missing_indicator.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'flavours/glitch/images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indi...
ajax/libs/react-slick/0.7.0/react-slick.js
Piicksarn/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Slider"] = factory(...
src/containers/home/HomeComponent.js
kryptnostic/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { connect } from 'react-redux'; import { Pager } from 'react-bootstrap'; import AsyncContent from '../../components/asynccontent/AsyncContent'; import EntitySetLi...
ajax/libs/buy-button-js/0.1.7/buybutton.js
joeyparrish/cdnjs
var ShopifyBuy = (function () { 'use strict'; var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {} function interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex; } function cre...
web/app/managers/page-manager.js
mbme/vita
import ReactDOM from 'react-dom'; import React from 'react'; import MainPage from 'components/pages/records'; // page === layout const PAGES = { 'main': MainPage, }; // Page renderer export default function createPageManager () { let currentPage; return function ({ page }) { if (!page || currentPage === p...
src/@ui/EmbeddedVideoPlayer/index.js
NewSpring/Apollos
import React from 'react'; import { compose, pure, setPropTypes } from 'recompose'; import PropTypes from 'prop-types'; import WebView from './WebView'; const enhance = compose( pure, setPropTypes({ src: PropTypes.string, }), ); const buildSourceObject = source => ({ uri: source }); const EmbeddedVideoPla...
ajax/libs/forerunnerdb/1.3.811/fdb-core+persist.js
sajochiu/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...
packages/material-ui-icons/src/StraightenSharp.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="M23 6H1v12h22V6zm-2 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z" /></g></React.Fragment> , 'StraightenSharp');
app/javascript/mastodon/components/load_gap.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); @injectIntl export default class LoadGap extends React.PureComponent { static propTypes...
client/src/components/NavBar/NavBarForm.js
ccabrales/espn-fantasy-stats
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Form, Input, Select } from 'semantic-ui-react'; /** * Form for the nav bar to allow the user to update the League ID and season * @class NavBarForm */ class NavBarForm extends React.Component { /** * Initial state to keep track of ...
src/components/course/CoursesPage.js
kunwardeep/react-redux-store
import React from 'react'; import {connect} from 'react-redux'; import * as courseActions from '../../actions/courseActions'; import {bindActionCreators} from 'redux'; import CourseList from './courseList'; import {browserHistory} from 'react-router'; class CoursesPage extends React.Component{ constructor(props,con...
ajax/libs/ember-data.js/0.13.0/ember-data-latest.js
AlexisArce/cdnjs
// Version: v0.13 // Last commit: 610cfec (2013-05-28 08:04:23 -0400) (function() { var define, requireModule; (function() { var registry = {}, seen = {}; define = function(name, deps, callback) { registry[name] = { deps: deps, callback: callback }; }; requireModule = function(name) { if (seen[name...
packages/@vega/submissions-tool/src/components/ArticleList.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import styles from './styles/ArticleList.css' import {upperFirst} from 'lodash' import withPropsStream from '@vega/utils/withPropsStream' import {urlFor} from '@vega/utils/imageUrl' import {currentUser$} from 'part:@vega/datastores/user' import client from 'p...
server/webapp/WEB-INF/rails.new/app/assets/javascripts/lib/es6-shim.js
pshelton-skype/gocd
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.33.1 * see https://github.com/paulmillr/es6-shim/blob/0.32.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ *...
ajax/libs/forerunnerdb/1.3.320/fdb-all.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...
ajax/libs/yui/3.8.0/datatable-core/datatable-core.js
chrisyip/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
ajax/libs/onsen/1.3.3/js/onsenui.min.js
xymostech/cdnjs
/*! onsenui - v1.3.3 - 2015-06-30 */ !function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,attr...
src/svg-icons/action/event.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEvent = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> </SvgIcon> ...
ajax/libs/react/0.9.0/react.min.js
oivoodoo/cdnjs
/** * React v0.9.0 * * Copyright 2013-2014 Facebook, Inc. * * 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 appl...
src/index.js
ahmedhamodi/ahmedhamodi.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/Header.js
lmtm/react-training
import React from 'react' // required for JSX import { IndexLink, Link } from 'react-router' export default function Header () { return ( <header> <h1>Contact List</h1> <nav> <IndexLink to="/" activeClassName="active">Home</IndexLink> <Link to="/contacts" activeClassName="active">Con...
libs/utils/react.js
CrazyFork/element-react
import React from 'react' function firstChild(props) { const childrenArray = React.Children.toArray(props.children); return childrenArray[0] || null; } export {firstChild}
lib/types/Circle.js
jakubzloczewski/react-steps
import React from 'react'; import classNames from 'classnames'; import styles from './Circle.less'; import {mergeStyles} from '../utils'; const size = 45; export default class Circle extends React.Component { render() { const {item, flat, idx} = this.props; var status = 'This Step is Undone.'; ...
plugins-test/editor/wangEditorTest/src/app.js
fengnovo/diary
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import E from 'wangeditor' class App extends Component { constructor(props, context) { super(props, context); this.state = { editorContent: '' } } render() { return ( <div className="App"> <div...
node_modules/rc-editor-plugin-image/lib/EditorPluginImageLoader.js
HK8383/react_project_imooc
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var React = _interopRequireWildcard(_react); var _draftJs = require('draft-js'); var _DraftOffsetKey = require('draft-js/lib/DraftOffsetKey'); var _DraftOffsetKey2 = _interopRequireDefault(_DraftOffsetK...
node_modules/react-icons/ti/star-half-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiStarHalfOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m5.2 18.8l6 5.5-1.7 7.7c-0.2 1 0.2 2 1 2.5 0.3 0.3 0.8 0.5 1.3 0.5 0.4 0 0.7 0 1-0.2 0 0 0.2 0 0.2-0.1l6.8-3.9 6.9 3.9s0.1 0 0.1 0.1c0.9 0.4 1.9 0.4 2.5-0.1 0...
lib/js/apps/genetic-algorithms/KnightCovering/Configuration.js
jneander/learning
import React from 'react'; import Container from 'instructure-ui/lib/components/Container'; import NumberInput from 'instructure-ui/lib/components/NumberInput'; export default class Configuration extends React.PureComponent { constructor (props) { super(props); this.onBoardSizeChange = this.onBoardSizeChang...