path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
App/Containers/PresentationTab.js
oreofish/v2exClient
// @flow import React from 'react' import { ScrollView, Text, Image, View } from 'react-native' import { Images } from '../Themes' import RoundedButton from '../Components/RoundedButton' import PageContainer from '../Components/common/PageContainer' import { Actions as NavigationActions } from 'react-native-router-flu...
src/SplitToggle.js
dozoisch/react-bootstrap
import React from 'react'; import DropdownToggle from './DropdownToggle'; class SplitToggle extends React.Component { render() { return ( <DropdownToggle {...this.props} useAnchor={false} noCaret={false} /> ); } } SplitToggle.defaultProps = DropdownToggle.defaultProps;...
ajax/libs/aui/5.6.7/aui/js/aui-dependencies.js
icco/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
test/z-News/NewsDetails.js
ivanl001/ReactNative-Learning
/** * Created by feng on 16/12/9. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, WebView, } from 'react-native'; var IMNewsDetails = React.createClass({ getDefaultProps(){ return{ } }, render(){ return( ...
node_modules/react-icons/io/male.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoMale = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 15l-4.9-4.9-5.4 5.4c1.7 2.3 2.8 5.1 2.8 8.3 0 7.5-6.2 13.7-13.7 13.7s-13.8-6.2-13.8-13.7 6.2-13.8 13.8-13.8c3.1 0 5.9 1.1 8.2 2.8l5.4-5.4-4.9-4.9h12.5v12.5z m-14.2 1...
ajax/libs/mobx-react/3.3.1/custom.min.js
seogi1004/cdnjs
!function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&u.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=m[t];n?e[t]=function(){n.apply(this,argumen...
src/components/UserVoucherTab.js
Ricky-Nz/knocknock-web
import React, { Component } from 'react'; import Relay from 'react-relay'; import AssignedVoucherList from './AssignedVoucherList'; import PaginationSearchBar from './PaginationSearchBar'; import { AddFloatButton } from '../widgets'; import { paginationVariables } from '../utils'; class UserVoucherTab extends Componen...
__tests__/index.android.js
vigzmv/what_the_thing
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
files/rxjs/2.3.23/rx.all.compat.js
chrissimpkins/jsdelivr
// 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 }; v...
ajax/libs/rxjs/3.0.0/rx.all.compat.js
dmsanchez86/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo...
frontend/src/Settings/ImportLists/ImportLists/ImportListsConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchRootFolders } from 'Store/Actions/rootFolderActions'; import { deleteImportList, fetchImportLists } from 'Store/Actions/settingsActions'; import c...
app/components/Annotation/__tests__/Line-test.js
TailorDev/franklin
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; // see: https://github.com/mochajs/mocha/issues/1847 const { describe, it } = global; import Line from '../Line'; describe('<Line />', () => { it('renders itself', () => { const wrapper = shallow( <Line x1...
src/modules/pages/ViewPage/ViewApiPage.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import ViewApiContainer from './viewApiContainer' const propTypes = { location: PropTypes.object.isRequired } const ViewPage = ({ location }) => ( <ViewApiContainer location={location} /> ) ViewPage.propTypes = propTypes export default ViewPage
src/components/Search/SeachResultList.js
nikhilfusion/substitutionApp
import React, { PropTypes } from 'react'; import MedicineCard from '../../components/Common/MedicineCard'; import './Search.css'; const SearchResultList = ({ medicines }) => ( <div className="searchResultContainer"> <h2 className="listTitle">Search Results</h2> <div className="listContainer"> {medicine...
app/javascript/mastodon/features/account_gallery/components/media_item.js
im-in-space/mastodon
import Blurhash from 'mastodon/components/blurhash'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state'; import { isIOS } from 'mastodon/is_mobile'; import PropTypes from 'prop-types'; import React from 'react...
ajax/libs/forerunnerdb/1.3.933/fdb-core+views.min.js
tonytomov/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...
client/components/ChangePasswordForm.js
homanbromand/node-react-bootstrap
import React from 'react' import { change } from 'client/actions/passwordActions' export default class ChangePassword extends React.Component { constructor() { super() this.submitHandler = this.submitHandler.bind(this) } submitHandler(e) { e.preventDefault() const currentPassword = this.currentPasswordI...
node_modules/react-overlays/lib/utils/ownerWindow.js
hsavit1/gosofi_webpage
'use strict'; exports.__esModule = true; exports.default = function (componentOrElement) { return (0, _ownerWindow2.default)(_reactDom2.default.findDOMNode(componentOrElement)); }; var _reactDom = require('react-dom'); var _reactDom2 = _interopRequireDefault(_reactDom); var _ownerWindow = require('dom-helpers/ow...
dist/nornj-react.esm.js
joe-sky/nornj-react
/*! * NornJ-React v5.0.0-rc.18 * (c) 2016-2019 Joe_Sky * Released under the MIT License. */ import nj, { registerExtension } from 'nornj'; import React, { Component } from 'react'; var njr = {}; function _registerComponent(name, component) { if (name != null) { nj.registerComponent(name, component); } } func...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSectionProps.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const sections = [ { content: 'Home', link: true }, { content: 'Search', active: true }, ] const BreadcrumbExampleSectionProps = () => ( <Breadcrumb sections={sections} /> ) export default BreadcrumbExampleSectionProps
app/components/ReOrder/ReDeliveryAddress.js
prudhvisays/newsb
import React from 'react'; import Input from './ReInput'; import DeliveryLocation from './DeliveryLocation'; import DateTimePicker from './DateTimePicker'; import moment from 'moment'; export default class ReDeliveryAddress extends React.Component { //eslint-disable-line constructor(props) { super(props); ...
packages/ringcentral-widgets/lib/createModal/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import propTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; // TODO: consider refactoring onClose + clickOutToClose to onOverlayClick export default function createModal(Comp) { return class ...
ajax/libs/yui/3.10.3/datatable-body/datatable-body-debug.js
sympmarc/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
ajax/libs/rxjs/2.3.18/rx.js
wenzhixin/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...
src/js/components/offers.js
MerinEREN/iiClient
import React from 'react' const Offers = () => <h1>Offers Page =)</h1> export default Offers
packages/material-ui-icons/src/EqualizerSharp.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="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z" /></React.Fragment> , 'EqualizerSharp');
src/routes/content/index.js
uptive/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 fetch from '../../core/f...
src/index.js
zasqw2222/webpackDemo
import React from 'react' import {render} from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import {Router, browserHistory} from 'react-router' import thunk from 'redux-thunk' import rootRouters from './routes' import reducer from './reducers' let stor...
src/js/touchstone/animation.js
npirotte/catchapp
var animation = require('tween.js'); var React = require('react'); function update () { animation.update(); if (animation.getAll().length) { requestAnimationFrame(update); } } function scrollToTop (el, options) { options = options || {}; var from = el.scrollTop; var duration = Math.min(Math.max(200, from / 2)...
files/videojs/5.0.0-rc.91/video.js
cedricbousmanne/jsdelivr
/** * @license * Video.js 5.0.0-rc.91 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
component/layoutAnimation.js
Luyakus/react-native-self-UIExplorer
/* * LayoutAnimation 可以在页面创建以及更新布局的时候做出动画,并不能对颜色做动画; * * ios默认支持,Android需要加一句 * if (Platform.OS === 'android') { // 安卓使用layout要加这一句 UIManager.setLayoutAnimationEnabledExperimental(true) } *LayoutAnimation 是即时的,即每次更新布局都要设置,所以可以写在componentWillUpdate,写在constructor 里有惊喜 * * 一个完整的LayoutAnimation应当定义如下 * customLayoutAnima...
docs/app/components/layout/main/index.js
KerenChandran/react-toolbox
import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from 'react-toolbox'; import Appbar from '../../../components/appbar'; import Markdown from '../../../components/markdown'; import Playground from './components/playground.js'; import MainNavigation from './components/navigation.js'; import ...
tests/react_native_tests/test_data/native_code/BorderStyles/storybook/stories/Mobile/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import Mobile from 'app/components/Mobile' storiesOf('Mobile', module) .add('default', () => ( <Mobile></Mobile>))
ajax/libs/core-js/1.2.3/library.js
him2him2/cdnjs
/** * core-js 1.2.3 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
docs/app/Examples/collections/Table/Variations/TableExampleAttached.js
aabustamante/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const header = ( <Table.Header> <Table.Row> <Table.HeaderCell>Header</Table.HeaderCell> <Table.HeaderCell>Header</Table.HeaderCell> <Table.HeaderCell>Header</Table.HeaderCell> </Table.Row> </Table.Header> ) const body = (...
modules/jaggery-apps/portal/gadgets/certificate_authority/js/jquery.min.js
krishanthasamaraweera/product-is
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
ajax/libs/forerunnerdb/1.3.36/fdb-all.min.js
BenjaminVanRyseghem/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...
components/barCharts/HorizontalBarChart/index.js
sumittops/react-data-viz
import React, { Component } from 'react'; import { scaleLinear } from 'd3-scale'; import PropTypes from 'prop-types'; import { max } from 'd3-array'; import { axisBottom } from 'd3-axis'; import '../bar-chart.scss'; import { Color } from '../../../core/utils'; import { select as d3Select } from 'd3-selection'; export...
icons/image/photo-album.js
arkxu/react-material-icons-1
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var ImagePhotoAlbum = React.createClass({ displayName: 'ImagePhotoAlbum', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M...
lib/MultiColumnList/MultiColumnList.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import AutoSizer from 'react-virtualized-auto-sizer'; import MCLRenderer from './MCLRenderer'; const propTypes = { autosize: PropTypes.bool, }; const MultiColumnList = (props) => { if (props.autosize) { return ( <AutoSizer> {({ heig...
es/Card/CardActions.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-15/friend-detail/FriendFlipper.js
Brandon-J-Campbell/codemash
import React from 'react'; import styles from './FriendFlipper.css'; export default class FriendFlipper extends React.Component { state = { flipped: false, }; handleFlipped = () => { this.setState(prevProps => { return { flipped: !prevProps.flipped, }; }); }; render() { ...
webapp/client/src/index.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'codemirr...
src/index.js
MattMcFarland/tw-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Header, Layout, MainContent, Footer } from './components/Common/index.js'; import { TutReqList } from './components/index.js'; require('./utils/polyfills'); ReactDOM.render( <div> <Header /> <Layout /> <MainContent> <TutReqList...
webpackConfigs/test/webpack.config.electron.js
N0taN3rd/wail
const webpack = require('webpack') const path = require('path') const noParseRe = process.platform === 'win32' ? /node_modules\\json-schema\\lib\\validate\.js/ : /node_modules\/json-schema\/lib\/validate\.js/ module.exports = { module: { noParse: noParseRe, loaders: [ { test: /\.jsx?$/, ...
ajax/libs/yui/3.7.1/simpleyui/simpleyui.js
gogoleva/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @main yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI gl...
AngularWebApi/Step6A/Scripts/jquery-ui-1.9.2.js
abhishekbhalani/Angular-and-ASPNET-Build2014
/*! jQuery UI - v1.9.2 - 2012-11-23 * 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.js...
src-client/scripts/investor-view.js
StudentStocks/StudentStocks
const React = require('react') const ACTIONS = require('./actions.js') const {StudModal} = require('./simple-components.js') const STORE = require("./store.js") const numeral = require('numeral') const InvestorView = React.createClass({ componentWillMount: function(){ ACTIONS.fetchCurrentInvestor() }, ...
ios/versioned-react-native/ABI10_0_0/Libraries/Image/Image.ios.js
jolicloud/exponent
/** * 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...
app/javascript/mastodon/components/column.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, }; scrollTop (...
tests/routes/Counter/components/Counter.spec.js
EngineerMostafa/CircleCI
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
src/index.js
ZevenFang/react-native-starterkit
import React from 'react'; import './config/AxiosConfig'; // import './config/MomentConfig'; import './config/ReactotronConfig'; import createLoading from './utils/dva-loading'; import dva from 'dva/mobile' import models from './models' import App from './App'; const app = dva({ onError (e) { console.warn(e) }...
src/app/components/FeaturedItems.js
vivekhnz/today-in-destiny
import React from 'react'; import DestinyItem from './DestinyItem'; export default class FeaturedItems extends React.Component { render() { if (this.props.items) { let items = this.props.items.map((item, i) => <li key={i}> <DestinyItem item={item} /> ...
wrappers/md.js
mackybeltran/magic_mark_static_website
import React from 'react' import PropTypes from 'prop-types' import 'css/markdown-styles.css' import Helmet from 'react-helmet' import { config } from 'config' export default class Markdown extends React.Component { static propTypes = { router: PropTypes.object, } render() { const post = this.props.rout...
lma-enterprise-web/src/main/webapp/resources/js/plugins/elfinder/i18n/elfinder.nl.js
melvinnos/lma-enterprise
/** * Dutch translation * @author Barry vd. Heuvel <barry@fruitcakestudio.nl> * @version 2012-04-02 */ if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') { elFinder.prototype.i18.nl = { translator : 'Barry vd. Heuvel &lt;barry@fruitcakestudio.nl&gt;', language : 'Nederlands', ...
src/components/board.js
beldur/go-lib
// @flow import type { Move, Coordinate } from 'go-lib' import React from 'react' import BoardDrawer from './util/board-drawer' import * as canvas from './util/canvas' import * as rules from '../rules' type BoardDefaultProps = { size: number, positions: Array<Move>, hoverPositions: Array<Move>, onPositionClic...
modules/__tests__/RouteComponent-test.js
ustccjw/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' describe('a Route Component', function () { let node beforeEach(function () { node = document.createElement('div') }) afterEach(function (...
ajax/libs/mobile-angular-ui/1.3.3/js/mobile-angular-ui.gestures.js
jonobr1/cdnjs
/** * @module mobile-angular-ui.gestures.drag * @description * * `mobile-angular-ui.gestures.drag` module exposes the `$drag` service that is used * to handle drag gestures. `$drag` service wraps [$touch](../module:touch) service adding * CSS transforms reacting to `touchmove` events. * * ## Usage * * ``` js ...
src/components/online-channel/index.js
jnmorse/freecodecamp-twitchtv
import { connect } from 'react-redux'; import { showModal } from '../../actions'; import { OnlineChannel } from './online-channel'; function mapDispatchToProps(dispatch) { return { ShowModal: (channel, title) => dispatch(showModal(channel, title)) }; } export const ConnectedOnlineChannel = connect( null, ...
src/containers/Charts/echarts/dynamicChartComponent.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactEcharts from 'echarts-for-react'; import { updateOption } from '../../../redux/dynamicEchart/reducer'; class DynamicChartComponent extends Component { constructor(props) { super(props); this.fetchNewDate = this.fetch...
src/containers/RoleSwitcherContainer.js
leeloo-acme-freight/acme-freight-webui
import { connect } from 'react-redux'; import { login, createUser } from 'modules/demos'; import RoleSwitcher from 'components/GlobalNav/RoleSwitcher'; const mapActionCreators = { login, createUser, }; const mapStateToProps = (state) => ({ users: state.demoSession.users, }); export default connect(mapStateToPr...
js/gitment.browser.js
Wisenl/wisenl.github.io
var Gitment = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /*...
apps/mk-app-editable-table/action.js
ziaochina/mk-demo
import React from 'react' import ReactDOM from 'react-dom' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import { Input, DataGrid, DatePicker, Select } from 'mk-component' import { Map } from 'immutable' import moment from 'moment' import utils from 'mk-utils' import ext...
components/Badge/Badge.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import css from './Badge.css'; const Badge = ({ className, children, context, hollow, ...rest }) => ( <span { ...rest } className={ cx( css.root, css[context], hollow ? css.hollow : null, clas...
ajax/libs/material-ui/4.12.3/es/internal/svg-icons/CheckBoxOutlineBlank.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank");
examples/huge-apps/routes/Grades/components/Grades.js
1000hz/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
ajax/libs/onsen/2.0.0-beta.3/js/angular-onsenui.js
joeyparrish/cdnjs
/*! angular-onsenui.js for onsenui - v2.0.0-beta.3 - 2015-12-16 */ /* Simple JavaScript Inheritance * By John Resig http://ejohn.org/ * MIT Licensed. */ // Inspired by base2 and Prototype (function(){ var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; // The base Class imple...
src/isomorphic/classic/class/ReactClass.js
mcanthony/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
source/scripts/components/Cell.js
gsklee/cell
// < Cell/> Component // ================== // // This file defines the React component `< Cell/>`. // // Import Modules // -------------- // // ### NPM Modules import React from 'react'; // Define & Export Module // ---------------------- // // This module contains `< Cell/>`. function getRandomInteger (min, max) {...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Figure.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import React from 'react'; import { createBootstrapC...
frontend/src/components/posts-list/event/icon.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; const ICON = { changed_title: 'edit', pinned_globally: 'bookmark', pinned_locally: 'bookmark_border', unpoinned: 'panorama_fish_eye', moved: 'arrow_forward', merged: 'call_merge', approved: 'done', opened: 'lock_open', closed: 'lock_outline', ...
ajax/libs/react-modal/1.5.0/react-modal.min.js
wout/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.ReactModal=t(require("react"),require("react-dom")):e.ReactModal=t(e.react,e["react-dom"])}(this...
docs-ui/components/clipboard.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import Clipboard from 'sentry-ui/clipboard'; storiesOf('Clipboard', module).add( 'default', withInfo('Copy text to clipboard')(() => ( <div> ...
scripts/eslint-rules/no-primitive-constructors.js
brigand/react
/** * 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. * * @emails react-core */ 'use strict'; module.exports = function(context) { function report(node, name, msg) { context.report(node...
dist/Components/SimpleTextCard.js
elderfo/elderfo-react-native-components
Object.defineProperty(exports,"__esModule",{value:true});var _react=require('react');var _react2=_interopRequireDefault(_react); var _reactNative=require('react-native'); var _Card=require('./Card');var _Card2=_interopRequireDefault(_Card); var _CenterView=require('./CenterView');var _CenterView2=_interopRequireDefault...
ui/cap-react/src/components/partials/Message.js
pamfilos/data.cern.ch
import React from "react"; import PropTypes from "prop-types"; import Box from "grommet/components/Box"; import Label from "grommet/components/Label"; import Spinning from "grommet/components/icons/Spinning"; const Message = ({ message, loading }) => { return message ? ( <Box direction="row" pad={{ horizontal: ...
docs/source/_themes/bootstrap/static/js/jquery-1.9.1.min.js
jenningstm117/LapsePi
/*! 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...
Examples/UIExplorer/js/WebSocketExample.js
htc2u/react-native
/** * Copyright (c) 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 directory. * * The examp...
src/index.js
chrisvogt/teacher-salaries
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' import registerServiceWorker from './registerServiceWorker' import injectTapEventPlugin from 'react-tap-event-plugin' import './styles/index.css' // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTa...
packages/material-ui-icons/src/FastRewindOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 9.86v4.28L14.97 12 18 9.86m-9 0v4.28L5.97 12 9 9.86M20 6l-8.5 6 8.5 6V6zm-9 0l-8.5 6 8.5 6V6z" /> , 'FastRewindOutlined');
src/components/app.js
framirez224/weather-app
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
packages/shared/forks/Scheduler.umd.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
node_modules/engine.io-client/node_modules/debug/browser.js
QUASARFREAK/charla-ninja
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chro...
ajax/libs/react-highcharts/8.4.2/index.js
pvnr0082t/cdnjs
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts")):"function"==typeof define&&define.amd?define(["react","highcharts"],r):"object"==typeof exports?exports.index=r(require("react"),require("highcharts")):e.index=r(e.React,e.Highcharts)}(this,function...
app/components/Layout/__tests__/SettingsPageMenuLayout.spec.js
igr-santos/hub-client
import React from 'react' import { shallow } from 'enzyme' import { expect } from 'chai' import { SettingsPageMenuLayout } from '../' describe('app/components/Layout/SettingsPageMenuLayout', () => { let wrapper const props = { title: 'Foo Title' } beforeEach(() => { wrapper = shallow( <SettingsPageMe...
ajax/libs/react/0.13.0-alpha.2/react.js
kentcdodds/cdnjs
/** * React v0.13.0-alpha.2 */ !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()}}(function...
examples/todomvc/test/components/TodoItem.spec.js
chentsulin/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from '../../components/TodoItem' import TodoTextInput from '../../components/TodoTextInput' function setup( editing = false ) { const props = { todo: { id: 0, text: 'Use Redux', ...
ajax/libs/yui/3.5.0/event-focus/event-focus-min.js
begriffs/cdnjs
YUI.add("event-focus",function(f){var d=f.Event,c=f.Lang,a=c.isString,e=f.Array.indexOf,b=c.isFunction(f.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function g(i,h,k){var j="_"+i+"Notifiers";f.Event.define(i,{_attach:function(m,n,l){if(f.DOM.isWindow(m)){return d._attach([i,function(o){n.fire(o);},m]);}el...
react/features/conference/components/AbstractConference.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { NotificationsContainer } from '../../notifications/components'; import { shouldDisplayTileView } from '../../video-layout'; import { shouldDisplayNotifications } from '../functions'; /** * The type of the React {@code Component} props of {@link AbstractLab...
ajax/libs/yui/3.17.0/event-focus/event-focus-coverage.js
jozefizso/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/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = ...
move/src-react/javascripts/components/Demo.js
mortzmortz/kolder
import React, { Component } from 'react'; class Demo extends Component { render() { return ( <div> <h2>Content</h2> <p>The content text!!!</p> </div> ); } } export default Demo;
docs/src/app/components/pages/discover-more/Community.js
tan-jerene/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} />...
shared/app/Tms/components/Remove/Remove.js
pebie/react-universally-node-config
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import Badge from '../Badge/Badge'; import Close from '../Icons/Close'; import styles from './Remove.scss'; /** * CardRemoveBtn * * Basic CardRemoveBtn component used to remove card of your personnal l...
app/assets/scripts/components/header/header.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import config from '../../config'; const Tags = styled.div` margin: 0.5rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; `; export default function Heade...
examples/auth-with-shared-root/components/PageOne.js
stshort/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) module.exports = PageOne
docs/app/Examples/elements/Segment/Types/SegmentExampleVerticalSegment.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment } from 'shengnian-ui-react' const SegmentExampleVerticalSegment = () => ( <div> <Segment vertical>Te eum doming eirmod, nominati pertinacia argumentum ad his.</Segment> <Segment vertical>Pellentesque habitant morbi tristique senectus.</Segment> <Segment vertical...
ajax/libs/recharts/0.10.8/Recharts.min.js
cdnjs/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("ReactDOMServer"),require("ReactTransitionGroup"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["react","ReactDOMServer","ReactTransitionGroup","ReactDOM"],t):"object"==typeof exports?exports....
docs-ui/components/confirm.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {action} from '@storybook/addon-actions'; import Confirm from 'app/components/confirm'; import Button from 'app/components/button'; storiesOf('UI|Confirm', module).add( 'Confirm', withInfo...
src/components/singleComponent.js
joropeza/react-compared-with-vanilla-js
import React, { Component } from 'react'; import randomWord from 'random-words'; export default class SingleComponent extends Component { constructor(props) { super(props); this.state = {word: 'Hello'}; this._handleButtonClick = this._handleButtonClick.bind(this); } _handleButtonClick() { let newRan...
exercise-06/src/components/AddPokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import styled from 'styled-components' const Button = styled.div` background-color: ${props => props.save ? '#2BC3A1' : ''}; color: ${props => props.save ? 'white' : '#A3A3A3'}; ...