path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ngiiedu-client/src/components/admin/school/list/popup/InfoPopup.js | jinifor/branchtest | import React from 'react';
import { connect } from 'react-redux';
import { actionSchoolInfoOpen } from '../../../../../actions/index';
//ํ์
์ฐฝ
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import {
Table,
TableBody... |
src/applications/discharge-wizard/tests/containers/RequestDD214.unit.spec.js | department-of-veterans-affairs/vets-website | // Dependencies.
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
// Relatives
import RequestDD214 from '../../containers/RequestDD214';
describe('Discharge Wizard <RequestDD214 />', () => {
const reactRouterStub = {
push: () => sinon.stub(),... |
client/components/GalleryComponent.js | spectralsun/reactgur | import React from 'react';
import {Glyphicon} from 'react-bootstrap';
import xhttp from 'xhttp';
import MediaComponent from './../components/MediaComponent.js';
import ee from '../Emitter.js';
import Scroll from '../Scroll.js';
export default class GalleryComponent extends React.Component
{
constructor(props) ... |
app/scripts/components/TicketWizard.js | adzialocha/hoffnung3000 | import PropTypes from 'prop-types'
import React, { Component } from 'react'
import Scroll from 'react-scroll'
import { connect } from 'react-redux'
import pick from '../../../common/utils/pick'
import { StaticPage } from './'
import { TicketForm } from '../forms'
import { buyTicket } from '../actions/auth'
import { tr... |
src/components/HeaderBar/index.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import AppTitle from './AppTitle';
import Progress from './Progress';
import CurrentMedia from './CurrentMedia';
import Volume from './Volume';
import HistoryButton from './HistoryButton';
import CurrentDJ from './CurrentDJ';
c... |
ajax/libs/react-native-web/0.16.3/exports/AccessibilityInfo/index.js | cdnjs/cdnjs | /**
* 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.
*
*
*/
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
function isScreenReaderEnabled() {
return new Promise(function... |
ajax/libs/6to5/3.6.1/browser-polyfill.js | cluo/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... |
app/javascript/mastodon/containers/compose_container.js | kibousoft/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
src/components/Setup/index.js | varatep/anax-ui | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import Setup from './presenter';
// takes as input the state from a reducer
function mapStateToProps(state) {
// no need to do any translation here
return state;
}... |
old_examples/dyno/app.js | mzabriskie/react-tabs | import React from 'react';
import { render } from 'react-dom';
import Modal from 'react-modal';
import { Tab, Tabs, TabList, TabPanel } from '../../src/index';
import '../../style/react-tabs.css';
Modal.setAppElement(document.getElementById('example'));
class App extends React.Component {
constructor(props) {
s... |
docs/src/demo1.js | fdt-component/rc-tabs | import React from 'react';
import {Nav, Panels} from '../../src/index.js';
class Demo1 extends React.Component {
state = {activeKey: 0}
onChange = activeKey => this.setState({activeKey});
render() {
const {activeKey} = this.state;
return (
<div>
<Nav
activeKey={activeKey}
... |
src/svg-icons/action/dns.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
ajax/libs/yasqe/2.0.1/yasqe.bundled.min.js | jasonpang/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,r,i)... |
example/src/App.js | bsudekum/react-native-mapbox-gl | import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import {
FlatList,
Modal,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import {Icon} from 'react-native-elements';
import SafeAreaView from 'react-native-safe-area-view';
import MapHeader from './component... |
test/test_helper.js | Xclo/cf-dashboard | 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... |
src/svg-icons/editor/insert-link.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js | potomak/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... |
src/svg-icons/maps/local-pizza.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPizza = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2... |
packages/react/src/components/Toolbar/Toolbar-story.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { action } from '@storybook/addon-actions';
import { Filter16 } from '@carbon/icons-react';
import Toolbar,... |
20170524/zhihu/index.android.js | fengnovo/react-native | /*import React, { Component } from 'react';
import{ AppRegistry, ScrollView, Image, Text, View, ListView } from 'react-native'
class Zhihu extends Component {
// ๅๅงๅๆจกๆๆฐๆฎ
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: (r1, r2) =... |
sapphire/thirdparty/jquery-livequery/test/jquery.js | emelleme/PhillyOpen | /*!
* jQuery JavaScript Library v1.4.1
* 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.
... |
webapp/src/components/Iconfont/Iconfont.js | templatetools/trace | import React from 'react'
import PropTypes from 'prop-types'
import './iconfont.less'
const Iconfont = ({ type, colorful }) => {
if (colorful) {
return (<span
dangerouslySetInnerHTML={{
__html: `<svg class="colorful-icon" aria-hidden="true"><use xlink:href="#${type.startsWith('#') ? type.replace(/#... |
ajax/libs/react/0.14.7/react-dom.min.js | nolsherry/cdnjs | /**
* ReactDOM v0.14.7
*
* 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.... |
client/pages/todo-react/todo-list-view.js | tsrahm/DaVinci-JavaScript |
var $ = require('jquery');
// Legacy loading for Bootstrap
window.jQuery = window.$ = $;
require('bootstrap');
import React from 'react';
import ReactDOM from 'react-dom';
import Backbone from 'backbone';
import todoModel from 'pages/todo-react/todo-model';
import TodoItemView from 'pages/todo-react/todo-view';
impo... |
src/index.js | ManuelDeLeon/viewmodel-react-docs | import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './imports/App';
import ViewModel from 'viewmodel-react';
window.ViewModel = ViewModel;
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/ui/components/bundle.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.PureComponent {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.fu... |
src/website/app/demos/Menu/common/customItem.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import styled from '@emotion/styled';
import { withTheme } from 'emotion-theming';
import { componentStyleReset, pxToEm } from '../../../../../library/styles';
import Avatar from '../../../../../library/Avatar';
import { menuItemTheme } from '../../../../../library/Menu/themes';
... |
src/components/views/rooms/RoomDetailRow.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 New Vector Ltd.
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 agreed to in writing, software... |
varOne-web/src/main/webapp/app/components/app.js | SparkMonitor/varOne | import React from 'react';
import Home from './home';
class App extends React.Component {
render() {
return (
<div>
<Home />
</div>
);
}
}
export default App;
|
src/components/App.js | enrique7mc/messages | import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import firebase from '../services/firebaseService';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
class App extends Component {
constructor () {
super... |
packages/material-ui-icons/src/Label.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Label = props =>
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z" />
</SvgIcon>;
Label... |
src/components/tests/button.spec.js | bunto/bunto-admin | import React from 'react';
import { mount } from 'enzyme';
import Button from '../Button';
const defaultProps = {type: 'save', active: true};
function setup(props=defaultProps) {
const actions = {
onClick: jest.fn()
};
const component = mount(<Button {...props} {...actions} />);
return {
component,
... |
js/App.js | rossedfort/fem-intro-to-react | import React from 'react'
import { Match } from 'react-router'
import { Provider } from 'react-redux'
import store from './store'
import Landing from './Landing'
import Search from './Search'
import Details from './Details'
import preload from '../public/data.json'
const App = () => {
return (
<Provider store={s... |
ajax/libs/react-instantsearch/3.3.0/Dom.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 3.3.0 | ยฉ Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
src/routes/index.js | JohanGustafsson91/React-JWT-Authentication-Redux-Router | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from '../containers/App';
import HomeView from 'views/HomeView';
import LoginView from 'views/LoginView';
import ProfileView from 'views/ProfileView';
import { requireAuthentication } from '../components/AuthenticatedCompo... |
app/containers/LanguageProvider/index.js | nadzweb/react-simple-apps | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
frontend/src/index.js | Pseudonick47/sherlock | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Redirect, browserHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store... |
pootle/static/js/admin/app.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import 'imports?Backbone=>require("backbone")!backbone-mov... |
examples/material-UI-kitchen-sink/src/components/EnhancedTable.js | react-tools/react-table | import React from 'react'
import Checkbox from '@material-ui/core/Checkbox'
import MaUTable from '@material-ui/core/Table'
import PropTypes from 'prop-types'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableContainer from '@material-ui/core/TableContai... |
react-flux-mui/js/material-ui/src/svg-icons/file/file-download.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileDownload = (props) => (
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</SvgIcon>
);
FileFileDownload = pure(FileFileDownload);
FileFileDownload.displayName = 'FileFileDown... |
universal/components/counter/Counter.js | Amazing-Space-Invader/outline | /**
* Created by invader on 06.07.16.
*/
import React from 'react'
import s from './counter.pcss'
import {Grid, Row, Col} from 'react-flexgrid'
import 'react-flexgrid/lib/flexgrid.css'
export default class Counter extends React.Component {
render() {
return <div className={s.counter}>
... |
src/svg-icons/action/alarm-on.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOn = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0... |
client/node_modules/uu5g03/doc/main/client/src/common/factory.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import UU5 from 'uu5';
import Data from '../data/app-config-data.js';
import Breadcrumbs from '../bricks/breadcrumbs.js';
import './factory.css';
export default React.createClass({
//@@viewOn:mixins
mixins: [
UU5.Common.BaseMixin,
UU5.Common.ElementaryMixin,
UU5.Common.Vuc... |
ajax/libs/yui/3.4.0/event-focus/event-focus-min.js | BenjaminVanRyseghem/cdnjs | YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function f(h,g,j){var i="_"+h+"Notifiers";e.Event.define(h,{_attach:function(l,m,k){if(e.DOM.isWindow(l)){return d._attach([h,function(n){m.fire(n);},l]);}else{return d._attac... |
test/GlobalHotKeys/DeleteAndBackSpaceAliases.spec.js | Chrisui/react-hotkeys | import React from 'react';
import { mount } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
import simulant from 'simulant';
import { GlobalHotKeys } from '../../src/';
['backspace', 'BackSpace'].forEach(function(keyAlias) {
describe(`When an action is defined using the combination '${keyAl... |
ajax/libs/yui/3.6.0/simpleyui/simpleyui-debug.js | liubo404/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
src/parser/warrior/arms/modules/talents/Avatar.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatThousands } from 'common/format';
import SpellLink from 'common/SpellLink';
impor... |
ajax/libs/IndexedDBShim/3.0.0-rc.6/indexeddbshim-UnicodeIdentifiers.js | tholu/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... |
node_modules/protractor/testapp/ngHint/ngHint.js | kylekacius/inboxzero-todo | (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... |
packages/material-ui-icons/src/KeyboardReturn.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z" /></React.Fragment>
, 'KeyboardReturn');
|
fields/types/name/NameField.js | Tangcuyu/keystone | import Field from '../Field';
import React from 'react';
import { FormField, FormInput, FormRow } from 'elemental';
module.exports = Field.create({
displayName: 'NameField',
focusTargetRef: 'first',
valueChanged: function (which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
... |
packages/showcase/misc/synced-charts.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
ajax/libs/forerunnerdb/1.3.660/fdb-all.js | cdnjs/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... |
packages/cf-component-code/src/Code.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme }) => ({
backgroundColor: theme.backgroundColor,
border: theme.border,
fontFamily: theme.fontFamily,
borderRadius: theme.borderRadius,
display: theme.display,
marginL... |
src/index.js | markmiro/ui-experiments | import React from 'react';
import ReactDOM from 'react-dom';
import {App} from './modules/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
ajax/libs/keen-js/5.0.2/keen.bundle.min.js | joeyparrish/cdnjs | !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(window,function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i... |
src/containers/Home/Home.js | tpphu/react-pwa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import * as productActions from 'redux/modules/products';
import { asyncConnect } from 'redux-connect';
import { Grid, Row, Col } from 'react-bootstrap';
import { TopBa... |
client/src/components/ConnectionList.js | untoldwind/gotrack | import React from 'react'
import {formatTotalString} from './formats'
export default class ConnectionList extends React.Component {
constructor(props) {
super(props)
this.state = {sortField: "dst_host", sortAsc: true}
}
render() {
const sorted = this.props.data.sort(this.sortFunc... |
src/frontend/utils/testUtils.js | vslinko/ripster | import React from 'react';
import { renderIntoDocument, findAllInRenderedTree, isDOMComponent } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { injectIntl, IntlProvider } from 'react-intl';
export function renderComponent(Component, props = {}) {
const WrappedComponent = injectIntl(... |
ajax/libs/pdf.js/2.0.470/pdf.js | sashberd/cdnjs | /**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2017 Mozilla Foundation
*
* 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... |
files/rxjs/2.3.20/rx.lite.extras.js | wallin/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
ajax/libs/angular.js/0.9.18/angular-scenario.js | cluo/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/svg-icons/action/picture-in-picture-alt.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPictureAlt = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/>
</Svg... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | Exocortex/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return Promise.resolve([
{ id: 1,... |
ajax/libs/rxjs/2.1.10/rx.modern.js | dereckson/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/svg-icons/image/brightness-7.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness7 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69... |
imports/ui/components/ProductsAdmin/ManageAllOrders.js | haraneesh/mydev | // eslint-disable-next-line max-classes-per-file
import React from 'react';
import PropTypes from 'prop-types';
import {
Row, SplitButton, MenuItem, Button, ButtonToolbar,
} from 'react-bootstrap';
import autoBind from 'react-autobind/lib/autoBind';
import { Table, Column } from 'fixed-data-table-2';
import Dimension... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingScheduleButton/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
test/TabPaneSpec.js | insionng/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import TabPane from '../src/TabPane';
describe('TabPane', function () {
it('Should have class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<TabPane>Item content</TabPane>
);
assert.ok(ReactTestUti... |
ajax/libs/primeui/4.1.5/primeui-ng.js | rlugojr/cdnjs | /**
* PUI Object
*/
var PUI = {
zindex : 1000,
gridColumns: {
'1': 'ui-grid-col-12',
'2': 'ui-grid-col-6',
'3': 'ui-grid-col-4',
'4': 'ui-grid-col-3',
'6': 'ui-grid-col-2',
'12': 'ui-grid-col-11'
},
charSet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ012... |
node_modules/react-bootstrap/es/ControlLabel.js | ivanhristov92/bookingCalendar | 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 ... |
src/components/Elements/RegisterItem.js | dacostafilipe/react-base | /**
* Created by Apart-Filipe on 06/06/16.
*/
//
// Main Imports
import React from 'react';
import Constants from '../../Constants';
import classNames from 'classnames';
import BaseComponent from '../../tools/BaseComponent.js';
//
// Stores
//
// Actions
//
// Components
//
// RegisterItem class
class Register... |
ajax/libs/analytics.js/2.3.25/analytics.js | noraesae/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
packages/reactor-kitchensink/src/examples/Charts/Column/ColumnWithRenderer/ColumnWithRenderer.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
import { seriesG1Renderer, seriesG2Renderer } from './renderer';
export default class Column... |
packages/material-ui-lab/src/SpeedDial/SpeedDial.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import keycode from 'keycode';
import warning from 'warning';
import { componentPropType } from '@material-ui/utils';
import { withStyles } from '@material-ui/core/styles';
import Zoom from '@material-ui/core/Zoom';
impo... |
client/src/components/User/Settings.js | hutchgrant/react-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions/auth';
class Settings extends Component {
render() {
return (
<div>
<h2>Settings</h2>
<h5>Welcome {this.props.auth.username}</h5>
... |
test/regressions/site/src/tests/IconButton/ContrastIconButton.js | und3fined/material-ui | // @flow weak
import React from 'react';
import IconButton from 'material-ui/IconButton';
import { deepOrange } from 'material-ui/styles/colors';
export default function ContrastIconButton() {
return (
<IconButton contrast style={{ backgroundColor: deepOrange[500] }}>home</IconButton>
);
}
|
ajax/libs/backbone-react-component/0.7.1/backbone-react-component-min.js | Enelar/cdnjs | "use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ... |
ajax/libs/yui/3.10.3/event-focus/event-focus-debug.js | visualjeff/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() {
... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | appier/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import load from 'absoluteLoad';
export default class ext... |
ajax/libs/yui/3.10.1/scrollview-base/scrollview-base-coverage.js | kenwheeler/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
src/svg-icons/image/brightness-3.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness3 = (props) => (
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/>
</SvgIcon>
);
I... |
packages/material-ui-icons/src/TapAndPlayTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-... |
assets/web/assets/jquery/jquery.min.js | JustinPatrickDias/JustinPatrickDias.github.io | /*! jQuery v1.11.2 | (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/containers/Find.js | ScorpionJay/ONE | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
Platform,
Alert,
Image,
Styles,ToastAndroid,
} from 'react-native';
var GiftedListView = require('react-native-gifted-listview');
var GiftedSpinner = require('react-native-gifted-spinner');
import ToolBar fr... |
src/main/app/src/routes/Home/index.js | mbrossard/cryptonit-cloud | import React from 'react'
export const Home = () => (
<div>
<h4>Welcome!</h4>
</div>
)
export default {
component : Home
}
|
node_modules/react-icons/io/mic-c.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoMicC = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25.7 2.5c2.3 0 4.3 1.8 4.3 4.1v2.2h-4.6v2.8h4.6v3.4h-4.6v2.9h4.6v3.4h-4.6v2.8h4.6v3.3c0 2.3-2 4.1-4.3 4.1h-2.3v6h-6.8v-6h-2.3c-2.3 0-4.3-1.8-4.3-4.1v-3.3h11.9v-2.8h-11.... |
src/svg-icons/action/accessibility.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessibility = (props) => (
<SvgIcon {...props}>
<path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/>
</SvgIcon>
);
ActionAccessibility = pure(ActionAccessib... |
examples/src/components/CustomRender.js | serkanozer/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
import Highlighter from 'react-highlight-words';
var DisabledUpsellOptions = createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: PropTypes.string,
},
... |
src/components/FuelSavingsForm.spec.js | codenamekt/reactive-boiler | import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import FuelSavingsForm from './FuelSavingsForm';
import FuelSavingsTextInput from './FuelSavingsTextInput';
import FuelSavingsResults from './FuelSavingsResults';
describe('<FuelSavingsForm />', () => {
... |
lib/yuilib/2in3/2.9.0/build/yui2-containercore/yui2-containercore.js | sdesmar/moodle | YUI.add('yui2-containercore', function(Y) {
var YAHOO = Y.YUI2;
/*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the imple... |
client/index.js | codeskeptk/capital | import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import Root from './containers/Root';
import './style/normalize.css';
import './style/base.less';
const store = configureStore();
render(
<Root store={store} />,
document.getElementById('root')
);
|
packages/material-ui-icons/src/LaptopChromebookTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 5h16v10H4z" opacity=".3" /><path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z" /></g></React.Fragment>
, 'LaptopChromeboo... |
src/map/buildTransportationModeRepresentation.js | ruipgil/GatherMySteps | import React from 'react'
import { FeatureGroup, Marker, DivIcon } from 'leaflet'
import { renderToString } from 'react-dom/server'
import { createPointIcon, createMarker } from './utils'
const LABEL_TO_ICON = {
'stop': (color) => createPointIcon(color, '<i class="p-fa fa-hand-grab-o" />'),
'foot': (color) => crea... |
src/svg-icons/navigation/expand-less.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
packages/material-ui-icons/src/FormatIndentIncreaseRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 21h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 9.21v5.59c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.8c-.31-.31-.85-.09-.85.36zM12 17h8c.55 0 1-.45 1-1s-.45-1-1-1h-8c-.5... |
src/components/AsyncNotFound/NotFound.js | hrasoa/rsk | import React from 'react';
import Status from '../Status';
export default () => (
<Status code={404}>
<div>
<h1>Sorry, canโt find that.</h1>
</div>
</Status>
);
|
ajax/libs/formsy-react/0.11.2/formsy-react.js | BenjaminVanRyseghem/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/components/VmDetails/cards/UtilizationCard/DiskCharts.js | oVirt/ovirt-web-ui | import React, { useContext } from 'react'
import PropTypes from 'prop-types'
import {
CardBody,
CardTitle,
UtilizationCard,
UtilizationCardDetails,
UtilizationCardDetailsCount,
UtilizationCardDetailsDesc,
UtilizationCardDetailsLine1,
UtilizationCardDetailsLine2,
} from 'patternfly-react'
import BarChart... |
app/SankeyChart.js | stanfordv/curriculum1 | import React from 'react';
import ReactFauxDOM from 'react-faux-dom';
import d3 from 'd3';
import sankey from 'd3-plugins-sankey';
import _ from 'lodash';
export default class extends React.Component {
constructor() {
super()
this.state = {
nodes: [],
links: []
};
}
componentWillRecei... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.