path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/recharts/0.21.0/Recharts.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-addons-transition-group")):"function"==typeof define&&define.amd?define(["react","react-addons-transition-group"],t):"object"==typeof exports?exports.Recharts=t(require("react"),require("react-addons-transi... |
src/components/LoginRegisterTab.js | Leobuaa/online-disk | import React, { Component } from 'react';
class LoginRegisterTab extends Component {
constructor(props) {
super(props);
this.handleRegisterClick = this.handleRegisterClick.bind(this);
this.handleLoginClick = this.handleLoginClick.bind(this);
}
handleRegisterClick(event) {
this.props.onRegisterTa... |
spec/components/input.js | jasonleibowitz/react-toolbox | import React from 'react';
import Input from '../../components/input';
class InputTest extends React.Component {
state = {
normal: 'Tony Stark',
fixedLabel: '',
withIcon: '',
withCustomIcon: '',
withHintCustomIcon: '',
multilineHint: 'Long Description here',
multilineRows: 'A\n\B\nC\nD\nE... |
ajax/libs/yasqe/2.5.2/yasqe.bundled.min.js | zhangbg/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
ajax/libs/intl-tel-input/6.2.0/js/intlTelInput.js | jdh8/cdnjs | /*
International Telephone Input v6.2.0
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($... |
data-viz/react/roughlike-dungeon-crawler-game/src/Battlefield.js | mkermani144/freecodecamp-projects | import React, { Component } from 'react';
import Cell from './Cell';
import './Battlefield.css';
class Battlefield extends Component {
render() {
const cells = [];
this.props.cellColors.forEach((color, index) => {
cells.push(<Cell bgColor={color} key={index}/>);
});
return (
<div classNam... |
static/dashs/www.appudo.com/d/pub/api/docs_Backend_1.3.1/docsets/Appudo.docset/Contents/Resources/Documents/js/jquery.min.js | Appudo/Appudo.github.io | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/SketchPicker.js | JedWatson/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import merge from 'merge'
import isPlainObject from 'lodash.isplainobject'
import debounce from 'lodash.debounce'
import color from '../helpers/color'
import Sketch from './sketched/Sketch'
class ColorPicker extends ReactCSS.Component... |
src/js/components/exam/test-selector.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { Col, Grid, Row, Button, ListGroup, ListGroupItem } from 'react-bootstrap'
import { SimpleList } from '../others/lists'
import TestSelectorListItem from './test-selector-list-item'
@inject('testSelectorStore', 'examStore')
@observer
expo... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.js | neeravbm/arlevents | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/docs/examples/PasswordInput/ExampleAllFeatures.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import PasswordInput from 'ps-react/PasswordInput';
/** All features enabled */
class ExampleAllFeatures extends React.Component {
constructor(props) {
super(props);
this.state = {
password: ''
};
}
getQuality() {
const length = this.state.password.length;
r... |
src/js/components/Anchor/stories/Gap.js | grommet/grommet | import React from 'react';
import { Upload } from 'grommet-icons';
import { Anchor, Box } from 'grommet';
const GapAnchor = () => (
<Box pad="medium" gap="medium">
<Anchor icon={<Upload />} label="Small Gap" href="#" gap="small" />
<Anchor icon={<Upload />} label="Medium Gap" href="#" gap="medium" />
<... |
fields/types/Field.js | Adam14Four/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from 'elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../components/CollapsedFieldLabe... |
server/sonar-web/src/main/js/apps/global-permissions/permission.js | abbeyj/sonarqube | import $ from 'jquery';
import React from 'react';
import PermissionUsers from './permission-users';
import PermissionGroups from './permission-groups';
// Maximum number of displayed groups
const MAX_ITEMS = 3;
export default React.createClass({
propTypes: {
permission: React.PropTypes.object.isRequired
},
... |
client/views/admin/settings/inputs/GenericSettingInput.stories.js | VoiSmart/Rocket.Chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import GenericSettingInput from './GenericSettingInput';
export default {
title: 'admin/settings/inputs/GenericSettingInput',
component: GenericSettingInput,
decorators: [(storyFn) => <Field... |
test/MenuItemSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import MenuItem from '../src/MenuItem';
describe('MenuItem', function () {
it('should output an li', function () {
let instance = ReactTestUtils.renderIntoDocument(
<MenuItem>
Title
</MenuItem>
);
assert... |
games/jab/game3/src/scripts/modules/Footer.js | jabrena/ReactLab | import React from 'react'
export default React.createClass({
render() {
return (
<div className="row">
<div className="col-xs-12">
<blockquote>
Olympic React Games 2016.
</blockquote>
</div>
</div>
)
}
}) |
ajax/libs/react-slick/0.13.4/react-slick.min.js | menuka94/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,... |
src/js/components/App.js | dwyl/learn-aws-iot | import React, { Component } from 'react';
import mqtt from 'mqtt';
import AWS from 'aws-sdk';
import { formatRequestUrl, initClient } from '../utils/request.js';
class App extends Component {
componentDidMount() {
AWS.config.region = 'eu-west-1';
var credentials = new AWS.CognitoIdentityCredentials({
... |
src/parser/monk/windwalker/modules/features/checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules... |
node_modules/material-ui/lib/svg-icons/editor/border-bottom.js | Maxwelloff/react-football | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
index.ios.js | codingforme/react-native-demo-news | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class News extends Component {
render() {
return (
<View style={styles.container}>
<Text sty... |
src/router/Landing.js | change-soft8/cs-project | import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>This page is only shown to unauthenticated users.</p>
<p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import Immuta... |
src/components/header.js | nicolasthy/showify-electron | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import * as actions from '../actions';
class Header extends Component{
static contextTypes = {
router: React.PropTypes.object
};
logoutCurrentUser(e){
e.preventDefault();
localStorag... |
src/svg-icons/communication/invert-colors-off.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationInvertColorsOff = (props) => (
<SvgIcon {...props}>
<path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5... |
src/clincoded/static/components/create_gene_disease.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import { curator_page, history_views, external_url_map } from './globals';
import { RestMixin } from './rest';
import { ... |
examples/create-react-app/src/components/DatePickerField.js | wfp/ui | import React from 'react';
import { Field,Form } from 'react-final-form';
import moment from 'moment';
import { SingleDatePicker } from 'react-dates';
import { SingleDatePickerInput } from '@wfp/ui';
// const FieldWrapper = styled.div`
// .datepicker-invalid .DateInput_input {
// border-color: #c5192d;
// }
//... |
app/components/views/greetings-panel.js | erisalke/react-playground | import React from 'react';
import { connect } from 'react-redux';
import InputWithButton from '../basic/inputWithButton';
import { handleLogin } from '../../actions/user-actions';
const GreetingsPanel = React.createClass({
render: function() {
return (
<InputWithButton
buttonName="Login"
onCli... |
ajax/libs/vkui/4.29.0/cjs/components/ModalRoot/ModalRoot.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ModalRootTouch = void 0;
var _jsxRuntim... |
packages/material-ui-icons/src/PanoramaWideAngle.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PanoramaWideAngle = props =>
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-... |
app/components/HomeArrow.js | treyhuffine/tuchbase | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './HomeArrow.css';
export default class HomeArrow extends Component {
render() {
let bookmarks = this.props.bookmarks
return (
<div>
<Link to="/">
<div className={styles.container}>
... |
packages/material-ui-icons/src/FilterCenterFocus.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FilterCenterFocus = props =>
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9c-1... |
web/node_modules/rx/dist/rx.all.compat.js | GFibrizo/Red-de-Mascotas | // 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
};
... |
ajax/libs/mobx/2.0.0/mobx.js | humbletim/cdnjs | 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._ = {
quickDiff: quickDiff,
... |
ajax/libs/handsontable/0.15.0-beta2/handsontable.full.js | dada0423/cdnjs | /*!
* Handsontable 0.15.0-beta2
* Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com>
* Licensed under the MIT license.
* http://han... |
17/notes/src/pages/calendar/PrevMonth.js | nanohop/hop_into_react | import React, { Component } from 'react';
class PrevMonth extends Component {
render() {
return <a className="prev" onClick={this.props.onClick}><</a>
}
}
export default PrevMonth;
|
ajax/libs/foundation/4.3.1/js/vendor/jquery.js | RubaXa/cdnjs | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
static/src/js/components/resources/ResourceTypeDirectory.js | enginyoyen/blackcrystal | import React from 'react';
import {Input} from 'react-bootstrap';
const ResourceTypeDirectory = React.createClass({
getInitialState: function() {
return {directoryPath: this.props.resource.directoryPath};
},
handleChange: function(event) {
this.setState({directoryPath: event.target.value});... |
codes/reactstrap-demo/src/containers/Full/Full.js | atlantis1024/react-step-by-step | import React, { Component } from 'react';
import Header from '../../components/Header/';
import Sidebar from '../../components/Sidebar/';
import Aside from '../../components/Aside/';
import Footer from '../../components/Footer/';
import Breadcrumbs from 'react-breadcrumbs';
class Full extends Component {
render() {... |
src/svg-icons/maps/zoom-out-map.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsZoomOutMap = (props) => (
<SvgIcon {...props}>
<path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm1... |
src/icons/IosColorFilterOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosColorFilterOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M366.195,212.122c1.185-6.528,1.806-13.252,1.806-20.122c0-61.856-50.145-112.001-112.001-112.001
S143.999,13... |
Web/Scripts/jquery-1.4.4.min.js | crdeutsch/MVC3-Boilerplate-NHibernate | /*!
* Note: While Microsoft is not the author of this file, Microsoft is
* offering you a license subject to the terms of the Microsoft Software
* License Terms for Microsoft ASP.NET Model View Controller 3.
* Microsoft reserves all other rights. The notices below are provided
* for informational purposes only and... |
classic/src/scenes/traypopout/src/Scenes/NotificationScene/NotificationListItem.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { ListItem, ListItemText } from '@material-ui/core'
import ACAvatarCircle2 from 'wbui/ACAvatarCircle2'
import TimeAgo from 'react-timeago'
import { withStyles } from '@material-ui/core/styles'
import PropTypes from 'prop-types'
i... |
packages/recon-engine/src/engine/__tests__/__fixtures__/basic-app/src/notes.js | recon-js/recon | /* eslint-disable */
import React from 'react';
import List, {ListItem} from './list';
import {createContainer, query as q} from 'api/recall';
import {Note} from 'api/resources';
function NoteItem({note}) {
return (
<ListItem type="grid">
<Avatar src={note.created_by.img} />
<p>{note.content}</p>
... |
src/svg-icons/communication/import-contacts.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
ui/src/App.js | sgeisbacher/photogallery-api | import React, { Component } from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Navigation from './components/Navigation';
import Home from './components/Home';
import Label from './components/Label';
import Media from './components/Media';
class App extends Component {
render() {
... |
ajax/libs/forerunnerdb/1.3.119/fdb-all.js | bootcdn/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... |
todo/solo-branch/todo-react/src/index.js | krulik/demos | import React from 'react';
import ReactDOM from 'react-dom';
import {useState, useEffect} from 'react';
ReactDOM.render(
<TodoApp />,
document.getElementById('root')
);
function TodoApp() {
let [state, setState] = useState({todo: [], selectedTab: 'all'});
// useEffect(() => {
// setState(getSavedState() |... |
src/rsg-components/TabButton/TabButton.spec.js | bluetidepro/react-styleguidist | import React from 'react';
import { TabButtonRenderer, styles } from './TabButtonRenderer';
const props = {
classes: classes(styles),
onClick: () => {},
};
it('should render a button', () => {
const actual = shallow(<TabButtonRenderer {...props}>pizza</TabButtonRenderer>);
expect(actual).toMatchSnapshot();
});
... |
react-redux-books/test/test_helper.js | majalcmaj/ReactJSCourse | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
ajax/libs/rxjs/4.0.1/rx.all.compat.js | drewfreyling/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
stories/FloatingToolbar/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React from 'react';
import { Editor } from '../../src';
import './styles.css';
function uploadImageCallBack(file) {
return new Promise(
(resolve, reject) => {
const xhr = new XMLHttpRequest(); // eslint-disable-line no-undef
xhr.open('POST', 'https://api.imgur.com/3/image');
... |
src/page/search/advanced-search/list-summary.js | KleeGroup/focus-components | // Dependencies
import React from 'react';
import builder from 'focus-core/component/builder';
// Components
import { component as ListSummary } from '../../../list/summary';
// Mixins
import referenceBehaviour from '../../../common/form/mixin/reference-behaviour';
import storeBehaviour from '../../../common/mixin/stor... |
sonar-flow-plugin/scripts/start.js | I8C/sonar-flow-plugin | /*
* Copyright (C) 2017-2017 SonarSource SA
* All rights reserved
* mailto:info AT sonarsource DOT com
*/
process.env.NODE_ENV = 'development';
// Load environment variables from .env file. Surpress warnings using silent
// if this file is missing. dotenv will never modify any environment variables
// that have al... |
src/svg-icons/communication/stay-current-portrait.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
ajax/libs/backbone.js/1.1.0/backbone.js | sujonvidia/cdnjs | // Backbone.js 1.1.0
// (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
// (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(... |
local-cli/commands.js | salanki/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.
*
* @flow
*/... |
test/DropdownButtonSpec.js | collinwu/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import DropdownMenu from '../src/DropdownMenu';
import Button from '../src/Button';
describe('DropdownButton', function () {
let instance;
a... |
src/svg-icons/action/favorite.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6... |
js/jquery-1.7.2.min.js | andyptra/futsal | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBord... |
packages/material-ui-icons/src/BubbleChart.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="7.2" cy="14.4" r="3.2" /><circle cx="14.8" cy="18" r="2" /><circle cx="15.2" cy="8.8" r="4.8" /></React.Fragment>
, 'BubbleChart');
|
test/test-app.js | BclEx/generator-xrm | 'use strict';
var fs = require('fs');
var path = require('path');
var yeoman = require('yeoman-generator');
var helpers = require('yeoman-test');
var assert = require('yeoman-assert');
describe('app test', function () {
var xrm, genOptions = {
'appPath': 'app',
'skip-install': true,
'skip-... |
src/components/Link/Link.js | bmatthews/haze-lea | /**
* 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 PropTypes from 'prop-... |
ajax/libs/zeroclipboard/2.1.4/ZeroClipboard.Core.js | gasolin/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.4
*/
(function(window, undefined) {
"use strict";... |
frontend/src/System/Events/LogsTableConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import withCurrentPage from 'Components/withCurrentPage';
import { executeCommand } from 'Store/Actions/c... |
resume/jquery-1.4.3.min.js | Jens-CoconutInc/love | /*!
* jQuery JavaScript Library v1.4.3
* 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.
... |
tests/components/Nav.spec.js | tenshiemi/DoDidDone | import React from 'react';
import { Nav } from 'components/Nav';
import { shallow } from 'enzyme';
describe('(Component) Nav', () => {
let _wrapper;
beforeEach(() => _wrapper = shallow(<Nav/>));
it('Renders a navbar', () => {
const navbar = _wrapper.find('Toolbar');
expect(navbar).to.exist;
});
});
|
client/node_modules/material-ui/lib/svg-icons/social/mood-bad.js | jnajdi/canvas_starter_app_local | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var SocialMoodBad = React.createClass({
displayName: 'SocialMoodBad',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M11.99 2C6.47 2 2 6.48 2 ... |
react-redux-demo/运行不了或报错/能运行但报错/shopping-cart/src/containers/App.js | fengnovo/webpack-react | import React from 'react'
import ProductsContainer from './ProductsContainer'
import CartContainer from './CartContainer'
const App = () => (
<div>
<h2>Shopping Cart Example</h2>
<hr/>
<ProductsContainer />
<hr/>
<CartContainer />
</div>
)
export default App
|
js/src/ui/Badge/badge.spec.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
app/javascript/mastodon/features/follow_recommendations/components/account.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/compone... |
packages/material-ui-icons/src/AssignmentTwoTone.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M5 5v14h14V5H5zm9 12H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z" opacity=".3" /><path d="M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-... |
src/index.js | Hao1995/Blog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from "react-router-dom";
import promise from "redux-promise";
import reducers from './reducers';
import PostsIndex from "./c... |
ajax/libs/material-ui/5.0.0-alpha.2/esm/NativeSelect/NativeSelect.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import NativeSelectInput from"./NativeSelectInput";import withStyles from"../styles/withStyles";import formContr... |
ajax/libs/6to5/3.0.5/browser-polyfill.js | lobbin/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/common/ZulipStatusBar.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { Platform, StatusBar } from 'react-native';
import { foregroundColorFromBackground } from '../utils/color';
export default (props: Object) => {
const backgroundColor = props.backgroundColor || 'white';
const textColor = foregroundColorFromBackground(backgroundColor);... |
files/firebuglite/1.4.0/firebug-lite-debug.js | vvo/jsdelivr | (function(){
/*!*************************************************************
*
* Firebug Lite 1.4.0
*
* Copyright (c) 2007, Parakey Inc.
* Released under BSD license.
* More information: http://getfirebug.com/firebuglite
*
********************************************************... |
src/components/utils/decorators/SuperscriptDecorator.js | tsaiDavid/react-rich-text-editor | import React from 'react';
export const Superscript = (props) => {
return (
<span>
<sup>
{props.children}
</sup>
</span>
);
};
|
src/components/EditLinkTextComponent.js | Philin-Anton/prototypeApp | 'use strict';
import React from 'react';
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
require('styles//EditLinkText.scss');
import {drawFrame, classNames} from '../api/maggo';
import { actionWidgetList, actionPopUpBlock } from '../actions/index';
const openPopUp = actionPopUpBloc... |
src/svg-icons/av/art-track.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
src/routes/about/index.js | TodoWishlist/TodoWishlist | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
ajax/libs/rxjs/2.2.15/rx.js | thejameskyle/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,
'u... |
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | lawrence-yu/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
app/components/AppBar.js | sebas5384/hades | import React from 'react';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-button';
import NavigationClose from 'material-ui/lib/svg-icons/navigation/close';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import MoreVertIcon from 'material-ui/lib/svg-icons/navigation/... |
src/DoubleBounce/index.js | bentatum/better-react-spinkit |
import React from 'react'
import Base from '../Base'
import PropTypes from 'prop-types'
import { animate, animationName, defaults, preside } from '../util'
const defaultSize = 18
const DoubleBounce = ({ color, duration, scaleEnd, scaleStart, size, ...props }, { betterReactSpinkit = {} }) => {
const name = animatio... |
client/components/utils/container.js | guyonroche/quaero | import React, { Component } from 'react';
// A Container component is one that reacts to and controls Redux state
// This base class subscribes to the store state.
// Derived classes can supply a transform to restructure the state if it needs
// to be extended.
class Container extends Component {
constructor(props,... |
ui/src/containers/Visualisations/TemplateStreamInteractionsVsEngagement/Card.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import TemplateCard from '../components/TemplateCard';
import buildModel from './buildModel';
import { title, image } from './constants';
/**
* @param {immutable.Map} props.model
* @param {() => void} props.saveModel
*/
... |
src/components/Library/AlbumRow.react.js | nkprince007/muZic-electron | import { Link } from 'react-router';
import React from 'react';
import path from 'path';
class AlbumRow extends React.Component {
static propTypes = {
album: React.PropTypes.object
};
constructor(props) {
super(props);
this.cover = 'dist/img/album.svg';
}
render() {
... |
devtools/client/performance/components/recording-list.js | Yukarumya/Yukarum-Redfoxes | /* 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/. */
"use strict";
const {DOM, createClass, PropTypes} = require("devtools/client/shared/vendor/react");
const {L10N} =... |
src/components/stories/TopicsOverview.js | neontribe/spool | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import TopicsOverview from '../TopicsOverview';
import { topicCounts } from './fixtures';
storiesOf('TopicsOverview', module)
.add('Initial View', () => (
<TopicsOverview
topics={topicCounts}
/>
));
|
nodejs/dva/src/router.js | EternalFire/developEnvironment | import React from 'react';
import { Router, Route } from 'dva/router';
import IndexPage from './routes/IndexPage';
function RouterConfig({ history }) {
return (
<Router history={history}>
<Route path="/" component={IndexPage} />
</Router>
);
}
export default RouterConfig;
|
src/components/common/TextInput.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, View, Text, TextInput, Platform} from 'react-native';
import {Actions} from 'react-native-router-flux';
import Icon from 'react-native-vector-icons/FontAwesome';
import flattenStyle from 'flattenStyle';
import {COLOR} from '../../config';
export default ({onRef, style, m... |
ajax/libs/forerunnerdb/1.3.565/fdb-core.min.js | pombredanne/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... |
app/javascript/mastodon/features/ui/components/report_modal.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
node_modules/react-icons/md/notifications-paused.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdNotificationsPaused = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m24.1 16.3v-2.9h-8.2v2.9h4.6l-4.6 5.7v3h8.2v-3h-4.6z m5.9 10.3l3.4 3.4v1.6h-26.8v-1.6l3.4-3.4v-8.2c0-5.1 2.7-9.4 7.5-10.6v-1.2c0-1.4 1.1-2.5 2.5-2.5s2.5 1... |
app/javascript/mastodon/features/audio/index.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { formatTime } from 'mastodon/features/video';
import Icon from 'mastodon/components/icon';
import classNames from 'classnames';
import { throttle } from 'lodash';
import { getPointerPosition, ... |
src/decorators/withContext.js | jeffreymoya/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes } from 'react'; // eslint-disable-line no-unused-vars
import emptyFunction from 'fbjs/lib/emptyFunction';
function withContext(ComposedComponent) {
return class WithContext {
static propTypes = {
context: P... |
src/js/Login/index.js | ludonow/ludo-beta-react | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import styled from 'styled-components';
import { Form } from 'formsy-react';
import md5 from 'blueimp-md5';
import axios from '../axios-config';
import { baseUrl } from '../baseurl-config';
import Button, { StyledButton } from '..... |
app/scripts/components/Dashboard/__tests__/UpdaterModal-test.js | andela-ekupara/DcManFrontEnd | import React from 'react';
import expect from 'expect';
import sinon from 'sinon';
import {mount,shallow} from 'enzyme';
import * as UserActions from '../../../actions/UserActions';
import UpdaterModal from '../UpdaterModal.jsx';
describe('User Update Modal Component Tests', function() {
it('renders the component co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.