code stringlengths 2 1.05M |
|---|
import { module, test } from "qunit";
import { runDestroy, buildOwner } from "test-utils";
import { default as EmberObject, set, computed } from "@ember/object";
import { sendEvent } from "@ember/object/events";
import Service from "@ember/service";
import { EventEmitter } from "events";
import sinon from "sinon";
imp... |
function thisExpr() {
return <p>{this.Foo}</p>;
}
function thisJSX() {
return <this.Foo />;
}
class A extends B {
superExpr() {
return <p>{super.Foo}</p>;
}
superJSX() {
return <super.Foo />;
}
}
function argumentsExpr() {
return <p>{arguments.Foo}</p>;
}
function argumentsJSX() {
return <... |
/** @flow */
export default from './VirtualScroll'
export VirtualScroll from './VirtualScroll'
|
Ext.onReady(function(){
MODx.Install.init();
});
MODx.Install = function() {
return {
init: function() {
Ext.select('.modx-toggle-success').on('click',function() {
MODx.Install.toggle('success');
});
Ext.select('.modx-toggle-warning').on('... |
// VSCP MDF javascript library
//
// Copyright (c) 2015-2021 Andreas Merkle
// <vscp@blue-andi.de>
//
// Licence:
// The MIT License (MIT)
// [OSI Approved License]
//
// The MIT License (MIT)
//
// Copyright (c) 2012-2021 The VSCP Project
//
// Permission is hereby granted, free of charge, to any person o... |
/**
* sha1.helper.dev.js
*
* @category Helper
* @version 1.0
* @author Ricky Hurtado <ricky@aelogica.com>
*/
I.Helper.Sha1 = function(str)
{
// http://kevin.vanzonneveld.net
// + original by: Webtoolkit.info (http://www.webtoolkit.info/)
// + namespaced by: Michael White (http://getspr... |
/**
* 建立 mysql 语句
*/
var mysql = require('mysql')
, escapeId = mysql.escapeId
;
/**
* 从 Query 对象建立 mysql 语句
* type = insert, delete, update, select
*/
exports.createSql = function(type, obj)
{
switch(type){
case 'insert': return insertSql(obj);
case 'delete': return deleteSql(obj);
... |
'use strict';
const browserslist = require('browserslist');
const { compare, has } = require('./helpers');
const external = require('./external');
const aliases = new Map([
['and_chr', 'chrome'],
['and_ff', 'firefox'],
['ie_mob', 'ie'],
['ios_saf', 'ios'],
['op_mob', 'opera_mobile'],
]);
const validTargets ... |
import {module, test} from 'qunit';
import Server from 'ember-cli-mirage/server';
module('integration:server-config', {
beforeEach: function() {
this.server = new Server({
environment: 'development'
});
this.server.timing = 0;
},
afterEach: function() {
this.server.shutdown();
}
});
test... |
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
define("vs/workbench/services/search/node/searchApp.nls.ja",{"vs/base/common/errorMessage":["{0}。エラー コード: {1}","アクセス許可が拒否されました (HTTP {0})"... |
import test from 'ava';
import Upcast from '../main';
test('should be a function', t => {
t.true(typeof Upcast.resolve === 'function');
});
test('should return type assigned to alias', t => {
Upcast.alias.x = 'string';
t.true(Upcast.resolve('x') === 'string');
});
|
/* @flow */
import { cyan } from 'chalk'
import { CWD, PORT, NODE_ENV } from '../../../constants'
import Logger from '../../logger'
import { createLoader } from '../../loader'
import { createCluster } from '../../pm'
import { watch } from '../../fs'
import { build } from './build'
/**
* @private
*/
export async f... |
(function() {
'use strict';
angular
.module('politicosApp')
.controller('UserManagementDeleteController', UserManagementDeleteController);
UserManagementDeleteController.$inject = ['$uibModalInstance', 'entity', 'User'];
function UserManagementDeleteController ($uibModalInstance, enti... |
import BaseField from 'uniforms/BaseField'
import React from 'react'
import filterDOMProps from 'uniforms/filterDOMProps'
const SubmitField = ({disabled, inputRef, value, ...props}, {uniforms: {error, state}}) =>
<input
disabled={disabled === undefined ? !!(error || state.disabled) : disabled}
ref={inputRef}... |
/*
* JAWStats 0.8.0 Web Statistics
*
* Copyright (c) 2009 Jon Combe (jawstats.com)
*
* 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 l... |
/**
* PollController
*
* @description :: Server-side logic for managing polls
* @help :: See http://links.sailsjs.org/docs/controllers
*/
module.exports = {
list: function(req, res){
//Find all the Polls in the system, sorted descending based on the date/time created
Poll.find({sort: 'createdAt DESC'}... |
'use strict';
const gulp = require('gulp');
const gulpBabel = require('gulp-babel');
const sourcemaps = require('gulp-sourcemaps');
//gulp.task("default", () => {});
gulp.task("babel", ()=> {
return gulp.src("dev/js/**/*.js")
.pipe(sourcemaps.init())
.pipe(gulpBabel({
presets: ['es2015']
}))
.pipe(sourc... |
/*!
* Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2020 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== undefined) r... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Controller | pending user updates', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const controller = this.owner.lookup('controller:pending-user-upd... |
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"babel": "npm:babel-core@5.8.... |
var env = process.env.NODE_ENV || "development";
var config = require(__dirname + '/../config/config.json')[env].server;
var FileStreamRotator = require('file-stream-rotator');
var fs = require('fs');
var privateKey = fs.readFileSync(__dirname + '/../sslcert/' + config.ssl.privateKey, 'utf8');
var certificate = fs.r... |
/*
* Leaflet Heatmap Overlay
*
* Copyright (c) 2014, Patrick Wied (http://www.patrick-wied.at)
* Dual-licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and the Beerware (http://en.wikipedia.org/wiki/Beerware) license.
*/
// Leaflet < 0.8 compatibility
if (typeof L.Layer === 'undefined') {
... |
var devicemotion = function (sandbox) {
function listener(event) {
var json = {
sensor : 'devicemotion',
accelerationX : event.acceleration.x,
accelerationY : event.acceleration.y,
accelerationZ : event.acceleration.z,
accelerationIncludingGravityX : event.accelerationIncludingGr... |
module.exports = function(){ return "a real bear"; };
|
/* */
var parse = require('../index');
var test = require('tape');
test('parse with modifier functions', function(t) {
t.plan(1);
var argv = parse(['-b', '123'], {boolean: 'b'});
t.deepEqual(argv, {
b: true,
_: ['123']
});
});
|
/*
* @title MinifyHtml
* @description A task to inject assets into and compress the main index.html
* @example (cli) gulp minifyHtml
*/
/*********************************************************************************
1. DEPENDENCIES
*****************************************************************************... |
/* */
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-transition-duration', v);
},
get: function () {
return this.getPropertyValue('-webkit-transition-duration');
},
enumerable: true,
configurable: true
};
|
'use strict'
const assert = require('assert')
const rmrf = require('rimraf')
const OrbitDB = require('../../src/OrbitDB.js')
const IdentityProvider = require('orbit-db-identity-provider')
const Keystore = require('orbit-db-keystore')
const IPFSAccessController = require('orbit-db-access-controllers/src/ipfs-access-con... |
import app from '../../app';
import BaseModel from '../BaseModel';
export default class extends BaseModel {
constructor(attrs = {}, options = {}) {
if (typeof options.buyerContractArrived !== 'function') {
throw new Error('Please provide a function that returns a boolean indicating ' +
'whether the... |
import _ from 'lodash'
import {
TASK__PROGRESS,
TASK__ERROR,
TASK__CLEAR,
TASK__CANCEL,
} from '../../actions'
const setTaskState = (state, { name, id, ...action }, status) => {
const currentTaskGroup = state[name] || {}
const currentTask = currentTaskGroup[id]
return {
...state,
[name]: {
... |
export * from './accumulateActions';
export * from './authActions';
export * from './dataActions';
export * from './fetchActions';
export * from './filterActions';
export * from './formActions';
export * from './listActions';
export * from './localeActions';
export * from './notificationActions';
export * from './resou... |
/* PROTOTYPE QUE IMPLEMENTA O METODO inArray IGUAL A PHP */
Array.prototype.inArray = function (value){
var i;
if(this.length){
for (i=0; i < this.length; i++){
if (this[i] == value){
return true;
}
}
}
return false;
}
/* PROTOTYPE REMOVE REGISTRO DO VETOR EM JAVASCRIPT */
Array.protot... |
var React = require('react');
var ReactDOM = require('react-dom');
var CheckboxGroup = require('./src/CheckboxGroup');
var data = [
{value: 1, text: 1},
{value: 2, text: 2},
{value: 3, text: 3},
{value: 4, text: 4}
],
name = "hehe";
ReactDOM.render(
(
<CheckboxGroup data={data} name={name} />
),
document... |
//>>built
define({doNew:"[nov\u00e9]",edit:"[upravit]",save:"[ulo\u017eit]",cancel:"[storno]"}); |
/**
* Capture the resize event from a set of elements and execute a function.
* @method resize
* @memberof Grindstone
* @param {function} callback
* @returns {NodeList} collection
* @example $(window).resize(() => {});
*/
const resize = function (callback) {
if (typeof callback === 'function') {
this.each... |
module.exports.appconfig = require('./config/multi.conf.js');
var http = require('http'),
rrest = require('../'),
server = http.createServer(function (req, res){
res.send('process '+rrest.child.id+' is listen at '+rrest.config.listenPort[rrest.id]+' : hello world everyone!');
}).listen(rrest.co... |
// file: bwipp/coop2of5.js
//
// This code was automatically generated from:
// Barcode Writer in Pure PostScript - Version 2015-03-24
//
// Copyright (c) 2011-2015 Mark Warren
// Copyright (c) 2004-2014 Terry Burton
//
// See the LICENSE file in the bwip-js root directory
// for the extended copyright notice.
// BEGIN... |
import { connect } from 'react-redux';
import { selectThemePath } from 'redux/selectors/settings';
import Theme from './view';
const select = state => ({
themePath: selectThemePath(state),
});
export default connect(select)(Theme);
|
/*!
* A polyfill for requestAnimationFrame, based on
* http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
*
* @author: Anselm Hannemann (removed moz prefix as not needed anymore)
* @author: Erik Möller
* @author: Paul Irish
*
*/
'use strict';
(function () {
var lastTime = 0;
if (!wind... |
import { connect } from 'react-redux';
import { fetchBlogItem, postComment } from '../actions/index';
// 1. Import Component: Smart
import BlogItemPage from '../components/BlogItemPage';
const mapActionCreators = {
fetchBlogItem,
postComment
};
const mapComments = (embeddedComments) => {
let comments = [];
let... |
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ... |
module.exports = {
before: function (browser) {
browser
browser.app = browser.page.app();
browser.signinPage = browser.page.signin();
browser.listPage = browser.page.list();
browser.initialFormPage = browser.page.initialForm();
browser.app.navigate();
browser.app.waitForElementVisible('@signinScreen');
... |
var ready;
ready = function() {
$("#emails").on("click", function(){
$("#testarea").show();
$("#testarea").val(gon.emails);
});
};
$(document).ready(ready); |
var config = require('../support/config');
var schemaCorrelator = require('./schema-correlator');
module.exports = function schemaCorrelateHooks(model) {
var collectionName = model.pluralModelName;
var remotes = config.instanceRemoteNames;
for (var i=0; i<remotes.length; i++) {
model.afterRemote(re... |
'use strict';
var convert = require('./convert'),
func = convert('mixin', require('../mixin'));
func.placeholder = require('./placeholder');
module.exports = func;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL21peGluLmpzIl0sIm5h... |
function alwaysValid() { return true; }
function noCompose() {}
function ensureProtocolOptions(options) {
if (options === undefined) {
options = {};
} else if (typeof options === 'function') {
options = {
validate: options
};
}
if (!options.validate) {
options.validate = alwaysValid;
}... |
(function(){ console.log("in Lambda");})(); |
var nforce = require('../');
var should = require('should');
var api = require('./mock/sfdc-rest-api');
var port = process.env.PORT || 3000;
var orgMulti = nforce.createConnection(api.getClient());
var orgSingle = nforce.createConnection(api.getClient({ mode: 'single' }));
var testQuery = 'SELECT Id FROM Accoun... |
/**
* Fool.js (by @idiot)
* I pity the user.
*/
(function($) {
$.fn.prefixCSS = function(prop, val) {
var prefixes = ['Webkit', 'Moz', 'Ms', 'O'],
obj = {};
for(var i in prefixes) {
obj[prefixes[i] + (prop.charAt(0).toUpperCase() + prop.substr(1))] = val;
}
return this.css(obj);
};
// ... |
version https://git-lfs.github.com/spec/v1
oid sha256:756ce236eb36f4e692834968a2875179124f57195fa0a351019034a277ddc797
size 1382
|
define( [
'osg/BoundingBox',
'osg/Notify',
'osg/Vec3'
], function ( BoundingBox, Notify, Vec3 ) {
'use strict';
var BoundingSphere = function () {
this._center = Vec3.create();
this._radius = -1.0;
};
BoundingSphere.prototype = {
init: function () {
Vec... |
QUnit.module('MediaStreamRecording Profile Normal Test', {
before: function() {
init();
}, after: function() {
let img = document.getElementById('images');
img.style.visibility = 'hidden';
}
});
/**
* MediaStreamRecordingプロファイルのテストを行うクラス。
* @class
*/
let MediaStreamRecordingProfileNormalTest = {};... |
'use strict'
// tar -u
const hlo = require('./high-level-opt.js')
const r = require('./replace.js')
// just call tar.r with the filter and mtimeCache
const u = module.exports = (opt_, files, cb) => {
const opt = hlo(opt_)
if (!opt.file)
throw new TypeError('file is required')
if (opt.gzip)
throw new ... |
'use strict'
/* eslint-disable camelcase */
const configCommon = require('./common-config.js')
var fs = require('graceful-fs')
var readCmdShim = require('read-cmd-shim')
var isWindows = require('../lib/utils/is-windows.js')
var Bluebird = require('bluebird')
if (isWindows) {
var PATH = process.env.PATH ? 'PATH' : '... |
/*jshint forin:false, plusplus:false, sub:true */
'use strict';
define([
'zepto'
], function($) {
var FINANCE_URL = 'http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json&callback=?'
var REFERENCE_CURRENCY = 'USD'
var worth = {}
worth[REFERENCE_CURRENCY] = 1
function getCurrencyNa... |
var EventProxy = {
setMaxListeners: function() {
return this._emitter.setMaxListeners.apply(this, arguments);
},
emit: function() {
return this._emitter.emit.apply(this, arguments);
},
addListener: function() {
return this._emitter.addListener.apply(this, arguments);
},
on: function() {
re... |
import React, { Component } from 'react';
import { DomHandler, classNames } from 'primereact/utils';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
return arr2;
}
function _arrayWith... |
#pragma strict
@script ExecuteInEditMode
@script RequireComponent (Camera)
@script AddComponentMenu ("Image Effects/Camera/Camera Motion Blur")
public class CameraMotionBlur extends PostEffectsBase
{
// make sure to match this to MAX_RADIUS in shader ('k' in paper)
static var MAX_RADIUS : int = 10.0f;
public e... |
/* vim:ts=4:sts=4:sw=4:
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://... |
/*
* @name सांप का खेल
* @description प्रसिद्ध सांप का खेल! रन पर क्लिक करने के बाद, कहीं भी क्लिक करें
* काले क्षेत्र के अंदर, और i j k और l का उपयोग करके सांप को नियंत्रित करें। मत जाने दो
*सांप खुद को या दीवार से टकराया!<br>
* उदाहरण <a href='https://github.com/prashantgupta24' target='_blank'>प्रशांत गुप्... |
function init() {
activateCarousels();
}
function activateCarousels () {
var radios = document.querySelectorAll('.carousel-radios input'),
i = 0,
l = radios.length;
if(l) {
if(l > 1) { // if you have more than one card, add back and forward buttons for sited users
activateForwardAndBack(r... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var utils = require('primereact/utils');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLega... |
/**
* @license Highstock JS v8.2.2 (2020-10-22)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Sebastian Bochan
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.e... |
'use strict';
var util = require('util');
var VError = require('verror');
// IdendifiedApiError
//
// Marker class for errors that have been identified as known errors
// communicating with the API. You should *not* instantiate these
// directly.
//
// - @constructor
function IdentifiedApiError(){}
util.inherits(Ide... |
version https://git-lfs.github.com/spec/v1
oid sha256:062e548798d907b637ff198fef80c4114e0867d59e82701015b811e81bb791a5
size 112826
|
"format cjs";
var env = process.env.NODE_ENV;
module.exports = env;
|
/**
* @fileoverview tests for checking multiple spaces.
* @author Vignesh Anand aka vegetableman
* @copyright 2014 Vignesh Anand. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------... |
/* global Stem, _, Backbone, JST */
// Backbone view for the teacher-focused
// search page of the application.
Stem.Views = Stem.Views || {};
(function () {
'use strict';
Stem.Views.TeacherSearchAsPage = Backbone.View.extend({
// Markup stored as external template.
template: JST['app/scri... |
'use strict';
/*
Runner properties:
config
swagger
api // (sway)
connectMiddleware()
resolveAppPath()
securityHandlers
bagpipes
Runner events:
responseValidationError
config properties:
appRoot
mockMode
configDir
controllersDirs
mockControllersDirs
securityHandlers
*/
module.exports = {... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-f9738f5
*/
!function(a,i,t){"use strict";!function(){function a(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(a,t){var n=a.children(),e=!1;i.forEach(["","data-","x-"],functi... |
seajs.config({
alias: {
'b': 'biz/b'
},
paths: {
'biz': './path/to/biz',
'to': './path/to'
}
})
define(function(require) {
var test = require('../../../test')
var a = require('to/a')
var b = require('b')
test.assert(a.name === 'a', a.name)
test.assert(b.name === 'b', b.name)
requi... |
/*!
{
"name": "WebGL Extensions",
"property": "webglextensions",
"tags": ["webgl", "graphics"],
"builderAliases": ["webgl_extensions"],
"async" : true,
"authors": ["Ilmari Heikkinen"],
"knownBugs": [],
"notes": [{
"name": "Kronos extensions registry",
"href": "http://www.khronos.org/registry/web... |
describe("ProfileController", function() {
beforeEach(function() {
this.profileController = new window.ProfileController()
})
describe("ProfileChartData", function() {
beforeEach(function() {
var data = [[2015, 1, 1, 500]];
this.profileChartData = new window.ProfileChartData("tacos", data)
... |
/**
* Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
* Licensed under the MIT license.
* <http://outsider.mit-license.org/>
*/
describe('Summernote directive', function() {
'use strict';
var $rootScope, $compile, $timeout;
beforeEach(module('summernote'));
beforeEach(injec... |
/*
* 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.
*/
'... |
'use strict';
process.env.SERVICE_HOST = 'localhost';
process.env.SERVICE_PORT = 3001;
var test = require('tape');
var seneca = require('../service').seneca;
test('action1 test', function(t) {
t.plan(2);
seneca.act({role: 'service1', cmd: 'action1'}, function(err, result) {
t.equal(err, null);
t.equal('... |
define({
"serviceUrl": "Nustatyti paslaugos URL:",
"minIntSpacingLabel": "Mažiausias tinklelio dydis",
"lineOpacityLabel": "Linijos permatomumas",
"labelOpacityLabel": "Žymės permatomumas",
"centerLabelOpacityLabel": "Centro žymės permatomumas",
"gridZonePlacementLabel": "Tinklelio srities žymės vieta",
"... |
P = Class.create(P, {
init: function() {
this.view.content.className = 'loading';
this.initToolbar();
this.draw();
this.onNotify = this.refresh.bindAsEventListener(this);
document.observe('chinachu:recording', this.onNotify);
return this;
}
,
deinit: function() {
document.stopObservin... |
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Audits2.RadioSetting = class {
/**
* @param {!Array<!{value: string, label: string}>} options
* @param {!Common.Setting} setting
*/
construct... |
var TIP,
// .bind()/.on() namespace
TIPNS = '.qtip-tip',
// Common CSS strings
MARGIN = 'margin',
BORDER = 'border',
COLOR = 'color',
BG_COLOR = 'background-color',
TRANSPARENT = 'transparent',
IMPORTANT = ' !important',
// Check if the browser supports <canvas/> elements
HASCANVAS = !!document.createElement('canvas... |
describe('GelatoModel', function() {
var model, server;
before(function() {
server = sinon.fakeServer.create();
server.autoRespond = true;
server.respondWith(
"GET",
"fake/path/0",
[
200,
{"Content-Type": "application/json"},
'{"id": 0, "name": "josh"}'
]... |
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runt... |
// ---------------------------------------------------------------------------------
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... |
'use strict';
var series = require('run-series');
var verify = require('../verify-esprima-ast.js');
module.exports = program;
function program(node, meta, callback) {
node.body = hoistFunctionDeclaration(node.body);
meta.setModuleExportsNode(node);
meta.loadJsigDefinition(onLoaded);
function onLoa... |
/**
* Class that creates upload widget with drag-and-drop and file list
* @inherits qq.FineUploaderBasic
*/
qq.FineUploader = function(o){
// call parent constructor
qq.FineUploaderBasic.apply(this, arguments);
// additional options
qq.extend(this._options, {
element: null,
listEleme... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import {pick} from 'lodash';
import {inBrowser, oneFlight} from '@ciscospark/common';
import {safeSetTimeout} from '@ciscospark/common-timers';
import SparkHttpError from '../spark-http-error';
import SparkPlugin from '../spark-plugin';
import {s... |
'use strict';
angular.module('core').controller('FooterController', ['$scope', 'SystemData', function($scope, SystemData) {
SystemData.getData().then(function(data) {
$scope.app = data;
// temporary data
$scope.links = _.map(_.range(0, 4), function(el) {
return _.map(_.range(0, 4), function(row) {... |
'use strict';
cApp.service('Session', function($rootScope,$location,DecentralStorage,WalletManager) {
this.initialize = function() {
DecentralStorage.save("session","session",1);
DecentralStorage.getSync(DecentralStorage.WALLETDATABASE, function(database) {
if(database) {
var rawData = database[DecentralS... |
/**
* @private
*
* Provides a registry of all Components (instances of {@link Xfr.Component} or any subclass
* thereof) on a page so that they can be easily accessed by {@link Xfr.Component component}
* {@link Xfr.Component#getId id} (see {@link #get}, or the convenience method {@link Xfr#getCmp Ext.getCmp}).
*
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'bidi', 'no', {
ltr: 'Tekstretning fra venstre til høyre',
rtl: 'Tekstretning fra høyre til venstre'
});
|
module.exports = function(Handlebars) {
this["JST"] = this["JST"] || {};
this["JST"]["test/fixtures/commonjs.html"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
return "<sec... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2015 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* Create a new game object for displaying Text.
*
* This uses a local hidden Canvas object and renders the ty... |
// ---------------------- dependency ----------------------
var isUrl = require('is-url'),
fs = require('fs-extra'),
jsonPretty = require('json-pretty'),
program = require('commander');
// ------------------------ get URL ------------------------
program
.version('0.0.1')
.option('-u, -... |
'use strict';
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _extends = require('babel-runtime/helpers/extends')['default'];
var _objectWithoutProperties = require('babel-runtime/helpers/object-without-pro... |
/*!
* Bootstrap-select v1.13.17 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2020 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== undefined) r... |
import getExportBlock from './shared/getExportBlock.js';
export default function cjs ( bundle, magicString, { exportMode }, options ) {
let intro = options.useStrict === false ? `` : `'use strict';\n\n`;
// TODO handle empty imports, once they're supported
const importBlock = bundle.externalModules
.map( module ... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'hi', {
IdInputLabel: 'Id',
advisoryTitleInputLabel: 'परामर्श शीर्शक',
cssClassInputLabel: 'स्टाइल-शीट क्लास',
edit: 'Edit Div', // MISSING
... |
'use strict';
const gulp = tars.packages.gulp;
const runSequence = tars.packages.runSequence.use(gulp);
const watcherLog = tars.helpers.watcherLog;
/**
* Watcher for ie8 stylies
*/
module.exports = () => {
if (tars.flags.ie8 || tars.flags.ie) {
return tars.packages.chokidar
.watch(
... |
/*
Copyright 2011-2016 Adobe Systems Incorporated. All Rights Reserved.
*/
(function(c){"function"===typeof define&&define.amd&&define.amd.jQuery?define(["jquery","museutils"],c):c(jQuery)})(function(c){(function(b,c){function a(){}var f={version:0.1,inherit:function(a,b){var f=function(){};f.prototype=b.prototype;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.