path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
sum-of-multiples/node_modules/core-js/modules/es6.promise.js | akhilapnair/exercism-ecmascript | 'use strict';
var LIBRARY = require('./_library');
var global = require('./_global');
var ctx = require('./_ctx');
var classof = require('./_classof');
var $export = require('./_export');
var isObject = require('./_is-object');
var aFunction = require('./_a-function');
var anInstance = require('./_an-instance');
var fo... |
src/js/components/Cabler.js | grommet/grommet-cabler | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { configureFromLocation, set } from '../actions';
import App from 'grommet/components/App';
import Home from './Home';
import Diagram from './Diagram';
class Cab... |
web/src/main.js | seccom/kpass | import React from 'react'
import ReactDOM from 'react-dom'
import { I18n } from 'react-redux-i18n'
import { Observable } from 'rxjs/Observable'
import moment from 'moment'
import { request, subscribeHTTPError, cookie } from './utils'
import { toast } from './uis'
import { createStore, getInitialState } from './store'
... |
node_modules/jsx-loader/node_modules/react-tools/src/browser/syntheticEvents/__tests__/SyntheticWheelEvent-test.js | pborel/polisee | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
client/src/components/Navigation/NavBarSignIn.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
import { NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
const NavBarSignIn = ({ auth, firebaseSignOut, firebaseSignInGoogle, firebaseSignInFacebook }) =>
(auth.status === 'SIGNED_IN' ? (
<NavItem eventKey={5} onClick={firebaseSignOut}>
... |
packages/mui-icons-material/lib/PlayArrowTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
demo/redux.js | developit/preact | import { createElement } from 'preact';
import React from 'react';
import { createStore } from 'redux';
import { connect, Provider } from 'react-redux';
const store = createStore((state = { value: 0 }, action) => {
switch (action.type) {
case 'increment':
return { value: state.value + 1 };
case 'decrement':
... |
index/components/Publications.js | JDRomano2/VenomKB | import React from 'react';
const Publications = () =>
<div className="jumbotron">
<h2>Publications</h2>
<p><small><i>VenomKB is completely open-source and free to use. Please cite one of the following papers if you use or modify VenomKB for research purposes:</i></small></p>
<div className="publicationsL... |
App/ComponenetsV2/BellSchedule/BellSchedule.js | victoryforphil/GTMobile | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Alert,
ScrollView,
ListView,
ActivityIndicator,
RefreshControl
} from 'react-native';
import {bindActionCreators} from 'redux';
import {connect} from "react-redux"
import * as bellActions from "../../actions/bel... |
Console/app/node_modules/antd/es/carousel/index.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
src/components/SlideListEditorComponent.js | C3-TKO/gaiyo | 'use strict';
import React from 'react';
import Subheader from 'material-ui/Subheader'
import {List, ListItem} from 'material-ui/List';
import IconButton from 'material-ui/IconButton';
import DeleteIcon from 'material-ui/svg-icons/action/delete';
import EditIcon from 'material-ui/svg-icons/editor/mode-edit';
import Fl... |
src/js/ui.js | tsuckow/sunxi-fel-chrome-extension | require('styles/ui.less');
import React from 'react';
import ReactDOM from 'react-dom';
import Searching from 'views/searching.jsx';
import usb from 'services/usb.js';
class App extends React.Component {
componentDidMount() {
chrome.usb.onDeviceAdded.addListener(() => usb.checkForDevices());
chrome.usb.on... |
src/svg-icons/maps/hotel.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
app/components/resources/resourcesSearch.js | nypl-registry/browse | import React from 'react'
import { connect } from 'react-redux'
import SearchBox from '../../shared/searchBox.js'
const ResourcesSearchBox = React.createClass({
render: function () {
return (
<SearchBox endpoint='/resources/search/?q=' />
)
}
})
function mapStateToProps (state) {
return {
wha... |
src/components/MainNav.js | dfalling/todo | import React from 'react';
import { Link } from 'react-router';
export default class MainNav extends React.Component {
constructor(props, context) {
super(props);
this.navItems = ['Todos', 'Tags'];
}
render() {
return (
<ul className='nav nav-pills'>
{this.navItems.map(::this.renderNav... |
wp-includes/js/jquery/jquery.js | ajnok/kprums | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/layout/ButtonArea.js | Paratron/modoJS | import React from 'react';
import Grid from './Grid';
import Cell from './Cell';
const ButtonArea = ({children}) => {
const classNames = ['mdo-buttonarea'];
const numChildren = React.Children.count(children);
return (
<Grid className={classNames.join(' ')}>
{React.Children.map(children, (c, i) => <Cell textA... |
ButtonToolbar.js | Cellule/react-bootstrap-tmp | var React = require('react');
var joinClasses = require('./utils/joinClasses');
var classSet = require('./utils/classSet');
var BootstrapMixin = require('./BootstrapMixin');
var Button = require('./Button');
var ButtonToolbar = React.createClass({displayName: 'ButtonToolbar',
mixins: [BootstrapMixin],
getDefaultP... |
ajax/libs/yui/3.1.2/loader/loader.js | zhengyongbo/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
src/NavItem.js | mengmenglv/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
ajax/libs/forerunnerdb/1.3.726/fdb-core.min.js | viskin/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... |
docs/ronin-sql/js/jquery.js | ronin-ruby/ronin-ruby.github.io | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/AutoComplete/AutoComplete.spec.js | hai-cea/material-ui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import {spy} from 'sinon';
import AutoComplete from './AutoComplete';
import Menu from '../Menu/Menu';
import Popover from '../Popover/Popover';
import TextField from '../TextField/TextField';
import getMuiTh... |
src/components/SectionTemplates/EndPositionSection.spec.js | diMosellaAtWork/GeoWeb-FrontEnd | import React from 'react';
import EndPositionSection from './EndPositionSection';
import { mount } from 'enzyme';
describe('(Component) SectionTemplates/EndPositionSection', () => {
it('renders a EndPositionSection', () => {
const _component = mount(<EndPositionSection><div /></EndPositionSection>);
expect(_... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleHeader.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleHeader = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Item... |
demo/components/confirmation/ConfirmationOptions.js | ctco/rosemary-ui | import React from 'react';
import Confirmation from '../../../src/Confirmation/Confirmation';
import OptionsTable from '../../helper/OptionsTable';
export default () => {
let propDescription = {
body: {
values: 'string',
description: 'description about action'
},
tit... |
src/components/Person.stories.js | janimattiellonen/fgr | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Person from './Person';
import faker from 'faker';
import uuid from 'uuid';
const male = {
firstName: 'Ville',
lastName: 'Mikkola',
gender: 'm',
avatar: faker.image.avatar(),
id: uuid.v4(),
};
const female = {
firstNa... |
admin/client/App/screens/List/components/ListColumnsForm.js | frontyard/keystone | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { FormInput } from '../../../elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../actions';
var... |
src/svg-icons/alert/warning.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
src/pages/BookingItemPage.js | ChrisWhiten/react-rink | import React, { Component } from 'react';
import moment from 'moment';
import CircularProgress from 'material-ui/CircularProgress';
import AddPaymentModal from '../components/booking/AddPaymentModal';
import CancelBookingModal from '../components/booking/CancelBookingModal';
import DateAndTimeSection from '../component... |
examples/forms-bootstrap/src/components/forms-create-wizard/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default createReactClass({
displayName: 'Layout',
render: function() {
return (
<div className="example">
<h3>
Form: Create - Wizar... |
ajax/libs/ember-data.js/0.0.14/ember-data.js | gaearon/cdnjs | // Version: v0.14
// Last commit: d9cd270 (2013-08-31 17:12:14 -0700)
(function() {
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (seen[name... |
web/test/portal/components/SurveyList.js | trendmicro/serverless-survey-forms | import '../../helpers/env';
import DomMock from '../../helpers/dom-mock';
import expect from 'expect';
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import SurveyList from '../../../portal/src/components/List/SurveyList';
DomMock('<html><body></body></html>');
describe('[Portal] Testing Sur... |
lib/tests/reactive-data.js | ferencrocks/meteor-reactive-data | import React from 'react'; |
ajax/libs/optimal-select/3.3.1/optimal-select.min.js | x112358/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OptimalSelect=e():t.OptimalSelect=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var u=n[r]={exports:{},id:r,loaded:!... |
docs/src/app/pages/components/Buttons/ExampleButtonIcon.js | GetAmbassador/react-ions | import React from 'react'
import Button from 'react-ions/lib/components/Button'
import Icon from 'react-ions/lib/components/Icon'
const ExampleButtonIcon = () => (
<div>
<Button optClass='secondary' collapse={true}>
<Icon name='md-add' height='14' width='14'></Icon>
<span>Icon Before</span>
</But... |
src/modules/Context/ContextActions/ContextActions.js | kendallroth/project_hub | //File: src/modules/Context/ContextActions/ContextActionb.js
//Purpose: ContextActions presentational component
import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'components/IconButton';
import ActionBar from 'components/ActionBar';
import './ContextActions.css';
const ContextAc... |
app/components/GeometryCanvasFromUuid/index.js | mhoffman/CatAppBrowser | /**
*
* GeometryCanvasFromUuid
*
*/
import React from 'react';
import Script from 'react-load-script';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Button from 'material-ui/Button';
import { MdFileDownload } from 'react-icons/lib/md';
import { download } from 'utils';
globa... |
app/jsx/external_apps/components/ConfigurationForm.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - 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... |
demos/1_quickstart/index.js | woltapp/react-geoinput | import React from 'react';
import ReactDOM from 'react-dom';
import Demo from './Demo';
ReactDOM.render(<Demo />, document.querySelector('#app'));
|
app/components/Alert/AlertProvider.js | celikmus/MathWise | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import DropdownAlert from 'react-native-dropdownalert';
class AlertProvider extends Component {
static childContextTypes = {
alertWithType: PropTypes.func,
alert: PropTypes.func
};
static p... |
packages/material-ui-icons/lib/esm/NoFlash.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M13.93 13.93 2.45 2.45 1.04 3.87l5.3 5.3-.2.23H3.6c-.88 0-1.6.72-1.6 1.6v9.4c0 .88.72 1.6 1.6 1.6h12.8c.75 0 1.38-.52 1.55-1.22l2.18 2.18 1.41-1.41L18 18l-4... |
node_modules/react-icons/md/surround-sound.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdSurroundSound = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 16.6c1.8 0 3.4 1.6 3.4 3.4s-1.6 3.4-3.4 3.4-3.4-1.6-3.4-3.4 1.6-3.4 3.4-3.4z m9.5 12.9c2.5-2.6 3.9-6.1 3.9-9.5s-1.4-6.9-3.9-9.5l-2.5 2.5c2 1.9 3 4.4 3 7s-0.... |
packages/material-ui-icons/lib/esm/SwapHorizontalCircleSharp.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zm-7-5.5 3.5 3.5-3.5 3.5V11h-4V9h4V6.5zm-6 11L5.5 14 9 10.5V13h4v2H9v2.5z"
}), 'SwapHoriz... |
ajax/libs/forerunnerdb/1.3.324/fdb-core+views.js | emmy41124/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... |
third_party/closure/goog/events/actionhandler.js | clavery/selenium | // Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// 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 requ... |
server.js | ferdaarikan/docker_test |
//import React from 'react';
var http = require('http');
var fs = require('fs');
var path = require('path');
var components = bufferFile('/components.txt');
function bufferFile(relPath) {
return fs.readFileSync(path.join(__dirname, relPath), 'utf8');
}
function isFeatureEnabled(version){
if(version == ... |
blueocean-material-icons/src/js/components/svg-icons/navigation/first-page.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage.displayName = 'NavigationFirstPage';
NavigationFirstPage.muiName = 'SvgIcon';
e... |
ajax/libs/6to5/3.1.0/browser-polyfill.js | DDMAL/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/flocks.js/0.16.15/flocks.min.js | kiwi89/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
frontend/src/components/catalog_item/catalog_item.js | reabreu/discount-ascii-warehouse | import React from 'react';
import Moment from 'moment';
import CatalogItemStyle from './catalog_item_style';
function dateToString(date) {
const now = Moment();
const aWeekOld = now.clone().subtract(7, 'days').startOf('day');
const dateM = Moment(date, 'ddd MMM DD YYYY HH:mm:ss Z');
return dateM.isAfter(aWeek... |
src/svg-icons/device/wifi-tethering.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
app/js/jquery.js | lesnave/IGuessItNeedsAName | /*! 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... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | tadeuzagallo/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
src/views/components/auto-suggested-tags/auto-suggested-tags.js | Metaburn/doocrate | import React from 'react';
import PropTypes from 'prop-types';
import Autosuggest from 'react-autosuggest';
import TagsInput from 'react-tagsinput';
import './auto-suggested-tags.css';
import i18n from '../../../i18n';
const AutoSuggestedTags = ({ value, labels, placeholder, onChange }) => {
const showPlaceholder =... |
src/components/Accounts/Actions/FeeFineActions.js | folio-org/ui-users | import React from 'react';
import _ from 'lodash';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import {
FormattedMessage,
injectIntl,
} from 'react-intl';
import { stripesConnect } from '@folio/stripes/core';
// eslint-disable-next-line import/no-extraneous-dependencies
import mom... |
templates/rubix/laravel/laravel-example/src/components/Todo.js | jeffthemaximum/jeffline | import React from 'react';
import { withRouter } from 'react-router';
import {
Col,
Row,
Grid,
Icon,
Button,
Checkbox,
ButtonGroup,
} from '@sketchpixy/rubix';
import client from '@sketchpixy/rubix/lib/utils/HttpClient';
@withRouter
export default class Todo extends React.Component {
constructor(prop... |
src/svg-icons/content/link.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLink = (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.1 3.... |
src/components/characterOptions/ClassLevelHeader.js | GillesDV/Andromeda-Skillpicker | import React, { Component } from 'react'
import ClassLevelContainer from './ClassLevelContainer'
export default class ClassLevelHeader extends Component{
render(){
return (
<div>
Class Level:
<ClassLevelContainer selectedLevel={1} totalSkillPoints={21}>I</ClassLevelContainer>
{' - '... |
samples/diff/lib/jquery-1.7.2.min.js | ChristineLaMuse/chrome-app-samples | /*! 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... |
src/routes/Login/index.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Spin } from 'antd'
import LoginForm from './LoginForm'
import styles from './LoginForm.less'
function Login ({ dispatch, loading = false }) {
const loginProps = {
loading,
onOk (data) {
dispatch({ type: ... |
ajax/libs/analytics.js/1.3.30/analytics.js | marxo/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
src/routes/private/layerExample.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../../components/Button/Button';
import Layer from '../../components/Layer';
import Box from '../../components/Box';
class LayerExample extends React.Component {
constructor() {
super();
this.state = { openA: false, openB: fal... |
app/views/settings/elements/stock-cell.js | 7kfpun/FinanceReactNative | import React from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
View,
} from 'react-native';
// 3rd party libraries
import Icon from 'react-native-vector-icons/MaterialIcons';
// Flux
import StockActions from '../../../actions/stock-action';
const styles = StyleSheet.create({
contai... |
ajax/libs/forerunnerdb/1.4.29/fdb-legacy.min.js | joeyparrish/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... |
storybook/stories/onboarding_modal.story.js | Toootim/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import { IntlProvider } from 'react-intl';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import en from 'mastodon/locales/en.json';
import configureStore from 'mastodon/store/configureStore';
import { h... |
src/components/Menu/__tests__/Menu.spec.js | propertybase/react-lds | import React from 'react';
import { mount } from 'enzyme';
import Menu from '../Menu';
import MenuItem from '../MenuItem';
import { Button, IconButton } from '../../Button';
const customButton = (
<IconButton
icon="warning"
sprite="utility"
aria-haspopup="true"
className="slds-button_icon-border-fil... |
ajax/libs/mini-meteor/1.0.1/mini-meteor.js | KyleMit/cdnjs | /* This file contains underscore, and exports
* 5 core meteor packages, and their globals
*
* Base64
* EJSON
* Meteor (a rename of Tracker/Deps, with autorun renamed to 'run')
* ReactiveMap (formerly ReactiveDict)
* ReactiveVar
* mrt:reactive-object ReactiveObject
*/
/** begin underscore 1.7.0 **/
// Unders... |
src/charts/template/Component.js | Golodhros/britecharts-react | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import {{camelCase componentName}} from './{{camelCase componentName}}Chart';
import {loadingContainerWrapper} from '../loading/LoadingContainer';
class {{pascalCase componentName}} extends React.Component {
static propTypes = {
... |
node_modules/react-native/Libraries/ReactNative/ReactNativeMount.js | ddiaz914/easynoms | /**
* 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.
*
* @provides... |
packages/material-ui-icons/src/TableChartRounded.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="M10 10.02h5V21h-5V10.02zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z" /></g><... |
src/server.js | transitlinks/web-app | import { getLog } from './core/log';
const log = getLog('server');
import 'babel-polyfill';
import './serverIntlPolyfill';
import path from 'path';
import http from 'http';
import https from 'https';
import express from 'express';
import cookieParser from 'cookie-parser';
import requestLanguage from 'express-request-l... |
src/svg-icons/hardware/keyboard-hide.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
react-flux-mui/js/material-ui/src/svg-icons/action/tab.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTab = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/>
</SvgIcon>
);
ActionTab = pure(ActionTab);
ActionTab.... |
examples/with-module-federation/basic-2/src/Button.js | jaredpalmer/razzle | import React from "react";
const style = {
background: "#00c",
color: "#fff",
padding: 12,
};
const Button = () => <button style={style}>App 2 Button</button>;
export default Button;
|
client/src/react/health/HomeHealth.js | charlesj/Apollo | import React from 'react'
import { connect, } from 'react-redux'
import PropTypes from 'prop-types'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
} from 'recharts'
import { metricsActions, } from '../../redux/actions'
import { metricsSelectors, } from '../../redux/selectors'
import { FlexR... |
src/svg-icons/image/navigate-next.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateNext = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
ImageNavigateNext = pure(ImageNavigateNext);
ImageNavigateNext.displayName = 'Ima... |
ajax/libs/openlayers/6.0.1-dev.1571860704515/PluggableMap.js | cdnjs/cdnjs | var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
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] =... |
examples/src/app.js | OpenGov/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Creatable from './components/Creatable';
import Contributors from './components/Contributors';
import GithubUsers from './components/GithubUsers';
import CustomComponents from './com... |
client/src/auth/SignOut.js | flyrightsister/boxcharter | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter 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, either version 3 of the License, ... |
docs/src/app/components/pages/components/Chip/Page.js | frnk94/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import chipReadmeText from './README';
import ChipExampleSimple from './ExampleS... |
client/src/app/__tests__/AppParentSpec.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
src/svg-icons/action/account-box.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
ajax/libs/react-router/0.11.5/react-router.min.js | yinghunglai/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi... |
src/components/comment-list-item.component.js | housseindjirdeh/git-point | // @flow
/* eslint-disable no-nested-ternary */
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
TouchableOpacity,
Image,
Platform,
} from 'react-native';
import HTMLView from 'react-native-htmlview';
import moment from 'moment';
import { colors, fonts, normalize } from 'config';... |
ajax/libs/styled-components/3.3.2/styled-components.min.js | ahocevar/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled={},e.React)}(this,function(e,t){"use strict";var r="default"in t?t.default:t,n=/([A-Z])/g;var a=function(e){return e.replace(n,"-$1").toLowerCase... |
client/node_modules/material-ui/lib/svg-icons/image/camera-alt.js | jnajdi/canvas_starter_app_local | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ImageCameraAlt = React.createClass({
displayName: 'ImageCameraAlt',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('circle', { cx: '12', cy: '12', r: '3... |
resources/src/js/sections/Top/index.js | aberon10/thermomusic.com | 'use strict';
import React from 'react';
import Ajax from '../../Libs/Ajax';
import {Link} from 'react-router-dom';
import Notification from '../../components/Notification/index';
import inFavorites from '../Explorer/components/util';
import ContentSpacing from '../../components/Containers/ContentSpacing';
import Main... |
test/electron-renderer/ui/ThemeOptions_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai, { expect } from 'chai';
import { mount } from 'enzyme';
import ThemeOptions from '../../../build/renderer/ui/components/settings/ThemeOptions';
import { themeColors } from '../../../build/renderer/ui/utils/constants';
import mockSetti... |
src/icons/favorite_icon.js | camboio/ibis | import React from 'react';
export default function FavoriteIcon(props){
return(
<svg className={props.className} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 294.9 254.5">
<path className="st0" d="M140.9 244.8l-97.3-93.9C42.3 149.8 8 118.4 8 81 8 35.3 35.9 8 82.6 8c27.3 0 52.9 21.5 65.2 33.7C160.1... |
ajax/libs/material-ui/4.11.3-deprecations.0/es/Table/TableContext.js | cdnjs/cdnjs | import * as React from 'react';
/**
* @ignore - internal component.
*/
const TableContext = React.createContext();
if (process.env.NODE_ENV !== 'production') {
TableContext.displayName = 'TableContext';
}
export default TableContext; |
src/layout/Main.js | Moovashaka/moovaShaka | import React from 'react';
import { ContactForm } from '../components/contactForm.js';
export default class Main extends React.Component {
state = {
fields: {}
};
onChange = updatedValue => {
this.setState({ fields: {
...this.state.fields,
...updatedValue }});
}
render () {
retu... |
packages/material-ui-icons/src/SpeakerPhone.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SpeakerPhone = props =>
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 4.21l1.41 1... |
blueocean-material-icons/src/js/components/svg-icons/editor/format-indent-decrease.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecrease.displayName = 'EditorFormatIn... |
src/containers/HomePage.js | ryan4888/smart-toy | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/homeActions';
import Home from '../components/Home';
export const HomePage = (props) => {
return (
<Home
sendForwardBackward={pr... |
src/svg-icons/action/picture-in-picture.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPicture = (props) => (
<SvgIcon {...props}>
<path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/>
</SvgIcon>
... |
stories/components/modal/index.js | OperationCode/operationcode_frontend | import React, { Component } from 'react';
import { storiesOf } from '@storybook/react';
import Modal from 'shared/components/modal/modal';
class ComponentWithModal extends Component {
constructor() {
super();
this.state = {
isModalOpened: false,
};
}
handleOpen = () => {
this.setState({ i... |
ajax/libs/mobx-react/3.3.0/index.min.js | cdnjs/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&u.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=m[t];n?e[t]=function(){n.apply(this,argumen... |
client/app/shared/NotFound.js | prilutskiy/hackathon | import React, { Component } from 'react';
class NotFound extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>Page not found</div>
);
}
}
export default NotFound; |
examples/with-sentry-simple/pages/_app.js | BlancheXu/test | import React from 'react'
import App from 'next/app'
import * as Sentry from '@sentry/node'
Sentry.init({
// Replace with your project's Sentry DSN
dsn: 'https://00000000000000000000000000000000@sentry.io/1111111'
})
class MyApp extends App {
render () {
const { Component, pageProps } = this.props
// W... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.