view release on metacpan or search on metacpan
share/js/core/jquery-3.2.1.js view on Meta::CPAN
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"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 windo...
a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var...
null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d...
share/js/core/jquery.js view on Meta::CPAN
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"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 windo...
a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var...
null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d...
share/js/core/loggout.js view on Meta::CPAN
var logoutPostAJAX = function (msg) {
currentUser('obj', null);
currentUser('priv', null);
appLib.fillUserBox();
$('#mainarea').html(html.logout());
// This code used to automatically reload the page upon logout,
// but experience showed that automated page reloads are a
// source of woe because they make debugging difficult
// if (! cf('testing')) {
// setTimeout(function() {
// location.reload();
// }, 2000);
// }
},
rest = {
method: 'LOGIN',
path: 'logout',
body: null
},
sc = function (st) {
share/js/core/qunit-2.4.0.js view on Meta::CPAN
* Date: 2017-07-08T15:20Z
*/
(function (global$1) {
'use strict';
global$1 = global$1 && 'default' in global$1 ? global$1['default'] : global$1;
var window = global$1.window;
var self$1 = global$1.self;
var console = global$1.console;
var setTimeout = global$1.setTimeout;
var clearTimeout = global$1.clearTimeout;
var document = window && window.document;
var navigator = window && window.navigator;
var localSessionStorage = function () {
var x = "qunit-test-string";
try {
global$1.sessionStorage.setItem(x, x);
global$1.sessionStorage.removeItem(x);
return global$1.sessionStorage;
share/js/core/qunit-2.4.0.js view on Meta::CPAN
};
var toString = Object.prototype.toString;
var hasOwn = Object.prototype.hasOwnProperty;
var now = Date.now || function () {
return new Date().getTime();
};
var defined = {
document: window && window.document !== undefined,
setTimeout: setTimeout !== undefined
};
// Returns a new Array with the elements that are in a but not in b
function diff(a, b) {
var i,
j,
result = a.slice();
for (i = 0; i < result.length; i++) {
for (j = 0; j < b.length; j++) {
share/js/core/qunit-2.4.0.js view on Meta::CPAN
* Advances the ProcessingQueue to the next item if it is ready.
* @param {Boolean} last
*/
function advance() {
var start = now();
config.depth = (config.depth || 0) + 1;
while (config.queue.length && !config.blocking) {
var elapsedTime = now() - start;
if (!defined.setTimeout || config.updateRate <= 0 || elapsedTime < config.updateRate) {
if (priorityCount > 0) {
priorityCount--;
}
config.queue.shift()();
} else {
setTimeout(advance, 13);
break;
}
}
config.depth--;
if (!config.blocking && !config.queue.length && config.depth === 0) {
done();
}
}
share/js/core/qunit-2.4.0.js view on Meta::CPAN
newTest.queue();
}
// Put a hold on processing and return a function that will release it.
function internalStop(test) {
test.semaphore += 1;
config.blocking = true;
// Set a recovery timeout, if so configured.
if (defined.setTimeout) {
var timeoutDuration = void 0;
if (typeof test.timeout === "number") {
timeoutDuration = test.timeout;
} else if (typeof config.testTimeout === "number") {
timeoutDuration = config.testTimeout;
}
if (typeof timeoutDuration === "number" && timeoutDuration > 0) {
clearTimeout(config.timeout);
config.timeout = setTimeout(function () {
pushFailure("Test took longer than " + timeoutDuration + "ms; test timed out.", sourceFromStacktrace(2));
internalRecover(test);
}, timeoutDuration);
}
}
var released = false;
return function resume() {
if (released) {
return;
share/js/core/qunit-2.4.0.js view on Meta::CPAN
// Throw an Error if start is called more often than stop
if (test.semaphore < 0) {
test.semaphore = 0;
pushFailure("Tried to restart test while already started (test's semaphore was 0 already)", sourceFromStacktrace(2));
return;
}
// Add a slight delay to allow more assertions etc.
if (defined.setTimeout) {
if (config.timeout) {
clearTimeout(config.timeout);
}
config.timeout = setTimeout(function () {
if (test.semaphore > 0) {
return;
}
if (config.timeout) {
clearTimeout(config.timeout);
}
begin();
}, 13);
} else {
begin();
}
}
function collectTests(module) {
share/js/core/qunit-2.4.0.js view on Meta::CPAN
QUnit.equiv = equiv;
QUnit.dump = dump;
registerLoggingCallbacks(QUnit);
function scheduleBegin() {
runStarted = true;
// Add a slight delay to allow definition of more modules and tests.
if (defined.setTimeout) {
setTimeout(function () {
begin();
}, 13);
} else {
begin();
}
}
function begin() {
var i,
l,
share/js/core/qunit-2.4.0.js view on Meta::CPAN
addEvent(dropDown, "change", selectionChange);
selectionChange();
moduleFilter.id = "qunit-modulefilter";
moduleFilter.appendChild(label);
moduleFilter.appendChild(dropDown);
addEvent(moduleFilter, "submit", interceptNavigation);
addEvent(moduleFilter, "reset", function () {
// Let the reset happen, then update styles
window.setTimeout(selectionChange);
});
// Enables show/hide for the dropdown
function searchFocus() {
if (dropDown.style.display !== "none") {
return;
}
dropDown.style.display = "block";
addEvent(document$$1, "click", hideHandler);
share/js/core/qunit.js view on Meta::CPAN
* Date: 2017-07-08T15:20Z
*/
(function (global$1) {
'use strict';
global$1 = global$1 && 'default' in global$1 ? global$1['default'] : global$1;
var window = global$1.window;
var self$1 = global$1.self;
var console = global$1.console;
var setTimeout = global$1.setTimeout;
var clearTimeout = global$1.clearTimeout;
var document = window && window.document;
var navigator = window && window.navigator;
var localSessionStorage = function () {
var x = "qunit-test-string";
try {
global$1.sessionStorage.setItem(x, x);
global$1.sessionStorage.removeItem(x);
return global$1.sessionStorage;
share/js/core/qunit.js view on Meta::CPAN
};
var toString = Object.prototype.toString;
var hasOwn = Object.prototype.hasOwnProperty;
var now = Date.now || function () {
return new Date().getTime();
};
var defined = {
document: window && window.document !== undefined,
setTimeout: setTimeout !== undefined
};
// Returns a new Array with the elements that are in a but not in b
function diff(a, b) {
var i,
j,
result = a.slice();
for (i = 0; i < result.length; i++) {
for (j = 0; j < b.length; j++) {
share/js/core/qunit.js view on Meta::CPAN
* Advances the ProcessingQueue to the next item if it is ready.
* @param {Boolean} last
*/
function advance() {
var start = now();
config.depth = (config.depth || 0) + 1;
while (config.queue.length && !config.blocking) {
var elapsedTime = now() - start;
if (!defined.setTimeout || config.updateRate <= 0 || elapsedTime < config.updateRate) {
if (priorityCount > 0) {
priorityCount--;
}
config.queue.shift()();
} else {
setTimeout(advance, 13);
break;
}
}
config.depth--;
if (!config.blocking && !config.queue.length && config.depth === 0) {
done();
}
}
share/js/core/qunit.js view on Meta::CPAN
newTest.queue();
}
// Put a hold on processing and return a function that will release it.
function internalStop(test) {
test.semaphore += 1;
config.blocking = true;
// Set a recovery timeout, if so configured.
if (defined.setTimeout) {
var timeoutDuration = void 0;
if (typeof test.timeout === "number") {
timeoutDuration = test.timeout;
} else if (typeof config.testTimeout === "number") {
timeoutDuration = config.testTimeout;
}
if (typeof timeoutDuration === "number" && timeoutDuration > 0) {
clearTimeout(config.timeout);
config.timeout = setTimeout(function () {
pushFailure("Test took longer than " + timeoutDuration + "ms; test timed out.", sourceFromStacktrace(2));
internalRecover(test);
}, timeoutDuration);
}
}
var released = false;
return function resume() {
if (released) {
return;
share/js/core/qunit.js view on Meta::CPAN
// Throw an Error if start is called more often than stop
if (test.semaphore < 0) {
test.semaphore = 0;
pushFailure("Tried to restart test while already started (test's semaphore was 0 already)", sourceFromStacktrace(2));
return;
}
// Add a slight delay to allow more assertions etc.
if (defined.setTimeout) {
if (config.timeout) {
clearTimeout(config.timeout);
}
config.timeout = setTimeout(function () {
if (test.semaphore > 0) {
return;
}
if (config.timeout) {
clearTimeout(config.timeout);
}
begin();
}, 13);
} else {
begin();
}
}
function collectTests(module) {
share/js/core/qunit.js view on Meta::CPAN
QUnit.equiv = equiv;
QUnit.dump = dump;
registerLoggingCallbacks(QUnit);
function scheduleBegin() {
runStarted = true;
// Add a slight delay to allow definition of more modules and tests.
if (defined.setTimeout) {
setTimeout(function () {
begin();
}, 13);
} else {
begin();
}
}
function begin() {
var i,
l,
share/js/core/qunit.js view on Meta::CPAN
addEvent(dropDown, "change", selectionChange);
selectionChange();
moduleFilter.id = "qunit-modulefilter";
moduleFilter.appendChild(label);
moduleFilter.appendChild(dropDown);
addEvent(moduleFilter, "submit", interceptNavigation);
addEvent(moduleFilter, "reset", function () {
// Let the reset happen, then update styles
window.setTimeout(selectionChange);
});
// Enables show/hide for the dropdown
function searchFocus() {
if (dropDown.style.display !== "none") {
return;
}
dropDown.style.display = "block";
addEvent(document$$1, "click", hideHandler);
share/js/core/require-2.3.5.js view on Meta::CPAN
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors.
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requirejs.exec()/transpiler plugins that may not be strict.
/*jslint regexp: true, nomen: true, sloppy: true */
/*global window, navigator, document, importScripts, setTimeout, opera */
var requirejs, require, define;
(function (global, setTimeout) {
var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.3.5',
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
currDirRegExp = /^\.\//,
op = Object.prototype,
ostring = op.toString,
hasOwn = op.hasOwnProperty,
share/js/core/require-2.3.5.js view on Meta::CPAN
//Allow for a require config object
if (typeof require !== 'undefined' && !isFunction(require)) {
//assume it is a config object.
cfg = require;
require = undefined;
}
function newContext(contextName) {
var inCheckLoaded, Module, context, handlers,
checkLoadedTimeoutId,
config = {
//Defaults. Do not set a default for map
//config to speed up normalize(), which
//will run faster if there is no default.
waitSeconds: 7,
baseUrl: './',
paths: {},
bundles: {},
pkgs: {},
shim: {},
share/js/core/require-2.3.5.js view on Meta::CPAN
breakCycle(mod, {}, {});
});
}
//If still waiting on loads, and the waiting load is something
//other than a plugin resource, or there are still outstanding
//scripts, then just try back later.
if ((!expired || usingPathFallback) && stillLoading) {
//Something is still waiting to load. Wait for it, but only
//if a timeout is not already in effect.
if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
checkLoadedTimeoutId = setTimeout(function () {
checkLoadedTimeoutId = 0;
checkLoaded();
}, 50);
}
}
inCheckLoaded = false;
}
Module = function (map) {
this.events = getOwn(undefEvents, map.id) || {};
share/js/core/require-2.3.5.js view on Meta::CPAN
* Support require.config() to make it easier to cooperate with other
* AMD loaders on globally agreed names.
*/
req.config = function (config) {
return req(config);
};
/**
* Execute something after the current tick
* of the event loop. Override for other envs
* that have a better solution than setTimeout.
* @param {Function} fn function to execute later.
*/
req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
setTimeout(fn, 4);
} : function (fn) { fn(); };
/**
* Export require as a global, but only if it does not already exist.
*/
if (!require) {
require = req;
}
req.version = version;
share/js/core/require-2.3.5.js view on Meta::CPAN
//In a web worker, use importScripts. This is not a very
//efficient use of importScripts, importScripts will block until
//its script is downloaded and evaluated. However, if web workers
//are in play, the expectation is that a build has been done so
//that only one script needs to be loaded anyway. This may need
//to be reevaluated if other use cases become common.
// Post a task to the event loop to work around a bug in WebKit
// where the worker gets garbage-collected after calling
// importScripts(): https://webkit.org/b/153317
setTimeout(function() {}, 0);
importScripts(url);
//Account for anonymous modules
context.completeLoad(moduleName);
} catch (e) {
context.onError(makeError('importscripts',
'importScripts failed for ' +
moduleName + ' at ' + url,
e,
[moduleName]));
share/js/core/require-2.3.5.js view on Meta::CPAN
* loader plugins, not for plain JS modules.
* @param {String} text the text to execute/evaluate.
*/
req.exec = function (text) {
/*jslint evil: true */
return eval(text);
};
//Set up with config info.
req(cfg);
}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));
share/js/core/require.js view on Meta::CPAN
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors.
* Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requirejs.exec()/transpiler plugins that may not be strict.
/*jslint regexp: true, nomen: true, sloppy: true */
/*global window, navigator, document, importScripts, setTimeout, opera */
var requirejs, require, define;
(function (global, setTimeout) {
var req, s, head, baseElement, dataMain, src,
interactiveScript, currentlyAddingScript, mainScript, subPath,
version = '2.3.5',
commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg,
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
jsSuffixRegExp = /\.js$/,
currDirRegExp = /^\.\//,
op = Object.prototype,
ostring = op.toString,
hasOwn = op.hasOwnProperty,
share/js/core/require.js view on Meta::CPAN
//Allow for a require config object
if (typeof require !== 'undefined' && !isFunction(require)) {
//assume it is a config object.
cfg = require;
require = undefined;
}
function newContext(contextName) {
var inCheckLoaded, Module, context, handlers,
checkLoadedTimeoutId,
config = {
//Defaults. Do not set a default for map
//config to speed up normalize(), which
//will run faster if there is no default.
waitSeconds: 7,
baseUrl: './',
paths: {},
bundles: {},
pkgs: {},
shim: {},
share/js/core/require.js view on Meta::CPAN
breakCycle(mod, {}, {});
});
}
//If still waiting on loads, and the waiting load is something
//other than a plugin resource, or there are still outstanding
//scripts, then just try back later.
if ((!expired || usingPathFallback) && stillLoading) {
//Something is still waiting to load. Wait for it, but only
//if a timeout is not already in effect.
if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) {
checkLoadedTimeoutId = setTimeout(function () {
checkLoadedTimeoutId = 0;
checkLoaded();
}, 50);
}
}
inCheckLoaded = false;
}
Module = function (map) {
this.events = getOwn(undefEvents, map.id) || {};
share/js/core/require.js view on Meta::CPAN
* Support require.config() to make it easier to cooperate with other
* AMD loaders on globally agreed names.
*/
req.config = function (config) {
return req(config);
};
/**
* Execute something after the current tick
* of the event loop. Override for other envs
* that have a better solution than setTimeout.
* @param {Function} fn function to execute later.
*/
req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) {
setTimeout(fn, 4);
} : function (fn) { fn(); };
/**
* Export require as a global, but only if it does not already exist.
*/
if (!require) {
require = req;
}
req.version = version;
share/js/core/require.js view on Meta::CPAN
//In a web worker, use importScripts. This is not a very
//efficient use of importScripts, importScripts will block until
//its script is downloaded and evaluated. However, if web workers
//are in play, the expectation is that a build has been done so
//that only one script needs to be loaded anyway. This may need
//to be reevaluated if other use cases become common.
// Post a task to the event loop to work around a bug in WebKit
// where the worker gets garbage-collected after calling
// importScripts(): https://webkit.org/b/153317
setTimeout(function() {}, 0);
importScripts(url);
//Account for anonymous modules
context.completeLoad(moduleName);
} catch (e) {
context.onError(makeError('importscripts',
'importScripts failed for ' +
moduleName + ' at ' + url,
e,
[moduleName]));
share/js/core/require.js view on Meta::CPAN
* loader plugins, not for plain JS modules.
* @param {String} text the text to execute/evaluate.
*/
req.exec = function (text) {
/*jslint evil: true */
return eval(text);
};
//Set up with config info.
req(cfg);
}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));
share/js/mfile-www/daction-start.js view on Meta::CPAN
target
) {
var act = {
"demoActionFromMenu": function () {
// not pushable
console.log("Entering demoActionFromMenu");
$('#mainarea').html(
'<br><br>SAMPLE ACTION - SOMETHING IS HAPPENING<br><br><br>'
);
setTimeout(stack.getTarget().start, 1500);
},
"demoNoticeAction": function () {
stack.push(
target.pull('demoNotice'),
'Random number of the day ' + Math.random() + ' WOW!'
);
},
"demoBrowserAction": function () {
stack.push(
target.pull('demoBrowser'),
share/js/mfile-www/daction-start.js view on Meta::CPAN
{ prop1: 'Fandango', prop2: 'Professor!' },
{ prop1: 'Emfeebled whipple weepers', prop2: 'A godg' },
{ prop1: 'Wuppo wannabe', prop2: 'Jumbo jamb' }
]
);
},
"demoActionFromSubmenu": function () {
$('#mainarea').html(
'<br><br>SAMPLE ACTION - foo bar actioning bazness<br><br><br>'
);
setTimeout(stack.getTarget().start, 1500);
},
"saveToBrowser": function () {
console.log("Now in saveToBrowser daction");
lib.dbrowserStateOverride = true;
lib.dbrowserState.set[lib.dbrowserState.pos] = {
"prop1": $("#RWProp1").val(),
"prop2": $("#RWProp2").val()
};
stack.pop();
stack.pop();
share/js/mfile-www/tests/demo-menu.js view on Meta::CPAN
var done = assert.async(1),
mainarea,
nick = "root",
priv = "admin",
/*
currentUserObj = currentUser('obj'),
currentUserPriv = currentUser('priv'),
*/
cu;
login({"nam": "root", "pwd": "root"});
setTimeout(function () {
console.log("TEST: post-login tests");
cu = currentUser();
assert.ok(cu, "current user object after login: " + QUnit.dump.parse(cu));
assert.strictEqual(cu.obj.nick, nick, 'we are now ' + nick);
assert.strictEqual(cu.priv, priv, nick + ' has ' + priv + ' privileges');
assert.ok(true, "Starting app in fixture");
root(); // start app in QUnit fixture
stackFunc(assert, 1, 'starting app', 'dmenu', 'demoMenu');
mainareaFormFunc(assert, 'demoMenu');
assert.ok(true, '*** REACHED logged in as ' + nick);
share/js/mfile-www/tests/demo-menu.js view on Meta::CPAN
sel = $('input[name="sel"]').val();
assert.strictEqual(sel, '', "Selection form field is empty");
// press '0' key in sel, but value does not change?
$('input[name="sel"]').trigger($.Event("keydown", {keyCode: 48})); // press '0' key
sel = $('input[name="sel"]').val();
assert.strictEqual(sel, '', "Selection form field is empty even after simulating 0 keypress");
// simulating keypress doesn't work, so just set the value to "0"
$('input[name="sel"]').val('0');
// press ENTER -> submit the form
$('input[name="sel"]').trigger($.Event("keydown", {keyCode: 13}));
setTimeout(function() {
var mainarea = $('#mainarea').html();
assert.ok(mainarea, "#mainarea has non-empty html: " + mainarea);
assert.notStrictEqual(
mainarea.indexOf('SOMETHING IS HAPPENING'),
-1,
"#mainarea html contains substring \"SOMETHING IS HAPPENING\""
);
done();
});
});