path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/js/Tutorial/index.js | ludonow/ludo-beta-react | import React from 'react';
import MediaQuery from 'react-responsive';
import styled from 'styled-components';
import { baseUrl } from '../baseurl-config';
import Button from '../components/Button';
import { StyledLink } from '../baseStyle';
import tutorialOpen from '../../images/tutorial/open.svg';
import SlideShow fr... |
frontend/__tests__/index.android.js | icedcoffeeallday/CostPers | 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/NavLinks.js | Smittey/smittey.github.io | import React from 'react';
import { Link } from 'gatsby';
const NavLinks = () => {
const isActive = ({ isCurrent }) => (isCurrent ? { className: 'activeMenuLink' } : null);
return (
<ul>
<li>
<Link to="/" getProps={isActive} className="menuLink">
Profile.
</Link>
</li>
... |
ajax/libs/riot/3.0.0-alpha.3/riot+compiler.js | nolsherry/cdnjs | /* Riot v3.0.0-alpha.3, @license MIT */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v3.0.0-alpha.3', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__uid = 0,
// tags i... |
modules/Router.js | nottombrown/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
test/HotKeys/focus-only/HandlingStoppedEventPropagation.spec.js | Chrisui/react-hotkeys | import React from 'react';
import {mount} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import FocusableElement from '../../support/FocusableElement';
import KeyCode from '../../support/Key';
import {HotKeys} from '../../../src/';
describe('Handling stopped event propagation:', function () {... |
src/DropdownMenu.js | dongtong/react-bootstrap | import React from 'react';
import keycode from 'keycode';
import classNames from 'classnames';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';
class DropdownMenu e... |
node_modules/rc-slider/lib/common/Steps.js | maty21/statistisc | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _classnames = req... |
src/svg-icons/image/image-aspect-ratio.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImageAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-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 14H... |
components/logando/src/yui/3.3.0/build/event-custom/event-custom-debug.js | Drupal-FFLCH/cgi | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-c... |
files/rtc/3.3.0/rtc.min.js | Craga89/jsdelivr | !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.RTC=n()}}(function(){return function n(e,t,r){function ... |
blueocean-dashboard/src/test/js/pullRequests-spec.js | tfennelly/blueocean-plugin | import React from 'react';
import { assert} from 'chai';
import { shallow } from 'enzyme';
import { latestRuns as branches } from './data/runs/latestRuns';
import {PullRequests} from '../../main/js/components/PullRequests.jsx';
const pr = branches.filter((run) => run.pullRequest);
describe("PullRequests should rende... |
test/SafeAnchorSpec.js | chilts/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SafeAnchor from '../src/SafeAnchor';
describe('SafeAnchor', function() {
it('renders an anchor tag', function() {
const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />);
const node = React.findDOMNode(instanc... |
examples/js/jquery-1.11.3.min.js | mkloubert/phpLINQ | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/assets/js/app.js | decode-wiki-game/wiki-game | import React from 'react'
import {
render
}
from 'react-dom'
import {
browserHistory,
Router,
Route,
IndexRoute
}
from 'react-router'
import App from './components/App';
import Pregame from './components/Pregame';
import Endgame from './components/Endgame';
import Game from './components/Game';
imp... |
src/main/webapp/static/js/lib/jquery-1.7.1.min.js | just-cloud/ClourCoreTests | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
web/bower_components/responsive-tables/javascripts/jquery.min.js | sncardonam/unialumnos | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
packages/material-ui-icons/src/SportsBar.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 9h-1.56c.35-.59.56-1.27.56-2 0-2.21-1.79-4-4-4-.34 0-.66.05-.98.13-.82-.68-1.86-1.11-3.02-1.11-1.89 0-3.51 1.11-4.27 2.71C4.15 5.26 3 6.74 3 8.5c0 1.86 1.28 3.41 3 3.86V21h11v-2h2c1.1 0 2-.9 ... |
ajax/libs/material-ui/4.9.5/es/InputAdornment/InputAdornment.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Typography from '../Typography';
import withStyles from '../... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
import Icon from 'mastodon/components/icon';
import No... |
src/app/components/source/SourceInfo.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { graphql, commitMutation, createFragmentContainer } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import { FormattedMessage } from 'react-intl';
import Box from '@material-ui/core/Box';
import IconButton from '@material-ui/core... |
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js | maksad/react-router | import React from 'react';
class Assignment extends React.Component {
render () {
var { courseId, assignmentId } = this.props.params;
var { title, body } = COURSES[courseId].assignments[assignmentId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
export d... |
packages/ringcentral-widgets-docs/src/app/pages/Components/PresenceItem/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import PresenceItem from 'ringcentral-widgets/components/PresenceItem';
const props = {};
props.onClick = () => alert('clicked');
props.userStatus = 'Available';
props.selected = false;
props.currentLocale = 'en-US';
/**
* A example of `PresenceItem`
*/
const P... |
src/scenes/App/scenes/Maps/components/MapListSimple/index.js | jsza/tempus-website | import React from 'react'
import classnames from 'classnames'
import Difficulties from 'root/constants/Difficulties'
import {Link} from 'react-router-dom'
import LazyLoad from 'react-lazyload'
import P from 'prop-types'
import IP from 'react-immutable-proptypes'
import ZoneIcon from 'root/components/ZoneIcon'
import ... |
tests/routes/Home/components/HomeView.spec.js | TheDadi/oel-pooler | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
src/__tests__/InputComponent_test.js | KonstantinKo/rform | import React from 'react'
import { mount } from 'enzyme'
import InputComponent from './InputComponent.jsx'
const errorClass = 'inline-errors'
describe('InputComponent', function() {
const defaultProps = {
model: 'testModel',
attribute: 'testAttribute',
value: '',
formId: 'foo',
errors: []
}
... |
app/components/admin/family/AdminFamilySelect.js | geekmansam/Olive-Check-In | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import { Grid, Row, Col, Button } from 'react-bootstrap';
import Family from './../../Family/Family';
export default class AdminFamilySearch extends Component {
render() {
return (
<div>
<Grid>
<Row c... |
ajax/libs/boardgame-io/0.49.4/esm/react.js | cdnjs/cdnjs | import 'nanoid/non-secure';
import './Debug-2fab6ce8.js';
import 'redux';
import './turn-order-406c4349.js';
import 'immer';
import 'lodash.isplainobject';
import './reducer-52d26818.js';
import 'rfc6902';
import './initialize-1b5f9063.js';
import './transport-ce07b771.js';
import { C as Client$1 } from './client-29adb... |
example/index.android.js | joelrfcosta/react-native-logentries | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button
} from 'react-native';
import Logentries from 'react-native-logentries';
export default class example extends Component {
c... |
docs/app/Examples/collections/Grid/Variations/GridExampleColumnCount.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleColumnCount = () => (
<Grid>
<Grid.Row columns={3}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic... |
src/app/index.js | RShackleton/pathfinder | /* eslint no-shadow: ["error", { "allow": ["store"] }] */
import 'babel-polyfill';
import { AppContainer } from 'react-hot-loader';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory, IndexRoute, Route, Router } from 'react-router';
import { syncHistoryWithStore } from 'react-route... |
app/components/ReposList/index.js | haxorbit/chiron | import React from 'react';
import PropTypes from 'prop-types';
import List from 'components/List';
import ListItem from 'components/ListItem';
import LoadingIndicator from 'components/LoadingIndicator';
import RepoListItem from 'containers/RepoListItem';
function ReposList({ loading, error, repos }) {
if (loading) ... |
node_modules/material-ui/svg-icons/notification/folder-special.js | soniacq/LearningReact | '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/index.js | ateixeira/mern-stack | import React from 'react';
import { render } from 'react-dom';
// Import css - It is not explicitly used, but being here assures it will be compiled by webpack
import Style from './styles/style.scss';
//Import React Router and it's dependencies
import { Router, browserHistory } from 'react-router'
import routes from... |
ajax/libs/yui/3.11.0/simpleyui/simpleyui.js | humbletim/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
storybook/stories/CenterView/index.js | linonetwo/bluetooth-reader-app | import React from 'react';
import { View } from 'react-native';
import style from './style';
export default function CenterView(props) {
return (
<View style={style.main}>
{props.children}
</View>
);
}
|
yymobile/button/__tests__/index.test.native.js | 77ircloud/yymobile2 | import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import Button from '../index';
describe('Button', () => {
it('renders correctly', () => {
const tree = renderer.create(<Button>foo</Button>).toJSON();
expect(tree).toMatchSnapshot();
});
describe('pr... |
WebFormsSample/Scripts/jquery-1.10.2.min.js | MeadCo/Visual-Studio-Quick-Starts | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/deposit/DepositMobile.js | nuruddeensalihu/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import DepositContainer from './DepositContainer';
export default (props) => (
<MobilePage toolbarShown={false} backBtnBarTitle="Deposit">
<DepositContainer {...props} />
</MobilePage>
);
|
docs/main-es2015.9d7cd8cb7bbb01a4f971.js | uniprank/ngx-file-uploader | (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"/vgl":function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},0:function(t,e,n){t.exports=n("zUnb")},"1MAX":function(t,e,n){"use strict";var r=n("dUuy"),s=n("i9P/"),i=n("s... |
lib/Card/stories/Card.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withReadme } from 'storybook-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
storiesOf('Card', module)
.addDecorator(withReadme(readme))
.add('Basic Usage', () => (<BasicUsage />));
|
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | itsacloudlife/itsacloudlife.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
fields/types/cloudinaryimage/CloudinaryImageColumn.js | Adam14Four/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var CloudinaryImageColumn = React.createClass({
displayName: 'CloudinaryImageCo... |
src/components/Torrent/index.js | Secretmapper/react-transmission | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom'
import { inject, observer } from 'mobx-react';
import autobind from 'autobind-decorator';
import TorrentContextMenu from 'components/menus/TorrentContextMenu';
import Compact from './Compact';
import Full from './Full';
@inject('prefs_... |
ajax/libs/forerunnerdb/1.3.749/fdb-all.js | Amomo/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... |
src/containers/Stage.js | codaco/Network-Canvas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import getInterface from './Interfaces';
import StageErrorBoundary from '../components/StageErrorBoundary';
/**
* Render a protocol interface based on protocol info and id
* @extends Component
*/
class Stage extends Component {
comp... |
sites/default/files/js/js_xbq3caxpYtuKJl38e-H-hazhaxmA9RAMKUbADx_5HcM.js | jno84/drupal8 | /*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof windo... |
ajax/libs/rxjs/2.3.9/rx.lite.extras.js | pcarrier/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,
... |
ajax/libs/react-data-grid/0.12.16/react-data-grid-with-addons.js | him2him2/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
src/routes/about/index.js | ziedAb/PVMourakiboun | /**
* 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... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from 'mastodon/components/status_content';
import AttachmentList from 'mastodon/components/attachment_list'... |
ajax/libs/angular-data/1.4.3/angular-data.js | yogeshsaroya/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.4.3 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
app/containers/App.js | ramsundark5/stitchchat | import {Component} from 'react';
import React from 'react';
import { Provider } from 'react-redux';
import store from '../config/ConfigureStore';
import AppNavigator from './AppNavigator';
import codePush from "react-native-code-push";
import Polyfills from '../services/Polyfills'; //don't remove this for now
export d... |
packages/material-ui-icons/src/LibraryMusic.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57 0 1.08.19 1.5.51V5h4v2zM4 6H2v14c0 1.1.9 2 2 2... |
client/components/HomePage/index.js | bzswords/blackstallion | /*
* 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... |
ajax/libs/css3pie/2.0beta1/PIE_IE678_uncompressed.js | tengyifei/cdnjs | /*
PIE: CSS3 rendering for IE
Version 2.0beta1
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/
(function( win, doc ) {
var PIE = win[ 'PIE' ] || ( win[ 'PIE' ] = {} );
/**
* Simple utility for merging objects
* @param {Object} obj1 Th... |
packages/material-ui-icons/src/HistoryOutlined.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="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10... |
app/javascript/mastodon/features/ui/components/__tests__/column-test.js | increments/mastodon | import React from 'react';
import { mount } from 'enzyme';
import Column from '../column';
import ColumnHeader from '../column_header';
describe('<Column />', () => {
describe('<ColumnHeader /> click handler', () => {
const originalRaf = global.requestAnimationFrame;
beforeEach(() => {
global.requestA... |
ajax/libs/react-redux/0.9.0/react-redux.js | BitsyCode/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "redux"], factory);
else if(typeof exports === 'object')
e... |
ajax/libs/rxjs/2.4.0/rx.compat.js | 2947721120/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
src/components/cars/review/CarReviewList.js | Atanasov86/Car-System | import React from 'react'
const CarReviewList = (props) => (
<div className='col-md-offset-2 col-md-8'>
<div className='panel panel-primary'>
<div className='panel-heading'>
<h3 className='panel-title'>Added by {props.review.user} with rating {props.review.rating}</h3>
</div>
<div class... |
client/common/components/AlertMessage.js | Haaarp/geo | import React from 'react';
import { Alert, Button } from 'react-bootstrap';
/*
* Props:
* style - one of String: "danger", "success"
* message: String
*/
class AlertMessage extends React.Component {
constructor(props) {
super(props);
this.state = {
alertVisible: true
};
}
... |
ajax/libs/angular-google-maps/2.0.9/angular-google-maps.js | xeodou/cdnjs | /*! angular-google-maps 2.0.9 2014-11-18
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this soft... |
srcjs/components/PagingPanel.js | wlainer/react-redux-tutorial | import React from 'react';
export default ({page=1, page_size=5, count, onNextPage, onPreviousPage, ...props}) => {
const total_pages = Math.ceil(count / page_size);
return (
<nav>
<ul className="pager">
{page==1?null:<li><a onClick={e => {
e.preventDefault();
onPreviousPage();
}}>Prev... |
app/components/AddButton/AddButton.js | sunnymis/Swoleciety | import React from 'react';
import PropTypes from 'prop-types';
require('./AddButton.scss');
AddButton.defaultProps = {
onClick: () => { },
size: "large"
};
AddButton.propTypes = {
onClick: PropTypes.func,
size: PropTypes.string,
};
function AddButton(props) {
return (
<div
className={`add-but... |
examples/todo/js/components/TodoList.js | SBUtltmedia/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/js/components/spinner.js | mdibaiee/Hawk | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
@connect(props)
export default class Spinner extends Component {
render() {
let className = 'sk-cube-grid ' + (this.props.active ? ' show' : '');
return (
<div className={className}>
... |
docs/src/app/components/pages/components/GridList/Page.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import gridListReadmeText from './README';
import gridListExampleSimpleCode from... |
ajax/libs/react-native-web/0.15.3/exports/CheckBox/index.min.js | cdnjs/cdnjs | function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?argumen... |
src/svg-icons/communication/swap-calls.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
src/parser/monk/mistweaver/modules/talents/ManaTea.js | sMteX/WoWAnalyzer | // Modified from Original Code by Blazyb and his Innervate module.
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatThousands, formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBo... |
packages/showcase/plot/stacked-histogram.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
fields/types/url/UrlColumn.js | suryagh/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
da... |
app/components/LoadingIndicator/index.js | castlemilk/nutry-web | /**
*
* LoadingIndicator
*
*/
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... |
modules/__tests__/transitionHooks-test.js | batmanimal/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect, { spyOn } from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import execSteps from './execSteps'
import Router from '../Router'
describe('When a router enters a branch', function () {
let node, Dashb... |
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base-coverage.js | gabel/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
src/svg-icons/file/cloud-queue.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9... |
app/components/FunctionLogForm/index.js | fission/fission-ui | /**
*
* FunctionLogForm
*
*/
import React from 'react';
import Influx from 'influx';
import FunctionLogItem from 'components/FunctionLogItem';
// import { FormattedMessage } from 'react-intl';
// import commonMessages from 'messages';
const INFLUXDB_DATABASE = 'fissionFunctionLog';
const INFLUXDB_NODEPORT = '3131... |
src/app/App.js | lmcjt37/kulor-reactify | import React from 'react';
import ColourHelper from './helper/colourHelper';
import UtilsHelper from './helper/utilsHelper';
import Inputs from './containers/Input';
import Sliders from './containers/Slider';
import Header from './containers/Header';
import GithubLink from './containers/GithubLink';
import ButtonBar ... |
logspace-frontend-new/src/main/index.js | Indoqa/logspace | /*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... |
src/svg-icons/action/settings-power.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPower = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-... |
src/svg-icons/places/fitness-center.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFitnessCenter = (props) => (
<SvgIcon {...props}>
<path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ... |
step7-flux/app/js/components/Home.js | jintoppy/react-training | import React from 'react';
import ReactDOM from 'react-dom';
import UserStore from '../stores/UserStore';
import AppActions from '../actions/app-actions';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = {
users: UserStore.getUsers()
};
... |
src/blog_main.js | andrew749/andrew749.github.io | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import ListElement from './list-element';
type BlogPageProps = {
}
type BlogPageState = {
posts: Post[]
}
type Post = {
title: string,
subtitle: string,
url: string,
date?: string,
}
export default class BlogPage extends React.Componen... |
lib/components/ModalPortal.js | ewiner/react-modal | var React = require('react');
var div = React.DOM.div;
var focusManager = require('../helpers/focusManager');
var scopeTab = require('../helpers/scopeTab');
var cx = require('classnames');
// so that our CSS is statically analyzable
var CLASS_NAMES = {
overlay: {
base: 'ReactModal__Overlay',
afterOpen: 'Reac... |
ajax/libs/material-ui/5.0.0-beta.0/legacy/Avatar/Avatar.js | cdnjs/cdnjs | import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@material-ui/unsty... |
ajax/libs/onsen/2.0.0-rc.5/js/onsenui.min.js | jdh8/cdnjs | "undefined"==typeof WeakMap&&!function(){var defineProperty=Object.defineProperty,counter=Date.now()%1e9,WeakMap=function(){this.name="__st"+(1e9*Math.random()>>>0)+(counter++ +"__")};WeakMap.prototype={set:function(key,value){var entry=key[this.name];return entry&&entry[0]===key?entry[1]=value:defineProperty(key,this.... |
ajax/libs/jssip/0.6.31/jssip.js | amoyeh/cdnjs | /*
* JsSIP v0.6.31
* the Javascript SIP library
* Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de... |
node_modules/react-navigation/lib-rn/navigators/TabNavigator.js | jiangqizheng/ReactNative-BookProject | import React from 'react';
import { Platform } from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import TabView from '../views/TabView/TabView';
import TabBarTop from '../views/TabVie... |
pkg/interface/chat/src/js/components/lib/resubscribe-element.js | jfranklin9000/urbit | import React, { Component } from 'react';
import classnames from 'classnames';
export class ResubscribeElement extends Component {
onClickResubscribe() {
this.props.api.chatHook.addSynced(
this.props.host,
this.props.station,
true);
}
render() {
let props = this.props;
return (
... |
files/rxjs/2.3.20/rx.lite.compat.js | ntd/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
ajax/libs/rxjs/2.5.0/rx.lite.extras.js | cnbin/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,
'und... |
tests/unit/ui/components/TestFormOverlay.js | kumar303/addons-frontend | import * as React from 'react';
import {
beginFormOverlaySubmit,
closeFormOverlay,
finishFormOverlaySubmit,
openFormOverlay,
} from 'core/reducers/formOverlay';
import {
createFakeEvent,
dispatchClientMetadata,
fakeI18n,
shallowUntilTarget,
} from 'tests/unit/helpers';
import FormOverlay, { FormOverlay... |
App/db/entities/content/Events/EventCategory.js | neytz/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. 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 option) any later version.
... |
grunt/tasks/npm-react-tools.js | 1234-/react | 'use strict';
var fs = require('fs');
var grunt = require('grunt');
var src = 'npm-react-tools';
var dest = 'build/npm-react-tools/';
function buildRelease() {
if (grunt.file.exists(dest)) {
grunt.file.delete(dest);
}
// read our required files from package.json
var pkgFiles = grunt.config.data.pkg.file... |
src/containers/Asians/_components/ViewLockedRound/AdjudicationFeedback/LargeAdjudicatorFeedback/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
import _ from 'lodash'
export default connect(mapStateToProps)(({
round,
adjudicatorScores,
rooms
}) => {
const filterRooms = roomToMatch => roomToMatch.round === round._id
const roomsThisRound = rooms.filter(fi... |
Cordial/app/components/counter.js | AwesomePossum446/Cordial | import React, { Component } from 'react';
import { Actions } from 'react-native-router-flux';
import {
StyleSheet,
View,
Text,
TouchableOpacity
} from 'react-native';
export const Counter = ({counter, increment, decrement}) => {
return (
<View style={{flex: 1, alignItems: 'center', justifyContent: 'cent... |
frontend/src/components/forms/fields/projectFields/locationField/locationsMap.js | unicef/un-partner-portal |
import React, { Component } from 'react';
import R from 'ramda';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Place from 'material-ui-icons/Place';
import { Marker, Popup, ZoomControl } from "react-mapbox-gl";
import MapContainer from '../../../../common/map/MapContainer';
import {... |
ajax/libs/jointjs/0.7.0/joint.nojquery.js | paleozogt/cdnjs | /*! JointJS v0.7.0 - JavaScript diagramming library 2013-11-04
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* @license
* Lo-Dash 2.2.1 (Custom Build) <http://... |
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardTable.js | theforeman/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { capitalize } from 'lodash';
import classNames from 'classnames';
import { Icon, Button } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import {
TASKS_DASHBOARD_AVAILABLE_QUERY_STATES,
TASKS_DASHBOARD_AVAIL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.