code stringlengths 2 1.05M |
|---|
/**
* The reveal.js markdown plugin. Handles parsing of
* markdown inside of presentations as well as loading
* of external markdown documents.
*/
(function( root, factory ) {
if( typeof exports === 'object' ) {
module.exports = factory( require( './marked' ) );
}
else {
// Browser globals (root is window)
... |
'use strict';
var chai = require('chai');
var should = chai.should();
var bitcore = require('bitcore-lib');
var models = require('../../lib/models');
var WalletAddress = models.WalletAddress;
describe('Wallet Address Model', function() {
function checkAddress(key) {
key.address.toString().should.equal('2N2JD6w... |
// Libraries required for testing
const util = require('util');
const test = require('ava');
const cryptoRandomString = require('crypto-random-string');
const { factory } = require('factory-girl');
const phrases = require('../../config/phrases');
const utils = require('../utils');
test.before(utils.setupMongoose);
t... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
/*! jQuery UI - v1.10.4 - 2014-03-23
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.es={closeText:"Cerrar",prevText:"<Ant",nextText:"Sig>",currentText:"Hoy",monthNames:["enero","febrero","marzo","abril","mayo","junio",... |
import React from 'react'
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { routerReducer, routerMiddleware } from 'react-rout... |
/* bilibli
* @朱一
*/
var purl = require('./purl')
var log = require('./log')
var httpProxy = require('./httpProxy')
function pad(num, n) {
return (Array(n).join(0) + num).slice(-n)
}
exports.match = function (url) {
return url.attr('host').indexOf('bilibili') >= 0 && /^\/video\/av\d+\/$/.test(url.at... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller.js'),
_ = require('lodash'),
UserEntry = mongoose.model('UserEntry');
/**
* Create a User entry
*/
exports.create = function(req, res) {
var entry = req.body;
entr... |
const { resolve } = require(`path`)
const {
DuotoneGradientType,
ImageCropFocusType,
} = require(`gatsby-transformer-sharp/types`)
const { queueImageResizing } = require(`gatsby-plugin-sharp`)
const Debug = require(`debug`)
const fs = require(`fs-extra`)
const {
GraphQLObjectType,
GraphQLString,
GraphQLInt,... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { Directive, ElementRef, HostListener, Input, IterableDiffers, Renderer2, SkipSelf } from '@angular/core';
import { SortDirection, SortingsService } from 'e2e4';
import {... |
/**
@module ember
@submodule ember-views
*/
import { get } from 'ember-metal/property_get';
import { set } from 'ember-metal/property_set';
import { Mixin } from 'ember-metal/mixin';
import TargetActionSupport from 'ember-runtime/mixins/target_action_support';
const KEY_EVENTS = {
13: 'insertNewline',
27: 'cancel... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'font', 'he', {
fontSize: {
label: 'גודל',
voiceLabel: 'גודל',
panelTitle: 'גודל'
},
label: 'גופן',
panelTitle: 'גופן',
voiceLa... |
"use strict";
var path_1 = require('path');
var logger_1 = require('../logger/logger');
var Constants = require('../util/constants');
var helpers_1 = require('../util/helpers');
function calculateUnusedComponents(dependencyMap) {
return calculateUnusedComponentsImpl(dependencyMap, process.env[Constants.ENV_VAR_IONI... |
'use strict'
const assert = require('assert')
const childProcess = require('child_process')
const electronPackager = require('electron-packager')
const fs = require('fs-extra')
const includePathInPackagedApp = require('./include-path-in-packaged-app')
const getLicenseText = require('./get-license-text')
const path = r... |
import {
Matrix3,
Vector3,
Color
} from 'three';
/**
* https://github.com/gkjohnson/ply-exporter-js
*
* Usage:
* const exporter = new PLYExporter();
*
* // second argument is a list of options
* exporter.parse(mesh, data => console.log(data), { binary: true, excludeAttributes: [ 'color' ], littleEndian: t... |
import { JOSENotSupported } from '../util/errors.js';
const bitLengths = new Map([
['A128CBC-HS256', 256],
['A128GCM', 128],
['A192CBC-HS384', 384],
['A192GCM', 192],
['A256CBC-HS512', 512],
['A256GCM', 256],
]);
const factory = (random) => (alg) => {
const bitLength = bitLengths.get(alg);
... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
(function (factory) {
if (typeof module === 'object' && ty... |
const merge = require('webpack-merge');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const devConfig = require('./webpack.extension-dev.js');
module.exports = merge(devConfig, {
mode: 'production',
devtool: false,
plugins: [
new UglifyJsPlugin()
]
});
|
/*
Siesta 2.0.5
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
/**
@class Siesta.Test.Action.Type
@extends Siesta.Test.Action
@mixin Siesta.Test.Action.Role.HasTarget
This action will {@link Siesta.Test.Browser#type type} the provided {@link #text} into th... |
import userActionCreators from './userActionCreators';
export default {
userActionCreators: userActionCreators
};
|
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/
(func... |
Package.describe({
summary: "Send email messages",
version: "1.0.12"
});
Npm.depends({
// Pinned at older version. 0.1.16+ uses mimelib, not mimelib-noiconv which is
// much bigger. We need a better solution.
mailcomposer: "0.1.15",
simplesmtp: "0.3.10",
"stream-buffers": "0.2.5"});
Package.onUse(functi... |
/**
* Select2 Czech translation.
*
* Author: Michal Marek <ahoj@michal-marek.cz>
* Author - sklonovani: David Vallner <david@vallner.net>
*/
(function ($) {
"use strict";
// use text for the numbers 2 through 4
var smallNumbers = {
2: function(masc) { return (masc ? "dva" : "dvě"); },
3... |
(function Screen($angular) {
"use strict";
/**
* @directive viScreen
* @type {Function}
* @param ngVideoOptions {Object}
*/
$angular.module('ngVideo').directive('viScreen', ['ngVideoOptions',
function ngScreenDirective(ngVideoOptions) {
return {
/**
... |
/**
* @fileoverview
* Shuffl card plug-in for simple card containing tabular data.
*
* The original intent was to have a collection card for the table, and
* represent each row as a separate card, but on closer examination this
* would create problems about when or which cards should be deleted,
* e.g., when... |
var parseBits = function(data, bits, offset, invert, callback) {
offset = offset || 0;
invert = invert || false;
callback = callback || function(lastValue, newValue, bits) { return (lastValue * Math.pow(2, bits)) + newValue; };
var offsetBytes = offset >> 3;
var inv = function(value) {
if (invert) {
... |
//This script creates a gridded circle on the Dynamic Lighting layer, based on a specific token to be used as magical darkness, then moves that token to the map
// This is based on a darkness concept contributed by Avi on the forum:
// https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-... |
/**
* Test description
* ================
*
* Starting with an empty project (no package.json)
* - jam publish package-one
* - jam publish package-two (depends on package-one)
* - jam install package-two, test installation succeeded
* - jam ls, test packages are listed
* - jam remove package-two, test it's rem... |
/**
* Created by middleca on 1/23/15.
*/
'use strict';
var when = require('when');
var pipeline = require('when/pipeline');
var wifiscanner = require('node-wifiscanner2');
var WifiUtilities = {
scan: function() {
var dfd = when.defer();
wifiscanner.scan(function(err, data) {
if (err) {
dfd.reject(err)... |
/**
* 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
*/
describe('console', () => {
let React;
let ReactDOM;
let act;
let fakeConsole;
let mockError;
let mockInfo... |
import { Vector3 } from '../../../../build/three.module.js';
import { InputNode } from '../core/InputNode.js';
import { NodeUtils } from '../core/NodeUtils.js';
class Vector3Node extends InputNode {
constructor( x, y, z ) {
super( 'v3' );
this.value = x instanceof Vector3 ? x : new Vector3( x, y, z );
}
g... |
/**
* Created by zed on 15/12/26.
*/
|
"use strict";
const Constants = require("../../../Constants");
const Events = Constants.Events;
const Endpoints = Constants.Endpoints;
const apiRequest = require("../../../core/ApiRequest");
module.exports = function(channelId, messageId) {
return new Promise((rs, rj) => {
var request = apiRequest
.del(this... |
5;
(58 - 32);
false && (true || !true) ? 3 : 2 - 5;
window.document.childNodes.length--;
"this " + window + window + " is a pair of `\n\"windows\"\n`";
window + " will come first this time";
window.scrollTo(35, 67);
[].concat([1, 2, 3, 4]);
/['"`\/]/;
/['"`\/]/gi;
[(_a = {},
_a["a" + "c"] = 1,
_a.undefi... |
// TEST_1
@Component({
selector: 'app'
})
@View({
template: `
<h1>Test</h1><p>Test</p>
`,
styles: [`
.test {
color: #f00;
}
smile:before {
content: "\\000B";
}
.common {
color: #808080;
}
`],
directives: [CORE_DIRECTIVES]
})
export class App {}
|
;(function($){'use strict';$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById('fit-vids-style')){var head=document.head||document.getElementsByTagName('head')[0];var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper ... |
'use strict';
var _ = require('lodash');
var $ = require('./util/preconditions');
var errors = require('./errors');
var Base58Check = require('./encoding/base58check');
var Networks = require('./networks');
var Hash = require('./crypto/hash');
var JSUtil = require('./util/js');
var Script = require('./script');
var Pu... |
L.Control.Panel = L.Control.extend({
initialize: function(options) {
L.Control.prototype.initialize.call(this, null, options);
L.Util.setOptions(this, options);
},
onAdd: function(map) {
this.hidden = true;
map.activePanel = this;
this._initLayout();
return this._container;
},
show: function(... |
/*global define*/
define([
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Core/Event',
'./createPropertyDescriptor'
], function(
defaultValue,
defined,
defineProperties,
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isStatelessComponent;
// weak
function isJSXElementOrReactCreateElement(path) {
var visited = false;
path.traverse({
CallExpression: function CallExpression(path2) {
var callee = path2.get('callee');
... |
import { document } from 'ssr-window';
import $ from '../../../utils/dom';
import Utils from '../../../utils/utils';
export default function (event) {
const swiper = this;
const data = swiper.touchEventsData;
const { params, touches, rtlTranslate: rtl } = swiper;
let e = event;
if (e.originalEvent) e = e.ori... |
var searchData=
[
['readaxes',['readAxes',['../class_virtual_joystick.html#ac0ec476a1ace9195fffc0774bf332357',1,'VirtualJoystick']]],
['readbuttons',['readButtons',['../class_virtual_joystick.html#ac9d0aefa6e654d0a9e36bb913c83cac6',1,'VirtualJoystick']]],
['readpovs',['readPOVs',['../class_virtual_joystick.html#a... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var reactIs = require('react-is');
var Stylis = _interopDefault(require('@emotion/stylis'));
var _insertRulePlugin = _interop... |
// Copyright IBM Corp. 2013,2016. All Rights Reserved.
// Node module: strong-remoting
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
// create a set of shared classes
var remoting = require('../');
var SharedClass = remoting.SharedCla... |
/*!
* # Semantic UI 2.7.2 - Transition
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
'use strict';
$.isFunction = $.isFunction || function(obj) {
return typeof obj === "function" && ... |
'use strict'
const common = require('./common')
const debug = require('debug')('electron-packager')
const download = require('electron-download')
const pify = require('pify')
const semver = require('semver')
const targets = require('./targets')
function createDownloadOpts (opts, platform, arch) {
let downloadOpts =... |
/**
* @fileOverview
* widget.enchant.js
* @version 0.2.0
* @require enchant.js v0.6.0+
* @author UEI Corporation
*
* @description
* enchant.jsでモバイル向けウェブページのようなUIを作成するためのライブラリ.
*/
(function() {
/**
* @type {Object}
*/
enchant.widget = {
assets: [
'listItemBg.png',
... |
/*!
* jquery.event.drag - v 2.3.0
* Copyright (c) 2010 Three Dub Media - http://threedubmedia.com
* Open Source MIT License - http://threedubmedia.com/code/license
*/
// Created: 2008-06-04
// Updated: 2012-05-21
// Updated: 2016-08-16 Luiz Gonzaga dos Santos Filho
// REQUIRES: jquery 1.8 +, , event.drag 2.3.0
//... |
/* *
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../parts/Globals.js';
import '../parts/Color.js';
import '../parts/Legend.js';
import '../parts/Options.js';
import '.... |
/* ========================================================================
* Bootstrap: carousel.js v3.3.7
* http://getbootstrap.com/javascript/#carousel
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/boo... |
import * as ActionTypes from '../constants/constants';
const initialState = { posts: [], selectedPost: null };
const postReducer = (state = initialState, action) => {
switch (action.type) {
case ActionTypes.ADD_POST :
return {
posts: [{
name: action.name,
title: action.title,
... |
var parseXlsx = require('excel'),
Server = require( './src/server' ),
Client = require( './src/client' ),
Row = require( './src/row' );
var Runner = function() {
this._serverReady = false;
this._parsedSpec = null;
this._isRunning = false;
this._currentRow = null;
this._currentRowIndex = 0;
... |
Package.describe({
name: 'standard-minifier-css',
version: '1.1.8',
summary: 'Standard css minifier used with Meteor apps by default. [Custom]',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: "minifyStdCSS",
use: [
'minifier-css'
],
npmDependencies: {
"source-map": "0.5.3"
... |
/**
* @license
* v1.2.9
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import { ClientSvcQueryable, MethodParams, property, setProperty, method, obj... |
/* eslint-disable */
const Gatsby = require(`gatsby`);
export const query = graphql`
query {
allSitePages {
prefix
}
}
`;
|
var get = Ember.get,
forEach = Ember.EnumerableUtils.forEach,
RETAIN = 'r',
FILTER = 'f';
function Operation (type, count) {
this.type = type;
this.count = count;
}
/**
An `Ember.SubArray` tracks an array in a way similar to, but more specialized
than, `Ember.TrackedArray`. It is useful for keepi... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
var chalk = require('chalk');
var ErrorHandler = {
separator: '\n' + chalk.bgBlack.bold('\n ') + '\n',
constructHeader: function ( title, message ){
return chalk.bgRed.black(' ') + chalk.red(' !!! ') + chalk.bgRed.black(' ' + title + ' ') + chalk.red(' => ' + message);
},
handleM... |
import { Resource } from 'resource-loader';
import url from 'url';
import { Spritesheet } from '../core';
export default function ()
{
return function spritesheetParser(resource, next)
{
const imageResourceName = `${resource.name}_image`;
// skip if no data, its not json, it isn't spritesheet ... |
/// Knockout Mapping plugin v2.4.1
/// (c) 2013 Steven Sanderson, Roy Jacobs - http://knockoutjs.com/
/// License: MIT (http://www.opensource.org/licenses/mit-license.php)
(function(e){"function"===typeof require&&"object"===typeof exports&&"object"===typeof module?e(require("knockout"),exports):"function"===typeof ... |
'use strict';
const dependencies = ['fbjs', 'object-assign', 'prop-types'];
// TODO: enumerate all non-private package folders in packages/*?
const projects = [
'react',
'react-art',
'react-dom',
'react-reconciler',
'react-test-renderer',
];
const paramDefinitions = [
{
name: 'dry',
type: Boolean... |
'use strict';
var log = require('../core/logger');
var _ = require('../mindash');
var warnings = require('../core/warnings');
var fetchResult = require('./fetch');
var StoreEvents = require('./storeEvents');
var CompoundError = require('../errors/compoundError');
var NotFoundError = require('../errors/notFoundError');... |
describe("@event and @fires tags", function() {
var docSet = jasmine.getDocSetFromFile('test/fixtures/eventfirestag.js'),
snowballMethod = docSet.getByLongname('Hurl#snowball')[0],
snowballEvent = docSet.getByLongname('Hurl#event:snowball')[0];
// @event tag
it('When a symbol has an @event... |
import { computed } from "ember-metal/computed";
import { get as emberGet } from "ember-metal/property_get";
import { observer } from "ember-metal/mixin";
import { testWithDefault } from "ember-metal/tests/props_helper";
import EmberObject from "ember-runtime/system/object";
function K() { return this; }
QUnit.module... |
module.exports = process.env.dag_COV
? require('./lib-cov/dag')
: require('./lib/dag');
|
var name = "Basic Larva Lover";
var collection_type = 0;
var is_secret = 0;
var desc = "Fed three Caterpillars until they metamorphosized into Butterflies";
var status_text = "You've nourished three wiggly Caterpillars into the full bloom of fluttery Butterflyhood. You've earned a Basic Larva Lover badge.";
var las... |
/* cribbed from http://nullstyle.com/2007/06/02/caching-time_ago_in_words */
function time_ago_in_words(from) {
return distance_of_time_in_words(new Date(), new Date(from))
}
function distance_of_time_in_words(to, from) {
seconds_ago = ((to - from) / 1000);
minutes_ago = Math.floor(seconds_ago / 60);
if(min... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
version https://git-lfs.github.com/spec/v1
oid sha256:8cf72a08ee3f913acb0c5c4bbc757dfb1c077ae87ad3679ecd6cfd1483c0721d
size 6779
|
/* Tabulator v4.0.3 (c) Oliver Folkerd */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t,e){t.widget("ui.tabulator",{_create:function(){this.table=new Tabulator(this.element[0],this... |
System.register([], function (_export) {
"use strict";
var HelloWorld;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
return {
setters: [],
execute: function () {
HelloWorld = function Hel... |
import baseMerge from '../internal/baseMerge';
import createAssigner from '../internal/createAssigner';
/**
* Recursively merges own enumerable properties of the source object(s), that
* don't resolve to `undefined` into the destination object. Subsequent sources
* overwrite property assignments of previous sources... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-crumbly'
};
|
module.exports = {
dispatch: require('./dispatch'),
createStore: require('./createStore'),
hasDispatched: require('./hasDispatched'),
createApplication: require('./createApplication'),
getDispatchedActionsWithType: require('./getDispatchedActionsWithType')
}; |
import * as THREE from '../../build/three.module.js';
import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs/ui.js';
import { SetGeometryCommand } from './commands/SetGeometryCommand.js';
function GeometryParametersPanel( editor, object ) {
var strings = editor.strings;
var container = ... |
var visit = require("./path-visitor").visit;
var warnedAboutDeprecation = false;
function traverseWithFullPathInfo(node, callback) {
if (!warnedAboutDeprecation) {
warnedAboutDeprecation = true;
console.warn(
"\033[33m", // yellow
'DEPRECATED(ast-types): Please use require("... |
/**
@license
* @pnp/common v1.1.5-4 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https:github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
impor... |
(function(){var c=document,d="length",e=" translation",f=" using Google Translate?",k=".",l="Google has automatically translated this page to: ",m="Powered by ",n="Translate",p="Translate everything to ",q="Translate this page to: ",r="Translated to: ",t="Turn off ",u="Turn off for: ",v="View this page in: ",w="var ",x... |
import { DB_TYPES } from './dbTypes';
export const HOST = process.env.HOSTNAME || 'localhost';
export const PORT = process.env.PORT || '3000';
export const ENV = process.env.NODE_ENV || 'development';
export const DB_TYPE = process.env.DB_TYPE || DB_TYPES.MONGO;
export const GOOGLE_ANALYTICS_ID = process.env.GOOGLE_... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("textarea",function(b){return{title:b.lang.forms.textarea.title,minWidth:350,minHeight:220,onShow:function(){delete this.textarea;var a=this.getParentEdito... |
import React, {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import Events from '../utils/events';
import propTypes from '../utils/propTypes';
import Menu from '../Menu/Menu';
import Popover from '../Popover/Popover';
import warning from 'warning';
class IconMenu extends Component {
static mu... |
var openCenteredPopup = function(url, width, height) {
var screenX = typeof window.screenX !== 'undefined' ? window.screenX : window.screenLeft;
var screenY = typeof window.screenY !== 'undefined' ? window.screenY : window.screenTop;
var outerWidth = typeof window.outerWidth !== 'undefined' ? window.outerWidth : do... |
declare class T {}
declare class U {}
declare var o1: {...{[string]:T},...{p:U}};
(o1: {p?:T|U,[string]:T}); // ok
declare var o2: {...{p:T},...{[string]:U}};
(o2: {p?:T|U,[string]:U}); // ok
declare var o3: {...{[string]:T},...{[string]:U}};
(o3: {[string]:T|U}); // ok
declare var o4: {...{|[string]:T|},...{p:U}};... |
jest.dontMock('../src/date_input.jsx');
describe('DateInput', function() {
var React, TestUtils, DateInput;
beforeEach(function() {
React = require('react/addons');
TestUtils = React.addons.TestUtils;
DateInput = require('../src/date_input.jsx');
});
it('triggers an event handler when the Enter k... |
import PageManager from '../page-manager';
import $ from 'jquery';
import nod from './common/nod';
import giftCertChecker from './common/gift-certificate-validator';
import formModel from './common/models/forms';
import { api } from '@bigcommerce/stencil-utils';
import { defaultModal } from './global/modal';
export de... |
/*
* Timepicker for Jeditable
*
* Copyright (c) 2008-2009 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/jeditable
*
* Revision: $Id$
*
*/
$.editable.addInputType('time', {
/* Create input ... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
/*
YUI 3.5.0 (build 5089)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* 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... |
import { Dictionary, PnPClientStorage, RuntimeConfig, Util, mergeOptions } from '@pnp/common';
import { LogLevel, Logger } from '@pnp/logging';
import { __decorate } from 'tslib';
class CachingOptions {
constructor(key) {
this.key = key;
this.expiration = Util.dateAdd(new Date(), "second", Runti... |
/**
@license
* @pnp/common v1.0.4-3 - pnp - provides shared functionality across all pnp libraries
* MIT (https://github.com/pnp/pnp/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: https://pnp.github.io/pnp/
* source: https://github.com/pnp/pnp
* bugs: https://github.com/pnp/pnp/issues
*/
(function (... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ug",{title:"قوشۇمچە چۈشەندۈرۈش",contents:"ياردەم مەزمۇنى. بۇ سۆزلەشكۈنى ياپماقچى بولسىڭىز ESC نى بېسىڭ.",legend:[{name:"ئادەتتىكى",items:[... |
const gulp = require('gulp');
// Default task
gulp.task('default', [$1]); |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.classScopingMode = exports.__controller = void 0;
// exported for tests =(
var __controller = {
_noConflict: false,
_isSet: false,
get noConflict() {
return this._noConflict;
},
set noConflict(v) {
if (this._isSe... |
version https://git-lfs.github.com/spec/v1
oid sha256:c57b04ec1812cc626cc504fb30e65afa55f72e4a6a26cb9abca83704eb6235ec
size 3948
|
/* global require,module */
'use strict';
var glob = require('glob');
var Promise = require('promise');
var Spider = require('./spider');
var Compress = require('./compress');
var FontSpider = function (htmlFiles, options) {
if (typeof htmlFiles === 'string') {
htmlFiles = glob.sync(htmlFiles);
} el... |
import pathMatch from 'path-match'
const route = pathMatch()
export default class Router {
constructor () {
this.routes = new Map()
}
add (method, path, fn) {
const routes = this.routes.get(method) || new Set()
routes.add({ match: route(path), fn })
this.routes.set(method, routes)
}
match ... |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... |
require(['jquery'],
function($) {
'use strict';
$(function() {
setTimeout(function() {
// emulates 'document ready state' for selenium tests
document['page-rendered'] = true;
}, 100);
});
});
|
(function() {
"use strict";
angular.module('angular-carousel')
.service('DeviceCapabilities', function() {
// TODO: merge in a single function
// detect supported CSS property
function detectTransformProperty() {
var transformProperty = 'transform',
sa... |
const set = require('regenerate')(0x1CDA);
set.addRange(0x951, 0x952).addRange(0x964, 0x965).addRange(0xD00, 0xD03).addRange(0xD05, 0xD0C).addRange(0xD0E, 0xD10).addRange(0xD12, 0xD44).addRange(0xD46, 0xD48).addRange(0xD4A, 0xD4F).addRange(0xD54, 0xD63).addRange(0xD66, 0xD7F).addRange(0xA830, 0xA832);
module.exports = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.