target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
definitions/npm/recompose_v0.24.x/flow_v0.53.x-/test_statics.js
gaborsar/flow-typed
/* eslint-disable no-unused-vars, no-unused-expressions, arrow-body-style */ /* @flow */ import React from "react"; import { compose, withProps, setStatic, setPropTypes, setDisplayName } from "recompose"; // import PropTypes from 'prop-types' import type { HOC } from "recompose"; const PropTypes = { string...
ajax/libs/angular-ui-grid/3.0.1/ui-grid.js
BenjaminVanRyseghem/cdnjs
/*! * ui-grid - v3.0.1 - 2015-07-17 * Copyright (c) 2015 ; License: MIT */ (function () { 'use strict'; angular.module('ui.grid.i18n', []); angular.module('ui.grid', ['ui.grid.i18n']); })(); (function () { 'use strict'; angular.module('ui.grid').constant('uiGridConstants', { LOG_DEBUG_MESSAGES: true,...
js/jquery.js
MCavigli/BPAD_website
/*! 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...
client/components/basic/MarkdownText.stories.js
iiet/iiet-chat
import React from 'react'; import MarkdownText from './MarkdownText'; export default { title: 'components/basic/MarkdownText', component: MarkdownText, }; export const Example = () => <MarkdownText content={` # h1 Heading ## h2 Heading ### h3 Heading #### h4 Heading ##### h5 Heading ###### h6 Heading ___ *Thi...
src/docs/Example.js
xujihui1985/my-component
import React from 'react'; import PropTypes from 'prop-types'; import CodeExample from './CodeExample'; class Example extends React.Component { constructor(props) { super(props); this.state = { showCode: false }; } toggleCode = event => { event.preventDefault(); this.setState(prevState...
definitions/npm/expo-asset_v6.x.x/flow_v0.69.0-/test_expo-asset.js
splodingsocks/FlowTyped
// @flow import React from 'react'; import { it, describe } from 'flow-typed-test'; import { Asset } from 'expo-asset'; describe('static methods', () => { describe('loadAsync', () => { it('should passes when used properly', () => { Asset.loadAsync(1); Asset.loadAsync([1, 2]); }); it('should...
src/js/components/error/UnexpectedError.js
choonchernlim/front-end-stack
// @flow import React from 'react'; import Typography from '@material-ui/core/Typography'; const UnexpectedError = () => ( <Typography variant="h3" gutterBottom> An unexpected error has occurred while trying to process the page. </Typography> ); export default UnexpectedError;
src/components/MuteButton.js
pixelcanvasio/pixelcanvas
/** * Created by arkeros on 31/5/17. * * @flow */ import React from 'react'; import { connect } from 'react-redux'; import FaVolumeUp from 'react-icons/lib/fa/volume-up'; import FaVolumeOff from 'react-icons/lib/fa/volume-off'; import FloatingActionButton from './FloatingActionButton'; import { toggleMute } from ...
renderer/components/Onboarding/Steps/ConnectionDetails.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass/styled-components' import ConnectionDetailsManual from './ConnectionDetailsManual' import ConnectionDetailsString from './ConnectionDetailsString' import ConnectionDetailsContext from './ConnectionDetailsContext' import { FORM_TYPE...
app/components/Sites-list.js
L-A/Little-Jekyll
import React, { Component } from 'react'; import Site from './Site'; import Mousetrap from 'Mousetrap'; import EmptySitesList from './Empty-sites-list'; import Dispatcher from '../utils/front-end-dispatcher'; import Cycle from '../utils/cycle'; import { VelocityElement, VelocityTransitionGroup } from 'velocity-react'; ...
ajax/libs/inferno-mobx/4.0.0-5/inferno-mobx.js
extend1994/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('inferno'), require('inferno-create-class'), require('inferno-create-element'), require('hoist-non-inferno-statics')) : typeof define === 'function' && define.amd ? define(['exp...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
shengnian/shengnian-ui-react
import React from 'react' import { Loader } from 'shengnian-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
src/svg-icons/action/update.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
cgi/js/ext/jquery.js
Djang0/limba
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL...
server/sonar-web/src/main/js/apps/permission-templates/components/ListItem.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/svg-icons/device/bluetooth-disabled.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothDisabled = (props) => ( <SvgIcon {...props}> <path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29...
docs/src/PageFooter.js
omerts/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
ajax/libs/videomail-client/2.3.2/videomail-client.js
joeyparrish/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.VideomailClien...
ajax/libs/js-data/1.6.2/js-data-debug.js
joeylakay/cdnjs
/*! * js-data * @version 1.6.2 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
app/app.js
patrykomiotek/seo-monitor-front
/** * 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'; impor...
src/Parser/Druid/Restoration/Modules/Features/Lifebloom.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import Wrapper from 'common/Wrapper'; import SPELLS...
client2/src/components/react-burger-menu/test/slide.spec.js
gdomorski/CodeOut
'use strict'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { expect } from 'chai'; import createShallowComponent from './utils/createShallowComponent'; import BurgerMenu from '../lib/BurgerMenu'; const Menu = BurgerMenu.slide; describe('slide', () => { let component; before...
browser/app/js/components/ObjectsList.js
luomeiqin/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
TryKickoff/create-kickoff-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'; ...
example/examples/BugMarkerWontUpdate.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import MyLocationMapMarker from './MyLocationMapMarker'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LA...
definitions/npm/styled-components_v2.x.x/flow_v0.25.x-v0.41.x/test_styled-components_v2.x.x.js
mwalkerwells/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, {ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager} from 'styled-components' import React from 'react' import type {Theme} from 'styled-components' const Title = styled.h1` font-size: 1.5em; text-align: center; color: ...
node_modules/react-bootstrap/es/ButtonGroup.js
skinsshark/skinsshark.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
ajax/libs/react-chartjs-2/1.0.0/react-chartjs-2.min.js
joeyparrish/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Chart=t()}}(function(){var t;return function e(t,i,s){f...
app/containers/HomePage/index.js
will-hitchcock/styled-components-example
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/components/TextInput/index.js
phiratio/Pluralsight-materials
/** * * TextInput * */ import React from 'react'; import styles from './styles.css'; import classNames from 'classnames'; class TextInput extends React.Component { // eslint-disable-line react/prefer-stateless-function value() { return this.field.value; } render() { const { errorText } = this.props; ...
packages/react/src/components/CopyButton/CopyButton-story.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { action } from '@storybook/addon-actions'; import { withKnobs, number, text } from '@storybook/addon-knob...
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js
renata-co/drupal
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/app/components/loading.js
fakelbst/my-lastfm
import React from 'react'; import CircularProgress from 'material-ui/lib/circular-progress'; const Loading = React.createClass({ render() { let containerStyle = { textAlign: 'center', paddingTop: '200px', }; return ( <div style={containerStyle}> <CircularProgress mode="indeter...
step7-unittest/node_modules/react-router/modules/Route.js
jintoppy/react-training
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to the * page when the URL matches a gi...
ajax/libs/react-data-grid/0.14.6/react-data-grid-with-addons.js
iwdmb/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...
src/HouseNumbers.js
nickooms/racing-webgl2
import React, { Component } from 'react'; import { List, ListItem } from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import muiThemeable from 'material-ui/styles/muiThemeable'; class HouseNumbers extends Component { render() { const { houseNumbers, muiTheme } = this.props; retu...
actor-apps/app-web/src/app/components/common/Favicon.react.js
ONode/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
sites/all/libraries/highcharts/exporting-server/phantomjs/jquery.1.9.1.min.js
PCD/drupalglobal1
/*! 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...
index.ios.js
yarikgenza/WhereToGo-Lviv
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class WhereToGo extends Component { render() { return ( <View style={styles.container...
src/components/connect-bar.js
CrispyBacon12/facebook-chat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { addComments } from '../actions'; import facebookConnector from '../services/facebook'; const facebook = facebookConnector(); class ConnectBar extends Component { constructor(props) {...
src/components/FormButton.js
bartonhammond/snowflake
/** * # FormButton.js * * Display a button that responds to onPress and is colored appropriately */ 'use strict' /** * ## Imports * * React */ import React from 'react' import { StyleSheet, View } from 'react-native' /** * The platform neutral button */ const Button = require('apsl-react-native-button') ...
apps/lc101/src/mario3-react/src/index.js
reggieroby/devpack
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/widgets/NodeLayerWidget.js
woodenconsulting/react-js-diagrams
import React from 'react'; import _ from 'lodash'; import { NodeWidget } from './NodeWidget'; export class NodeLayerWidget extends React.Component { render() { const { diagramEngine } = this.props; const diagramModel = diagramEngine.getDiagramModel(); const props = { className:'node-view', st...
src/containers/RecipeList.js
efloden/open-recipes
import React from 'react' import PropTypes from 'prop-types' import '../App.css' import * as firebase from 'firebase' import TriCheckbox from '../components/TriCheckbox' import { Button, Form, FormGroup, Col, ListGroup, ListGroupItem, InputGroup, Input } from 'reactstrap' import { SortableContainer, ...
packages/material-ui-icons/src/RestaurantSharp.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="M16 6v8h3v8h2V2c-2.76 0-5 2.24-5 4zM11 9H9V2H7v7H5V2H3v7c0 2.21 1.79 4 4 4v9h2v-9c2.21 0 4-1.79 4-4V2h-2v7z" /></React.Fragment> , 'RestaurantSh...
docs/src/examples/collections/Form/Usage/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Message, Icon } from 'semantic-ui-react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' const FormFormUsageExamples = () => ( <ExampleSection title='Usage'> <Message ...
src/components/Editor/components/Creator/index.js
jacobwindsor/pathway-presenter
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import EmptyState from './components/EmptyState'; import PreviewPanel from './components/PreviewPanel'; import EditorPanel from './components/EditorPanel'; import Paper from 'material-ui/Paper'; import FloatingActionButton from 'material-ui/F...
src/svg-icons/maps/local-laundry-service.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLaundryService = (props) => ( <SvgIcon {...props}> <path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ...
components/Animate/Circle.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import { Motion, spring } from 'react-motion'; import cx from 'classnames'; import css from './Circle.css'; const Circle = ({ percent }) => ( <svg className={ css.root } viewBox="0 0 34 34"> <circle className={ cx(css.circle, css.circleTrack) } cx="...
src/svg-icons/communication/live-help.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLiveHelp = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13...
client/pages/Home/Home.js
jkettmann/universal-react-relay-starter-kit
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'react-relay' import { fragment } from 'relay-compose' import { compose, flattenProp } from 'recompose' import Wrapper from './Wrapper' const HomePage = ({ isLoggedIn }) => ( <Wrapper> <h1>Universal React Relay Starter Kit</h1>...
src/Shapes.js
rsamec/react-shapes
import React from 'react'; import _ from 'lodash'; import styleSvg from './utils/styleSvg'; export class SVGComponent extends React.Component { render() { return <svg {...this.props}>{this.props.children}</svg> } } export class Rectangle extends React.Component { render() { var strokeWidth...
ajax/libs/yui/3.9.0pr2/scrollview-base/scrollview-base-debug.js
pvnr0082t/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie, NATIVE_TRA...
lib/Types/WrapList.js
lemonCMS/redux-form-generator
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports", "prop-types", "react", "lodash/has", "lodash/map", "lodash/get", "lodash/chunk", "lodash/filter", "lodash/includes", "react-bootstrap/lib/Col", "react-bootstrap/lib/Row", "react-bootstrap/lib/FormControl", "react-bo...
docs/src/app/app.js
pradel/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
WebRoot/js/jquery.js
liaochente/tm
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function( window, undefined ) { // Use the correct document accordingly with window argument (sandbox) var document = window.document, navigator = window.navigator, location = window.location; var jQuery = (function() { // Define a local copy of jQuery var jQuer...
clients/packages/admin-client/src/ux/components/div-float/index.spec.js
nossas/bonde-client
/** * @jest-environment jsdom */ import React from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import DivFloat from '../../../ux/components/div-float'; describe('client/ux/components/div-float', () => { let floatLayout; beforeEach(() => { floatLayout = mount(<DivFloat />); });...
examples/websdk-samples/LayerReactNativeSample/src/ui/messages/QuoteMessagePart.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, Text } from 'react-native'; export default class QuoteMessagePart extends Component { render() { return ( <View style={styles.container}> <Text style={styles.messageText}>{'"' + this.props.messagePart.body + '"'}</Text> ...
src/utils/stylePropable.js
rscnt/material-ui
import React from 'react'; import warning from 'warning'; let hasWarned; const warn = () => { warning(hasWarned, 'The \'material-ui/lib/mixins/style-propable.js\' mixin has been deprecated.' + ' Please do not use this mixin as it will be removed in an upcoming release.'); hasWarned = true; }; export const mer...
examples/with-clerk/pages/index.js
azukaru/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' import styles from '../styles/Home.module.css' import { SignedIn, SignedOut } from '@clerk/nextjs' const ClerkFeatures = () => ( <Link href="/user"> <a className={styles.cardContent}> <img src="/icons/layout.svg" /> <...
src/platform/startup/tests/react.unit.spec.js
department-of-veterans-affairs/vets-website
import React from 'react'; import ReactDOM from 'react-dom'; import sinon from 'sinon'; import { expect } from 'chai'; import startReactApp from '../react'; const FakeWidget = () => <div id="fake-widget">Widget</div>; describe('startReactApp', () => { let renderStub; let sandbox; let reactRoot; let widgetRoo...
ajax/libs/js-data/1.5.8/js-data-debug.js
davidbau/cdnjs
/*! * js-data * @version 1.5.8 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
__tests__/index.js
akiran/react-slick
"use strict"; import React from "react"; import { shallow, mount } from "enzyme"; import Slider from "../src/index"; describe("Slider", function() { it("should render", function() { const wrapper = shallow( <Slider> <div>slide1</div> </Slider> ); expect( wrapper.contains( ...
ajax/libs/angular-google-maps/2.1.0-X.7/angular-google-maps_dev_mapped.js
wil93/cdnjs
/*! angular-google-maps 2.1.0-X.7 2015-03-27 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby grante...
examples/blockly-react/src/Blockly/index.js
google/blockly-samples
/** * @license * * Copyright 2019 Google LLC * * 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...
src/index.js
react-hack-night/reactSocial
// Import NPM dependencies like this: import React from 'react'; import ReactDOM from 'react-dom'; import {Grid} from 'react-bootstrap'; // Import styles like this: import './styles/main.scss'; import Main from './components/main'; import Insta from './components/instagram'; // Import dependencies like this: import G...
ajax/libs/vis/3.5.0/vis.js
nareshs435/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 3.5.0 * @date 2014-09-16 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
src/components/MessageItem/MessageItem.js
bertho-zero/react-redux-universal-hot-example
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Message from './Message'; import MessageEdition from './MessageEdition'; export default class MessageItem extends Component { static propTypes = { user: PropTypes.shape({ email: PropTypes.string }), styles: PropTyp...
packages/cf-component-copyable-textarea/src/CopyableTextarea.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { TextareaUnstyled, TextareaTheme } from 'cf-component-textarea'; import { createComponent, applyTheme } from 'cf-style-container'; const Textarea = applyTheme(TextareaUnstyled, TextareaTheme, theme => ({ height: '7rem', wordBreak: 'break-all', ...
example/App.js
kib357/react-object-inspector
import React, { Component } from 'react'; import ObjectInspector from '../src/ObjectInspector'; function testFunction(){ console.log("hello world"); } export default class App extends Component { render() { const testObject = { "id": 2, "name": "An ice sculpture", // "price": 12.50, ...
docs/app/Examples/collections/Table/Variations/TableExampleColumnCount.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleColumnCount = () => { return ( <Table columns={5}> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>A...
newclient/scripts/components/admin/detail-view/upload-attachments-panel/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 ...
example/components/simple.js
boromisp/react-leaflet
import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup } from '../../src'; export default class SimpleExample extends Component { constructor() { super(); this.state = { lat: 51.505, lng: -0.09, zoom: 13, }; } render() { const position = [this.state.la...
generators/generator-defaults.js
cbornet/generator-jhipster
/** * Copyright 2013-2020 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://www.jhipster.tech/ * for more information. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
app/src/components/user/VerifyMail/Active/index.js
ouxu/NEUQ-OJ
/** * Created by out_xu on 17/4/18. */ import React from 'react' import { Input } from 'antd' const Active = (props) => { return ( <div> <p className='h-title' key='verify-mail-p-1'>如果你的账号已经注册但仍未激活,或者验证链接超时,请重新进行邮箱验证!</p> <p className='h-title' key='verify-mail-p-2'>验证邮件 60s 只能发送一次,请勿重复点击!</p> ...
frontend/src/routes.js
OpenCollective/opencollective-website
import React from 'react'; import { Route, Redirect } from 'react-router'; import About from './containers/About'; import AddGroup from './containers/AddGroup'; import ConnectedAccounts from './components/ConnectedAccounts'; import ConnectProvider from './containers/ConnectProvider'; import Discover from './containers...
components/admin/pages/table/actions/DeleteAction.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; // Services import { deletePage } from 'services/pages'; import { toastr } from 'react-redux-toastr'; class DeleteAction extends React.Component { handleOnClickDelete = (e) => { if (e) { e.preventDefault(); e.stopPropagation(); } ...
src/SplitToggle.js
apkiernan/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;...
src/components/posts_show.js
hirodashi/ReduxSimpleStarter-blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions/index.js' class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); }...
src/components/ReactComponent/ReactComponent.js
cgvarela/react-styleguidist
import { Component, PropTypes } from 'react'; import Props from 'components/Props'; import Playground from 'components/Playground'; import s from './ReactComponent.css'; export default class ReactComponent extends Component { static propTypes = { component: PropTypes.object.isRequired } renderDescription() { ...
app/assets/javascripts/components/story/ExpandedStory/ExpandedStoryOwnedBy.js
Codeminer42/cm42-central
import React from 'react'; import PropTypes from 'prop-types'; import SelectUser from '../select_user/SelectUser'; import { editingStoryPropTypesShape } from '../../../models/beta/story'; import ExpandedStorySection from './ExpandedStorySection'; const ExpandedStoryOwnedBy = ({ users, story, onEdit, disabled }) => <...
ajax/libs/analytics.js/2.8.22/analytics.js
qooxdoo/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js
ratecity/keystone
import React from 'react'; import { Link } from 'react-router'; import { Alert, BlankState, Center, Spinner, GlyphButton, ResponsiveText } from '../../../../elemental'; import DragDrop from './RelatedItemsListDragDrop'; import ListRow from './RelatedItemsListRow'; import CreateForm from '../../../../shared/CreateForm'...
src/react/appContext.js
luxui/lux-core
/** * @module react/appContext * @memberof react */ import React from 'react'; // `React` must be in scope when using JSX class AppContextContainer extends React.Component { getChildContext() { /** * @typedef {Object} Context * * Application components can optionally recieve a `context` object...
ajax/libs/yasqe/2.3.3/yasqe.bundled.min.js
aashish24/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)...
Magistrate/client/components/filterBar.js
Pondidum/Magistrate
import React from 'react' const FilterBar = ({ filterChanged }) => ( <div className="filter-bar col-sm-5 pull-right"> <input type="text" className="form-control" placeholder="filter..." onChange={e => filterChanged(e.target.value)} /> </div> ); export default FilterBar
modules/DOMUtils.js
carlosmontes/react-router
export var canUseDOM = !!( typeof window !== 'undefined' && window.document && window.document.createElement ) export function addEventListener(node, type, listener) { if (node.addEventListener) { node.addEventListener(type, listener, false) } else { node.attachEvent('on' + type, listener) } } export ...
src/Parser/Rogue/Subtlety/Modules/Features/SymbolsOfDeathUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; ...
new-lamassu-admin/src/pages/Machines/MachineComponents/Overview.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/core/styles' import BigNumber from 'bignumber.js' import { formatDistance } from 'date-fns' import React from 'react' import { Status } from 'src/components/Status' import MachineActions from 'src/components/machineActions/MachineActions' import { H3, Label1, P } from 'src/comp...
app/javascript/mastodon/components/media_gallery.js
yi0713/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js
kaypro4/cf-openshift
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
public/js/components/profile/visitor/profile.react.js
TRomesh/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardActions from 'material-ui/lib/card/card-actions'; import CardHeader from 'material-ui/lib/card/card-header'; import FlatButton from 'material-ui/lib/flat-button'; import CardText from 'material-ui/lib/card/card-text'; import Divider fro...
v21/v21.0.0/sdk/registerrootcomponent.js
ccheever/expo-docs
import markdown from 'markdown-in-js' import withDoc, { components } from '~/lib/with-doc' import { expoteam } from '~/data/team' // import { InternalLink, ExternalLink } from "~/components/text/link"; // import { P } from "~/components/text/paragraph"; // import Image from '~/components/base/image' import { Code } fr...
docs/0.6d3799bc16004a89cfb9.js
quark-ui/quark-ui
webpackJsonp([0],{"/3hJ":function(e,t){e.exports='import Popover from \'../Popover\';\nimport { Component } from \'react\';\nimport Button from \'../../button/Button\';\n// import CSSModules from \'react-css-modules\';\nimport { allowMultiple } from \'../../../constants\';\nimport styles from \'./index.css\';\n\nexport...
src/components/CodeEditor/__tests__/CodeEditor.spec.js
thangngoc89/react-code-playground
import React from 'react' import $ from 'teaspoon' import CodeEditor from '../CodeEditor' import CodeMirror from 'react-codemirror' const render = props => $(<CodeEditor {...props} />).render() const shallowRender = props => $(<CodeEditor {...props} />).shallowRender() describe('(component) CodeEditor', () => { let...
react_ui/components/SubjectView/RecordPanel/PDSRecordGroup/index.js
chop-dbhi/biorepo-portal
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import FloatingActionButton from '@material-ui/core/Button'; import RaisedButton from '@material-ui/core/Button'; import Icon from '@material-ui/core/Icon'; import NewRecordLabelSelect from './NewRecordLabelSelect'; im...
src/component/post-list-container/index.js
arn1313/kritter-frontend
import React from 'react'; import * as utils from '../../lib/utils'; import PostItem from '../post-item'; import { postFetchAllRequest } from '../../action/post-actions.js'; import { connect } from 'react-redux'; class PostList extends React.Component { constructor(props) { super(props); this.state = { ...
src/index.js
Hurtak/finances
import React from 'react' import ReactDOM from 'react-dom' import App from './App.js' import './index.css' ReactDOM.render(<App />, document.getElementById('root'))
src/routes/error/index.js
shayan786/gexercise
/** * 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 App from '../../componen...
source/components/main-navigation.js
Aokibi/Regents-Navigation
import React from 'react' import MenuBar from './menu-bar' import NavigationArea from './navigation-area' import MainMenuButton from './main-menu-button' import HelpButton from './help-button' import BackButton from './back-button' /* Screen for displaying the 3D model and/or the 2D floor map*/ class MainNavigation ex...