path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
tests/views/HomeView.spec.js | SawyerHood/pomodoro-redux | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import { bindActionCreators } from 'redux'
import { HomeView } from 'views/HomeView'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function... |
ajax/libs/yui/3.14.1/datatable-core/datatable-core-debug.js | snorpey/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/react-select/1.0.0-beta1/react-select.min.js | dc-js/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var u;u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,u.Select=e()}}(function(){return function e(u,t,s){functi... |
opcon/opcon/static/jquery-1.7.2.min.js | arcolife/op-con | /*! 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.frameBorde... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
app/components/SwitchEditMode/SwitchEditMode.js | realgvard/telegram_theme_customizer | import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
import { connect } from 'react-redux';
// Components
import Toggle from 'material-ui/Toggle';
// Actions
import { changeEditMode } from 'components/SidebarEditor/actions';
// Styles
import styles from './SwitchEditMode.css';
clas... |
src/js/components/home/homecard.js | axuebin/react-blog | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
export default class HomeCard extends React.Component {
render() {
const contentList = this.props.cardContent.map(item => <li key={item.id}><Link to={item.url}>{item.title}</Link></li>);
return (
<di... |
src/routes/notFound/NotFound.js | jaruesink/ruesinkdds | /**
* 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-... |
src/test.js | PsychoLlama/expect-enzyme | /* eslint-disable require-jsdoc */
import expect, { createSpy } from 'expect';
import { shallow, mount } from 'enzyme';
import PropTypes from 'prop-types';
import React from 'react';
import enzymify from './index';
expect.extend(enzymify());
describe('expect-enzyme', () => {
let element;
beforeEach(() => {
... |
ajax/libs/vkui/4.30.0/cjs/components/SegmentedControl/SegmentedControl.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.SegmentedControl = void 0;
var _jsxRunt... |
ui/src/components/ExperimentInfo/ExperimentInfo.js | vlad-doru/experimento | import React from 'react'
import TextField from 'material-ui/TextField';
import Slider from 'material-ui/Slider';
export class ExperimentInfo extends React.Component {
constructor(props) {
super();
this._isValid = this._isValid.bind(this);
this.state = {
info: props.info || {
id: '',
... |
actor-apps/app-web/src/app/components/DialogSection.react.js | way1989/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
ajax/libs/rxjs/2.2.27/rx.compat.js | potomak/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
};
v... |
src/icons/ContactMailIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ContactMailIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 16v-2l-6 4-6-4v2l6 4 6-4zm2-10H4c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h40c2.21 0 3.98-1.79 3.98-... |
mlflow/server/js/src/experiment-tracking/components/RunLinksPopover.js | mlflow/mlflow | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Popover } from 'antd';
import Routes from '../routes';
import { IconButton } from '../../common/components/IconButton';
import Utils from '../../common/utils/Utils';
export class RunLinksPopover extends Rea... |
src/premade/HybridScatterHeatmapChart.js | ornl-sava/vis-react-components | import React from 'react'
import PropTypes from 'prop-types'
import { set, interpolateHcl } from 'd3'
import { setScale } from '../util/d3'
import { spreadRelated } from '../util/react'
import Chart from '../Chart'
import Axis from '../Axis'
import Tooltip from '../Tooltip'
import Heatmap from '../Heatmap'
import Scat... |
ajax/libs/F2/1.3.1/f2.no-easyXDM.min.js | mihneasim/cdnjs | /*! F2 - v1.3.1 - 10-15-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
src/svg-icons/maps/place.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPlace = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"... |
src/components/pages/phrasebook/index.js | modern-translator/client | /* 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 https://mozilla.org/MPL/2.0/. */
import React from 'react';
import PropTypes from 'prop-types';
import AppBar from '@material-ui/core/AppBar';
imp... |
app/javascript/mastodon/features/generic_not_found/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import Column from '../ui/components/column';
import MissingIndicator from '../../components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator fullPage />
</Column>
);
export default GenericNotFound;
|
docs/src/pages/examples/RawEditorPage.js | gocreating/redux-draft | import React, { Component } from 'react';
import { reduxDraft } from '../../../../lib';
import PageLayout from '../../utils/PageLayout';
import Preview from '../../editors/utils/Preview';
import Raw from '../../editors/utils/Raw';
import RawEditor from '../../editors/RawEditor/RawEditor';
import draftConfig from '../..... |
app/static/src/performer/TestTypeResultForm_modules/NewBushingTestForm.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'rea... |
frontend/src/components/icons/Upload.js | webrecorder/webrecorder | import React from 'react';
function Upload() {
return (
<svg width="661px" height="661px" viewBox="0 0 661 661" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<rect x="-1" y="-3" width="663" height="666" />
<g transform="t... |
src/parser/shared/modules/items/bfa/crafted/DarkmoonDeckFathoms.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import ItemDam... |
src/routes/default/component/WrapperDefaultPage.js | hourliert/lifework-wallet | import React, { Component } from 'react';
import pureRender from 'pure-render-decorator';
@pureRender
export default class WrapperDefaultPage extends Component {
render() {
return (
<div className="flex layout vertical center-center">
<h1>Whoops! 404!</h1>
<p>These are <em>not</em> the dro... |
src/svg-icons/editor/border-color.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
fields/types/textarray/TextArrayFilter.js | concoursbyappointment/keystoneRedux | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ ... |
src/helpers/universalRouter.js | lemonCMS/react-redux-universal-hot-example | import qs from 'query-string';
import React from 'react';
import {match, RoutingContext} from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
var Intl = require('intl'); // eslint-disable-line
import {IntlProvider} from 'react-intl';
const getFetchData = (component = {}) => ... |
ajax/libs/cyclejs-core/0.21.1/cycle.js | samthor/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.Cycle = f()}})... |
docs/src/app/pages/components/Chip/Page.js | GetAmbassador/react-ions | import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/Chip/Chip'
import CodeExample from 'private/modules/CodeExample'
import ExampleChipDefault from './ExampleChipDefault'
import exampleChipDefaultCode from '!raw!./ExampleChipDefault'
import Ex... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | sfshine/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
ajax/libs/react-chartjs-2/1.5.1/react-chartjs-2.min.js | tholu/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.index=t()}}(function(){return function t(e,n,r){functio... |
examples/flux-todomvc/js/app.js | Khan/flux | /**
* Copyright (c) 2014, 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.
*
* @jsx React.DOM
*... |
tests/routes/Home/components/HomeView.spec.js | peter-suggate/Vibrato-Assistant | 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/components/TranslatableHelmet/TranslatableHelmet.js | thanhiro/tuha-ui-tpl | /* @flow */
import React from 'react';
import Helmet from 'react-helmet';
import config from 'config';
import {defineMessages} from 'react-intl';
type Props = {
transKey: string
};
export const TranslatableHelmet =
({transKey, ...restProps}: Props, {intl}) => {
let translatedStr = intl.formatMessage({
i... |
src/index.js | bokuweb/tomato_pasta | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './stores/configure-store';
import App from './containers/app';
import Pasta from './components/pasta';
const store = configureStore();
render(
<Provider store={store}>
<App />
</P... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | rekyyang/ArtificalLiverCloud | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
Native/Learn_ListView/__tests__/index.ios.js | renxlWin/React-Native_Demo | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/PageHeader.js | Akkuma/npm-cache-benchmark | 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 ... |
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js | ichiohta/material-ui | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerUndockedExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
han... |
client/react/src/index.js | peasy/peasy-js-samples | // import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { Provider } from 'react-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import ordersDotCom from './businessLogic';
i... |
src/scripts/index.js | pombredanne/WebApp | require("babel/polyfill");
import React from 'react';
import Router from 'react-router';
import AppRoutes from './routes';
import FormsyValidators from './utils/validators';
FormsyValidators();
window.React = React;
Router.run(AppRoutes, (Handler) => {
React.render(<Handler/>, document.getElementById("app"));
})... |
blueocean-material-icons/src/js/components/svg-icons/image/leak-add.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-6.07 0-11 4.93-11 11zm8 0h3v-3c-1... |
ajax/libs/onsen/2.2.2/js/onsenui.min.js | hare1039/cdnjs | /*! onsenui v2.2.2 - 2017-04-06 */
window.CustomEvent||!function(){var CustomEvent;CustomEvent=function(event,params){var evt;return params=params||{bubbles:!1,cancelable:!1,detail:void 0},evt=document.createEvent("CustomEvent"),evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail),evt},CustomEvent.... |
src/components/ui/button/full_button.js | KmKm007/oa | import React from 'react'
import PropTypes from 'prop-types'
import BaseButton from './base_button'
class FullButton extends React.Component {
static propTypes = {
className: PropTypes.string
}
render () {
let { className, ...restProps } = this.props
className = className || 'full-button'
retur... |
test/components/Counter.spec.js | zedtux/grrn | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
services/web/client/containers/profile.js | apparatus/mu-app | 'use strict'
import React from 'react'
import { connect } from 'react-redux'
import { updateProfile } from '../lib/auth'
import { updateLoginState } from '../actions/login'
import { replacePath } from 'redux-simple-router'
import { Row, Col, RowCol } from '../components/layout'
import { Link } from 'react-router'
con... |
src/server.js | maxiaochuan/react-ssr-starter | 'use strict'
/**
* Server
*/
import 'babel-polyfill'
import express from 'express'
import React from 'react'
import { StaticRouter } from 'react-router'
import { Provider } from 'react-redux'
import ReactDOM from 'react-dom/server'
import path from 'path'
import Html from './components/Html'
import makeStore from './... |
src/shared/visualization/Tooltip.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
const Tooltip = (props) => {
const styles = props.style || {};
styles.padding = '0.35rem';
styles.letterSpacing = '0.015rem'
const minWidth = Math.min(
(props.textLines.map(line => line.text).join('').length + 1) / props.textLines.length,
... |
src/routes/ItemShop/components/ItemShopView.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import ContentContainer from 'components/ContentContainer'
import ItemCard from 'components/ItemCard'
import { getMsg } from 'utils/commonUtil'
class ItemShopView extends React.Component {
constru... |
ajax/libs/redux-little-router/1.0.0/redux-little-router.min.js | nolsherry/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReduxLittleRouter=t(require("react")):e.ReduxLittleRouter=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])r... |
components/HomeFeatures.js | grraft/next-boilerplate | import FontAwesome from 'react-fontawesome'
import Link from 'next/link'
export default () => (
<div className='section__hero_features col-md-8 col-md-offset-2'>
<div className='row'>
<div className='section__hero_features__col col-md-4'>
<FontAwesome
name='server'
size='4x'
... |
spec/coffeescripts/jsx/discussion_topics/DiscussionTopicKeyboardShortcutModalSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
packages/material-ui-icons/src/DialpadTwoTone.js | allanalexandre/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="M18 7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM20 15c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zM12 23c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .... |
client/src/components/search/searchBar/SearchSuggestion.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Highlight } from 'react-instantsearch-dom';
import { isEmpty } from 'lodash';
const Suggestion = ({ hit, handleMouseEnter, handleMouseLeave }) => {
const dropdownFooter = hit.objectID.includes('default-hit-');
return isEmpty(hit) || isEmpty(hi... |
test/lib/angular/angular-scenario.js | kikz4life/globe-labs-client | /*!
* 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 ) {'use ... |
src/docs/components/notification/NotificationExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Notification from 'grommet/components/Notification';
import InteractiveExample from '../../../components/InteractiveExample';
Notification.displayName = 'Notification';
const PROPS_SCHEMA = {
statu... |
fields/types/date/DateField.js | danielmahon/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
/*
TODO: Implement yearRange Prop, or deprecate fo... |
tests/lib/rules/indent.js | jrvidal/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//-------------------------------------... |
src/event/EventPluginHub.js | thetalecrafter/react | /**
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
ajax/libs/ionic/0.9.26/js/ionic.js | ekeneijeoma/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.26
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
//
window.io... |
ajax/libs/yui/3.1.1/event-custom/event-custom.js | featurist/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
src/routes/Game/components/Game.js | jileeshs/react-redux-game | import React from 'react'
import PropTypes from 'prop-types'
import Stage from './Stage'
import { goToPage } from '../../../util'
import './Game.scss'
class Game extends React.Component {
static propTypes = {
items: PropTypes.array,
makeItemActive: PropTypes.func.isRequired,
moveItem: PropTypes.func.isRe... |
app/main.js | youtogod/webpack-sample-project | import React from 'react';
import ReactDOM from 'react-dom';
import AppContainer from 'containers/AppContainer';
import store from 'store';
import 'style/index.css';
import 'bootstrap/dist/css/bootstrap.min.css';
const render = function() {
ReactDOM.render(
<AppContainer />,
document.getElementById... |
src/router.js | vbdoug/ISOReStack | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
src/widgets/codes-lists/components/codes-lists.spec.js | InseeFr/Pogues | import React from 'react';
import { shallow } from 'enzyme';
import CodesLists from './codes-lists';
import CodesListsCodes from './codes-lists-codes';
import { WIDGET_CODES_LISTS } from 'constants/dom-constants';
import { CODES_LIST_INPUT_ENUM } from 'constants/pogues-constants';
const { PANEL_CLASS } = WIDGET_CODE... |
node_modules/office-ui-fabric-react/lib/components/Button/examples/Button.Primary.Example.js | SpatialMap/SpatialMapDev | "use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
ajax/libs/yui/3.9.1/event-focus/event-focus.js | janpaepke/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
tests/react_native_tests/test_data/native_code/Component/app/components/UserConnect/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import Button from '@rn/commons/app/components/VIButton/VIButton'
import styled from 'styled-components/native'
import { Text } from 'react-native'
import { View } f... |
ajax/libs/primereact/8.0.1/virtualscroller/virtualscroller.js | cdnjs/cdnjs | this.primereact = this.primereact || {};
this.primereact.virtualscroller = (function (exports, React, hooks, utils) {
'use strict';
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'defau... |
pages/api/menu.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './menu.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
src/admin/client/modules/settings/theme/components/form.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import style from './style.css';
import api from 'lib/api';
import ThemeSettings from 'modules/settings/themeSettings';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import Divider from 'material-ui/Divider';
co... |
main.js | fancn21th/0-12-PlaySaga | import "babel-polyfill"
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware, compose } from 'redux'
import createSagaMiddleware from 'redux-saga'
import App from './components/App'
import rootReducer from './reducers'
import rootSaga from './sagas'
const sagaMiddleware =... |
js/Details.js | giladl82/complete-intro-to-react | import React from 'react'
import {connect} from 'react-redux'
import Header from './Header'
import {getOBMDBDetails} from './actionsCreators'
const { shape, string, func } = React.PropTypes
const Details = React.createClass({
propTypes: {
show: shape({
title: string,
year: string,
poster: stri... |
src/public/app/components/App.js | UtkarshGupta-CS/chat-room | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Chat from './Chat';
import Nav from './Nav';
import Home from './Home';
class App extends Component {
render() {
return (
<Router>
<div className="container">
<Nav /... |
src/spa/app.js | NYCSwan/whats-up | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import MainContainer from './components/main-container.react';
import './normalize.scss';
ReactDOM.render(<MainContainer />, document.getElementById('root')); |
ajax/libs/react-highcharts/9.0.0/ReactHighcharts.src.js | holtkamp/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts"], factory);
else if(typeof exports === 'ob... |
ajax/libs/yui/3.10.1/event-focus/event-focus-debug.js | pombredanne/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
client-web/client-web/src/index.js | ppsari/final | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import './helper.css';
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/scripts/components/textareaAutosize/index.js | uncinc/layer-notes | // based on https://github.com/andreypopp/react-textarea-autosize/blob/master/src/TextareaAutosize.js
/**
* <TextareaAutosize />
*/
import React from 'react';
import PropTypes from 'prop-types';
import calculateNodeHeight from './calculateNodeHeight';
export default class TextareaAutosize extends React.Component {
... |
source/client/components/UserRegister.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import FormActions from '../actions/FormActions';
import UserActions from '../actions/UserActions';
import FormStore from '../stores/FormStore';
import Form from './form/Form';
import TextGroup from './form/TextGroup';
import RadioGroup from './form/RadioGroup';
import RadioElement fro... |
SentenceMosaics/app/components/RecordSentence.js | DFAxCMU/sentence-mosaics | 'use strict';
import React, { Component } from 'react';
import {
View,
Text,
Alert,
Image,
Button,
TouchableHighlight,
Platform,
ScrollView,
AsyncStorage
} from 'react-native';
import { connect } from 'react-redux';
import { styles } from '../styles';
import Icon from 'react-native-vector-icons/Font... |
src/components/Feedback/Feedback.js | ma489/listify | /**
* 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 withStyles from 'isomorp... |
webpack/components/Content/Details/ContentDetails.js | mccun934/katello | import React from 'react';
import { translate as __ } from 'foremanReact/common/I18n';
import { Nav, NavItem, TabPane, TabContent, TabContainer, Grid, Row, Col } from 'patternfly-react';
import { PropTypes } from 'prop-types';
import { LoadingState } from '../../../move_to_pf/LoadingState/index';
const ContentDetails ... |
ajax/libs/pdf.js/2.3.200/pdf.min.js | sufuf3/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsLib=t()}(this,(function(){return function(e){var t={};function r(n){... |
packages/react-stream/src/forks/ReactFizzFormatConfig.dom.js | STRML/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
export * from 'react-dom/src/server/ReactDOMFizzServerFormatConfig';
|
src/client/story_box.js | unclebean/hacker-menu | import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | zomeelee/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
src/components/cv.js | ateixeira/mern-stack | import React from 'react';
module.exports = React.createClass({
// RENDER
render: function() {
return (
<div className="cv">
CV
</div>
);
}
}); |
ajax/libs/angular-vertxbus/3.0.0/angular-vertxbus.withpolyfill.js | dlueth/cdnjs | /*! angular-vertxbus - v3.0.0 - 2015-08-29
* http://github.com/knalli/angular-vertxbus
* Copyright (c) 2015 Jan Philipp; Licensed */
(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+"'")... |
examples/CardImage.js | mattBlackDesign/react-materialize | import React from 'react';
import Card from '../src/Card';
import CardTitle from '../src/CardTitle';
export default
<Card className='small'
header={<CardTitle image='img/sample-1.jpg'>Card Title</CardTitle>}
actions={[<a href='#'>This is a Link</a>]}>
I am a very simple card. I am good at containing small bits o... |
ext/packages/sencha-core/src/data/proxy/Ajax.js | guillaumeguerin/openmusic | /**
* @author Ed Spencer
*
* AjaxProxy is one of the most widely-used ways of getting data into your application. It uses AJAX requests to load
* data from the server, usually to be placed into a {@link Ext.data.Store Store}. Let's take a look at a typical setup.
* Here we're going to set up a Store that has an Aj... |
node_modules/react-router/es/RouteUtils.js | Rabbit884/reactapp | 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; };
import React from 'react';
function isValidChild(object) {
... |
src/components/Login/Login.js | tosFa/react-cross-platform-boardgame-example | 'use strict';
import Base from './LoginBase';
import React from 'react';
import {
LOGIN_REQUEST,
LOGIN_INPUT_CHANGE
} from '../../constants/appConstants';
import {connect} from 'react-redux';
import {mapStateToProps, mapDispatchToProps} from './connectToStore';
class LoginPresentation extends Base {
construct... |
demo/Button.js | szchenghuang/react-mdui | 'use strict';
//#############################################################################
// Stylesheets.
//#############################################################################
//#############################################################################
// Library includes.
//#########################... |
web/src/server/components/lists/author-list.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
information/blendle-frontend-react-source/app/modules/premiumSignup/components/CookieBar/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { CloseIcon } from '@blendle/lego';
import classNames from 'classnames';
import Analytics from 'instances/analytics';
import { track } from 'helpers/premiumOnboardingEvents';
import Link from 'components/Link';
import { cookiebar, cookiebarHidden, t... |
packages/core/__deprecated__/Animation/Animation.js | romelperez/arwes | import React from 'react';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
const getStatuses = status => ({
entering: status === 'entering',
entered: status === 'entered',
exiting: status === 'exiting',
exited: status === 'exited'
});
export default function Animation ... |
Samples/Core.JavaScriptInjectionJSOM/Core.JavaScriptInjectionJSOM/Scripts/jquery-1.9.1.min.js | ivanvagunin/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
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, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/Components/AvailableCharacters.js | jefferydutra/TestableModularReactTalk | import React from 'react';
import AvailableCharacter from './HeroCard';
import isFavoriteCharacter from '../isFavoriteCharacter';
function addToFavoriteWithCharacter(addToFavorite, character) {
return () => addToFavorite(character);
}
function renderCharacter(character, addToFavoriteCharacters, myFavoriteCharacte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.