path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
client-src/components/menu/MenuBar.js
minimus/final-task
import React from 'react' import propTypes from 'prop-types' import MenuBackPanel from './MenuBackPanel' import MenuItem from './MenuItem' export default function MenuBar({ main, curMenu, prevMenu, shown, onClick }) { const parentId = main.id let shownClass = '' if (shown || prevMenu !== -1) { if (curMenu ==...
client/scripts/components/config/declarations/new-type/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
packages/react-router-dom/modules/HashRouter.js
asaf/react-router
import warning from 'warning' import React from 'react' import PropTypes from 'prop-types' import createHistory from 'history/createHashHistory' import Router from './Router' /** * The public API for a <Router> that uses window.location.hash. */ class HashRouter extends React.Component { static propTypes = { b...
ajax/libs/react-router/0.9.3/react-router.min.js
mzdani/cdnjs
!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.ReactRouter=e()}}(function(){var define;return functi...
ajax/libs/yui/3.17.0/datatable-core/datatable-core.js
arasmussen/cdnjs
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
ajax/libs/rxjs/2.3.0/rx.lite.js
mxgit1090/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/client/container/quizz/QuizzCreator.js
JulienPradet/quizzALJP
import React from 'react' import { Map } from 'immutable' import QuizzForm from './QuizzForm' import ImportQuizzForm from './ImportQuizzForm' import ExportQuizzForm from './ExportQuizzForm' import QuizzCreatorManager from './QuizzCreatorManager' export default class QuizzCreator extends React.Component { constructor...
catalog/app/utils/string.js
quiltdata/quilt
/* String utils */ import * as R from 'ramda' import React from 'react' export function printObject(obj) { return JSON.stringify(obj, null, ' ') } const suffixes = ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'] const splitNumber = (n) => { const exp = n === 0 ? 0 : Math.log10(n) const index = Math.min(Math.floo...
admin/client/App/shared/Popout/PopoutPane.js
w01fgang/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
components/app/content.js
dwest-teo/wattos-spaceship-emporium
import React from 'react'; import PropTypes from 'prop-types'; import { Container, config } from '../base'; import MobileHeader from './mobile-header'; const { breakpoints } = config.get(); const styles = { marginLeft: 0, [breakpoints[1]]: { marginLeft: 300, }, }; const Content = ({ children, openSidebar })...
ajax/libs/angular-google-maps/1.0.5/angular-google-maps.js
gagan-bansal/cdnjs
/* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (function() { _.intersectionObjects = function(array1, array2, comparison) { var res, _this = this; if (comparison == null) { compariso...
docs/src/ComponentsPage.js
xsistens/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import css from 'dom-helpers/style'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import N...
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); Devi...
examples/huge-apps/app.js
chrisirhc/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
src/utils/index.js
RomanovRoman/react-redux-starter-kit
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createReducer (initialState, reducerMap) { ...
src/components/zend/plain-wordmark/ZendPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ZendPlainWordmark.svg' /** ZendPlainWordmark */ function ZendPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'ZendPlainWordmar...
spec/bin/serve-esnext_spec.js
vinsonchuong/serve-esnext
import {childProcess} from 'node-promise-es6'; import register from 'test-inject'; import Directory from 'directory-helpers'; import PhantomJS from 'phantomjs-adapter'; async function sleep(ms) { await new Promise((resolve) => { setTimeout(resolve, ms); }); } class Project extends Directory { start() { ...
docs/src/examples/elements/Label/Types/LabelExampleRibbonImage.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const LabelExampleRibbonImage = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', color: 'black', content: 'Hotel', icon: 'hotel', ribbon: true, ...
19-移动端/01-react-native/07-navigator/app/creation/index.js
csxiaoyaojianxian/JavaScriptStudy
import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, TouchableHighlight, Image, Dimensions, ActivityIndicator, RefreshControl, AlertIOS, } from 'react-native'; // 获取两种字体库 import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Icon from 'react-native-...
src/decorators/withViewport.js
nicolasmoise/CMC-2
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
client/components/common/FormRenderWrappers.js
karuppiah7890/Mail-for-Good
/* eslint-disable */ import React from 'react'; import { Combobox, DropdownList } from 'react-widgets'; import { Field } from 'redux-form'; import TextEditor from '../../containers/common/TextEditor'; // Ref redux-form http://redux-form.com/6.0.5/docs/GettingStarted.md/ // Ref react-widgets https://jquense.github.io/r...
src/simplert.js
722C/react-simplert
import React from 'react' import PropTypes from 'prop-types' require('./simplert.scss') class Simplert extends React.Component { constructor () { super() // Initial State this.state = { isShowPopup: false } } render () { let { closeSimplert, closeOverlaySimplert, confirmSimplert } = ...
ajax/libs/yui/3.3.0pr2/event/event.js
magoni/cdnjs
var GLOBAL_ENV = YUI.Env; if (!GLOBAL_ENV._ready) { GLOBAL_ENV._ready = function() { GLOBAL_ENV.DOMReady = true; GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); }; // if (!YUI.UA.ie) { GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready); ...
slides/styling/code/css-modules.js
javivelasco/scaffolding-react-apps-slides
import React from 'react'; import style from './Card.scss'; const Card = ({ heading, footer, children, ...other }) => ( <div {...other}> <header className={style.header}>{heading}</header> <div className={style.body}>{children}</div> <footer className={style.footer}>{footer}</footer> </div> ); export ...
docs/src/Root.js
roderickwang/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
packages/browser/src/components/DataTable/TermAggregation.js
appbaseio/dejaVu
// @flow import React from 'react'; import { Popover, Icon } from 'antd'; import { MultiList } from '@appbaseio/reactivesearch'; import { css } from 'react-emotion'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFilter } from '@fortawesome/free-solid-svg-icons'; import Flex from '../Fle...
src/isomorphic/deprecated/__tests__/cloneWithProps-test.js
linalu1/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. * * @emails react-co...
react/bundle.js
txemis/txemis.github.io
(function(n){var r={};function a(e){if(r[e]){return r[e].exports}var t=r[e]={i:e,l:false,exports:{}};n[e].call(t.exports,t,t.exports,a);t.l=true;return t.exports}a.m=n;a.c=r;a.d=function(e,t,n){if(!a.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}};a.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toSt...
ajax/libs/backbone-react-component/0.8.0-beta.1/backbone-react-component.js
kellyselden/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.8.0-beta.1 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a mixin that glues [Backbone]...
tests/routes/UserManagement/components/RegisteredUsers.spec.js
vijayasankar/ML2.0
import React from 'react' import { expect } from 'chai' import { render, shallow, mount } from 'enzyme' import ReduxFormStub from '../../../ReduxFormStub' import RegisteredUsersReduxForm, { RegisteredUsers } from 'routes/UserManagement/components/RegisteredUsers' describe('(Component) UserManagement/RegisteredUsers -...
test/index.ios.js
MonkeyKingPlus/react-native-picker
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Navigator } from 'react-native'; import Index from './app'; export default class ReactNativeComponents extends Component ...
src/containers/profile_creator.js
khayyamj/thunderbirds_troop51
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {updateLoginProfile, createLoginProfile} from './../actions/action_index'; class LoginProfileCreator extends Component { constructor(props) { super(props); this.state = {}; } ren...
src/components/OrderSummary/OrderSummary.js
jzhang300/carbon-components-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Link from '../Link'; export class OrderSummary extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, }; render() { const { children, cla...
src/components/Dashboard/PieGraphs/PartnerCountryPie.js
GovWizely/steel-search
import React from 'react'; import PropTypes from 'prop-types'; import { map, remove, startCase } from '../../../utils/lodash'; import moment from 'moment'; import PieGraph from './PieGraph'; import { PieColors } from '../GraphColors'; import config from '../../../config'; import { compare } from '../sort'; function bu...
app/javascript/mastodon/components/status_list.js
rutan/mastodon
import { debounce } from 'lodash'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-p...
tests/layouts/CoreLayout.spec.js
markkohdev/corndog
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...
website/server/server.js
kundanjadhav/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. */ "use stric...
ajax/libs/react/0.13.1/react-with-addons.js
him2him2/cdnjs
/** * React (with addons) v0.13.1 */ (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!=="undefine...
packages/showcase/legends/horizontal-discrete-color.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
project_template/src/js/components/Navbar.js
Mikeysax/mikey
import React from 'react'; export default class Navbar extends React.Component { render() { return ( <div> <nav className="navbar navbar-default text-center" role="navigation"> <a href="https://www.npmjs.com/package/mikey"> Mikey </a> &nbsp; was b...
loc8-react-redux-front-end/src/index.js
uberslackin/django-redux-loc8-ARweb
'use strict'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import agent from './agent'; import history from 'history'; import store from './store'; import App from './components/App'; import ...
examples/src/components/ValuesAsNumbersField.js
cazacugmihai/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
renderer/components/MockComponentInspector.js
reactide/reactide
import React from 'react'; import { Terminal } from 'xterm'; const MockComponentInspector = () => ( <div id='terminal'> <script> </script> </div> // <div className="item-views"> // <div className="styleguide pane-item"> // <header className="styleguide-header"> // <h5>Component In...
src/components/groups/AffectUnprocessedRowTableGroup.js
nbuechler/ample-affect-exhibit
import React from 'react'; import DivList from '../lists/DivList' export default class AffectUnprocessedRowTableGroup extends React.Component { constructor (props) { super(props); } render () { let data = this.props.data; let limitList = this.props.limitList; return ( <tr> <td> ...
__tests__/index.ios.js
laundree/app
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', () => { renderer.create( <Index /> ) })
packages/material-ui-icons/src/SdCardSharp.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="M20 2H10L4 8v14h16V2zm-8 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z" /></g></React.Fragment> , 'SdCardSharp');
ajax/libs/redux-form/7.0.0-alpha.3/redux-form.js
joeyparrish/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-redux"), require("redux")); else if(typeof define === 'function' && define.amd) define(["react", "react-redux", "redux"], factory); e...
7.2.3/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/LifeCycle/TransitionStateButton.js
nuwand/carbon-apimgt
import React from 'react'; import Button from '@material-ui/core/Button'; const TransitionStateButton = (props) => { return ( <Button raised value={props.state.targetState}>{props.state.event}</Button> ); }; export default TransitionStateButton;
app/javascript/mastodon/features/notifications/components/setting_toggle.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
2021/src/components/Icons/Socials.js
sjamcsclub/jamhacks.ca
import React from 'react'; import Icon from '@ant-design/icons'; import styled from 'styled-components'; import { ReactComponent as LinkedinSvg } from '../../assets/icons/social/linkedin.svg'; import { ReactComponent as InstagramSvg } from '../../assets/icons/social/instagram.svg'; import { ReactComponent as TwitterSvg...
src/js/components/Tabs/TabsContext.js
HewlettPackard/grommet
import React from 'react'; export const TabsContext = React.createContext({});
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
mmrtnz/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; /** * Simple Icon Menus demonstrating some of the layouts possible using the `anc...
components/FoodpairResults.ios.js
fjjk-snacktime/snacktime
import React, { Component } from 'react'; import { Text, View, Image, TextInput, ListView, TouchableHighlight, TouchableOpacity } from 'react-native'; import helpers from '../helpers/helpers.js'; import styles from '../styles.ios.js'; import Recipes from './Recipes.ios.js'; import AddIngredient from './AddIngredient.io...
Samples/Core.OneDriveCustomization/OneDriveCustomizerWeb/Scripts/jquery-1.9.1.js
sandhyagaddipati/PnPSamples
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
examples/shopping-cart/test/components/ProductsList.spec.js
doerme/redux
import expect from 'expect' import React from 'react' import { shallow } from 'enzyme' import ProductsList from '../../components/ProductsList' function setup(props) { const component = shallow( <ProductsList title={props.title}>{props.children}</ProductsList> ) return { component: component, childr...
lib/FilterGroups/stories/basic.js
folio-org/stripes-components
import React from 'react'; import FilterGroups, { initialFilterState } from '../index'; export default class Basic extends React.Component { constructor() { super(); this.config = [ { label: 'Item Types', name: 'item', cql: 'materialType', values: ['Books', 'DVDs', 'Mic...
httpdocs/theme/react/hooks-app/app-supporters/components/Creator.js
KDE/ocs-webserver
import React from 'react'; function Creator(props){ return( <div className="creatorrow row"> <div className="col-lg-2"> <a href={props.baseUrlStore+'/u/'+props.creator.username} > <figure > <img className="productimg" src={props.creator.profile_image_url} /> </figure>...
ajax/libs/rxjs/2.2.21/rx.all.compat.js
simudream/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/components/technology.js
guruganeshm/react-js-sample
import React from 'react'; class Technology extends React.Component { constructor(props) { super(props); this.state = { count: 0, color:false } } render() { return ( <section> <div className="mdl-layout__tab-panel" id="features"> <section className="section--ce...
test/BootstrapMixinSpec.js
mxc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import BootstrapMixin from '../src/BootstrapMixin'; import styleMaps from '../src/styleMaps'; import { shouldWarn } from './helpers'; let Component; describe('BootstrapMixin', () => { beforeEach(() => { Component = React.createCla...
example/modules/TypeSize.js
dowjones/react-cellblock
import React from 'react'; import {observeGrid} from '../../src/index'; import classnames from 'classnames'; console.log('OBSERVE GRID IS', observeGrid); export default observeGrid(function TypeSize({ className, colMaxPixelWidth, colWidth }) { const padding = 15; const headlineSize = (colMaxPixelWidth - (...
Examples/UIExplorer/GeolocationExample.js
dut3062796s/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, ...
node_modules/johnny-five/node_modules/es6-shim/es6-shim.js
andreihod/monitor_temperatura_arduino
/*! * 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.3 * see https://github.com/paulmillr/es6-shim/blob/0.33.3/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
node_modules/react-icons/io/ios-toggle-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosToggleOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m7.5 25c-2 0-3.7 1.7-3.7 3.8s1.7 3.7 3.7 3.7 3.8-1.7 3.8-3.7-1.8-3.8-3.8-3.8z m0-1.2c2.7 0 5 2.2 5 5s-2.3 5-5 5-5-2.3-5-5 2.3-5 5-5z m19.9-1.3h-19.9c-3.4 0-6...
admin/client/App/shared/Popout/PopoutListHeading.js
helloworld3q3q/keystone
/** * Render a popout list heading */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListHeading = React.createClass({ displayName: 'PopoutListHeading', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, }, ...
app/bower_components/html5-boilerplate/dist/js/vendor/jquery-1.11.3.min.js
MatiSc/FacultadAngular
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
server/sonar-web/tests/apps/overview/components/issues-tags-test.js
vamsirajendra/sonarqube
import { expect } from 'chai'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { IssuesTags } from '../../../../src/main/js/apps/overview/components/issues-tags'; import { WordCloud } from '../../../../src/main/js/components/charts/word-cloud'; const COMPONENT = { key: 'component-k...
packages/xo-web/src/xo-app/about/index.js
vatesfr/xo-web
import _ from 'intl' import Component from 'base-component' import Copiable from 'copiable' import Icon from 'icon' import Link from 'link' import Page from '../page' import React from 'react' import { getUser } from 'selectors' import { serverVersion } from 'xo' import { Container, Row, Col } from 'grid' import { conn...
src/svg-icons/maps/local-mall.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
src/app/modules/Network/components/dialogs/AddProxyDialog.js
toxzilla/app
import React from 'react'; import {connect} from 'cerebral-view-react'; import {Content} from './../../../../common/UserInterface'; import {Dialog} from './../../../Dialog'; import ProxyForm from './../forms/ProxyForm'; export default connect({ dialogName: 'dialog.name' }, class AddProxyDialog extends React.Compon...
docs/app/Examples/modules/Popup/Variations/PopupExampleInverted.js
koenvg/Semantic-UI-React
import React from 'react' import { Button, Icon, Popup } from 'semantic-ui-react' const PopupExampleInverted = () => ( <div> <Popup trigger={<Button icon='add' />} content='Hello. This is an inverted popup' inverted /> <Popup trigger={<Icon circular name='heart' />} content=...
ajax/libs/yui/3.2.0/event/event-focus.js
thesandlord/cdnjs
YUI.add('event-focus', function(Y) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, useActivate = YLang.isFunction( Y.DOM.create('<p onbeforeactivate="...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
just-boris/create-preact-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. */ /* @flow */ import React from 'react'; import CodeBlock from '../components/CodeBlock'; import { applyStyles } from '../utils/dom/css'; ...
frontend/node_modules/recharts/src/shape/Symbols.js
justdotJS/rowboat
/** * @fileOverview Curve */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { symbol as shapeSymbol, symbolCircle, symbolCross, symbolDiamond, symbolSquare, symbolStar, symbolTriangle, symbolWye } from 'd3-shape'; import classNames from 'classnames'; import pureRender from '../u...
src/core/__tests__/ReactMultiChildText-test.js
joshbedo/react
/** * Copyright 2013-2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
src/views/App/App.js
peinanshow/react-redux-samples
import React, { PropTypes } from 'react'; import AppViewController from './App.controller'; import Notifications from '../../components/common/Notifications'; import s from './App.scss'; const App = (props) => ( <AppViewController {...props}> <div className={s.root}> <Notifications /> { props....
src/containers/DevToolsWindow.js
llukasxx/school-organizer-front
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
app/javascript/mastodon/features/favourites/index.js
koba-lab/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 LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
packages/material-ui-icons/src/SwapVert.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z" /></g> , 'SwapVert');
docs/src/pages/demos/steppers/VerticalLinearStepper.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import StepContent from '@material-ui/core/StepContent'; ...
frontend/jqwidgets/jqwidgets-react/react_jqxmaskedinput.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxMaskedInput extends React.Component { componentDidMount() { let options = this.ma...
app/components/ResultsSpies/ResultsSpies.js
adrianocola/spyfall
import React from 'react'; import { css } from 'emotion'; import { Row, Col } from 'reactstrap'; import SpyIcon from 'components/SpyIcon/SpyIcon'; const ResultsSpies = ({ className, spies = [], remotePlayers = {} }) => ( <Row className={className}> {spies.map((playerId, index) => ( <Col xs={12} key={index}...
docs/build.js
chrishoage/react-bootstrap
/* eslint no-console: 0 */ import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './gener...
packages/material-ui-icons/src/WhatshotOutlined.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="M11.57 13.16c-1.36.28-2.17 1.16-2.17 2.41 0 1.34 1.11 2.42 2.49 2.42 2.05 0 3.71-1.66 3.71-3.71 0-1.07-.15-2.12-.46-3.12-.79 1.07-2.2 1.72-3....
tests/react_native_tests/test_data/native_code/Text/app/components/Mobile/component.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import styled from 'styled-components/native' import { Text } from 'react-native' import { View } from 'react-native' const Mobile = (props) => ( <MobileSt...
apps/shared/form/FileInput.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import isEmpty from 'lodash/isEmpty' import get from 'lodash/get' import { Control } from 'react-redux-form' import StatefulError from './StatefulError' import styles from './scss/FileInput.scss' class FileInput extends React.Component { state = { uplo...
src/components/views/settings/video/index.js
CalviinG/project-rego
import React from 'react'; // Components import SettingsComponent from '../settings_component.js'; // Common Components import AnimationHolder from '../../../common/animation_holder.js'; import SettingsHolder from '../../../common/settings_holder.js'; const VideoView = React.createClass({ getInitialState() { ...
ajax/libs/rxjs/2.3.14/rx.lite.extras.js
danut007ro/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
src/layouts/CoreLayout.js
ghartong/react_falcor
import React from 'react' import { Link } from 'react-router' import themeDecorator from 'material-ui/lib/styles/theme-decorator' import getMuiTheme from 'material-ui/lib/styles/getMuiTheme' import AppBar from 'material-ui/lib/app-bar' import Snackbar from 'material-ui/lib/snackbar' import RaisedButton from 'material-u...
server/server.js
williaumwu/mern-sample
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/components/photoshop/PhotoshopPointerCircle.js
conorhastings/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class PhotoshopPointerCircle extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { re...
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base-coverage.js
dmsanchez86/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollv...
src/app/components/pages/payments/create_payment.js
PinkFLoyd92/softwareII
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import {blue50, blue900} from 'material-ui/s...
src/svg-icons/device/signal-wifi-2-bar.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l...
src/BlockUi.js
Availity/react-block-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DefaultLoader from './Loader'; import safeActiveElement from './safeActiveElement'; const defaultProps = { tag: 'div', renderChildren: true, loader: DefaultLoader, }; class BlockUi extends Component { constructor(props) { ...
frontend/src/components/Highlighter.js
pahomovda/victorious-pirate
import React from 'react'; import Highlight from 'react-highlighter'; const Highlighter = ({search, text}) => ( <Highlight matchElement='mark' search={search}> {text} </Highlight> ); export default Highlighter
docs/src/app/components/pages/components/IconMenu/ExampleNested.js
ngbrown/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider'; import Download from 'material-ui/svg-icons/file/file-download'; import ArrowDropRight from 'material-ui/svg-ic...
src/G10NMixin.js
jspears/subschema-g10n
import React, { Component } from 'react'; import ValueManagerListenerMixin from 'subschema/ValueManagerListenerMixin'; import {FormattedMessage, IntlMixin} from 'react-intl'; import map from 'lodash/collection/map'; import escape from 'lodash/string/escape'; import isString from 'lodash/lang/isString'; import _get from...
views/decoration_toggle.js
bodiam/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...