path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-virtualized/7.19.3/react-virtualized.js | x112358/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
src/main/resources/code/react/Apps/ManageRadars/components/ManageTeamsPage/AddTeamRow/index.js | artieac/technologyradar | 'use strict'
import React from 'react';
import ReactDOM from 'react-dom';
import Reflux from 'reflux';
import createReactClass from 'create-react-class';
import { connect } from "react-redux";
import { TeamRepository } from '../../../../../Repositories/TeamRepository';
import { addTeamsToState } from '../../../redux/Te... |
test/fixture/formatting.js | Collinslenjo/ava | import React from 'react';
import {Buffer} from 'safe-buffer';
import test from '../../';
import HelloMessage from './hello-message';
// Older AVA versions that do not use Concordance don't handle globals very
// well. Use this so formatting output can be contrasted between versions.
const formatGlobals = Boolean(requ... |
eventkit_cloud/ui/static/ui/app/tests/Dialog/DeleteDataPackDialog.spec.js | terranodo/eventkit-cloud | import React from 'react';
import { createShallow } from '@material-ui/core/test-utils';
import { DeleteDataPackDialog } from '../../components/Dialog/DeleteDataPackDialog';
import ConfirmDialog from '../../components/Dialog/ConfirmDialog';
describe('DeleteDataPackDialog component', () => {
let shallow;
befor... |
app/index.js | willy-claes/django-react | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from 'App/store'
import createRoutes from 'App/routes'
import AppContainer from 'App/containers/AppContainer'
const initialState = typeof window.__INITIAL_STATE__ === 'string' ?
JSON.parse(window.__INITIAL_STATE__) : window.__INITIAL_STAT... |
ajax/libs/forerunnerdb/1.3.480/fdb-core.min.js | jonobr1/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/yui/3.3.0pr1/event-custom/event-custom-base.js | ColinEberhardt/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
packager/react-packager/src/Server/index.js | milieu/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 strict... |
app.js | gr8fuljoe5/skeeball-scorecard | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import $ from 'jquery';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';... |
App/page/HomeSwiper.js | ReactNativeFramework/ReactNativeBaseFramework | /**
* Created by atide on 2016/10/28.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ListView,
PixelRatio
} from 'react-native';
import Common from '../common/constants';
import Swiper from 'react-native-swiper';
... |
app/components/events/CreateEventForm.js | Block-and-Frame/block-and-frame | import React, { Component } from 'react';
import ToBringList from './contributions/ToBringList';
import CreateMapView from './CreateMapView';
class CreateEventForm extends Component {
render() {
return (
<div className="ui container top-margin-bit">
<form
className="ui form top-m... |
ajax/libs/react/0.9.0/react.min.js | jdh8/cdnjs | /**
* React v0.9.0
*
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
cms/static/xmodule_js/common_static/js/vendor/analytics.js | syjeon/new_edx | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
ui/src/pages/SiteOrgsPage/index.js | LearningLocker/learninglocker | import React from 'react';
import { fromJS } from 'immutable';
import { connect } from 'react-redux';
import { withProps, compose, withHandlers } from 'recompose';
import {
queryStringToQuery,
modelQueryStringSelector
} from 'ui/redux/modules/search';
import SearchBox from 'ui/containers/SearchBox';
import { withMo... |
ajax/libs/react-native-web/0.11.5/exports/View/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Nicolas Gallagher.
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under th... |
ajax/libs/inferno-mobx/1.0.0-beta29/inferno-mobx.js | tholu/cdnjs | /*!
* inferno-mobx v1.0.0-beta29
* (c) 2016 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('./inferno-create-class'), require('./inferno-create-element'))... |
ajax/libs/forerunnerdb/1.3.764/fdb-core+persist.min.js | Amomo/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/remote-control.js | kumar303/remote-control | import React from 'react';
import ReactDOM from 'react-dom';
import firebase from './lib/firebase';
class RemoteControl extends React.Component {
constructor(props) {
super(props);
this.state = {
error: null,
code: null,
tabIsMuted: false,
};
this.db = firebase.database();
}
... |
node_modules/react-bootstrap/es/Grid.js | rblin081/drafting-client | 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 ... |
server/sonar-web/src/main/js/main/nav/component/component-nav-meta.js | vamsirajendra/sonarqube | import moment from 'moment';
import React from 'react';
import PendingIcon from '../../../components/shared/pending-icon';
export default React.createClass({
render() {
let metaList = [];
let canSeeBackgroundTasks = this.props.conf.showBackgroundTasks;
let backgroundTasksUrl = `${baseUrl}/project/backgro... |
src/components/SignInForm/SignInForm.js | F-Ruxton/taskata | import React, { Component } from 'react';
import AuthForm from '../AuthForm/AuthForm'
import { getAuthInputValues,
validateEmailAndPassword } from '../../utils/utils'
import { withRouter } from 'react-router'
import PropTypes from 'prop-types';
class SignInForm extends Component {
handleSubmit(event) {
... |
examples/huge-apps/components/App.js | CivBase/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
render() {
var courses = COURSES;
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={co... |
src/views/ProjectStoriesView/index.js | asidiali/pivotal.press | import {
DropDownMenu,
Menu,
MenuItem,
Popover,
} from 'material-ui';
import {
Icon,
Loader,
StoryCard,
StoryColumn,
StoryDetails,
} from '../../components';
import ActivityFeed from './ActivityFeed';
import Clipboard from 'clipboard';
import LabelsFilter from './LabelsFilter';
import OwnersFilter fr... |
client/components/ChannelDetail/ChannelDetail.js | Moises404/Vimeo-React | import React from 'react'
class ChannelDetail extends React.Component {
static displayName = 'ChannelDetail'
render() {
return (
<div className="ChannelDetail">
Channel Detail
</div>
)
}
}
export default ChannelDetail
|
app/components/Slides/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const boxSizing = 'box-sizing: content-box;';
const SlidesWrapper = styled.div`
${boxSizing}
position: relative;
padding: 30px 50px 10px;
`;
const SlidesOuter = styled.div`
${boxSizing}
overflow: hidden;
... |
wisewit_front_end/node_modules/react-router/modules/RoutingContext.js | emineKoc/WiseWit | import React from 'react'
import RouterContext from './RouterContext'
import warning from './routerWarning'
const RoutingContext = React.createClass({
componentWillMount() {
warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t... |
app/src/pages/NoInternetScreen.js | skunkmb/Ablo | import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native';
import Logo from '../common/Logo.js';
import ListEmptyComponent from '../common/ListEmptyComponent';
import { darkTheme } from '../themes.js';
let styleOptions = darkTheme.options;
export default class NoInternetScreen extends C... |
packages/material-ui-icons/src/AllInclusiveSharp.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="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.76.35 2.44 1.03l1.13 ... |
app/webroot/js/theme/lib/formwizard/js/jquery-1.4.2.min.js | LINUXADDICT/cakecrud | /*!
* jQuery JavaScript Library v1.4.2
* 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 Licenses.
... |
packages/material-ui-icons/src/Sort.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Sort = props =>
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z" />
</SvgIcon>;
Sort = pure(Sort);
Sort.muiName = 'SvgIcon';
export default Sort;
|
js/components/footer/iconText.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base';
import { Actions } from 'react-native-router-flux'... |
application/test/components/edit-form.spec.js | fevrcoding/name-selector | import expect, { createSpy, spyOn } from 'expect'
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import {EditForm} from '../../assets/javascripts/components/edit-form';
describe('Edit Form Component Actions', () => {
let editFormInstance, textarea;
const props = {
attende... |
src/components/Dialog/Dialog.js | gabrielmf/SIR-EDU-2.0 | import { FlatButton, Dialog } from 'material-ui'
import React from 'react'
class DialogModal extends React.Component {
constructor(props) {
super(props);
}
render() {
const actions = [
<FlatButton
label="Ok"
primary={true}
onTouch... |
assets/javascripts/kitten/components/graphics/icons-next/lock-outline-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const LockOutlineIcon = ({ color, title, ...props }) => (
<svg
width="21"
height="25"
viewBox="0 0 21 25"
xmlns="http://www.w3.org/2000/svg"
fill="none"
{...props}
>
{title && <title>{title}</title>}
<path
fil... |
ajax/libs/react-instantsearch/4.1.0-beta.5/Connectors.js | him2him2/cdnjs | /*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/index.js | gilbox/elegant-react-hot-demo | import 'core-js/shim'; // for Array.fill
import React from 'react';
import App from './App';
import {fromJS} from 'immutable';
import Atom from './atom';
import timeTravelPlugin from './time-travel-plugin/'
import TimeTravelControlPanel from './time-travel-plugin/ControlPanel';
// initial app state
const state = modu... |
ajax/libs/intl-tel-input/8.5.0/js/intlTelInput.js | iwdmb/cdnjs | /*
* International Telephone Input v8.5.0
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ],... |
app/components/IconSystem/Icons/Whistle.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import propTypes from '../iconPropTypes';
const Whistle = ({ fill, styles }) => (
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 480 480"
style={{ ...styles, enableBackground: 'new 0 0 480 480' }}
>
<g>
... |
local-cli/templates/HelloWorld/__tests__/index.android.js | jasonnoahchoi/react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/ButtonGroup.js | JimiHFord/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
ajax/libs/rxjs/2.2.25/rx.lite.extras.js | agraebe/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,
'unde... |
src/svg-icons/av/hearing.js | xmityaz/material-ui | 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 ... |
app/javascript/mastodon/features/ui/components/mute_modal.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
examples/basic-state-access/index.js | bradwestfall/informative | import React from 'react'
import ReactDOM from 'react-dom'
import { Form, Field } from 'src'
const InputField = props => {
const { name, type, events, fieldState, formState } = props
// Access to field and form state
console.log('Field State', fieldState)
console.log('Form State State', formState)
return <... |
dashboard/index.js | vinnyhuang/fw-dev-dashboard | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app.js';
import 'colors.css/css/colors.min.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
impo... |
client/views/setupWizard/StepHeader.stories.js | Sing-Li/Rocket.Chat | import { number, text } from '@storybook/addon-knobs';
import React from 'react';
import { StepHeader } from './StepHeader';
export default {
title: 'views/setupWizard/StepHeader',
component: StepHeader,
};
export const _default = () =>
<StepHeader
number={number('number', 1)}
title={text('title', 'Title')}
... |
packages/benchmarks/styled-components/inline-style/client/Table.js | A-gambit/CSS-IN-JS-Benchmarks | import React from 'react';
import styled from 'styled-components';
const Table = styled.div`
display: table;
margin-top: 10px;
`;
const Row = styled.div`
display: table-row;
`;
const Cell = styled.div`
display: table-cell;
padding: 10px;
`;
export default ({ table, toPercent }) => (
<Table>
{table.m... |
ajax/libs/webshim/1.14.6-RC1/dev/shims/moxie/js/moxie.js | jmusicc/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
app/components/main.js | pompopo/pomhub | import React from 'react'
import Root from './Root.js'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import rootReducer from '../reducers/index.js'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
var defaultState = {
github: {
auth_token: unde... |
app/utils/localized-routes.js | SarasotaSun/koa-react-isomorphic-io-mongo-passport | import React from 'react';
import { Route } from 'react-router';
// Return an array of different routes paths for a same component
// used to generate localized routes in `/app/routes.js`
export function generateRoute({ paths, component }) {
return paths.map(function(path) {
const props = { key: path, path, comp... |
src/components/molecules/form-card-group.js | raulfdm/cv | import React from 'react';
import PropTypes from 'prop-types';
const FormCardGroup = ({ children, title }) => {
return (
<React.Fragment>
<section className="card">
<header className="card-header">
<h2 className="title is-3 card-header-title">{title}</h2>
</header>
<aside ... |
files/places.js/0.23.0/places.js | ezekutor/jsdelivr | /*! places 0.23.0 | © Algolia | github.com/algolia/places */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'o... |
app/javascript/mastodon/components/avatar_overlay.js | alarky/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
staticSrc: PropTypes.string.isRequired,
overlaySrc: PropTypes.string.isRequired,
};
render() {
const { staticSrc, overlaySrc } = this.props;
cons... |
tests/Frontend/mediabox.js | ptphp/ptphp | /**
* Created by n7best
*/
"use strict";
import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const {MediaBox} = WeUI;
describe('<MediaBox></MediaBox>', () => {
[true, false].map(isHyperLink => {
['appmsg', 'text', 'small_appmsg'].m... |
ajax/libs/yui/3.15.0/datatable-core/datatable-core.js | AbsoluteMSTR/cdnjs | /*
YUI 3.15.0 (build 834026e)
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... |
sites/default/files/js/js_a7LGuEOL2_vioZ8Tym3_k4_Q87mldBbhh8xNILgggO4.js | bmx269/pnwds-api | /*! jQuery v2.2.4 | (c) jQuery Foundation | 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 window?window:this,fun... |
client/components/NavBar/Drawer.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'react-toolbox/lib/button';
import Drawer from 'react-toolbox/lib/drawer';
import styles from '../NavBar/NavBar.css';
// import repoData from './repodata';
import { fetchUserRepos } from '../../actions/githubActions/... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupIcon.js | clemensw/stardust | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleGroupIcon = () => (
<Button.Group icon>
<Button>
<Icon name='play' />
</Button>
<Button>
<Icon name='pause' />
</Button>
<Button>
<Icon name='shuffle' />
</Button>
</Button.Group>... |
ajax/libs/mobx/2.6.3/mobx.js | BenjaminVanRyseghem/cdnjs | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
registerGlobals();
exports.extras = {
allowS... |
ajax/libs/oboe.js/1.9.0/oboe-browser.js | sreym/cdnjs | // this file is the concatenation of several js files. See https://github.com/jimhigson/oboe-browser.js/tree/master/src for the unconcatenated source
(function (window, Object, Array, Error, undefined ) {
/**
/**
* Partially complete a function.
*
* Eg:
* var add3 = partialComplete( function add(a,b){return... |
src/templates/new/src/store/router.js | jeffbuttars/rj | import React from 'react'
import { Route } from 'react-router'
import App from '../containers/App'
import About from '../containers/About'
const routes = (
<Route path='/' component={App}>
<Route path='/about' component={About} />
</Route>
)
export default routes
|
packages/react-interactions/events/src/rn/Press.js | jzmq/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactNativeResponderEvent,
ReactNativeResponderContext,
ReactNativeEventTarget,
PointerType,
R... |
client-web/client-web/src/containers/Home.js | ppsari/final | import React from 'react'
import { connect } from 'react-redux'
import MenuBar from '../components/MenuBar'
import MainBanner from '../components/MainBanner'
import MainSearch from '../components/MainSearch'
import CardView from '../components/CardView'
import Footer from '../components/Footer'
import TitleSection fro... |
src/client/flux/constants/payload-sources.js | adeperio/base |
'use strict';
import keyMirror from 'react/lib/keyMirror';
var PayloadSources = keyMirror({
VIEW_ACTION: null,
SERVER_ACTION: null
});
module.exports = PayloadSources;
|
src/svg-icons/action/credit-card.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCreditCard = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/>
</SvgIcon>
);
Action... |
src/routes/privacy/index.js | BankaiMikeH/HackWSU2017_AirRands | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
step7-unittest/test/home.spec.js | jintoppy/react-training | import React from 'react';
import { mount, shallow } from 'enzyme';
import {expect} from 'chai';
import Home from '../app/js/components/Home';
describe('<Home /> ', ()=> {
it('should have a div', ()=>{
const wrapper = shallow(<Home />);
expect(wrapper.find('div')).to.have.length(1);
});
}); |
node_modules/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | zhangchen2397/dialog | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
basic/node_modules/react-router/es6/IndexRoute.js | jintoppy/react-training | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './PropTypes';
var func = React.PropTypes.func;
/**
* An <IndexR... |
packages/material-ui-icons/src/SwapVerticalCircleTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm7.5 9.5L10.5 15H13v-4h2v4h2.5L14 18.5z" opacity=".3" /><path d="M12 2C6.48 2 2 6.48 2 12s4.... |
stories/Share.story.js | housinghq/react-share-button | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { decorateAction } from '@kadira/storybook-addon-actions';
import { withKnobs, boolean, number } from '@kadira/storybook-addon-knobs';
import ShareBtn from '../components';
const firstArg = decorateAction([
args => args.slice(0, 1)
]);... |
app/creation/detail.js | hukaibaihu/dogsay | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ActivityIndicator,
Dimensions
} from 'react-native';
import Video from 'react-native-video';
import Icon from 'react-native-vector-icons/Ionicons'... |
app/index.js | paramaggarwal/rn-paper-interface | import React, { Component } from 'react';
import {
Animated,
PanResponder,
StyleSheet,
Text,
Image,
View,
ListView,
Dimensions,
TouchableHighlight,
LayoutAnimation
} from 'react-native';
import { Components } from 'exponent';
const { LinearGradient } = Components;
let AnimatedListView = Animated.cr... |
packages/my-joy-instances/src/containers/create-instance/__tests__/user-script.spec.js | geek/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import Theme from '@mocks/theme';
import { UserScript } from '../user-script';
it('renders <UserScript /> without throwing', () => {
expect(
renderer
.create(
<Theme>
<UserScript />
... |
app/components/elements/FontStyles.js | tidepool-org/blip | import React from 'react';
import Styled from 'styled-components';
import { Heading, Text, Link } from 'rebass/styled-components';
import {
borders,
colors,
fonts,
fontSizes,
fontWeights,
lineHeights,
space,
} from '../../themes/baseTheme';
export const H1 = props => (
<Heading {...props} as="h1">
... |
Simple blogging/app/components/header/header.js | KalinaGeorgieva/FMI-course-Node-Express-React | import React from 'react';
import {BrowserRouter as Router, Route, Link, Switch} from 'react-router-dom';
import All from '../posts/all';
import AddPost from '../../components/posts/add';
import Last from '../posts/last';
import Edit from '../posts/edit';
class Header extends React.Component {
render() {
r... |
src/helpers/__tests__/connectData-test.js | fkasper/sitrep-frontend | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import connectData from '../connectData';
describe('connectData', () => {
let fetchData;
let fetchDataDeferred;
let WrappedComponent;
let DataComponent;
beforeEach(() => {
fetchData = 'fetchDataFunction';
fetc... |
src/app/components/animatedModal.js | webcoding/reactui-starter | import React from 'react';
export default React.createClass( {
componentDidMount() {
let $this = $( this.getDOMNode() );
let $hook = $this.find( '.hook' );
$hook.animatedModal( {
afterClose: triggerClose.bind( this )
} )
.open();
function triggerCl... |
docs/app/Examples/views/Item/Types/ItemExampleProps.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const items = [
{
childKey: 0,
image: 'http://semantic-ui.com/images/wireframe/image.png',
header: 'Header',
description: 'Description',
meta: 'Metadata',
extra: 'Extra',
},
{
childKey: 1,
image: 'http://semantic-u... |
bower_components/html5-boilerplate/dist/js/vendor/jquery-1.12.0.min.js | vieck/PlanIt | /*! jQuery v1.12.0 | (c) jQuery Foundation | 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 window?window:this,fu... |
app/javascript/mastodon/features/status/components/action_bar.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
spec/javascripts/jsx/blueprint_courses/components/MigrationOptionsSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
app/core/organisms/AppearRoute/index.js | codejunkienick/starter-lapis | import React from 'react';
import { Route } from 'react-router';
import { TransitionMotion, spring } from 'react-motion';
const AppearRoute = ({
component: Component,
...rest
}: {
component: React$Element<any>
}) => {
const willLeave = () => ({ opacity: spring(0) });
const willEnter = () => ({ opacity: 0 });... |
app/Card.js | c0ncept/github-user-card | import React from 'react'
import Chart from 'chart.js'
import moment from 'moment'
Chart.defaults.global = {
animation: true,
animationSteps: 50,
animationEasing: "easeOutBounce",
scaleLabel: "<%=value%>",
bezierCurve: true,
bezierCurveTension: 1,
scaleIntegersOnly: true,
scaleBeginAtZero: false,
mai... |
docs/app/Examples/modules/Progress/Content/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 ProgressContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Bar'
description='A... |
src/js/pages/ScreenPage.js | pk8est/dot | import electron,{ remote, desktopCapturer, shell} from 'electron'
import React from 'react';
import fs from 'fs';
import path from 'path';
import mediaRecorderVideo from '../backend/mediaRecorderVideo';
import util from '../utils/util';
class ScreenPage extends React.Component {
constructor(props) {
super(... |
app/components/shared/FormYAMLEditorField.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
class FormYAMLEdtiorField extends React.Component {
static propTypes = {
name: PropTypes.string,
value: PropTypes.string
};
componentDidMount() {
const CodeMirror = require('codemirror');
require('codemirror/addon/hint/show-hint');
... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.10/jquery.min.js | neeravbm/3dmart | /*! 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... |
ajax/libs/angular.js/1.0.0/angular-scenario.js | manorius/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
node_modules/hapi-react-views/test/index.js | fahidRM/aqua-couch-test | 'use strict';
const Code = require('code');
const Hapi = require('hapi');
const HapiReactViews = require('../index');
const Lab = require('lab');
const Path = require('path');
const Vision = require('vision');
require('babel-core/register')({
presets: ['react', 'es2015']
});
const lab = exports.lab = Lab.script... |
SocialStarter/__tests__/index.android.js | Monte9/react-native-social-starter | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/Reply/Reply.js | townmi/DOM |
import React, { Component } from 'react';
import axios from 'axios';
import { Link } from 'react-router';
class Reply extends Component {
constructor(props) {
super(props);
}
render() {
const replyInfo = this.props.info;
const index = this.props.replyIndex;
const... |
ajax/libs/yasr/2.4.5/yasr.bundled.min.js | sitic/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
assets/js/vendor/jquery-1.9.1.min.js | aborym/ambroz | /*! 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... |
src/Navbar.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { elementType } from 'prop-types-extra';
import uncontrollable from 'uncontrollable';
import createWithBsPrefix from './utils/createWithBsPrefix';
import NavbarBrand from './NavbarBrand';
import NavbarCollapse fr... |
test/ListGroupItemSpec.js | Cellule/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ListGroupItem from '../src/ListGroupItem';
describe('ListGroupItem', function () {
it('Should output a "span" with the class "list-group-item"', function () {
let instance = ReactTestUtils.renderIntoDocument(
<ListGro... |
src/playground/Counter.js | duwonyi/eng-box-react | import React from 'react'
const Counter = ({ value, onIncrement, onDecrement, onIncrementAsync }) => (
<div>
<h1>Counter</h1>
<p>
Value: {value} times clicked,
<button onClick={onIncrement}>
+
</button>
<button onClick={onDecrement}>
-
</button>
... |
ajax/libs/forerunnerdb/1.3.362/fdb-legacy.min.js | dada0423/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
react/features/invite/components/add-people-dialog/web/DialInSection.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { getDialInfoPageURL, hasMultipleNumbers } from '../../../functions';
import DialInNumber from './DialInNumber';
type Props = {
/**
* The numeric identifier for t... |
src/imports/ui/builder/pages/WelcomePage.js | hwillson/meteor-recommendation-builder | /* global window */
import React from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
const WelcomePage = () => (
<div className="welcome-page">
<Row>
<Col md={12} className="no-padding">
<img
src="/images/welcome/welcom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.