path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
frontend/node_modules/material-ui/svg-icons/image/looks.js
goodman001/20170927express
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/app/shared/header.js
vgno/roc-web-react
/* global ROC_PATH */ import React from 'react'; import Helmet from 'react-helmet'; import { rocConfig } from './universal-config'; export default class Header extends React.Component { render() { const path = ROC_PATH !== '/' ? ROC_PATH + '/' : ROC_PATH; const base = rocConfig.runtime.base.href ...
client/src/components/auth/require_auth.js
WebTalentTop/newsfere-mern
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function (ComposedComponent) { class Authentication extends Component { static contextTypes = { router: React.PropTypes.object, } componentWillMount() { if (!this.props.authenticated) { th...
src/aria/widgets/form/DropDownTextInput.js
ariatemplates/ariatemplates
/* * Copyright 2012 Amadeus s.a.s. * 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 applicable law or agreed to i...
packages/react-instantsearch-core/src/widgets/__tests__/InstantSearch.integration.js
algolia/react-instantsearch
import algoliasearch from 'algoliasearch'; import Enzyme, { mount } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import React from 'react'; import { connectHits, connectRefinementList, Index } from '../../index'; import InstantSearch from '../InstantSearch'; import { createSearchClient } fro...
docs/src/app/components/pages/components/Tabs/ExampleSimple.js
matthewoates/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import Slider from 'material-ui/Slider'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; function handleActive(tab) { alert(`A tab with this route property ${tab.props['data...
src/components/header/header.js
uxal/ReactSideMenu
import React, { Component } from 'react'; import styles from './header.css' class Header extends Component { constructor(props) { super(props); this.state = { topNavigationBarMenuDisplayed: false } } clickedNavigationMobileToggler() { this.setState({ ...
ajax/libs/react-modal/1.7.10/react-modal.min.js
extend1994/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.ReactDOM)}(this,fun...
src/routes/index.js
phizaz/happy-meeting
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import CoreLayout from 'layouts/CoreLayout/CoreLayout'; import HomeView from 'views/HomeView/HomeView'; import QuestionView from 'views/QuestionView/QuestionView'; import NotFoundView from 'views/NotFoundView/NotFoundView'; export ...
ajax/libs/aui/5.9.23/aui/js/aui-experimental.js
joeyparrish/cdnjs
/*! * @atlassian/aui - Atlassian User Interface Framework * @version v5.9.23 * @link https://docs.atlassian.com/aui/latest/ * @license Apache-2.0 * @author Atlassian Pty Ltd. */ // src/js/aui/polyfills/placeholder.js (typeof window === 'undefined' ? global : window).__f1b7d9a0fb9e49fbe8414d2fde4a5eec = (function ...
app/javascript/mastodon/components/autosuggest_emoji.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
js/jquery-1.11.1.min.js
elliotlll/ihomey2017
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/Tab/index.js
reactivers/react-material-design
/** * Created by muratguney on 28/03/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import Button from '../Button' import WaveEffect from '../WaveEffect' import generateId from '../utils/generateId'; class Tabs extends React.Component { constructor(props) { super(props); ...
packages/material-ui-icons/src/CloudUploadTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19.21 12.04l-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.6...
packages/material-ui-icons/src/ContactsOutlined.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="M20 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-2zm0 14H4V6h16v12zM4 0h16v2H4zM4 22h16v2H4z" /><path d="M12 12c1.38...
examples/universal/server/server.js
hallettj/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../webpack....
components/settings/setting.js
akashnautiyal013/ImpactRun01
'use strict'; import React, { Component } from 'react'; import{ StyleSheet, View, Image, ScrollView, Dimensions, TouchableOpacity, AsyncStorage, Text, Linking, SegmentedControlIOS, } from 'react-native'; import SocialShare from '../socialShare'; import IconSec from 'react-nat...
app/lib/draggable.spec.js
amyrebecca/Panoptes-Front-End
import React from 'react'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { Draggable } from './draggable'; describe('Draggable', function () { let wrapper; let handleDrag; let handleEnd; let onStart; let onDrag; let onEnd; before(function () { onSt...
ajax/libs/ember-data.js/1.0.0-beta.3/ember-data.prod.js
agraebe/cdnjs
// ========================================================================== // Project: Ember Data // Copyright: ©2011-2012 Tilde Inc. and contributors. // Portions ©2011 Living Social Inc. and contributors. // License: Licensed under MIT license (see license.js) // ====================================...
public/js/components/test-button.js
lalitkapoor/isomorphic-react-boilerplate
import React from 'react' export default React.createClass({ displayName: 'TestButton' , count: 0 , getInitialState: function() { return { buttonText: this.getButtonText(this.count) } } , getButtonText: function(count) { return `You Click Me ${count} times!` } , onClickHa...
src/icons/IosFlowerOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosFlowerOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M395.057,284.252c55.929,0,84.943-11.62,84.943-28.002s-29.016-28.003-84.943-28.003c-28.732,0-64.708,7.391-92...
renderer/reducers/account/messages.js
LN-Zap/zap-desktop
import { defineMessages } from 'react-intl' // use pattern [reducer]_message /* eslint-disable max-len */ export default defineMessages({ account_invalid_password: 'Invalid password', account_password_disabled: 'Password protection has been disabled', account_password_enabled: 'Password protection has been enab...
src/ContentPromo/ContentPromo.js
boldr/boldr-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; import omit from 'lodash.omit'; // A content wrapper / stage with different themes and padding options. const ContentPromo = props => { const { contentsClassName, className, children, theme, i...
app/app.js
mxstbr/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import '@babel/polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impo...
ajax/libs/react-data-grid/1.0.24/react-data-grid.js
sufuf3/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
front/src/index.js
hqro/Predictr
import 'dotenv/config' import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
lib/types/VTKGeometry.js
Kitware/in-situ-data-viewer
import CollapsibleElement from 'paraviewweb/src/React/Widgets/CollapsibleWidget'; import CompositeControl from 'paraviewweb/src/React/Widgets/CompositePipelineWidget'; import CompositePipelineModel from 'paraviewweb/src/Common/State/PipelineState'; import contains from 'mout/src/array/contains'; import GeometryBuilder ...
src/svg-icons/av/hearing.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHearing = (props) => ( <SvgIcon {...props}> <path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ...
node_modules/react/lib/ReactDOMComponent.js
rajendrav5/webpack2.0
/** * 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 directory. * * @providesModu...
src/FloatingActionButton/FloatingActionButton.spec.js
manchesergit/material-ui
/* eslint-env mocha */ import React from 'react'; import PropTypes from 'prop-types'; import {shallow, mount} from 'enzyme'; import {assert} from 'chai'; import FloatingActionButton from './FloatingActionButton'; import FontIcon from '../FontIcon'; import getMuiTheme from '../styles/getMuiTheme'; import ContentAdd from...
src/js/main.js
MiladNazeri/stockHelper
import React from 'react' import ReactDOM from 'react-dom' import routes from './config/routes.js' import createBrowserHistory from 'history/lib/createBrowserHistory'; import createHashHistory from 'history/lib/createHashHistory'; import { Router, Route, IndexRoute, History} from 'react-router'; const history = creat...
docs/app/Examples/modules/Modal/Variations/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ModalExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Size' description='A modal...
packages/mineral-ui-icons/src/IconEnhancedEncryption.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconEnhancedEncryption(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
app/js/jquery-1.11.1.min.js
Fokxz/my_project
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
docs/app/Examples/views/Card/Content/ContentBlock.js
jcarbo/stardust
import React from 'react' import { Card, Feed } from 'stardust' const ContentBlock = () => ( <Card> <Card.Content> <Card.Header> Recent Activity </Card.Header> </Card.Content> <Card.Content> <Feed> <Feed.Event> <Feed.Label image='http://semantic-ui.com/images/a...
packages/mui-icons-material/lib/ArrowDropDownCircleOutlined.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
src/parser/warlock/destruction/modules/talents/SoulFire.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import { formatThousands, formatNumber, formatPercentage } from 'common/format'; import Statistic from 'interface/statistics/Statistic'; impor...
src/js/analytics/Footer.js
TTFG-Analytics/commonground
import React from 'react' import { Modal, Button } from 'react-bootstrap'; export default class Footer extends React.Component{ render() { return ( <Modal.Footer> <Button onClick={this.props.toggleModal}>Close</Button> </Modal.Footer> ) } }
ajax/libs/jQRangeSlider/5.0.1/jQRangeSliderBar.js
ahocevar/cdnjs
/** * jQRangeSlider * A javascript slider selector that supports dates * * Copyright (C) Guillaume Gautreau 2012 * Dual licensed under the MIT or GPL Version 2 licenses. * */ (function($, undefined){ "use strict"; $.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, { options: { leftHandle: null, ...
ajax/libs/gyrejs/0.0.7/gyrejs.js
emmy41124/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("Immutable"), require("React")); else if(typeof define === 'function' && define.amd) define(["Immutable", "React"], factory); else if(typeof exports === 'obje...
src/svg-icons/toggle/check-box-outline-blank.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <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"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
packages/react-jsx-highstock/test/components/OHLCSeries/OHLCSeries.spec.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import { shallow } from 'enzyme'; import OHLCSeries from '../../../src/components/OHLCSeries/OHLCSeries'; import Series from 'react-jsx-highcharts/src/components/Series'; describe('<OHLCSeries />', function () { it('renders a <Series />', function () { const wrapper = shallow(<OHLCSe...
node_modules/react-icons/md/tap-and-play.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdTapAndPlay = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.4 1.7q1.3 0 2.3 1t0.9 2.3v28.4q0 1.3-0.9 2.3t-2.3 0.9h-3.6q-0.2-3.3-1.5-6.6h5.1v-21.6h-16.8v10q-1.9-0.9-3.2-1.1v-12.3q0-1.3 0.9-2.3t2.3-1.1z m-25 18.3q7.5 0 12...
docs/html/jquery.js
neutrondave/pico-os
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
docs/src/app/components/pages/components/FontIcon/ExampleSimple.js
ArcanisCz/material-ui
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import {blue500, red500, greenA200} from 'material-ui/styles/colors'; const iconStyles = { marginRight: 24, }; const FontIconExampleSimple = () => ( <div> <FontIcon className="muidocs-icon-action-home" style={iconStyles} /...
src/components/BookShelf.js
ralmidani/react-my-reads
import React from 'react'; import Book from './Book'; class BookShelf extends React.Component { render() { const books = this.props.books; return ( <div className="bookshelf"> <h2 className="bookshelf-title">{this.props.title}</h2> <div className="bookshelf-books"> <ol classNa...
es/svg-icons/IndeterminateCheckBox.js
uplevel-technology/material-ui-next
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let IndeterminateCheckBox = props => React.createElement( SvgIcon, props, React.createElement('path', { d: 'M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-....
src/svg-icons/image/burst-mode.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBurstMode = (props) => ( <SvgIcon {...props}> <path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/...
src/app/components/griddlePager.js
benigeri/soapee-ui
import React from 'react'; export default React.createClass( { getDefaultProps() { return { maxPage: 0, nextText: '', previousText: '', currentPage: 0 }; }, render() { var previous = ''; var next = ''; var pages = [];...
ajax/libs/forerunnerdb/1.3.749/fdb-core+views.js
dc-js/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/SettingsRemote.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41 1...
blueocean-material-icons/src/js/components/svg-icons/social/sentiment-very-satisfied.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1-10.06L14.06 11l1.06-1.06L16.18 1...
app/components/LoadingIndicator/index.js
nguyenduong127/kong-dashboard
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
Gruntfile.js
nic/reactable
var markdownlint = require('markdownlint'); module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.registerMultiTask('markdownlint', function task() { var done = this.async(); markdownlint( { "files": this.filesSrc }, function callback(err, result)...
node_modules/semantic-ui-react/dist/es/modules/Dropdown/DropdownHeader.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; import Icon from '../../elements/Icon'; /** * ...
modules/Pop.js
jmurzy/react-router-native
/* @flow */ import React from 'react'; import Go from './Go'; const Pop = (props: any): ReactElement<any> => ( <Go {...props} type="pop" /> ); export default Pop;
src/common/components/OutlineButton.js
TheoMer/este
// @flow import type { ButtonProps } from './Button'; import React from 'react'; import Button from './Button'; const OutlineButton = (props: ButtonProps) => ( <Button // TODO: Recheck after Flow 0.38, propValues should not be required. gray={true} // eslint-disable-line react/jsx-boolean-value outline={...
ReactNative/node_modules/react-navigation/src/views/TabView/TabBarTop.js
tahashahid/cloud-computing-2017
import React from 'react'; import { Animated, StyleSheet } from 'react-native'; import { TabBar } from 'react-native-tab-view'; import TabBarIcon from './TabBarIcon'; export default class TabBarTop extends React.PureComponent { static defaultProps = { activeTintColor: '#fff', inactiveTintColor: '#fff', s...
ajax/libs/clappr/0.0.38/clappr.js
WebReflection/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
react/features/base/media/components/web/VideoTrack.js
jitsi/jitsi-meet
/* @flow */ import React from 'react'; import { connect } from '../../../redux'; import AbstractVideoTrack from '../AbstractVideoTrack'; import type { Props as AbstractVideoTrackProps } from '../AbstractVideoTrack'; import Video from './Video'; /** * The type of the React {@code Component} props of {@link VideoTra...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
andrejunges/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker format="24hr" hintText="24hr Format" /> <TimePicker disabled={true} format="24hr" hintTex...
ajax/libs/react-bootstrap-typeahead/0.6.4/react-bootstrap-typeahead.min.js
maruilian11/cdnjs
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports.ReactBootstrapTypeahead=n(require("react"),require("react-dom")):t.ReactBootstrapTypeahead=n(t.R...
server/router.js
mookey/consi
'use strict'; /*eslint-disable */ import React from 'react'; /*eslint-enable */ import { renderToString } from 'react-dom/server'; import { match, RoutingContext } from 'react-router'; import { routes } from './routes'; module.exports = function(app) { app.get('*', (req, res) => { match({ routes, location: req....
src/svg-icons/notification/network-check.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkCheck = (props) => ( <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28...
example/components/simple.js
Kilix/storybook-addon-jsx
import React from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; /** A simple component */ export const Simple = ({ children }) => ( <div> <span>Hello</span> {children} </div> ); Simple.propTypes = { /** A test string */ foo: PropTypes.string.isRequired, /...
news/routes/Featured/Featured.js
FreeCodeCampQuito/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { Image } from 'react-bootstrap'; import Helmet from 'react-helmet'; import { getFeaturedList } from '../../utils/ajax'; import { Loader, Spacer } from '../../../common/app/helperComponen...
ajax/libs/cyclejs-core/0.15.3/cycle.js
cgvarela/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.Cycle = f()}})...
node_modules/react-mdl/src/utils/cloneChildren.js
yomolify/cs-webserver
import React from 'react'; export default function(children, props) { return React.Children.map(children, child => { var p = typeof props === 'function' ? props(child) : props; return React.cloneElement(child, p); }); }
PM25-Sites/docs/_static/jquery-1.11.1.js
PaulGuo/PM25
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
subschema/test/resolvers/field-test.js
jspears/subschema-devel
import { expect } from 'chai'; import React, { Component } from 'react'; import PropTypes from 'subschema-prop-types'; import { byComponent, intoWithContext } from 'subschema-test-support'; import { newSubschemaContext } from 'subschema'; const { field } = PropTypes; describe('subschema/field', function () { this...
client_apps/canvas_quizzes/apps/common/test/unit/components/dialog_test.js
samuels410/greatlakes-lms
define(function(require) { var React = require('react'); var Subject = require('jsx!components/dialog'); describe('Components.Dialog', function() { var Contents = React.createClass({ render: function() { return React.DOM.p({ children: 'Hello from Dialog!' }); } }); this.reactSuit...
console/react/src/details/dataSources/connectionData.js
ChugR/qpid-dispatch
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
presentation/index.js
alex-fournier/conference-react-lyra-network
import React from 'react' import {Spectacle, Deck} from 'spectacle' import createTheme from 'spectacle/lib/themes/default' import intro from './0-intro' import technique from './1-technique' import ecosysteme from './2-ecosysteme' import migration from './3-migration' import frontCommerce from './4-front-commerce' imp...
fields/types/number/NumberField.js
tony2cssc/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'NumberField', valueChanged (event) { var newValue = event.target.value; if (/^-?\d*\.?\d*$/.test(newValue)) { this.props.onChange({ path: this.props.path, value...
src/components/Footer.js
olivmarcel/aquack
import React, { Component } from 'react'; import { Jumbotron } from 'react-bootstrap'; export default class Footer extends Component { render() { return ( <div> <Jumbotron> <a href="mailto:a.coppens@investir29.fr">Aurore Coppens</a> <a href="mailto:pauline.letortu@univ-brest.fr">Pauline Letortu<...
react/features/video-menu/components/web/KickButton.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconCloseCircle } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractKickButton, { type Props ...
client/src/global/layout/SideNav/index.js
jizhuofeng/redis-monitor
import React from 'react'; import {hashHistory} from 'react-router'; import {Icon} from 'antd'; import locationProps from '../../conf/location'; import './style'; class SideNav extends React.Component { constructor(props) { super(props); let sideNavProps = locationProps; let currentUrl = this.props.pa...
src/svg-icons/navigation/unfold-more.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationUnfoldMore = (props) => ( <SvgIcon {...props}> <path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/> </SvgIcon> ); Navig...
src/components/pages/Search.js
ArtyomVolkov/music-search
import React from 'react'; // components import MusicList from '../custom-components/MusicList/MusicList'; import SearchBar from '../custom-components/SearchBar/Search-bar'; class Search extends React.Component { constructor(props) { super(props); } render() { return ( <div> <SearchBar /> <MusicLis...
src/components/EBIFooter/test.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import EBIFooter from '.'; const renderer = new ShallowRenderer(); describe('<EBIFooter />', () => { test('should render', () => { renderer.render(<EBIFooter />); expect(renderer.getRenderOutput()).toMatchSnapsho...
packages/wix-style-react/src/MultiSelect/test/TestTabsSwitches.js
wix/wix-style-react
/* eslint-disable no-console */ import React from 'react'; import { MultiSelect } from 'wix-style-react'; const countries = [ { name: 'Alabama', code: 'AL' }, { name: 'Alaska', code: 'AK' }, { name: 'Arizona', code: 'AZ' }, { name: 'Arkansas', code: 'AR' }, { name: 'California', code: 'CA' }, { name: 'Nort...
pages/index.js
Princeton-SSI/organization-website
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import { Button, Alert, Input } from 'react-bootstrap'; import ControlledCarousel from '../components/controlled-carousel.js';...
app/components/common/ContextMenu.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './ContextMenu.css'; export default class ContextMenu extends Component { componentDidMount = () => { if (this.list) { this.list.focus() } } executeAction = (action) => { action(); this.props.o...
examples/async/index.js
eraviart/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
packages/material-ui-icons/src/ExposureNeg2Outlined.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="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17s.41-.78.54-1.17.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46s-.44-.81-.78-1.1...
app/javascript/mastodon/components/load_more.js
mecab/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; const LoadMore = ({ onClick }) => ( <button className='load-more' onClick={onClick}> <FormattedMessage id='status.load_more' defaultMessage='Load more' /> </button> ); LoadMore.propTypes = { onClick...
node_modules/react/lib/onlyChild.js
dippnerd/home-control-panel
/** * 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 directory. * */ 'use strict'...
frontend/js/components/organisms/TextField.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; class TextField extends Component { render() { return ( <div className="text-field"> { this.props.label && <label htmlFor={this.props.name}> ...
src/svg-icons/device/location-disabled.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
src/helpers/__tests__/makeRouteHooksSafe-test.js
mbrochh/react-journal
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onEn...
RNApp/app/components/GenericTextInput/GenericTextInput.js
abhaytalreja/react-native-telescope
import React from 'react'; import { View, TextInput } from 'react-native'; import styles from './styles'; const GenericTextInput = (props) => { return ( <View> {props.borderTop ? <View style={styles.divider} /> : null} <TextInput style={styles.input} autoCapitalize="none" auto...
js/jquery/src/jquery/sizzle/test/jquery.js
paulboco/phpmyadmin-insecure
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
components/ParticipantArea.js
pigflymoon/geo-app
import React from 'react'; export default class ParticipantArea extends React.Component { constructor(props) { super(props); } renderUserNumbersArea() { // Display the welcome message let number = this.props.userNumbers; var message = "Welcome to Socket.IO Chat – "; ...
ajax/libs/mobx/2.5.1/mobx.min.js
tholu/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ "use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?D(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?D(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return...
src/legacy/components/RingsListHeader.js
tscok/birds2
import React from 'react'; import purebem from 'purebem'; const block = purebem.of('rings-list-header'); const RingsListHeader = React.createClass({ render() { return ( <div className={ block() }> <div className={ block('label', ['size']) }>Size</div> <div cla...
src/web/routes.js
andolf/react-redux-demo
import React from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Frame from './containers/Frame'; import Home from './views/Home'; import Products from './views/Products'; import Product from './views/Product'; import About from './views/About'; import NotFound from './views/...
src/uikit/components/common/FooterComponent/index.js
Lokiedu/libertysoil-site
import React from 'react'; import Footer from '../../../../components/footer'; export const propsList = {}; const style = { display: 'table', marginBottom: '50px', width: '100%' }; const FooterComponent = () => ( <div style={style} className="component_holder clearfix"> <Footer /> </div> ); export de...
src/app/styled/Header.js
terribleplan/isomorphic-redux-plus
import React, { PropTypes } from 'react'; import styled from 'styled-components'; import Theme, { getters as g, defaultTheme } from './theme'; import Container from './Container'; const headerTheme = { ...defaultTheme, ...{ fg: defaultTheme.white, bg: defaultTheme.primary, }, }; const CustomContainer =...
node_modules/material-ui/lib/svg-icons/navigation/cancel.js
Maxwelloff/react-football
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
archimate-frontend/src/main/javascript/components/view/nodes/model_a/applicationCollaboration.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='applicationCollaboration'; export class ApplicationCollaborationWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_a applicationCollaboration'; } }