path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/yasr/2.1.0/yasr.bundled.min.js | senekis/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.YASR=e()}}(function(){var e;return function t(e,n,r){... |
ajax/libs/core-js/0.9.6/library.js | sujonvidia/cdnjs | /**
* Core.js 0.9.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
node_modules/react-google-maps/lib/Polygon.js | narmeen12/ecan | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
ajax/libs/flocks.js/0.17.1/flocks.min.js | tholu/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
app/src/js/components/notifs/notifs.js | tahnik/devRantron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import NotifBubbles from './notif_bubbles';
import { getNotifText } from '../../consts/utils';
const { ipcRenderer } = require('electron');
class Notifs extends Component {
constructor() {
super();
this.state = {
active: fal... |
docs/src/app/AppRoutes.js | barakmitz/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import Prerequisites from './components/pages/get-started/Prerequisites';
import In... |
web/bundles/stfalcontinymce/vendor/tiny_mce/plugins/cyberim/js/jquery-1.4.2.min.js | minhthienvt/local.rssreed | /*!
* 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... |
tests/ui/client/builder/components/wizard/WizardModal.tests.js | hwillson/meteor-recommendation-builder | /* eslint-env mocha */
/* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import { findAllWithType, findWithRef } from 'react-shallow-testutils';
import WizardModal
from '../../../..... |
src/client/components/Admin.js | josh--newman/blog | import React from 'react';
import { Link } from 'react-router';
import { getUser, logout } from '../utils/cookies';
import { SideBar } from './Shared';
import styles from './Admin.css';
const links = [
<Link key='all' to='/admin'>All posts</Link>,
<Link key='newPost' to='/admin/new'>Create post</Link>,
<a key='l... |
src/assets/components/portal.js | nialbima/portal | 'use strict';
import React from 'react';
import SiteHeader from './site-header';
import BioList from './bio-list';
import LinkList from './link-list';
import styles from '../stylesheets/portal.css';
class Portal extends React.Component {
render() {
return (
<div className="portal">
<SiteHeader />... |
ajax/libs/core-js/0.9.12/core.js | kalkidanf/cdnjs | /**
* Core.js 0.9.12
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
src/index.js | jtegtmeier/react-comment-hub | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/primereact/7.0.1/badge/badge.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/utils';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < p... |
fields/types/text/TextFilter.js | dvdcastro/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contai... |
client/components/RecipeEntry.js | rompingstalactite/rompingstalactite | import React from 'react';
import { Link } from 'react-router';
import moment from 'moment';
import '../scss/_recipeEntry.scss';
import Fork from './Fork';
import Like from './Like';
moment().format();
const RecipeEntry = (props) => {
let image;
if (props.recipe.image) {
image = props.recipe.image;
} else ... |
app/javascript/mastodon/components/permalink.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
src/components/Feedback/Feedback.js | globalART19/OrderedOptions | /**
* 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 withStyles from 'isom... |
app/javascript/mastodon/features/account/components/header.js | abcang/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
public/js/cat_source/es6/components/segments/SegmentsContainer.js | Ostico/MateCat | /**
* React Component for the editarea.
*/
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import PropTypes from 'prop-types'
import VirtualList from 'react-tiny-virtual-list'
import SegmentStore from '../../stores/SegmentStore'
import CommentsStore from '../../stores/CommentsStore'
import Ca... |
src/4.0.2-rc.0/models/index.js | itsa-server/website-itsa-react-server | 'use strict';
var menulabels = require('../modules/menulabels');
var model = function(options, language) {
// this === request
var languageFile = require('../languages/'+language+'.json') || {};
var features_first = [
languageFile['Design react jsx pages'],
languageFile['Autobuild with we... |
source/components/ContentPanel/Profile.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import ProfilePic from 'components/ProfilePic';
import RankBar from 'components/RankBar';
import UserDetails from 'components/UserDetails';
import { connect } from 'react-redux';
import { css } from 'emotion';
Profile.propTypes = {
profile: PropTypes.obj... |
node_modules/laravel-elixir/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Jerrrrry/vuedo_blog | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js | imjerrybao/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Facebook,... |
src/Stepper/Step.spec.js | igorbt/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Step from './Step';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Step />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node, context = {}) => {
return sha... |
admin/client/App/shared/Popout/PopoutHeader.js | vokal/keystone | /**
* Render a header for a popout
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
const PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.is... |
src/Notification.js | dana2208/react-bootstrap-table | import React, { Component } from 'react';
import { ToastContainer, ToastMessage } from 'react-toastr';
const ToastrMessageFactory = React.createFactory(ToastMessage.animation);
class Notification extends Component {
// allow type is success,info,warning,error
notice(type, msg, title) {
this.refs.toastr[type... |
ajax/libs/vega/2.2.2/vega.js | honestree/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.vg = f()}})(fu... |
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/components/MainSection.spec.js | endlessm/chromium-browser | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import MainSection from './MainSection'
import TodoItem from './TodoItem'
import Footer from './Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../constants/TodoFilters'
const setup = propOverrides => {
const props = Object.assign({
todo... |
test/AlertSpec.js | erictherobot/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Alert from '../src/Alert';
describe('Alert', function () {
it('Should output a alert with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Alert>
<strong>Message</strong>
</Alert... |
js/jquery.js | robbiedotnet/Angular1 | /*! 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... |
app/components/landing/HeroMobile/index.js | vkurzweg/aloha | /**
*
* HeroText
*
*/
import React from 'react';
// import styled from 'styled-components';
import Slider from 'react-slick';
import 'slick-carousel';
import { Image } from 'cloudinary-react';
import { Link } from 'react-router';
import Button from './Button';
import styled from 'styled-components';
const StyledImage... |
src/components/SelectItemGroup/SelectItemGroup.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import settings from '../../globals/js/settings';
const { prefix } = settings;
const SelectItemGroup = ({
children,
className,
disabled,
label,
...other
}) => {
const classNames = classnames(`${prefix}--sel... |
ajax/libs/monaco-editor/0.2.4/min/vs/editor/editor.main.nls.it.js | tholu/cdnjs | /*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.2.3(84e204b238a1eff25d4c6f611fdcd76a494005a7)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
src/svg-icons/editor/format-line-spacing.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
src/routes/NotFound/components/NotFound.js | wv-aut/experience-plus-react-coupled | import React from 'react'
export const NotFound = () => (
<header>
<p>Sorry not found</p>
</header>
)
export default NotFound |
scenes/splash.js | APU-Flow/FlowApp | // splash.js
// Flow
'use strict';
import React, { Component } from 'react';
import { StyleSheet, View, Text, Image, TouchableHighlight, Navigator } from 'react-native';
export default class Splash extends Component {
static get propTypes() {
return {
pushRoute: React.PropTypes.func.isRequired
};
}... |
blueocean-material-icons/src/js/components/svg-icons/action/trending-up.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp.displayName = 'ActionTrendingUp';
ActionTrendingUp.muiName = 'SvgIcon';
... |
src/parser/priest/discipline/modules/spells/Penance.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import EventGrouper from 'parser/core/EventGrouper';
const PENANCE_MINIMUM_RECAST_TIME = ... |
src/Badge.js | erictherobot/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
node_modules/material-ui/lib/ripples/circle-ripple.js | sparkymat/youhaveto-react | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
examples/todomvc-universal/src/components/TodoListFooter.js | 4Catalyzer/found-relay | import Link from 'found/Link';
import PropTypes from 'prop-types';
import React from 'react';
import { createFragmentContainer, graphql } from 'react-relay';
import RemoveCompletedTodosMutation from '../mutations/RemoveCompletedTodosMutation';
const propTypes = {
viewer: PropTypes.object.isRequired,
relay: PropTy... |
client/src/index.js | joehartz/Reddit-Saves | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/action/compare-arrows.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows = pure(ActionCompareArrows);
Acti... |
src/components/Card/Card.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import settings from '../../globals/js/settings';
const { prefix } = settings;
/**
* Cards are a convenient means of displaying content composed of different types of objects. It is a multi usage component which creat... |
test/specs/views/Comment/CommentAction-test.js | ben174/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import CommentAction from 'src/views/Comment/CommentAction'
describe('CommentAction', () => {
common.isConformant(CommentAction)
common.rendersChildren(CommentAction)
it('renders an a element by default', () => {
shallow(<CommentAct... |
frontend/src/view-file-document.js | miurahr/seahub | import React from 'react';
import ReactDOM from 'react-dom';
import { seafileAPI } from './utils/seafile-api';
import { gettext, mediaUrl} from './utils/constants';
import FileView from './components/file-view/file-view';
import FileViewTip from './components/file-view/file-view-tip';
import Loading from './components/... |
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js | kittyjumbalaya/material-components-web | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
const styles = {
uploadButton: {
verticalAlign: 'middle',
},
uploadInput: {
cursor: 'pointer',
position: 'absolute... |
tests/react_native_tests/test_data/native_code/SVGComponent/storybook/stories/NameStyledComponent/index.js | ibhubs/sketch-components | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import NameStyledComponent from 'app/components/NameStyledComponent'
storiesOf('NameStyledComponent', module)
.add('default', () => (
<NameSt... |
js/jquery-1.11.0.js | philyy/philyy.github.io | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/nav-helper.js | gyaresu/labelr | import app from 'ampersand-app'
import React from 'react'
import localLinks from 'local-links'
export default React.createClass({
displayName: 'NavHelper',
onClick (event) {
const pathname = localLinks.getLocalPathname(event)
if (pathname) {
event.preventDefault()
app.router.history.navigate(p... |
components/formField/__tests__/FormField.spec.js | react-material-design/react-material-design | import React from 'react';
import { shallow } from 'enzyme';
import FormField from '../index';
describe('<FormField />', () => {
it('should render', () => {
const formField = shallow(
<FormField>
<button>Click</button>
</FormField>,
);
expect(formField).t... |
ajax/libs/yui/3.10.3/datatable-core/datatable-core-debug.js | jacoborus/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
ajax/libs/6to5/1.12.14/browser.js | schoren/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/action/restore-page.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
src/gm3/components/catalog/tools/draw-tool.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* 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... |
ajax/libs/thorax/2.0.0rc3/thorax.min.js | pvnr0082t/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
src/mui/detail/Create.js | matteolc/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Card, CardTitle } from 'material-ui/Card';
import compose from 'recompose/compose';
import inflection from 'inflection';
import ViewTitle from '../layout/ViewTitle';
import Title from '../layout... |
src/parser/shaman/enhancement/modules/talents/Landslide.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox from 'interface/others/StatisticBox';
import calculateEffectiveDamage from 'pa... |
ajax/libs/material-ui/5.0.0-alpha.26/legacy/InputBase/InputBase.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import{formatMuiErrorMessage as _formatMuiErrorMessage}from"@material-ui/utils";import*as React from"re... |
src/components/GameBoard.js | Airse/react-minesweeper | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import GameCell from './GameCell';
class GameBoard extends Component {
constructor(props) {
super(props);
this.onOpenCell = this.onOpenCell.bind(this);
this.onFlagCell = this.onFlagCell.bind(this);
}
onOpenCell(cell) {
... |
App/common/Loading.js | ReactNativeFramework/ReactNativeBaseFramework | /**
* Created by ljunb on 16/6/2.
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
ActivityIndicator,
} from 'react-native';
export default class Loading extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={style... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/isomorphic/modern/class/__tests__/ReactES6Class-test.js | darobin/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
frontend/src/components/App/App.js | khriztianmoreno/microservices-demo | import React from 'react';
import { Route } from 'react-router-dom';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import {Card, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import './styles.css';
import Indicator from './Indicator';
import Filters from './Filters';
import ButtonUpl... |
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | pomerantsev/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
src/client/app/components/Panels/StatsPanel/StatsPanel.js | sysart/dashboard | import _ from 'lodash';
import React from 'react';
import reactMixin from 'react-mixin';
import Stats from 'lib/collections/Stats';
import Bar from './Bar';
@reactMixin.decorate(ReactMeteorData)
class StatsPanel extends React.Component {
constructor(props) {
super(props);
}
getMeteorData() {
... |
app/components/Header.js | mapbox/osm-comments | import React from 'react';
var Header = React.createClass({
render: function() {
return (
<div>
<header className="col12 pad2y fill-navy-dark clearfix">
<div className="limiter contain dark">
<a className="inline mb-logo" href=".">Ma... |
clients/libs/webpage/src/lib/ux/edit-block-wrapper.js | nossas/bonde-client | import React from 'react'
class EditBlockWrapper extends React.Component {
render () {
// Wrapper Props
// - children must always render
const { block, children, editable } = this.props
return (
<div
onMouseEnter={() => {
/*if (editable && !editing) onMouseOver(HOVER_MOUSE_... |
app/javascript/mastodon/features/account_timeline/index.js | KnzkDev/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
src/parser/priest/holy/modules/spells/Renew.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import DistanceMoved from 'parser/shared/modules/others/DistanceMoved';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import SpellLink from 'common/SpellLink';
import { ABILITIES_THAT_TRIGGER_END... |
src/components/page-elements/panel.js | sunpietro/LeagueManager | import React, { Component } from 'react';
import Button from '../form-elements/form-button';
import '../../css/components/page-elements/panel.css';
class Panel extends Component {
constructor(props) {
super(props);
this.state = {
isVisible: props.isVisible
};
}
compon... |
packages/material-ui-icons/src/CloseSharp.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="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" /></React.Fragment>
, 'CloseSharp... |
app/javascript/mastodon/features/standalone/community_timeline/index.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshCommunityTimeline,
expandCommunityTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/... |
app/js/pages/Home.js | JeffRisberg/RE03 | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<div className={this.props.className}>
<h2>RE03 Example</h2>
<div className="row">
<div className="col-md-4">
Uses React for presentation
</div>
<div clas... |
ajax/libs/Sly/1.3.0/sly.js | drewfreyling/cdnjs | /*!
* sly 1.3.0 - 30th Nov 2014
* https://github.com/darsain/sly
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function ($, w, undefined) {
'use strict';
var pluginName = 'sly';
var className = 'Sly';
var namespace = pluginName;
// Local WindowAnimationTiming interface
va... |
src/encoded/static/components/static-pages/DirectoryPage.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { console, object } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { NextPreviousPageSection } from '@hms-dbmi-bgm/shared-portal-components/es/components/static-pages/TableOfContent... |
app/javascript/mastodon/features/lists/index.js | pinfort/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js | jelenar93/upstream | /*!
* 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.
... |
src/blocks/oscillator/block.js | rsimmons/plinth | import React from 'react'
import ReactDOM from 'react-dom';
import BlockRoot from '../../components/BlockRoot';
import GridSelector from '../../components/GridSelector';
import FrequencyKnob from '../../components/FrequencyKnob';
const FREQ_RANGE_RATIO = 4096; // 12 octaves
const HI_LOW_FREQ_RATIO = 512; // 9 octaves
... |
src/components/flashcard/flashcard_set_list.js | trihpham/flashcard-webapp | import React, { Component } from 'react';
import { Card, Icon } from 'semantic-ui-react';
import { connect } from 'react-redux';
import { fetchFlashcardSetsByUser } from '../../actions/index';
import { Link } from 'react-router';
import TagList from './view_components/tag_list';
class FlashcardSetList extends Componen... |
ajax/libs/datatables/1.10.0-beta.1/js/jquery.js | kartikrao31/cdnjs | /*! jQuery v1.11.0 | (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... |
maodou/posts/client/components/posts.js | ShannChiang/USzhejiang | import React from 'react';
import {Link} from 'react-router';
import Tabs from '../containers/tabs';
import Loading from 'client/components/common/loading';
import moment from 'moment';
export default (props) => {
const T = props.context.T;
return (
<div style={{ paddingTop: '50px' }}>
{
props.co... |
src/CrossIcon.js | as-me/react-burger-menu | 'use strict';
import React from 'react';
import appendVendorPrefix from 'react-kit/appendVendorPrefix';
let CrossIcon = React.createClass({
getCrossStyle(type) {
return appendVendorPrefix({
position: 'absolute',
width: 3,
height: 14,
top: 14,
right: 18,
cursor: 'pointer',
... |
app/javascript/mastodon/components/column_back_button.js | pso2club/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (w... |
ajax/libs/algoliasearch/3.19.2/algoliasearch.parse.js | honestree/cdnjs | module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
src/js/components/home.js | sfbaltaci/nodejs-chatx | import React from 'react'
const Home = React.createClass({
render() {
return(
<div id="home">
<h2>Welcome to ChatX</h2>
{this.props.children || 'Project Description'}
</div>
)
}
})
module.exports = Home
|
src-rx/src/components/Instances/LinksDialog.js | ioBroker/ioBroker.admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import DialogTitle from '@materia... |
assets/js/select2/tests/vendor/jquery-1.7.2.js | rajat71194/vinayakford | /*!
* 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.
... |
ajax/libs/cyclejs-core/0.6.3/cycle.js | kartikrao31/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... |
ajax/libs/forerunnerdb/1.3.484/fdb-core+views.js | sashberd/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/TabbedView.js | tilastokeskus/react-tabbed-view | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Tab from './Tab';
import TabContent from './TabContent';
import TabTitle from './TabTitle';
export default class TabbedView extends React.Component {
static propTypes = {
selectedKey: PropTypes.oneOfType([Prop... |
node_modules/react-dom/node_modules/react/node_modules/fbjs/node_modules/core-js/client/core.js | midknightmare/menuology | /**
* core-js 1.2.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ohanashi/jspm_packages/npm/babel-core@5.4.7/lib/babel/transformation/transformers/other/react.js | kuelgu/kuelgu.github.io | /* */
"format cjs";
"use strict";
exports.__esModule = true;
exports.Program = Program;
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } ... |
components/__tests__/Card-test.js | hellobrian/carbon-components-react | import React from 'react';
import Card from '../Card';
import { shallow, mount } from 'enzyme';
describe('Card', () => {
describe('Renders as expected', () => {
const wrapper = shallow(
<Card className="extra-class">
<div className="child">Test</div>
</Card>
);
it('renders children a... |
packages/material-ui-icons/src/Forward5TwoTone.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="M17.95 13c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6v4l5-5-5-5v4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8h-2z" /><path d="M12.43 15.15c-.05.07-.11... |
__tests__/index.android.js | yarikgenza/gainster | 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/svg-icons/action/assignment-return.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/test/__tests__/ReactTestUtils-test.js | blue68/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/mobx/2.5.1/mobx.min.js | extend1994/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?D(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?D(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/ModalTitle.js | jmanday/Master | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.