mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-07 16:13:58 +08:00
Compare commits
4 Commits
e22be0b1ce
...
feature/gu
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1b216bccdf | ||
![]() |
c9c39b7e6a | ||
![]() |
b85ad00791 | ||
![]() |
05e3fdea3b |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -172,6 +172,7 @@ profiling/
|
||||
src/Orchard.Web/Modules-temp/*
|
||||
src/Backup/*
|
||||
src/packages/*
|
||||
src/node_modules
|
||||
src/UpgradeLog.*
|
||||
*.itrace.csdef
|
||||
*.build.csdef
|
||||
@@ -183,9 +184,6 @@ src/Orchard.Web/Orchard.Web.Publish.xml
|
||||
src/TestResults/*
|
||||
src/Orchard.Web/Properties/PublishProfiles
|
||||
src/Orchard.Azure/Orchard.Azure.CloudService/Staging/
|
||||
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/node_modules
|
||||
src/Orchard.Web/Modules/Orchard.Layouts/node_modules
|
||||
src/Orchard.Web/Modules/Orchard.DynamicForms/node_modules
|
||||
|
||||
#enable all /lib artifacts
|
||||
!lib/*/*.*
|
||||
|
165
src/Gulpfile.js
Normal file
165
src/Gulpfile.js
Normal file
@@ -0,0 +1,165 @@
|
||||
var glob = require("glob"),
|
||||
path = require("path-posix"),
|
||||
merge = require("merge-stream"),
|
||||
gulpif = require("gulp-if"),
|
||||
gulp = require("gulp"),
|
||||
newer = require("gulp-newer"),
|
||||
plumber = require("gulp-plumber"),
|
||||
sourcemaps = require("gulp-sourcemaps"),
|
||||
less = require("gulp-less"),
|
||||
autoprefixer = require("gulp-autoprefixer"),
|
||||
minify = require("gulp-minify-css"),
|
||||
typescript = require("gulp-typescript"),
|
||||
uglify = require("gulp-uglify"),
|
||||
rename = require("gulp-rename"),
|
||||
concat = require("gulp-concat"),
|
||||
header = require("gulp-header")
|
||||
|
||||
/*
|
||||
** GULP TASKS
|
||||
*/
|
||||
|
||||
// Incremental build (each asset group is built only if one or more inputs are newer than the output).
|
||||
gulp.task("build", function () {
|
||||
var assetGroupTasks = getAssetGroups().map(function (assetGroup) {
|
||||
var doRebuild = false;
|
||||
return createAssetGroupTask(assetGroup, doRebuild);
|
||||
});
|
||||
return merge(assetGroupTasks);
|
||||
});
|
||||
|
||||
// Full rebuild (all assets groups are built regardless of timestamps).
|
||||
gulp.task("rebuild", function () {
|
||||
var assetGroupTasks = getAssetGroups().map(function (assetGroup) {
|
||||
var doRebuild = true;
|
||||
return createAssetGroupTask(assetGroup, doRebuild);
|
||||
});
|
||||
return merge(assetGroupTasks);
|
||||
});
|
||||
|
||||
// Continuous watch (each asset group is built whenever one of its inputs changes).
|
||||
gulp.task("watch", function () {
|
||||
getAssetGroups().forEach(function (assetGroup) {
|
||||
gulp.watch(assetGroup.inputPaths, function (event) {
|
||||
console.log("Asset file '" + event.path + "' was " + event.type + ", rebuilding output '" + assetGroup.outputPath + "'.");
|
||||
var task = createAssetGroupTask(assetGroup);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
** ASSET GROUPS
|
||||
*/
|
||||
|
||||
function getAssetGroups() {
|
||||
var assetManifestPaths = glob.sync("Orchard.Web/{Core,Modules,Themes}/*/Assets.json");
|
||||
var assetGroups = [];
|
||||
assetManifestPaths.forEach(function (assetManifestPath) {
|
||||
var assetManifest = require("./" + assetManifestPath);
|
||||
assetManifest.forEach(function (assetGroup) {
|
||||
resolveAssetGroupPaths(assetGroup, assetManifestPath);
|
||||
assetGroups.push(assetGroup);
|
||||
});
|
||||
});
|
||||
return assetGroups;
|
||||
}
|
||||
|
||||
function resolveAssetGroupPaths(assetGroup, assetManifestPath) {
|
||||
assetGroup.basePath = path.dirname(assetManifestPath);
|
||||
assetGroup.inputPaths = assetGroup.inputs.map(function (inputPath) {
|
||||
return path.join(assetGroup.basePath, inputPath);
|
||||
});
|
||||
assetGroup.outputPath = path.join(assetGroup.basePath, assetGroup.output);
|
||||
assetGroup.outputDir = path.dirname(assetGroup.outputPath);
|
||||
assetGroup.outputFileName = path.basename(assetGroup.output);
|
||||
}
|
||||
|
||||
function createAssetGroupTask(assetGroup, doRebuild) {
|
||||
var outputExt = path.extname(assetGroup.output).toLowerCase();
|
||||
switch (outputExt) {
|
||||
case ".css":
|
||||
return buildCssPipeline(assetGroup, doRebuild);
|
||||
case ".js":
|
||||
return buildJsPipeline(assetGroup, doRebuild);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** PROCESSING PIPELINES
|
||||
*/
|
||||
|
||||
function buildCssPipeline(assetGroup, doRebuild) {
|
||||
assetGroup.inputPaths.forEach(function (inputPath) {
|
||||
var ext = path.extname(inputPath).toLowerCase();
|
||||
if (ext !== ".less" && ext !== ".css")
|
||||
throw "Input file '" + inputPath + "' is not of a valid type for output file '" + assetGroup.outputPath + "'.";
|
||||
});
|
||||
var doConcat = path.basename(assetGroup.outputFileName, ".css") !== "@";
|
||||
return gulp.src(assetGroup.inputPaths)
|
||||
.pipe(gulpif(!doRebuild,
|
||||
gulpif(doConcat,
|
||||
newer(assetGroup.outputPath),
|
||||
newer({
|
||||
dest: assetGroup.outputDir,
|
||||
ext: ".css"
|
||||
}))))
|
||||
.pipe(plumber())
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(gulpif("*.less", less()))
|
||||
.pipe(gulpif(doConcat, concat(assetGroup.outputFileName)))
|
||||
.pipe(autoprefixer({ browsers: ["last 2 versions"] }))
|
||||
// TODO: Start using below whenever gulp-header supports sourcemaps.
|
||||
//.pipe(header(
|
||||
// "/*\n" +
|
||||
// "** NOTE: This file is generated by Gulp compilation and should not be edited directly!\n" +
|
||||
// "** Any changes made directly to this file will be overwritten next time the Gulp compilation runs.\n" +
|
||||
// "** For more information, see the Readme.txt file in the Gulp solution folder.\n" +
|
||||
// "*/\n\n"))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(gulp.dest(assetGroup.outputDir))
|
||||
.pipe(minify())
|
||||
.pipe(rename({
|
||||
suffix: ".min"
|
||||
}))
|
||||
.pipe(gulp.dest(assetGroup.outputDir));
|
||||
}
|
||||
|
||||
function buildJsPipeline(assetGroup, doRebuild) {
|
||||
assetGroup.inputPaths.forEach(function (inputPath) {
|
||||
var ext = path.extname(inputPath).toLowerCase();
|
||||
if (ext !== ".ts" && ext !== ".js")
|
||||
throw "Input file '" + inputPath + "' is not of a valid type for output file '" + assetGroup.outputPath + "'.";
|
||||
});
|
||||
var doConcat = path.basename(assetGroup.outputFileName, ".js") !== "@";
|
||||
return gulp.src(assetGroup.inputPaths)
|
||||
.pipe(gulpif(!doRebuild,
|
||||
gulpif(doConcat,
|
||||
newer(assetGroup.outputPath),
|
||||
newer({
|
||||
dest: assetGroup.outputDir,
|
||||
ext: ".js"
|
||||
}))))
|
||||
.pipe(plumber())
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(gulpif("*.ts", typescript({
|
||||
declaration: false,
|
||||
//noImplicitAny: true,
|
||||
noEmitOnError: true,
|
||||
sortOutput: true,
|
||||
}).js))
|
||||
.pipe(gulpif(doConcat, concat(assetGroup.outputFileName)))
|
||||
// TODO: Start using below whenever gulp-header supports sourcemaps.
|
||||
//.pipe(header(
|
||||
// "/*\n" +
|
||||
// "** NOTE: This file is generated by Gulp compilation and should not be edited directly!\n" +
|
||||
// "** Any changes made directly to this file will be overwritten next time the Gulp compilation runs.\n" +
|
||||
// "** For more information, see the Readme.txt file in the Gulp solution folder.\n" +
|
||||
// "*/\n\n"))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(gulp.dest(assetGroup.outputDir))
|
||||
.pipe(uglify())
|
||||
.pipe(rename({
|
||||
suffix: ".min"
|
||||
}))
|
||||
.pipe(gulp.dest(assetGroup.outputDir));
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"inputs": [ "Assets/Less/*.less" ],
|
||||
"output": "Styles/@.css"
|
||||
},
|
||||
{
|
||||
"inputs": [ "Assets/TypeScript/*.ts" ],
|
||||
"output": "Scripts/@.js"
|
||||
},
|
||||
{
|
||||
"inputs": [ "Assets/JavaScript/Lib/*.js" ],
|
||||
"output": "Scripts/Lib/@.js"
|
||||
}
|
||||
]
|
@@ -0,0 +1,213 @@
|
||||
/**
|
||||
* @preserve console-shim 1.0.2
|
||||
* https://github.com/kayahr/console-shim
|
||||
* Copyright (C) 2011 Klaus Reimer <k@ailis.de>
|
||||
* Licensed under the MIT license
|
||||
* (See http://www.opensource.org/licenses/mit-license)
|
||||
*/
|
||||
|
||||
|
||||
(function(){
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Returns a function which calls the specified function in the specified
|
||||
* scope.
|
||||
*
|
||||
* @param {Function} func
|
||||
* The function to call.
|
||||
* @param {Object} scope
|
||||
* The scope to call the function in.
|
||||
* @param {...*} args
|
||||
* Additional arguments to pass to the bound function.
|
||||
* @returns {function(...[*]): undefined}
|
||||
* The bound function.
|
||||
*/
|
||||
var bind = function(func, scope, args)
|
||||
{
|
||||
var fixedArgs = Array.prototype.slice.call(arguments, 2);
|
||||
return function()
|
||||
{
|
||||
var args = fixedArgs.concat(Array.prototype.slice.call(arguments, 0));
|
||||
(/** @type {Function} */ func).apply(scope, args);
|
||||
};
|
||||
};
|
||||
|
||||
// Create console if not present
|
||||
if (!window["console"]) window.console = /** @type {Console} */ ({});
|
||||
var console = (/** @type {Object} */ window.console);
|
||||
|
||||
// Implement console log if needed
|
||||
if (!console["log"])
|
||||
{
|
||||
// Use log4javascript if present
|
||||
if (window["log4javascript"])
|
||||
{
|
||||
var log = log4javascript.getDefaultLogger();
|
||||
console.log = bind(log.info, log);
|
||||
console.debug = bind(log.debug, log);
|
||||
console.info = bind(log.info, log);
|
||||
console.warn = bind(log.warn, log);
|
||||
console.error = bind(log.error, log);
|
||||
}
|
||||
|
||||
// Use empty dummy implementation to ignore logging
|
||||
else
|
||||
{
|
||||
console.log = (/** @param {...*} args */ function(args) {});
|
||||
}
|
||||
}
|
||||
|
||||
// Implement other log levels to console.log if missing
|
||||
if (!console["debug"]) console.debug = console.log;
|
||||
if (!console["info"]) console.info = console.log;
|
||||
if (!console["warn"]) console.warn = console.log;
|
||||
if (!console["error"]) console.error = console.log;
|
||||
|
||||
// Wrap the log methods in IE (<=9) because their argument handling is wrong
|
||||
// This wrapping is also done if the __consoleShimTest__ symbol is set. This
|
||||
// is needed for unit testing.
|
||||
if (window["__consoleShimTest__"] != null ||
|
||||
eval("/*@cc_on @_jscript_version <= 9@*/"))
|
||||
{
|
||||
/**
|
||||
* Wraps the call to a real IE logging method. Modifies the arguments so
|
||||
* parameters which are not represented by a placeholder are properly
|
||||
* printed with a space character as separator.
|
||||
*
|
||||
* @param {...*} args
|
||||
* The function arguments. First argument is the log function
|
||||
* to call, the other arguments are the log arguments.
|
||||
*/
|
||||
var wrap = function(args)
|
||||
{
|
||||
var i, max, match, log;
|
||||
|
||||
// Convert argument list to real array
|
||||
args = Array.prototype.slice.call(arguments, 0);
|
||||
|
||||
// First argument is the log method to call
|
||||
log = args.shift();
|
||||
|
||||
max = args.length;
|
||||
if (max > 1 && window["__consoleShimTest__"] !== false)
|
||||
{
|
||||
// When first parameter is not a string then add a format string to
|
||||
// the argument list so we are able to modify it in the next stop
|
||||
if (typeof(args[0]) != "string")
|
||||
{
|
||||
args.unshift("%o");
|
||||
max += 1;
|
||||
}
|
||||
|
||||
// For each additional parameter which has no placeholder in the
|
||||
// format string we add another placeholder separated with a
|
||||
// space character.
|
||||
match = args[0].match(/%[a-z]/g);
|
||||
for (i = match ? match.length + 1 : 1; i < max; i += 1)
|
||||
{
|
||||
args[0] += " %o";
|
||||
}
|
||||
}
|
||||
Function.apply.call(log, console, args);
|
||||
};
|
||||
|
||||
// Wrap the native log methods of IE to fix argument output problems
|
||||
console.log = bind(wrap, window, console.log);
|
||||
console.debug = bind(wrap, window, console.debug);
|
||||
console.info = bind(wrap, window, console.info);
|
||||
console.warn = bind(wrap, window, console.warn);
|
||||
console.error = bind(wrap, window, console.error);
|
||||
}
|
||||
|
||||
// Implement console.assert if missing
|
||||
if (!console["assert"])
|
||||
{
|
||||
console["assert"] = function()
|
||||
{
|
||||
var args = Array.prototype.slice.call(arguments, 0);
|
||||
var expr = args.shift();
|
||||
if (!expr)
|
||||
{
|
||||
args[0] = "Assertion failed: " + args[0];
|
||||
console.error.apply(console, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Linking console.dir and console.dirxml to the console.log method if
|
||||
// missing. Hopefully the browser already logs objects and DOM nodes as a
|
||||
// tree.
|
||||
if (!console["dir"]) console["dir"] = console.log;
|
||||
if (!console["dirxml"]) console["dirxml"] = console.log;
|
||||
|
||||
// Linking console.exception to console.error. This is not the same but
|
||||
// at least some error message is displayed.
|
||||
if (!console["exception"]) console["exception"] = console.error;
|
||||
|
||||
// Implement console.time and console.timeEnd if one of them is missing
|
||||
if (!console["time"] || !console["timeEnd"])
|
||||
{
|
||||
var timers = {};
|
||||
console["time"] = function(id)
|
||||
{
|
||||
timers[id] = new Date().getTime();
|
||||
};
|
||||
console["timeEnd"] = function(id)
|
||||
{
|
||||
var start = timers[id];
|
||||
if (start)
|
||||
{
|
||||
console.log(id + ": " + (new Date().getTime() - start) + "ms");
|
||||
delete timers[id];
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Implement console.table if missing
|
||||
if (!console["table"])
|
||||
{
|
||||
console["table"] = function(data, columns)
|
||||
{
|
||||
var i, iMax, row, j, jMax, k;
|
||||
|
||||
// Do nothing if data has wrong type or no data was specified
|
||||
if (!data || !(data instanceof Array) || !data.length) return;
|
||||
|
||||
// Auto-calculate columns array if not set
|
||||
if (!columns || !(columns instanceof Array))
|
||||
{
|
||||
columns = [];
|
||||
for (k in data[0])
|
||||
{
|
||||
if (!data[0].hasOwnProperty(k)) continue;
|
||||
columns.push(k);
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0, iMax = data.length; i < iMax; i += 1)
|
||||
{
|
||||
row = [];
|
||||
for (j = 0, jMax = columns.length; j < jMax; j += 1)
|
||||
{
|
||||
row.push(data[i][columns[j]]);
|
||||
}
|
||||
|
||||
Function.apply.call(console.log, console, row);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Dummy implementations of other console features to prevent error messages
|
||||
// in browsers not supporting it.
|
||||
if (!console["clear"]) console["clear"] = function() {};
|
||||
if (!console["trace"]) console["trace"] = function() {};
|
||||
if (!console["group"]) console["group"] = function() {};
|
||||
if (!console["groupCollapsed"]) console["groupCollapsed"] = function() {};
|
||||
if (!console["groupEnd"]) console["groupEnd"] = function() {};
|
||||
if (!console["timeStamp"]) console["timeStamp"] = function() {};
|
||||
if (!console["profile"]) console["profile"] = function() {};
|
||||
if (!console["profileEnd"]) console["profileEnd"] = function() {};
|
||||
if (!console["count"]) console["count"] = function() {};
|
||||
|
||||
})();
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1,619 @@
|
||||
/*!
|
||||
* jQuery blockUI plugin
|
||||
* Version 2.66.0-2013.10.09
|
||||
* Requires jQuery v1.7 or later
|
||||
*
|
||||
* Examples at: http://malsup.com/jquery/block/
|
||||
* Copyright (c) 2007-2013 M. Alsup
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
|
||||
*/
|
||||
|
||||
;(function() {
|
||||
/*jshint eqeqeq:false curly:false latedef:false */
|
||||
"use strict";
|
||||
|
||||
function setup($) {
|
||||
$.fn._fadeIn = $.fn.fadeIn;
|
||||
|
||||
var noOp = $.noop || function() {};
|
||||
|
||||
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
|
||||
// confusing userAgent strings on Vista)
|
||||
var msie = /MSIE/.test(navigator.userAgent);
|
||||
var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
|
||||
var mode = document.documentMode || 0;
|
||||
var setExpr = $.isFunction( document.createElement('div').style.setExpression );
|
||||
|
||||
// global $ methods for blocking/unblocking the entire page
|
||||
$.blockUI = function(opts) { install(window, opts); };
|
||||
$.unblockUI = function(opts) { remove(window, opts); };
|
||||
|
||||
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
|
||||
$.growlUI = function(title, message, timeout, onClose) {
|
||||
var $m = $('<div class="growlUI"></div>');
|
||||
if (title) $m.append('<h1>'+title+'</h1>');
|
||||
if (message) $m.append('<h2>'+message+'</h2>');
|
||||
if (timeout === undefined) timeout = 3000;
|
||||
|
||||
// Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications
|
||||
var callBlock = function(opts) {
|
||||
opts = opts || {};
|
||||
|
||||
$.blockUI({
|
||||
message: $m,
|
||||
fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700,
|
||||
fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
|
||||
timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
|
||||
centerY: false,
|
||||
showOverlay: false,
|
||||
onUnblock: onClose,
|
||||
css: $.blockUI.defaults.growlCSS
|
||||
});
|
||||
};
|
||||
|
||||
callBlock();
|
||||
var nonmousedOpacity = $m.css('opacity');
|
||||
$m.mouseover(function() {
|
||||
callBlock({
|
||||
fadeIn: 0,
|
||||
timeout: 30000
|
||||
});
|
||||
|
||||
var displayBlock = $('.blockMsg');
|
||||
displayBlock.stop(); // cancel fadeout if it has started
|
||||
displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency
|
||||
}).mouseout(function() {
|
||||
$('.blockMsg').fadeOut(1000);
|
||||
});
|
||||
// End konapun additions
|
||||
};
|
||||
|
||||
// plugin method for blocking element content
|
||||
$.fn.block = function(opts) {
|
||||
if ( this[0] === window ) {
|
||||
$.blockUI( opts );
|
||||
return this;
|
||||
}
|
||||
var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
|
||||
this.each(function() {
|
||||
var $el = $(this);
|
||||
if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
|
||||
return;
|
||||
$el.unblock({ fadeOut: 0 });
|
||||
});
|
||||
|
||||
return this.each(function() {
|
||||
if ($.css(this,'position') == 'static') {
|
||||
this.style.position = 'relative';
|
||||
$(this).data('blockUI.static', true);
|
||||
}
|
||||
this.style.zoom = 1; // force 'hasLayout' in ie
|
||||
install(this, opts);
|
||||
});
|
||||
};
|
||||
|
||||
// plugin method for unblocking element content
|
||||
$.fn.unblock = function(opts) {
|
||||
if ( this[0] === window ) {
|
||||
$.unblockUI( opts );
|
||||
return this;
|
||||
}
|
||||
return this.each(function() {
|
||||
remove(this, opts);
|
||||
});
|
||||
};
|
||||
|
||||
$.blockUI.version = 2.66; // 2nd generation blocking at no extra cost!
|
||||
|
||||
// override these in your code to change the default behavior and style
|
||||
$.blockUI.defaults = {
|
||||
// message displayed when blocking (use null for no message)
|
||||
message: '<h1>Please wait...</h1>',
|
||||
|
||||
title: null, // title string; only used when theme == true
|
||||
draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
|
||||
|
||||
theme: false, // set to true to use with jQuery UI themes
|
||||
|
||||
// styles for the message when blocking; if you wish to disable
|
||||
// these and use an external stylesheet then do this in your code:
|
||||
// $.blockUI.defaults.css = {};
|
||||
css: {
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
width: '30%',
|
||||
top: '40%',
|
||||
left: '35%',
|
||||
textAlign: 'center',
|
||||
color: '#000',
|
||||
border: '3px solid #aaa',
|
||||
backgroundColor:'#fff',
|
||||
cursor: 'wait'
|
||||
},
|
||||
|
||||
// minimal style set used when themes are used
|
||||
themedCSS: {
|
||||
width: '30%',
|
||||
top: '40%',
|
||||
left: '35%'
|
||||
},
|
||||
|
||||
// styles for the overlay
|
||||
overlayCSS: {
|
||||
backgroundColor: '#000',
|
||||
opacity: 0.6,
|
||||
cursor: 'wait'
|
||||
},
|
||||
|
||||
// style to replace wait cursor before unblocking to correct issue
|
||||
// of lingering wait cursor
|
||||
cursorReset: 'default',
|
||||
|
||||
// styles applied when using $.growlUI
|
||||
growlCSS: {
|
||||
width: '350px',
|
||||
top: '10px',
|
||||
left: '',
|
||||
right: '10px',
|
||||
border: 'none',
|
||||
padding: '5px',
|
||||
opacity: 0.6,
|
||||
cursor: 'default',
|
||||
color: '#fff',
|
||||
backgroundColor: '#000',
|
||||
'-webkit-border-radius':'10px',
|
||||
'-moz-border-radius': '10px',
|
||||
'border-radius': '10px'
|
||||
},
|
||||
|
||||
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
|
||||
// (hat tip to Jorge H. N. de Vasconcelos)
|
||||
/*jshint scripturl:true */
|
||||
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
|
||||
|
||||
// force usage of iframe in non-IE browsers (handy for blocking applets)
|
||||
forceIframe: false,
|
||||
|
||||
// z-index for the blocking overlay
|
||||
baseZ: 1000,
|
||||
|
||||
// set these to true to have the message automatically centered
|
||||
centerX: true, // <-- only effects element blocking (page block controlled via css above)
|
||||
centerY: true,
|
||||
|
||||
// allow body element to be stetched in ie6; this makes blocking look better
|
||||
// on "short" pages. disable if you wish to prevent changes to the body height
|
||||
allowBodyStretch: true,
|
||||
|
||||
// enable if you want key and mouse events to be disabled for content that is blocked
|
||||
bindEvents: true,
|
||||
|
||||
// be default blockUI will supress tab navigation from leaving blocking content
|
||||
// (if bindEvents is true)
|
||||
constrainTabKey: true,
|
||||
|
||||
// fadeIn time in millis; set to 0 to disable fadeIn on block
|
||||
fadeIn: 200,
|
||||
|
||||
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
|
||||
fadeOut: 400,
|
||||
|
||||
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
|
||||
timeout: 0,
|
||||
|
||||
// disable if you don't want to show the overlay
|
||||
showOverlay: true,
|
||||
|
||||
// if true, focus will be placed in the first available input field when
|
||||
// page blocking
|
||||
focusInput: true,
|
||||
|
||||
// elements that can receive focus
|
||||
focusableElements: ':input:enabled:visible',
|
||||
|
||||
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
|
||||
// no longer needed in 2012
|
||||
// applyPlatformOpacityRules: true,
|
||||
|
||||
// callback method invoked when fadeIn has completed and blocking message is visible
|
||||
onBlock: null,
|
||||
|
||||
// callback method invoked when unblocking has completed; the callback is
|
||||
// passed the element that has been unblocked (which is the window object for page
|
||||
// blocks) and the options that were passed to the unblock call:
|
||||
// onUnblock(element, options)
|
||||
onUnblock: null,
|
||||
|
||||
// callback method invoked when the overlay area is clicked.
|
||||
// setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used.
|
||||
onOverlayClick: null,
|
||||
|
||||
// don't ask; if you really must know: http://groups.google.com/requiredUploads/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
|
||||
quirksmodeOffsetHack: 4,
|
||||
|
||||
// class name of the message block
|
||||
blockMsgClass: 'blockMsg',
|
||||
|
||||
// if it is already blocked, then ignore it (don't unblock and reblock)
|
||||
ignoreIfBlocked: false
|
||||
};
|
||||
|
||||
// private data and functions follow...
|
||||
|
||||
var pageBlock = null;
|
||||
var pageBlockEls = [];
|
||||
|
||||
function install(el, opts) {
|
||||
var css, themedCSS;
|
||||
var full = (el == window);
|
||||
var msg = (opts && opts.message !== undefined ? opts.message : undefined);
|
||||
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
||||
|
||||
if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
|
||||
return;
|
||||
|
||||
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
|
||||
css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
|
||||
if (opts.onOverlayClick)
|
||||
opts.overlayCSS.cursor = 'pointer';
|
||||
|
||||
themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
|
||||
msg = msg === undefined ? opts.message : msg;
|
||||
|
||||
// remove the current block (if there is one)
|
||||
if (full && pageBlock)
|
||||
remove(window, {fadeOut:0});
|
||||
|
||||
// if an existing element is being used as the blocking content then we capture
|
||||
// its current place in the DOM (and current display style) so we can restore
|
||||
// it when we unblock
|
||||
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
|
||||
var node = msg.jquery ? msg[0] : msg;
|
||||
var data = {};
|
||||
$(el).data('blockUI.history', data);
|
||||
data.el = node;
|
||||
data.parent = node.parentNode;
|
||||
data.display = node.style.display;
|
||||
data.position = node.style.position;
|
||||
if (data.parent)
|
||||
data.parent.removeChild(node);
|
||||
}
|
||||
|
||||
$(el).data('blockUI.onUnblock', opts.onUnblock);
|
||||
var z = opts.baseZ;
|
||||
|
||||
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
|
||||
// layer1 is the iframe layer which is used to supress bleed through of underlying content
|
||||
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
|
||||
// layer3 is the message content that is displayed while blocking
|
||||
var lyr1, lyr2, lyr3, s;
|
||||
if (msie || opts.forceIframe)
|
||||
lyr1 = $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');
|
||||
else
|
||||
lyr1 = $('<div class="blockUI" style="display:none"></div>');
|
||||
|
||||
if (opts.theme)
|
||||
lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>');
|
||||
else
|
||||
lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
|
||||
|
||||
if (opts.theme && full) {
|
||||
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';
|
||||
if ( opts.title ) {
|
||||
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>';
|
||||
}
|
||||
s += '<div class="ui-widget-content ui-dialog-content"></div>';
|
||||
s += '</div>';
|
||||
}
|
||||
else if (opts.theme) {
|
||||
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';
|
||||
if ( opts.title ) {
|
||||
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || ' ')+'</div>';
|
||||
}
|
||||
s += '<div class="ui-widget-content ui-dialog-content"></div>';
|
||||
s += '</div>';
|
||||
}
|
||||
else if (full) {
|
||||
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
|
||||
}
|
||||
else {
|
||||
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
|
||||
}
|
||||
lyr3 = $(s);
|
||||
|
||||
// if we have a message, style it
|
||||
if (msg) {
|
||||
if (opts.theme) {
|
||||
lyr3.css(themedCSS);
|
||||
lyr3.addClass('ui-widget-content');
|
||||
}
|
||||
else
|
||||
lyr3.css(css);
|
||||
}
|
||||
|
||||
// style the overlay
|
||||
if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/)
|
||||
lyr2.css(opts.overlayCSS);
|
||||
lyr2.css('position', full ? 'fixed' : 'absolute');
|
||||
|
||||
// make iframe layer transparent in IE
|
||||
if (msie || opts.forceIframe)
|
||||
lyr1.css('opacity',0.0);
|
||||
|
||||
//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
|
||||
var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
|
||||
$.each(layers, function() {
|
||||
this.appendTo($par);
|
||||
});
|
||||
|
||||
if (opts.theme && opts.draggable && $.fn.draggable) {
|
||||
lyr3.draggable({
|
||||
handle: '.ui-dialog-titlebar',
|
||||
cancel: 'li'
|
||||
});
|
||||
}
|
||||
|
||||
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
|
||||
var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
|
||||
if (ie6 || expr) {
|
||||
// give body 100% height
|
||||
if (full && opts.allowBodyStretch && $.support.boxModel)
|
||||
$('html,body').css('height','100%');
|
||||
|
||||
// fix ie6 issue when blocked element has a border width
|
||||
if ((ie6 || !$.support.boxModel) && !full) {
|
||||
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
|
||||
var fixT = t ? '(0 - '+t+')' : 0;
|
||||
var fixL = l ? '(0 - '+l+')' : 0;
|
||||
}
|
||||
|
||||
// simulate fixed position
|
||||
$.each(layers, function(i,o) {
|
||||
var s = o[0].style;
|
||||
s.position = 'absolute';
|
||||
if (i < 2) {
|
||||
if (full)
|
||||
s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');
|
||||
else
|
||||
s.setExpression('height','this.parentNode.offsetHeight + "px"');
|
||||
if (full)
|
||||
s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
|
||||
else
|
||||
s.setExpression('width','this.parentNode.offsetWidth + "px"');
|
||||
if (fixL) s.setExpression('left', fixL);
|
||||
if (fixT) s.setExpression('top', fixT);
|
||||
}
|
||||
else if (opts.centerY) {
|
||||
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
|
||||
s.marginTop = 0;
|
||||
}
|
||||
else if (!opts.centerY && full) {
|
||||
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
|
||||
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
|
||||
s.setExpression('top',expression);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// show the message
|
||||
if (msg) {
|
||||
if (opts.theme)
|
||||
lyr3.find('.ui-widget-content').append(msg);
|
||||
else
|
||||
lyr3.append(msg);
|
||||
if (msg.jquery || msg.nodeType)
|
||||
$(msg).show();
|
||||
}
|
||||
|
||||
if ((msie || opts.forceIframe) && opts.showOverlay)
|
||||
lyr1.show(); // opacity is zero
|
||||
if (opts.fadeIn) {
|
||||
var cb = opts.onBlock ? opts.onBlock : noOp;
|
||||
var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
|
||||
var cb2 = msg ? cb : noOp;
|
||||
if (opts.showOverlay)
|
||||
lyr2._fadeIn(opts.fadeIn, cb1);
|
||||
if (msg)
|
||||
lyr3._fadeIn(opts.fadeIn, cb2);
|
||||
}
|
||||
else {
|
||||
if (opts.showOverlay)
|
||||
lyr2.show();
|
||||
if (msg)
|
||||
lyr3.show();
|
||||
if (opts.onBlock)
|
||||
opts.onBlock();
|
||||
}
|
||||
|
||||
// bind key and mouse events
|
||||
bind(1, el, opts);
|
||||
|
||||
if (full) {
|
||||
pageBlock = lyr3[0];
|
||||
pageBlockEls = $(opts.focusableElements,pageBlock);
|
||||
if (opts.focusInput)
|
||||
setTimeout(focus, 20);
|
||||
}
|
||||
else
|
||||
center(lyr3[0], opts.centerX, opts.centerY);
|
||||
|
||||
if (opts.timeout) {
|
||||
// auto-unblock
|
||||
var to = setTimeout(function() {
|
||||
if (full)
|
||||
$.unblockUI(opts);
|
||||
else
|
||||
$(el).unblock(opts);
|
||||
}, opts.timeout);
|
||||
$(el).data('blockUI.timeout', to);
|
||||
}
|
||||
}
|
||||
|
||||
// remove the block
|
||||
function remove(el, opts) {
|
||||
var count;
|
||||
var full = (el == window);
|
||||
var $el = $(el);
|
||||
var data = $el.data('blockUI.history');
|
||||
var to = $el.data('blockUI.timeout');
|
||||
if (to) {
|
||||
clearTimeout(to);
|
||||
$el.removeData('blockUI.timeout');
|
||||
}
|
||||
opts = $.extend({}, $.blockUI.defaults, opts || {});
|
||||
bind(0, el, opts); // unbind events
|
||||
|
||||
if (opts.onUnblock === null) {
|
||||
opts.onUnblock = $el.data('blockUI.onUnblock');
|
||||
$el.removeData('blockUI.onUnblock');
|
||||
}
|
||||
|
||||
var els;
|
||||
if (full) // crazy selector to handle odd field errors in ie6/7
|
||||
els = $('body').children().filter('.blockUI').add('body > .blockUI');
|
||||
else
|
||||
els = $el.find('>.blockUI');
|
||||
|
||||
// fix cursor issue
|
||||
if ( opts.cursorReset ) {
|
||||
if ( els.length > 1 )
|
||||
els[1].style.cursor = opts.cursorReset;
|
||||
if ( els.length > 2 )
|
||||
els[2].style.cursor = opts.cursorReset;
|
||||
}
|
||||
|
||||
if (full)
|
||||
pageBlock = pageBlockEls = null;
|
||||
|
||||
if (opts.fadeOut) {
|
||||
count = els.length;
|
||||
els.stop().fadeOut(opts.fadeOut, function() {
|
||||
if ( --count === 0)
|
||||
reset(els,data,opts,el);
|
||||
});
|
||||
}
|
||||
else
|
||||
reset(els, data, opts, el);
|
||||
}
|
||||
|
||||
// move blocking element back into the DOM where it started
|
||||
function reset(els,data,opts,el) {
|
||||
var $el = $(el);
|
||||
if ( $el.data('blockUI.isBlocked') )
|
||||
return;
|
||||
|
||||
els.each(function(i,o) {
|
||||
// remove via DOM calls so we don't lose event handlers
|
||||
if (this.parentNode)
|
||||
this.parentNode.removeChild(this);
|
||||
});
|
||||
|
||||
if (data && data.el) {
|
||||
data.el.style.display = data.display;
|
||||
data.el.style.position = data.position;
|
||||
if (data.parent)
|
||||
data.parent.appendChild(data.el);
|
||||
$el.removeData('blockUI.history');
|
||||
}
|
||||
|
||||
if ($el.data('blockUI.static')) {
|
||||
$el.css('position', 'static'); // #22
|
||||
}
|
||||
|
||||
if (typeof opts.onUnblock == 'function')
|
||||
opts.onUnblock(el,opts);
|
||||
|
||||
// fix issue in Safari 6 where block artifacts remain until reflow
|
||||
var body = $(document.body), w = body.width(), cssW = body[0].style.width;
|
||||
body.width(w-1).width(w);
|
||||
body[0].style.width = cssW;
|
||||
}
|
||||
|
||||
// bind/unbind the handler
|
||||
function bind(b, el, opts) {
|
||||
var full = el == window, $el = $(el);
|
||||
|
||||
// don't bother unbinding if there is nothing to unbind
|
||||
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
|
||||
return;
|
||||
|
||||
$el.data('blockUI.isBlocked', b);
|
||||
|
||||
// don't bind events when overlay is not in use or if bindEvents is false
|
||||
if (!full || !opts.bindEvents || (b && !opts.showOverlay))
|
||||
return;
|
||||
|
||||
// bind anchors and inputs for mouse and key events
|
||||
var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
|
||||
if (b)
|
||||
$(document).bind(events, opts, handler);
|
||||
else
|
||||
$(document).unbind(events, handler);
|
||||
|
||||
// former impl...
|
||||
// var $e = $('a,:input');
|
||||
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
|
||||
}
|
||||
|
||||
// event handler to suppress keyboard/mouse events when blocking
|
||||
function handler(e) {
|
||||
// allow tab navigation (conditionally)
|
||||
if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
|
||||
if (pageBlock && e.data.constrainTabKey) {
|
||||
var els = pageBlockEls;
|
||||
var fwd = !e.shiftKey && e.target === els[els.length-1];
|
||||
var back = e.shiftKey && e.target === els[0];
|
||||
if (fwd || back) {
|
||||
setTimeout(function(){focus(back);},10);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
var opts = e.data;
|
||||
var target = $(e.target);
|
||||
if (target.hasClass('blockOverlay') && opts.onOverlayClick)
|
||||
opts.onOverlayClick(e);
|
||||
|
||||
// allow events within the message content
|
||||
if (target.parents('div.' + opts.blockMsgClass).length > 0)
|
||||
return true;
|
||||
|
||||
// allow events for content that is not being blocked
|
||||
return target.parents().children().filter('div.blockUI').length === 0;
|
||||
}
|
||||
|
||||
function focus(back) {
|
||||
if (!pageBlockEls)
|
||||
return;
|
||||
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
|
||||
if (e)
|
||||
e.focus();
|
||||
}
|
||||
|
||||
function center(el, x, y) {
|
||||
var p = el.parentNode, s = el.style;
|
||||
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
|
||||
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
|
||||
if (x) s.left = l > 0 ? (l+'px') : '0';
|
||||
if (y) s.top = t > 0 ? (t+'px') : '0';
|
||||
}
|
||||
|
||||
function sz(el, p) {
|
||||
return parseInt($.css(el,p),10)||0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*global define:true */
|
||||
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
|
||||
define(['jquery'], setup);
|
||||
} else {
|
||||
setup(jQuery);
|
||||
}
|
||||
|
||||
})();
|
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* jQuery File Upload Processing Plugin 1.3.0
|
||||
* https://github.com/blueimp/jQuery-File-Upload
|
||||
*
|
||||
* Copyright 2012, Sebastian Tschan
|
||||
* https://blueimp.net
|
||||
*
|
||||
* Licensed under the MIT license:
|
||||
* http://www.opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/* jshint nomen:false */
|
||||
/* global define, window */
|
||||
|
||||
(function (factory) {
|
||||
'use strict';
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// Register as an anonymous AMD module:
|
||||
define([
|
||||
'jquery',
|
||||
'./jquery.fileupload'
|
||||
], factory);
|
||||
} else {
|
||||
// Browser globals:
|
||||
factory(
|
||||
window.jQuery
|
||||
);
|
||||
}
|
||||
}(function ($) {
|
||||
'use strict';
|
||||
|
||||
var originalAdd = $.blueimp.fileupload.prototype.options.add;
|
||||
|
||||
// The File Upload Processing plugin extends the fileupload widget
|
||||
// with file processing functionality:
|
||||
$.widget('blueimp.fileupload', $.blueimp.fileupload, {
|
||||
|
||||
options: {
|
||||
// The list of processing actions:
|
||||
processQueue: [
|
||||
/*
|
||||
{
|
||||
action: 'log',
|
||||
type: 'debug'
|
||||
}
|
||||
*/
|
||||
],
|
||||
add: function (e, data) {
|
||||
var $this = $(this);
|
||||
data.process(function () {
|
||||
return $this.fileupload('process', data);
|
||||
});
|
||||
originalAdd.call(this, e, data);
|
||||
}
|
||||
},
|
||||
|
||||
processActions: {
|
||||
/*
|
||||
log: function (data, options) {
|
||||
console[options.type](
|
||||
'Processing "' + data.files[data.index].name + '"'
|
||||
);
|
||||
}
|
||||
*/
|
||||
},
|
||||
|
||||
_processFile: function (data, originalData) {
|
||||
var that = this,
|
||||
dfd = $.Deferred().resolveWith(that, [data]),
|
||||
chain = dfd.promise();
|
||||
this._trigger('process', null, data);
|
||||
$.each(data.processQueue, function (i, settings) {
|
||||
var func = function (data) {
|
||||
if (originalData.errorThrown) {
|
||||
return $.Deferred()
|
||||
.rejectWith(that, [originalData]).promise();
|
||||
}
|
||||
return that.processActions[settings.action].call(
|
||||
that,
|
||||
data,
|
||||
settings
|
||||
);
|
||||
};
|
||||
chain = chain.pipe(func, settings.always && func);
|
||||
});
|
||||
chain
|
||||
.done(function () {
|
||||
that._trigger('processdone', null, data);
|
||||
that._trigger('processalways', null, data);
|
||||
})
|
||||
.fail(function () {
|
||||
that._trigger('processfail', null, data);
|
||||
that._trigger('processalways', null, data);
|
||||
});
|
||||
return chain;
|
||||
},
|
||||
|
||||
// Replaces the settings of each processQueue item that
|
||||
// are strings starting with an "@", using the remaining
|
||||
// substring as key for the option map,
|
||||
// e.g. "@autoUpload" is replaced with options.autoUpload:
|
||||
_transformProcessQueue: function (options) {
|
||||
var processQueue = [];
|
||||
$.each(options.processQueue, function () {
|
||||
var settings = {},
|
||||
action = this.action,
|
||||
prefix = this.prefix === true ? action : this.prefix;
|
||||
$.each(this, function (key, value) {
|
||||
if ($.type(value) === 'string' &&
|
||||
value.charAt(0) === '@') {
|
||||
settings[key] = options[
|
||||
value.slice(1) || (prefix ? prefix +
|
||||
key.charAt(0).toUpperCase() + key.slice(1) : key)
|
||||
];
|
||||
} else {
|
||||
settings[key] = value;
|
||||
}
|
||||
|
||||
});
|
||||
processQueue.push(settings);
|
||||
});
|
||||
options.processQueue = processQueue;
|
||||
},
|
||||
|
||||
// Returns the number of files currently in the processsing queue:
|
||||
processing: function () {
|
||||
return this._processing;
|
||||
},
|
||||
|
||||
// Processes the files given as files property of the data parameter,
|
||||
// returns a Promise object that allows to bind callbacks:
|
||||
process: function (data) {
|
||||
var that = this,
|
||||
options = $.extend({}, this.options, data);
|
||||
if (options.processQueue && options.processQueue.length) {
|
||||
this._transformProcessQueue(options);
|
||||
if (this._processing === 0) {
|
||||
this._trigger('processstart');
|
||||
}
|
||||
$.each(data.files, function (index) {
|
||||
var opts = index ? $.extend({}, options) : options,
|
||||
func = function () {
|
||||
if (data.errorThrown) {
|
||||
return $.Deferred()
|
||||
.rejectWith(that, [data]).promise();
|
||||
}
|
||||
return that._processFile(opts, data);
|
||||
};
|
||||
opts.index = index;
|
||||
that._processing += 1;
|
||||
that._processingQueue = that._processingQueue.pipe(func, func)
|
||||
.always(function () {
|
||||
that._processing -= 1;
|
||||
if (that._processing === 0) {
|
||||
that._trigger('processstop');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
return this._processingQueue;
|
||||
},
|
||||
|
||||
_create: function () {
|
||||
this._super();
|
||||
this._processing = 0;
|
||||
this._processingQueue = $.Deferred().resolveWith(this)
|
||||
.promise();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}));
|
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* jQuery File Upload Validation Plugin 1.1.2
|
||||
* https://github.com/blueimp/jQuery-File-Upload
|
||||
*
|
||||
* Copyright 2013, Sebastian Tschan
|
||||
* https://blueimp.net
|
||||
*
|
||||
* Licensed under the MIT license:
|
||||
* http://www.opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/* global define, window */
|
||||
|
||||
(function (factory) {
|
||||
'use strict';
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// Register as an anonymous AMD module:
|
||||
define([
|
||||
'jquery',
|
||||
'./jquery.fileupload-process'
|
||||
], factory);
|
||||
} else {
|
||||
// Browser globals:
|
||||
factory(
|
||||
window.jQuery
|
||||
);
|
||||
}
|
||||
}(function ($) {
|
||||
'use strict';
|
||||
|
||||
// Append to the default processQueue:
|
||||
$.blueimp.fileupload.prototype.options.processQueue.push(
|
||||
{
|
||||
action: 'validate',
|
||||
// Always trigger this action,
|
||||
// even if the previous action was rejected:
|
||||
always: true,
|
||||
// Options taken from the global options map:
|
||||
acceptFileTypes: '@',
|
||||
maxFileSize: '@',
|
||||
minFileSize: '@',
|
||||
maxNumberOfFiles: '@',
|
||||
disabled: '@disableValidation'
|
||||
}
|
||||
);
|
||||
|
||||
// The File Upload Validation plugin extends the fileupload widget
|
||||
// with file validation functionality:
|
||||
$.widget('blueimp.fileupload', $.blueimp.fileupload, {
|
||||
|
||||
options: {
|
||||
/*
|
||||
// The regular expression for allowed file types, matches
|
||||
// against either file type or file name:
|
||||
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
|
||||
// The maximum allowed file size in bytes:
|
||||
maxFileSize: 10000000, // 10 MB
|
||||
// The minimum allowed file size in bytes:
|
||||
minFileSize: undefined, // No minimal file size
|
||||
// The limit of files to be uploaded:
|
||||
maxNumberOfFiles: 10,
|
||||
*/
|
||||
|
||||
// Function returning the current number of files,
|
||||
// has to be overriden for maxNumberOfFiles validation:
|
||||
getNumberOfFiles: $.noop,
|
||||
|
||||
// Error and info messages:
|
||||
messages: {
|
||||
maxNumberOfFiles: 'Maximum number of files exceeded',
|
||||
acceptFileTypes: 'File type not allowed',
|
||||
maxFileSize: 'File is too large',
|
||||
minFileSize: 'File is too small'
|
||||
}
|
||||
},
|
||||
|
||||
processActions: {
|
||||
|
||||
validate: function (data, options) {
|
||||
if (options.disabled) {
|
||||
return data;
|
||||
}
|
||||
var dfd = $.Deferred(),
|
||||
settings = this.options,
|
||||
file = data.files[data.index],
|
||||
fileSize;
|
||||
if (options.minFileSize || options.maxFileSize) {
|
||||
fileSize = file.size;
|
||||
}
|
||||
if ($.type(options.maxNumberOfFiles) === 'number' &&
|
||||
(settings.getNumberOfFiles() || 0) + data.files.length >
|
||||
options.maxNumberOfFiles) {
|
||||
file.error = settings.i18n('maxNumberOfFiles');
|
||||
} else if (options.acceptFileTypes &&
|
||||
!(options.acceptFileTypes.test(file.type) ||
|
||||
options.acceptFileTypes.test(file.name))) {
|
||||
file.error = settings.i18n('acceptFileTypes');
|
||||
} else if (fileSize > options.maxFileSize) {
|
||||
file.error = settings.i18n('maxFileSize');
|
||||
} else if ($.type(fileSize) === 'number' &&
|
||||
fileSize < options.minFileSize) {
|
||||
file.error = settings.i18n('minFileSize');
|
||||
} else {
|
||||
delete file.error;
|
||||
}
|
||||
if (file.error || data.files.error) {
|
||||
data.files.error = true;
|
||||
dfd.rejectWith(this, [data]);
|
||||
} else {
|
||||
dfd.resolveWith(this, [data]);
|
||||
}
|
||||
return dfd.promise();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}));
|
1426
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Assets/JavaScript/Lib/jquery.fileupload.js
vendored
Normal file
1426
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Assets/JavaScript/Lib/jquery.fileupload.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,53 @@
|
||||
/*! URI.js v1.12.1 http://medialize.github.com/URI.js/ */
|
||||
/* build contains: URI.js */
|
||||
(function(p,r){"object"===typeof exports?module.exports=r(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],r):p.URI=r(p.punycode,p.IPv6,p.SecondLevelDomains,p)})(this,function(p,r,v,w){function e(a,b){if(!(this instanceof e))return new e(a,b);void 0===a&&(a="undefined"!==typeof location?location.href+"":"");this.href(a);return void 0!==b?this.absoluteTo(b):this}function s(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,
|
||||
"\\$1")}function y(a){return void 0===a?"Undefined":String(Object.prototype.toString.call(a)).slice(8,-1)}function l(a){return"Array"===y(a)}function x(a,b){var c,e;if(l(b)){c=0;for(e=b.length;c<e;c++)if(!x(a,b[c]))return!1;return!0}var f=y(b);c=0;for(e=a.length;c<e;c++)if("RegExp"===f){if("string"===typeof a[c]&&a[c].match(b))return!0}else if(a[c]===b)return!0;return!1}function A(a,b){if(!l(a)||!l(b)||a.length!==b.length)return!1;a.sort();b.sort();for(var c=0,e=a.length;c<e;c++)if(a[c]!==b[c])return!1;
|
||||
return!0}function B(a){return escape(a)}function z(a){return encodeURIComponent(a).replace(/[!'()*]/g,B).replace(/\*/g,"%2A")}var C=w&&w.URI;e.version="1.12.1";var d=e.prototype,t=Object.prototype.hasOwnProperty;e._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:e.duplicateQueryParameters,escapeQuerySpace:e.escapeQuerySpace}};e.duplicateQueryParameters=!1;e.escapeQuerySpace=!0;e.protocol_expression=
|
||||
/^[a-z][a-z0-9.+-]*$/i;e.idn_expression=/[^a-z0-9\.-]/i;e.punycode_expression=/(xn--)/i;e.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;e.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
|
||||
e.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;e.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/};e.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};e.invalid_hostname_characters=
|
||||
/[^a-zA-Z0-9\.-]/;e.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src"};e.getDomAttribute=function(a){if(a&&a.nodeName){var b=a.nodeName.toLowerCase();return"input"===b&&"image"!==a.type?void 0:e.domAttributes[b]}};e.encode=z;e.decode=decodeURIComponent;e.iso8859=function(){e.encode=escape;e.decode=unescape};e.unicode=function(){e.encode=z;e.decode=decodeURIComponent};e.characters=
|
||||
{pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}};e.encodeQuery=
|
||||
function(a,b){var c=e.encode(a+"");void 0===b&&(b=e.escapeQuerySpace);return b?c.replace(/%20/g,"+"):c};e.decodeQuery=function(a,b){a+="";void 0===b&&(b=e.escapeQuerySpace);try{return e.decode(b?a.replace(/\+/g,"%20"):a)}catch(c){return a}};e.recodePath=function(a){a=(a+"").split("/");for(var b=0,c=a.length;b<c;b++)a[b]=e.encodePathSegment(e.decode(a[b]));return a.join("/")};e.decodePath=function(a){a=(a+"").split("/");for(var b=0,c=a.length;b<c;b++)a[b]=e.decodePathSegment(a[b]);return a.join("/")};
|
||||
var q={encode:"encode",decode:"decode"},m,u=function(a,b){return function(c){return e[b](c+"").replace(e.characters[a][b].expression,function(c){return e.characters[a][b].map[c]})}};for(m in q)e[m+"PathSegment"]=u("pathname",q[m]);e.encodeReserved=u("reserved","encode");e.parse=function(a,b){var c;b||(b={});c=a.indexOf("#");-1<c&&(b.fragment=a.substring(c+1)||null,a=a.substring(0,c));c=a.indexOf("?");-1<c&&(b.query=a.substring(c+1)||null,a=a.substring(0,c));"//"===a.substring(0,2)?(b.protocol=null,
|
||||
a=a.substring(2),a=e.parseAuthority(a,b)):(c=a.indexOf(":"),-1<c&&(b.protocol=a.substring(0,c)||null,b.protocol&&!b.protocol.match(e.protocol_expression)?b.protocol=void 0:"file"===b.protocol?a=a.substring(c+3):"//"===a.substring(c+1,c+3)?(a=a.substring(c+3),a=e.parseAuthority(a,b)):(a=a.substring(c+1),b.urn=!0)));b.path=a;return b};e.parseHost=function(a,b){var c=a.indexOf("/"),e;-1===c&&(c=a.length);"["===a.charAt(0)?(e=a.indexOf("]"),b.hostname=a.substring(1,e)||null,b.port=a.substring(e+2,c)||
|
||||
null):a.indexOf(":")!==a.lastIndexOf(":")?(b.hostname=a.substring(0,c)||null,b.port=null):(e=a.substring(0,c).split(":"),b.hostname=e[0]||null,b.port=e[1]||null);b.hostname&&"/"!==a.substring(c).charAt(0)&&(c++,a="/"+a);return a.substring(c)||"/"};e.parseAuthority=function(a,b){a=e.parseUserinfo(a,b);return e.parseHost(a,b)};e.parseUserinfo=function(a,b){var c=a.indexOf("/"),g=-1<c?a.lastIndexOf("@",c):a.indexOf("@");-1<g&&(-1===c||g<c)?(c=a.substring(0,g).split(":"),b.username=c[0]?e.decode(c[0]):
|
||||
null,c.shift(),b.password=c[0]?e.decode(c.join(":")):null,a=a.substring(g+1)):(b.username=null,b.password=null);return a};e.parseQuery=function(a,b){if(!a)return{};a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a)return{};for(var c={},g=a.split("&"),f=g.length,d,h,n=0;n<f;n++)d=g[n].split("="),h=e.decodeQuery(d.shift(),b),d=d.length?e.decodeQuery(d.join("="),b):null,c[h]?("string"===typeof c[h]&&(c[h]=[c[h]]),c[h].push(d)):c[h]=d;return c};e.build=function(a){var b="";a.protocol&&(b+=a.protocol+
|
||||
":");a.urn||!b&&!a.hostname||(b+="//");b+=e.buildAuthority(a)||"";"string"===typeof a.path&&("/"!==a.path.charAt(0)&&"string"===typeof a.hostname&&(b+="/"),b+=a.path);"string"===typeof a.query&&a.query&&(b+="?"+a.query);"string"===typeof a.fragment&&a.fragment&&(b+="#"+a.fragment);return b};e.buildHost=function(a){var b="";if(a.hostname)e.ip6_expression.test(a.hostname)?b=a.port?b+("["+a.hostname+"]:"+a.port):b+a.hostname:(b+=a.hostname,a.port&&(b+=":"+a.port));else return"";return b};e.buildAuthority=
|
||||
function(a){return e.buildUserinfo(a)+e.buildHost(a)};e.buildUserinfo=function(a){var b="";a.username&&(b+=e.encode(a.username),a.password&&(b+=":"+e.encode(a.password)),b+="@");return b};e.buildQuery=function(a,b,c){var g="",f,d,h,n;for(d in a)if(t.call(a,d)&&d)if(l(a[d]))for(f={},h=0,n=a[d].length;h<n;h++)void 0!==a[d][h]&&void 0===f[a[d][h]+""]&&(g+="&"+e.buildQueryParameter(d,a[d][h],c),!0!==b&&(f[a[d][h]+""]=!0));else void 0!==a[d]&&(g+="&"+e.buildQueryParameter(d,a[d],c));return g.substring(1)};
|
||||
e.buildQueryParameter=function(a,b,c){return e.encodeQuery(a,c)+(null!==b?"="+e.encodeQuery(b,c):"")};e.addQuery=function(a,b,c){if("object"===typeof b)for(var g in b)t.call(b,g)&&e.addQuery(a,g,b[g]);else if("string"===typeof b)void 0===a[b]?a[b]=c:("string"===typeof a[b]&&(a[b]=[a[b]]),l(c)||(c=[c]),a[b]=a[b].concat(c));else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");};e.removeQuery=function(a,b,c){var g;if(l(b))for(c=0,g=b.length;c<g;c++)a[b[c]]=void 0;
|
||||
else if("object"===typeof b)for(g in b)t.call(b,g)&&e.removeQuery(a,g,b[g]);else if("string"===typeof b)if(void 0!==c)if(a[b]===c)a[b]=void 0;else{if(l(a[b])){g=a[b];var f={},d,h;if(l(c))for(d=0,h=c.length;d<h;d++)f[c[d]]=!0;else f[c]=!0;d=0;for(h=g.length;d<h;d++)void 0!==f[g[d]]&&(g.splice(d,1),h--,d--);a[b]=g}}else a[b]=void 0;else throw new TypeError("URI.addQuery() accepts an object, string as the first parameter");};e.hasQuery=function(a,b,c,g){if("object"===typeof b){for(var d in b)if(t.call(b,
|
||||
d)&&!e.hasQuery(a,d,b[d]))return!1;return!0}if("string"!==typeof b)throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(y(c)){case "Undefined":return b in a;case "Boolean":return a=Boolean(l(a[b])?a[b].length:a[b]),c===a;case "Function":return!!c(a[b],b,a);case "Array":return l(a[b])?(g?x:A)(a[b],c):!1;case "RegExp":return l(a[b])?g?x(a[b],c):!1:Boolean(a[b]&&a[b].match(c));case "Number":c=String(c);case "String":return l(a[b])?g?x(a[b],c):!1:a[b]===c;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");
|
||||
}};e.commonPath=function(a,b){var c=Math.min(a.length,b.length),e;for(e=0;e<c;e++)if(a.charAt(e)!==b.charAt(e)){e--;break}if(1>e)return a.charAt(0)===b.charAt(0)&&"/"===a.charAt(0)?"/":"";if("/"!==a.charAt(e)||"/"!==b.charAt(e))e=a.substring(0,e).lastIndexOf("/");return a.substring(0,e+1)};e.withinString=function(a,b,c){c||(c={});var g=c.start||e.findUri.start,d=c.end||e.findUri.end,k=c.trim||e.findUri.trim,h=/[a-z0-9-]=["']?$/i;for(g.lastIndex=0;;){var n=g.exec(a);if(!n)break;n=n.index;if(c.ignoreHtml){var l=
|
||||
a.slice(Math.max(n-3,0),n);if(l&&h.test(l))continue}var l=n+a.slice(n).search(d),m=a.slice(n,l).replace(k,"");c.ignore&&c.ignore.test(m)||(l=n+m.length,m=b(m,n,l,a),a=a.slice(0,n)+m+a.slice(l),g.lastIndex=n+m.length)}g.lastIndex=0;return a};e.ensureValidHostname=function(a){if(a.match(e.invalid_hostname_characters)){if(!p)throw new TypeError("Hostname '"+a+"' contains characters other than [A-Z0-9.-] and Punycode.js is not available");if(p.toASCII(a).match(e.invalid_hostname_characters))throw new TypeError("Hostname '"+
|
||||
a+"' contains characters other than [A-Z0-9.-]");}};e.noConflict=function(a){if(a)return a={URI:this.noConflict()},URITemplate&&"function"==typeof URITemplate.noConflict&&(a.URITemplate=URITemplate.noConflict()),r&&"function"==typeof r.noConflict&&(a.IPv6=r.noConflict()),SecondLevelDomains&&"function"==typeof SecondLevelDomains.noConflict&&(a.SecondLevelDomains=SecondLevelDomains.noConflict()),a;w.URI===this&&(w.URI=C);return this};d.build=function(a){if(!0===a)this._deferred_build=!0;else if(void 0===
|
||||
a||this._deferred_build)this._string=e.build(this._parts),this._deferred_build=!1;return this};d.clone=function(){return new e(this)};d.valueOf=d.toString=function(){return this.build(!1)._string};q={protocol:"protocol",username:"username",password:"password",hostname:"hostname",port:"port"};u=function(a){return function(b,c){if(void 0===b)return this._parts[a]||"";this._parts[a]=b||null;this.build(!c);return this}};for(m in q)d[m]=u(q[m]);q={query:"?",fragment:"#"};u=function(a,b){return function(c,
|
||||
e){if(void 0===c)return this._parts[a]||"";null!==c&&(c+="",c.charAt(0)===b&&(c=c.substring(1)));this._parts[a]=c;this.build(!e);return this}};for(m in q)d[m]=u(m,q[m]);q={search:["?","query"],hash:["#","fragment"]};u=function(a,b){return function(c,e){var d=this[a](c,e);return"string"===typeof d&&d.length?b+d:d}};for(m in q)d[m]=u(q[m][1],q[m][0]);d.pathname=function(a,b){if(void 0===a||!0===a){var c=this._parts.path||(this._parts.hostname?"/":"");return a?e.decodePath(c):c}this._parts.path=a?e.recodePath(a):
|
||||
"/";this.build(!b);return this};d.path=d.pathname;d.href=function(a,b){var c;if(void 0===a)return this.toString();this._string="";this._parts=e._parts();var g=a instanceof e,d="object"===typeof a&&(a.hostname||a.path||a.pathname);a.nodeName&&(d=e.getDomAttribute(a),a=a[d]||"",d=!1);!g&&d&&void 0!==a.pathname&&(a=a.toString());if("string"===typeof a)this._parts=e.parse(a,this._parts);else if(g||d)for(c in g=g?a._parts:a,g)t.call(this._parts,c)&&(this._parts[c]=g[c]);else throw new TypeError("invalid input");
|
||||
this.build(!b);return this};d.is=function(a){var b=!1,c=!1,d=!1,f=!1,k=!1,h=!1,l=!1,m=!this._parts.urn;this._parts.hostname&&(m=!1,c=e.ip4_expression.test(this._parts.hostname),d=e.ip6_expression.test(this._parts.hostname),b=c||d,k=(f=!b)&&v&&v.has(this._parts.hostname),h=f&&e.idn_expression.test(this._parts.hostname),l=f&&e.punycode_expression.test(this._parts.hostname));switch(a.toLowerCase()){case "relative":return m;case "absolute":return!m;case "domain":case "name":return f;case "sld":return k;
|
||||
case "ip":return b;case "ip4":case "ipv4":case "inet4":return c;case "ip6":case "ipv6":case "inet6":return d;case "idn":return h;case "url":return!this._parts.urn;case "urn":return!!this._parts.urn;case "punycode":return l}return null};var D=d.protocol,E=d.port,F=d.hostname;d.protocol=function(a,b){if(void 0!==a&&a&&(a=a.replace(/:(\/\/)?$/,""),!a.match(e.protocol_expression)))throw new TypeError("Protocol '"+a+"' contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return D.call(this,
|
||||
a,b)};d.scheme=d.protocol;d.port=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a&&(0===a&&(a=null),a&&(a+="",":"===a.charAt(0)&&(a=a.substring(1)),a.match(/[^0-9]/))))throw new TypeError("Port '"+a+"' contains characters other than [0-9]");return E.call(this,a,b)};d.hostname=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a){var c={};e.parseHost(a,c);a=c.hostname}return F.call(this,a,b)};d.host=function(a,b){if(this._parts.urn)return void 0===a?"":this;
|
||||
if(void 0===a)return this._parts.hostname?e.buildHost(this._parts):"";e.parseHost(a,this._parts);this.build(!b);return this};d.authority=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?e.buildAuthority(this._parts):"";e.parseAuthority(a,this._parts);this.build(!b);return this};d.userinfo=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.username)return"";var c=e.buildUserinfo(this._parts);return c.substring(0,
|
||||
c.length-1)}"@"!==a[a.length-1]&&(a+="@");e.parseUserinfo(a,this._parts);this.build(!b);return this};d.resource=function(a,b){var c;if(void 0===a)return this.path()+this.search()+this.hash();c=e.parse(a);this._parts.path=c.path;this._parts.query=c.query;this._parts.fragment=c.fragment;this.build(!b);return this};d.subdomain=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.length-this.domain().length-
|
||||
1;return this._parts.hostname.substring(0,c)||""}c=this._parts.hostname.length-this.domain().length;c=this._parts.hostname.substring(0,c);c=RegExp("^"+s(c));a&&"."!==a.charAt(a.length-1)&&(a+=".");a&&e.ensureValidHostname(a);this._parts.hostname=this._parts.hostname.replace(c,a);this.build(!b);return this};d.domain=function(a,b){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(b=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.match(/\./g);
|
||||
if(c&&2>c.length)return this._parts.hostname;c=this._parts.hostname.length-this.tld(b).length-1;c=this._parts.hostname.lastIndexOf(".",c-1)+1;return this._parts.hostname.substring(c)||""}if(!a)throw new TypeError("cannot set domain empty");e.ensureValidHostname(a);!this._parts.hostname||this.is("IP")?this._parts.hostname=a:(c=RegExp(s(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a));this.build(!b);return this};d.tld=function(a,b){if(this._parts.urn)return void 0===a?"":
|
||||
this;"boolean"===typeof a&&(b=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.lastIndexOf("."),c=this._parts.hostname.substring(c+1);return!0!==b&&v&&v.list[c.toLowerCase()]?v.get(this._parts.hostname)||c:c}if(a)if(a.match(/[^a-zA-Z0-9-]/))if(v&&v.is(a))c=RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a);else throw new TypeError("TLD '"+a+"' contains characters other than [A-Z0-9]");else{if(!this._parts.hostname||
|
||||
this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");c=RegExp(s(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(c,a)}else throw new TypeError("cannot set TLD empty");this.build(!b);return this};d.directory=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var c=this._parts.path.length-this.filename().length-1,c=this._parts.path.substring(0,
|
||||
c)||(this._parts.hostname?"/":"");return a?e.decodePath(c):c}c=this._parts.path.length-this.filename().length;c=this._parts.path.substring(0,c);c=RegExp("^"+s(c));this.is("relative")||(a||(a="/"),"/"!==a.charAt(0)&&(a="/"+a));a&&"/"!==a.charAt(a.length-1)&&(a+="/");a=e.recodePath(a);this._parts.path=this._parts.path.replace(c,a);this.build(!b);return this};d.filename=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";
|
||||
var c=this._parts.path.lastIndexOf("/"),c=this._parts.path.substring(c+1);return a?e.decodePathSegment(c):c}c=!1;"/"===a.charAt(0)&&(a=a.substring(1));a.match(/\.?\//)&&(c=!0);var d=RegExp(s(this.filename())+"$");a=e.recodePath(a);this._parts.path=this._parts.path.replace(d,a);c?this.normalizePath(b):this.build(!b);return this};d.suffix=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var c=this.filename(),d=c.lastIndexOf(".");
|
||||
if(-1===d)return"";c=c.substring(d+1);c=/^[a-z0-9%]+$/i.test(c)?c:"";return a?e.decodePathSegment(c):c}"."===a.charAt(0)&&(a=a.substring(1));if(c=this.suffix())d=a?RegExp(s(c)+"$"):RegExp(s("."+c)+"$");else{if(!a)return this;this._parts.path+="."+e.recodePath(a)}d&&(a=e.recodePath(a),this._parts.path=this._parts.path.replace(d,a));this.build(!b);return this};d.segment=function(a,b,c){var e=this._parts.urn?":":"/",d=this.path(),k="/"===d.substring(0,1),d=d.split(e);void 0!==a&&"number"!==typeof a&&
|
||||
(c=b,b=a,a=void 0);if(void 0!==a&&"number"!==typeof a)throw Error("Bad segment '"+a+"', must be 0-based integer");k&&d.shift();0>a&&(a=Math.max(d.length+a,0));if(void 0===b)return void 0===a?d:d[a];if(null===a||void 0===d[a])if(l(b)){d=[];a=0;for(var h=b.length;a<h;a++)if(b[a].length||d.length&&d[d.length-1].length)d.length&&!d[d.length-1].length&&d.pop(),d.push(b[a])}else{if(b||"string"===typeof b)""===d[d.length-1]?d[d.length-1]=b:d.push(b)}else b||"string"===typeof b&&b.length?d[a]=b:d.splice(a,
|
||||
1);k&&d.unshift("");return this.path(d.join(e),c)};d.segmentCoded=function(a,b,c){var d,f;"number"!==typeof a&&(c=b,b=a,a=void 0);if(void 0===b){a=this.segment(a,b,c);if(l(a))for(d=0,f=a.length;d<f;d++)a[d]=e.decode(a[d]);else a=void 0!==a?e.decode(a):void 0;return a}if(l(b))for(d=0,f=b.length;d<f;d++)b[d]=e.decode(b[d]);else b="string"===typeof b?e.encode(b):b;return this.segment(a,b,c)};var G=d.query;d.query=function(a,b){if(!0===a)return e.parseQuery(this._parts.query,this._parts.escapeQuerySpace);
|
||||
if("function"===typeof a){var c=e.parseQuery(this._parts.query,this._parts.escapeQuerySpace),d=a.call(this,c);this._parts.query=e.buildQuery(d||c,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!b);return this}return void 0!==a&&"string"!==typeof a?(this._parts.query=e.buildQuery(a,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!b),this):G.call(this,a,b)};d.setQuery=function(a,b,c){var d=e.parseQuery(this._parts.query,this._parts.escapeQuerySpace);
|
||||
if("object"===typeof a)for(var f in a)t.call(a,f)&&(d[f]=a[f]);else if("string"===typeof a)d[a]=void 0!==b?b:null;else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");this._parts.query=e.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};d.addQuery=function(a,b,c){var d=e.parseQuery(this._parts.query,this._parts.escapeQuerySpace);e.addQuery(d,a,void 0===b?null:b);this._parts.query=
|
||||
e.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};d.removeQuery=function(a,b,c){var d=e.parseQuery(this._parts.query,this._parts.escapeQuerySpace);e.removeQuery(d,a,b);this._parts.query=e.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};d.hasQuery=function(a,b,c){var d=e.parseQuery(this._parts.query,this._parts.escapeQuerySpace);
|
||||
return e.hasQuery(d,a,b,c)};d.setSearch=d.setQuery;d.addSearch=d.addQuery;d.removeSearch=d.removeQuery;d.hasSearch=d.hasQuery;d.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};d.normalizeProtocol=function(a){"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),
|
||||
this.build(!a));return this};d.normalizeHostname=function(a){this._parts.hostname&&(this.is("IDN")&&p?this._parts.hostname=p.toASCII(this._parts.hostname):this.is("IPv6")&&r&&(this._parts.hostname=r.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!a));return this};d.normalizePort=function(a){"string"===typeof this._parts.protocol&&this._parts.port===e.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!a));return this};d.normalizePath=
|
||||
function(a){if(this._parts.urn||!this._parts.path||"/"===this._parts.path)return this;var b,c=this._parts.path,d="",f,k;"/"!==c.charAt(0)&&(b=!0,c="/"+c);c=c.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");b&&(d=c.substring(1).match(/^(\.\.\/)+/)||"")&&(d=d[0]);for(;;){f=c.indexOf("/..");if(-1===f)break;else if(0===f){c=c.substring(3);continue}k=c.substring(0,f).lastIndexOf("/");-1===k&&(k=f);c=c.substring(0,k)+c.substring(f+3)}b&&this.is("relative")&&(c=d+c.substring(1));c=e.recodePath(c);
|
||||
this._parts.path=c;this.build(!a);return this};d.normalizePathname=d.normalizePath;d.normalizeQuery=function(a){"string"===typeof this._parts.query&&(this._parts.query.length?this.query(e.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!a));return this};d.normalizeFragment=function(a){this._parts.fragment||(this._parts.fragment=null,this.build(!a));return this};d.normalizeSearch=d.normalizeQuery;d.normalizeHash=d.normalizeFragment;d.iso8859=function(){var a=
|
||||
e.encode,b=e.decode;e.encode=escape;e.decode=decodeURIComponent;this.normalize();e.encode=a;e.decode=b;return this};d.unicode=function(){var a=e.encode,b=e.decode;e.encode=z;e.decode=unescape;this.normalize();e.encode=a;e.decode=b;return this};d.readable=function(){var a=this.clone();a.username("").password("").normalize();var b="";a._parts.protocol&&(b+=a._parts.protocol+"://");a._parts.hostname&&(a.is("punycode")&&p?(b+=p.toUnicode(a._parts.hostname),a._parts.port&&(b+=":"+a._parts.port)):b+=a.host());
|
||||
a._parts.hostname&&a._parts.path&&"/"!==a._parts.path.charAt(0)&&(b+="/");b+=a.path(!0);if(a._parts.query){for(var c="",d=0,f=a._parts.query.split("&"),k=f.length;d<k;d++){var h=(f[d]||"").split("="),c=c+("&"+e.decodeQuery(h[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"));void 0!==h[1]&&(c+="="+e.decodeQuery(h[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}b+="?"+c.substring(1)}return b+=e.decodeQuery(a.hash(),!0)};d.absoluteTo=function(a){var b=this.clone(),c=["protocol","username",
|
||||
"password","hostname","port"],d,f;if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a instanceof e||(a=new e(a));b._parts.protocol||(b._parts.protocol=a._parts.protocol);if(this._parts.hostname)return b;for(d=0;f=c[d];d++)b._parts[f]=a._parts[f];b._parts.path?".."===b._parts.path.substring(-2)&&(b._parts.path+="/"):(b._parts.path=a._parts.path,b._parts.query||(b._parts.query=a._parts.query));"/"!==b.path().charAt(0)&&(a=a.directory(),b._parts.path=(a?
|
||||
a+"/":"")+b._parts.path,b.normalizePath());b.build();return b};d.relativeTo=function(a){var b=this.clone().normalize(),c,d,f,k;if(b._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a=(new e(a)).normalize();c=b._parts;d=a._parts;f=b.path();k=a.path();if("/"!==f.charAt(0))throw Error("URI is already relative");if("/"!==k.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");c.protocol===d.protocol&&(c.protocol=null);if(c.username===
|
||||
d.username&&c.password===d.password&&null===c.protocol&&null===c.username&&null===c.password&&c.hostname===d.hostname&&c.port===d.port)c.hostname=null,c.port=null;else return b.build();if(f===k)return c.path="",b.build();a=e.commonPath(b.path(),a.path());if(!a)return b.build();d=d.path.substring(a.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");c.path=d+c.path.substring(a.length);return b.build()};d.equals=function(a){var b=this.clone();a=new e(a);var c={},d={},f={},k;b.normalize();a.normalize();
|
||||
if(b.toString()===a.toString())return!0;c=b.query();d=a.query();b.query("");a.query("");if(b.toString()!==a.toString()||c.length!==d.length)return!1;c=e.parseQuery(c,this._parts.escapeQuerySpace);d=e.parseQuery(d,this._parts.escapeQuerySpace);for(k in c)if(t.call(c,k)){if(!l(c[k])){if(c[k]!==d[k])return!1}else if(!A(c[k],d[k]))return!1;f[k]=!0}for(k in d)if(t.call(d,k)&&!f[k])return!1;return!0};d.duplicateQueryParameters=function(a){this._parts.duplicateQueryParameters=!!a;return this};d.escapeQuerySpace=
|
||||
function(a){this._parts.escapeQuerySpace=!!a;return this};return e});
|
@@ -1,4 +1,4 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.Admin.Common {
|
||||
$(() => {
|
@@ -0,0 +1 @@
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
@@ -1,5 +1,6 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/knockout.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/knockout.d.ts" />
|
||||
|
||||
declare var initWamsEncodingPresets: any[];
|
||||
declare var initDefaultWamsEncodingPresetIndex: number;
|
||||
@@ -95,4 +96,4 @@ module Orchard.Azure.MediaServices.Admin.Settings {
|
||||
active: localStorage && localStorage.getItem ? localStorage.getItem("selectedCloudMediaSettingsTab") : null
|
||||
}).show();
|
||||
});
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.AutoRefresh {
|
||||
// Periodically refresh elements.
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.AssetEdit.Video {
|
||||
$(function () {
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.AssetEdit {
|
||||
$(function() {
|
@@ -1,6 +1,6 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="typings/moment.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/moment.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.CloudVideoEdit {
|
||||
var requiredUploads: JQuery;
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.CloudVideoEdit {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.CloudVideoEdit {
|
||||
function hasCorsSupport() {
|
@@ -1,4 +1,4 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
|
||||
($=> {
|
||||
var hasFocus = (videoId: number)=> {
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/underscore.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/underscore.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.VideoPlayer.Injectors {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/underscore.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/underscore.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.VideoPlayer.Injectors {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/underscore.d.ts" />
|
||||
/// <reference path="typings/uri.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/underscore.d.ts" />
|
||||
/// <reference path="Typings/uri.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.VideoPlayer.Injectors {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/underscore.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/underscore.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.VideoPlayer.Injectors {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/underscore.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/underscore.d.ts" />
|
||||
|
||||
module Orchard.Azure.MediaServices.VideoPlayer {
|
||||
|
@@ -156,7 +156,7 @@
|
||||
<Compile Include="Helpers\FileSizeFormatProvider.cs" />
|
||||
<Compile Include="Infrastructure\Assets\AssetDriver.cs" />
|
||||
<Compile Include="Helpers\NamespaceHelper.cs" />
|
||||
<Content Include="gulpfile.js" />
|
||||
<Content Include="Assets.json" />
|
||||
<Content Include="Images\Loader1.GIF" />
|
||||
<Content Include="Images\Thumbnail-Placeholder2.png" />
|
||||
<Content Include="Images\Thumbnail-Placeholder1.png" />
|
||||
@@ -165,136 +165,126 @@
|
||||
</Content>
|
||||
<Content Include="Readme.txt" />
|
||||
<Content Include="Scripts\cloudmedia-admin-common.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-common.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-job.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-job.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-settings.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-settings.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-autorefresh.js" />
|
||||
<Content Include="Scripts\cloudmedia-autorefresh.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset-video.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset-video.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-direct.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-direct.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-proxied.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-proxied.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart.js" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-metadata-cloudvideopart.js" />
|
||||
<Content Include="Scripts\cloudmedia-metadata-cloudvideopart.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-data.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-data.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-alt.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-alt.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-dash.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-dash.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-html5.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-html5.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-smp.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-smp.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors.min.js" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-main.js" />
|
||||
<Content Include="Scripts\lib\console-shim.min.js" />
|
||||
<Content Include="Scripts\lib\console-shim.js" />
|
||||
<Content Include="Scripts\lib\dash.all.js" />
|
||||
<Content Include="Scripts\lib\dash.min.js" />
|
||||
<Content Include="Scripts\lib\jquery.blockui.js" />
|
||||
<Content Include="Scripts\cloudmedia-admin-job.ts" />
|
||||
<Content Include="Scripts\cloudmedia-admin-common.ts" />
|
||||
<Content Include="Scripts\cloudmedia-autorefresh.ts" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset-video.ts" />
|
||||
<Content Include="Scripts\cloudmedia-edit-asset.ts" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-direct.ts" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart.ts" />
|
||||
<Content Include="Scripts\cloudmedia-edit-cloudvideopart-proxied.ts" />
|
||||
<Content Include="Scripts\cloudmedia-metadata-cloudvideopart.ts" />
|
||||
<Content Include="Scripts\lib\jquery.fileupload-process.js" />
|
||||
<Content Include="Scripts\lib\jquery.fileupload-validate.js" />
|
||||
<Content Include="Scripts\lib\jquery.fileupload.js" />
|
||||
<Content Include="Scripts\lib\jstree.js" />
|
||||
<Content Include="Scripts\lib\jstree.min.js" />
|
||||
<Content Include="Scripts\lib\moment.js" />
|
||||
<Content Include="Scripts\lib\moment.min.js" />
|
||||
<Content Include="Scripts\lib\swfobject.js" />
|
||||
<Content Include="Scripts\lib\uri.js" />
|
||||
<Content Include="Styles\cloudmedia-admin-asset.css">
|
||||
<DependentUpon>cloudmedia-admin-asset.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-asset.min.css">
|
||||
<DependentUpon>cloudmedia-admin-asset.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Scripts\lib\underscore.js" />
|
||||
<Content Include="Scripts\lib\underscore.min.js" />
|
||||
<Content Include="Styles\cloudmedia-admin-job.css">
|
||||
<DependentUpon>cloudmedia-admin-job.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-job.min.css">
|
||||
<DependentUpon>cloudmedia-admin-job.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-selecttask.css">
|
||||
<DependentUpon>cloudmedia-admin-selecttask.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-selecttask.min.css">
|
||||
<DependentUpon>cloudmedia-admin-selecttask.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-settings.css">
|
||||
<DependentUpon>cloudmedia-admin-settings.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-admin-settings.min.css">
|
||||
<DependentUpon>cloudmedia-admin-settings.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-assets.css">
|
||||
<DependentUpon>cloudmedia-edit-assets.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-assets.min.css">
|
||||
<DependentUpon>cloudmedia-edit-assets.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-cloudvideopart.css">
|
||||
<DependentUpon>cloudmedia-edit-cloudvideopart.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-cloudvideopart.min.css">
|
||||
<DependentUpon>cloudmedia-edit-cloudvideopart.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-jobs.css">
|
||||
<DependentUpon>cloudmedia-edit-jobs.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-edit-jobs.min.css">
|
||||
<DependentUpon>cloudmedia-edit-jobs.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-progress.css">
|
||||
<DependentUpon>cloudmedia-progress.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-progress.min.css">
|
||||
<DependentUpon>cloudmedia-progress.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-tabs.css">
|
||||
<DependentUpon>cloudmedia-tabs.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-tabs.min.css">
|
||||
<DependentUpon>cloudmedia-tabs.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-videoplayer.css">
|
||||
<DependentUpon>cloudmedia-videoplayer.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\cloudmedia-videoplayer.min.css">
|
||||
<DependentUpon>cloudmedia-videoplayer.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-main.min.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\console-shim.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\dash.all.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\jquery.blockui.js" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-admin-job.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-admin-common.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-autorefresh.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-edit-asset-video.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-edit-asset.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-edit-cloudvideopart-direct.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-edit-cloudvideopart.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-edit-cloudvideopart-proxied.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-metadata-cloudvideopart.ts" />
|
||||
<Content Include="Assets\JavaScript\Lib\jquery.fileupload-process.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\jquery.fileupload-validate.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\jquery.fileupload.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\jstree.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\moment.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\swfobject.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\uri.js" />
|
||||
<Content Include="Scripts\Lib\console-shim.js" />
|
||||
<Content Include="Scripts\Lib\console-shim.min.js" />
|
||||
<Content Include="Scripts\Lib\dash.all.js" />
|
||||
<Content Include="Scripts\Lib\dash.all.min.js" />
|
||||
<Content Include="Scripts\Lib\jquery.blockUI.js" />
|
||||
<Content Include="Scripts\Lib\jquery.blockUI.min.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload-process.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload-process.min.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload-validate.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload-validate.min.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload.js" />
|
||||
<Content Include="Scripts\Lib\jquery.fileupload.min.js" />
|
||||
<Content Include="Scripts\Lib\jstree.js" />
|
||||
<Content Include="Scripts\Lib\jstree.min.js" />
|
||||
<Content Include="Scripts\Lib\moment.js" />
|
||||
<Content Include="Scripts\Lib\moment.min.js" />
|
||||
<Content Include="Scripts\Lib\swfobject.js" />
|
||||
<Content Include="Scripts\Lib\swfobject.min.js" />
|
||||
<Content Include="Scripts\Lib\underscore.js" />
|
||||
<Content Include="Scripts\Lib\underscore.min.js" />
|
||||
<Content Include="Scripts\Lib\uri.js" />
|
||||
<Content Include="Scripts\Lib\uri.min.js" />
|
||||
<Content Include="Assets\JavaScript\Lib\underscore.js" />
|
||||
<Content Include="Styles\cloudmedia-admin-asset.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-asset.min.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-job.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-job.min.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-selecttask.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-selecttask.min.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-settings.css" />
|
||||
<Content Include="Styles\cloudmedia-admin-settings.min.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-assets.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-assets.min.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-cloudvideopart.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-cloudvideopart.min.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-jobs.css" />
|
||||
<Content Include="Styles\cloudmedia-edit-jobs.min.css" />
|
||||
<Content Include="Styles\cloudmedia-progress.css" />
|
||||
<Content Include="Styles\cloudmedia-progress.min.css" />
|
||||
<Content Include="Styles\cloudmedia-tabs.css" />
|
||||
<Content Include="Styles\cloudmedia-tabs.min.css" />
|
||||
<Content Include="Styles\cloudmedia-videoplayer.css" />
|
||||
<Content Include="Styles\cloudmedia-videoplayer.min.css" />
|
||||
<Content Include="Styles\Images\AssetTreeView.png" />
|
||||
<Content Include="Styles\Lib\JsTree\themes\default\32px.png" />
|
||||
<Content Include="Styles\Lib\JsTree\themes\default\40px.png" />
|
||||
<Content Include="Styles\Lib\JsTree\themes\default\style.css" />
|
||||
<Content Include="Styles\Lib\JsTree\themes\default\style.min.css" />
|
||||
<Content Include="Styles\Lib\JsTree\themes\default\throbber.gif" />
|
||||
<Content Include="Styles\menu.cloudmedia-mediaproviders.css">
|
||||
<DependentUpon>menu.cloudmedia-mediaproviders.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Styles\menu.cloudmedia-mediaproviders.less" />
|
||||
<Content Include="Styles\cloudmedia-edit-cloudvideopart.less" />
|
||||
<Content Include="Styles\menu.cloudmedia-mediaproviders.min.css">
|
||||
<DependentUpon>menu.cloudmedia-mediaproviders.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Assets\Less\menu.cloudmedia-mediaproviders.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-edit-cloudvideopart.less" />
|
||||
<Content Include="Styles\menu.cloudmedia-mediaproviders.css" />
|
||||
<Content Include="Styles\menu.cloudmedia-mediaproviders.min.css" />
|
||||
<Content Include="Web.config" />
|
||||
<Content Include="Scripts\Web.config" />
|
||||
<Content Include="Styles\Web.config" />
|
||||
<Content Include="Properties\AssemblyInfo.cs" />
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-data.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-dash.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-html5.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-alt.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors-smp.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-injectors.ts" />
|
||||
<Content Include="Scripts\cloudmedia-videoplayer-main.ts" />
|
||||
<Content Include="Scripts\typings\moment.d.ts" />
|
||||
<Content Include="Scripts\typings\underscore.d.ts" />
|
||||
<Content Include="Scripts\typings\uri.d.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-data.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-injectors-dash.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-injectors-html5.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-injectors-alt.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-injectors-smp.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-injectors.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-videoplayer-main.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\moment.d.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\underscore.d.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\uri.d.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
|
||||
@@ -421,7 +411,7 @@
|
||||
<Content Include="Views\Settings\Index.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-admin-settings.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-admin-settings.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\Media\Import.cshtml" />
|
||||
@@ -448,10 +438,10 @@
|
||||
<Content Include="Views\Parts\CloudVideo.SummaryAdmin.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Scripts\typings\jquery.d.ts" />
|
||||
<Content Include="Scripts\typings\jqueryui.d.ts" />
|
||||
<Content Include="Scripts\typings\knockout.d.ts" />
|
||||
<Content Include="Scripts\cloudmedia-admin-settings.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\jquery.d.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\jqueryui.d.ts" />
|
||||
<Content Include="Assets\TypeScript\Typings\knockout.d.ts" />
|
||||
<Content Include="Assets\TypeScript\cloudmedia-admin-settings.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\CloudVideo.Edit.Assets.cshtml" />
|
||||
@@ -463,7 +453,7 @@
|
||||
<Content Include="Views\Job\Create.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-admin-job.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-admin-job.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\TaskSettingsEditor.cshtml" />
|
||||
@@ -475,7 +465,7 @@
|
||||
<Content Include="Views\EditorTemplates\TaskSettings\Encrypt.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-tabs.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-tabs.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Images\Web.config" />
|
||||
@@ -499,16 +489,16 @@
|
||||
<Content Include="Views\CloudVideo.Edit.UnpublishButton.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-progress.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-progress.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-edit-assets.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-edit-assets.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-edit-jobs.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-edit-jobs.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-admin-selecttask.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-admin-selecttask.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\CloudVideoEditor.Direct.cshtml" />
|
||||
@@ -526,7 +516,7 @@
|
||||
<Content Include="Views\EditorTemplates\Assets\Video.Files.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-admin-asset.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-admin-asset.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\CloudVideoPlayer.cshtml" />
|
||||
@@ -535,7 +525,7 @@
|
||||
<Content Include="Views\Parts\CloudVideo.Raw.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Styles\cloudmedia-videoplayer.less" />
|
||||
<Content Include="Assets\Less\cloudmedia-videoplayer.less" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Views\EditorTemplates\Asset.Edit.General.cshtml" />
|
||||
@@ -553,11 +543,9 @@
|
||||
<Content Include="Content\Strobe Media Playback Notice.docx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Scripts\lib\MPEG Dash Notice.docx" />
|
||||
<Content Include="Styles\cloudmedia-admin-settings.css.map">
|
||||
<DependentUpon>cloudmedia-admin-settings.css</DependentUpon>
|
||||
</Content>
|
||||
<None Include="Assets\JavaScript\Lib\MPEG Dash Notice.docx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
6
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/dash.all.min.js
vendored
Normal file
6
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/dash.all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/jquery.blockUI.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/jquery.blockUI.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload"],e):e(window.jQuery)}(function(e){"use strict";var s=e.blueimp.fileupload.prototype.options.add;e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{processQueue:[],add:function(r,i){var o=e(this);i.process(function(){return o.fileupload("process",i)}),s.call(this,r,i)}},processActions:{},_processFile:function(s,r){var i=this,o=e.Deferred().resolveWith(i,[s]),t=o.promise();return this._trigger("process",null,s),e.each(s.processQueue,function(s,o){var n=function(s){return r.errorThrown?e.Deferred().rejectWith(i,[r]).promise():i.processActions[o.action].call(i,s,o)};t=t.pipe(n,o.always&&n)}),t.done(function(){i._trigger("processdone",null,s),i._trigger("processalways",null,s)}).fail(function(){i._trigger("processfail",null,s),i._trigger("processalways",null,s)}),t},_transformProcessQueue:function(s){var r=[];e.each(s.processQueue,function(){var i={},o=this.action,t=this.prefix===!0?o:this.prefix;e.each(this,function(r,o){i[r]="string"===e.type(o)&&"@"===o.charAt(0)?s[o.slice(1)||(t?t+r.charAt(0).toUpperCase()+r.slice(1):r)]:o}),r.push(i)}),s.processQueue=r},processing:function(){return this._processing},process:function(s){var r=this,i=e.extend({},this.options,s);return i.processQueue&&i.processQueue.length&&(this._transformProcessQueue(i),0===this._processing&&this._trigger("processstart"),e.each(s.files,function(o){var t=o?e.extend({},i):i,n=function(){return s.errorThrown?e.Deferred().rejectWith(r,[s]).promise():r._processFile(t,s)};t.index=o,r._processing+=1,r._processingQueue=r._processingQueue.pipe(n,n).always(function(){r._processing-=1,0===r._processing&&r._trigger("processstop")})})),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=e.Deferred().resolveWith(this).promise()}})});
|
@@ -0,0 +1 @@
|
||||
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload-process"],e):e(window.jQuery)}(function(e){"use strict";e.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{getNumberOfFiles:e.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(i,l){if(l.disabled)return i;var r,s=e.Deferred(),t=this.options,o=i.files[i.index];return(l.minFileSize||l.maxFileSize)&&(r=o.size),"number"===e.type(l.maxNumberOfFiles)&&(t.getNumberOfFiles()||0)+i.files.length>l.maxNumberOfFiles?o.error=t.i18n("maxNumberOfFiles"):!l.acceptFileTypes||l.acceptFileTypes.test(o.type)||l.acceptFileTypes.test(o.name)?r>l.maxFileSize?o.error=t.i18n("maxFileSize"):"number"===e.type(r)&&r<l.minFileSize?o.error=t.i18n("minFileSize"):delete o.error:o.error=t.i18n("acceptFileTypes"),o.error||i.files.error?(i.files.error=!0,s.rejectWith(this,[i])):s.resolveWith(this,[i]),s.promise()}}})});
|
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/jquery.fileupload.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/jquery.fileupload.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/swfobject.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/swfobject.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/uri.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/Lib/uri.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
var Azure;
|
||||
@@ -21,3 +21,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orchard || (Orchard = {}));
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtYWRtaW4tY29tbW9uLnRzIl0sIm5hbWVzIjpbIk9yY2hhcmQiLCJPcmNoYXJkLkF6dXJlIiwiT3JjaGFyZC5BenVyZS5NZWRpYVNlcnZpY2VzIiwiT3JjaGFyZC5BenVyZS5NZWRpYVNlcnZpY2VzLkFkbWluIiwi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0E7SUFBREEsQ0FBQ0EsRUFUY0QsS0FBS0EsR0FBTEEsYUFBS0EsS0FBTEEsYUFBS0EsUUFTbkJBO0FBQURBLENBQUNBLEVBVE0sT0FBTyxLQUFQLE9BQU8sUUFTYiIsImZpbGUiOiJjbG91ZG1lZGlhLWFkbWluLWNvbW1vbi5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJUeXBpbmdzL2pxdWVyeS5kLnRzXCIgLz5cblxubW9kdWxlIE9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5BZG1pbi5Db21tb24ge1xuICAgICQoKCkgPT4ge1xuICAgICAgICAkKFwiZm9ybVwiKS5vbihcImNsaWNrXCIsIFwiYnV0dG9uW2RhdGEtcHJvbXB0XSwgYVtkYXRhLXByb21wdF1cIiwgZnVuY3Rpb24oZSkge1xuICAgICAgICAgICAgdmFyIHByb21wdCA9ICQodGhpcykuZGF0YShcInByb21wdFwiKTtcblxuICAgICAgICAgICAgaWYgKCFjb25maXJtKHByb21wdCkpXG4gICAgICAgICAgICAgICAgZS5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9KTtcbiAgICB9KTtcbn0gIl0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-common.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-common.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var Orchard;!function(n){var r;!function(n){var r;!function(n){var r;!function(n){var r;!function(n){$(function(){$("form").on("click","button[data-prompt], a[data-prompt]",function(n){var r=$(this).data("prompt");confirm(r)||n.preventDefault()})})}(r=n.Common||(n.Common={}))}(r=n.Admin||(n.Admin={}))}(r=n.MediaServices||(n.MediaServices={}))}(r=n.Azure||(n.Azure={}))}(Orchard||(Orchard={}));
|
@@ -1 +1,3 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtYWRtaW4tam9iLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDRDQUE0QyIsImZpbGUiOiJjbG91ZG1lZGlhLWFkbWluLWpvYi5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vLyA8cmVmZXJlbmNlIHBhdGg9XCJUeXBpbmdzL2pxdWVyeS5kLnRzXCIgLz4iXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
0
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-job.min.js
vendored
Normal file
0
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-job.min.js
vendored
Normal file
@@ -1 +0,0 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
File diff suppressed because one or more lines are too long
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-settings.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-admin-settings.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){function t(t){var n=e.clientViewModel.wamsEncodingPresets.indexOf(t);e.clientViewModel.wamsEncodingPresets.remove(t),n===e.clientViewModel.defaultWamsEncodingPresetIndex()?e.clientViewModel.defaultWamsEncodingPresetIndex(0):n<e.clientViewModel.defaultWamsEncodingPresetIndex()&&e.clientViewModel.defaultWamsEncodingPresetIndex(e.clientViewModel.defaultWamsEncodingPresetIndex()-1)}function n(){e.clientViewModel.wamsEncodingPresets.push(new o("Unnamed",null)),$("#presets-table tbody:first-of-type tr:last-of-type td:nth-child(2) input").focus().select()}function i(t){e.clientViewModel.subtitleLanguages.remove(t)}function s(){e.clientViewModel.subtitleLanguages.push(new a("Unnamed")),$("#languages-table tbody:first-of-type tr:last-of-type td:nth-child(1) input").focus().select()}var a=function(){function e(e){this.value=ko.observable(e)}return e}();e.StringItem=a;var o=function(){function e(e,t){this.name=ko.observable(e),this.customXml=ko.observable(t),this.isExpanded=ko.observable(!1),this.type=ko.computed(function(){var e=this.customXml();return e&&e.length>0?"Custom preset":"Standard preset"},this)}return e.prototype.toggle=function(){this.isExpanded(!this.isExpanded())},e}();e.EncodingPreset=o,e.clientViewModel={wamsEncodingPresets:ko.observableArray(),defaultWamsEncodingPresetIndex:ko.observable(),subtitleLanguages:ko.observableArray()},e.deleteWamsEncodingPreset=t,e.addNewWamsEncodingPreset=n,e.deleteSubtitleLanguage=i,e.addNewSubtitleLanguage=s,$(function(){$.each(initWamsEncodingPresets,function(t,n){e.clientViewModel.wamsEncodingPresets.push(new o(n.name,n.customXml))}),e.clientViewModel.defaultWamsEncodingPresetIndex(initDefaultWamsEncodingPresetIndex),$.each(initSubtitleLanguages,function(t,n){e.clientViewModel.subtitleLanguages.push(new a(n))}),ko.applyBindings(e.clientViewModel);var t=window.localStorage;$("#tabs").tabs({activate:function(){t&&t.setItem&&t.setItem("selectedCloudMediaSettingsTab",$("#tabs").tabs("option","active"))},active:t&&t.getItem?t.getItem("selectedCloudMediaSettingsTab"):null}).show()})}(t=e.Settings||(e.Settings={}))}(t=e.Admin||(e.Admin={}))}(t=e.MediaServices||(e.MediaServices={}))}(t=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
@@ -1,4 +1,4 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
var Azure;
|
||||
@@ -29,3 +29,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orch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gICAgdmFyIHVybCA9IGNvbnRhaW5lci5kYXRhKFwicmVmcmVzaC11cmxcIik7XG5cbiAgICAgICAgICAgICAgICAkLmFqYXgoe1xuICAgICAgICAgICAgICAgICAgICB1cmw6IHVybCxcbiAgICAgICAgICAgICAgICAgICAgY2FjaGU6IGZhbHNlXG4gICAgICAgICAgICAgICAgfSkudGhlbihodG1sID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29udGFpbmVyLmh0bWwoaHRtbCk7XG4gICAgICAgICAgICAgICAgICAgIHNldFRpbWVvdXQodXBkYXRlLCA1MDAwKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHNldFRpbWVvdXQodXBkYXRlLCA1MDAwKTtcbiAgICAgICAgfSk7XG4gICAgfSk7XG59Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-autorefresh.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-autorefresh.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var r;!function(e){var r;!function(e){var r;!function(e){$(function(){$("[data-refresh-url]").each(function(){var e=$(this),r=function(){var a=e,t=a.data("refresh-url");$.ajax({url:t,cache:!1}).then(function(e){a.html(e),setTimeout(r,5e3)})};setTimeout(r,5e3)})})}(r=e.AutoRefresh||(e.AutoRefresh={}))}(r=e.MediaServices||(e.MediaServices={}))}(r=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
var Azure;
|
||||
@@ -39,3 +39,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orchard || (Orchard = {}));
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtZWRpdC1hc3NldC12aWRlby50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcyIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5Bc3NldEVkaXQiLCJPcmNoYXJkLkF6dXJlLk1lZGlhU2VydmljZXMuQXNzZXRFZGl0LlZpZGVvIl0sIm1hcHBpbmdzIjoiQUFBQSw0Q0FBNEM7QUFDNUMsOENBQThDO0FBRTlDLElBQU8sT0FBTyxDQTZCYjtBQTdCRCxXQUFPLE9BQU87SUFBQ0EsSUFBQUEsS0FBS0EsQ0E2Qm5CQTtJQTdCY0EsV0FBQUEsS0FBS0E7UUFBQ0MsSUFBQUEsYUFBYUEsQ0E2QmpDQTtRQTdCb0JBLFdBQUFBLGFBQWFBO1lBQUNDLElBQUFBLFNBQVNBLENBNkIzQ0E7WUE3QmtDQSxXQUFBQSxTQUFTQTtnQkFBQ0MsSUFBQUEsS0FBS0EsQ0E2QmpEQTtnQkE3QjRDQSxXQUFBQSxLQUFLQSxFQUFDQSxDQUFDQTtvQkFDaERDLENBQUNBLENBQUNBO3dCQUNFLElBQUksUUFBUSxHQUFRLENBQUMsQ0FBQyx1QkFBdUIsQ0FBQyxDQUFDO3dCQUUvQyxRQUFRLENBQUMsTUFBTSxDQUFDOzRCQUNaLE1BQU0sRUFBRTtnQ0FDSixXQUFXLEVBQUUsQ0FBQztnQ0FDZCxnQkFBZ0IsRUFBRSxJQUFJO2dDQUN0QixRQUFRLEVBQUUsRUFBRSxTQUFTLEVBQUUsSUFBSSxFQUFFOzZ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XRhKSB7XG4gICAgICAgIC8vICAgIHZhciB1cmwgPSBkYXRhLm5vZGUuYV9hdHRyLmhyZWY7XG4gICAgICAgIC8vICAgIGlmICh1cmwgIT0gXCIjXCIpIHtcbiAgICAgICAgLy8gICAgICAgIHdpbmRvdy5sb2NhdGlvbi5ocmVmID0gdXJsO1xuICAgICAgICAvLyAgICB9XG4gICAgICAgIC8vfSk7XG4gICAgfSk7XG59Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var c;!function(e){var c;!function(e){var c;!function(e){var c;!function(e){$(function(){var e=$("#asset-files-treeview");e.jstree({core:{animation:0,check_callback:!0,themes:{stripes:!0}},plugins:["state","wholerow"]}),$(".expand-all").on("click",function(c){e.jstree("open_all")}),$(".collapse-all").on("click",function(c){e.jstree("close_all")})})}(c=e.Video||(e.Video={}))}(c=e.AssetEdit||(e.AssetEdit={}))}(c=e.MediaServices||(e.MediaServices={}))}(c=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
var Azure;
|
||||
@@ -22,3 +22,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orchard || (Orchard = {}));
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtZWRpdC1hc3NldC50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcyIsIk9yY2hhc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I6Ii9zb3VyY2UvIn0=
|
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-edit-asset.min.js
vendored
Normal file
1
src/Orchard.Web/Modules/Orchard.Azure.MediaServices/Scripts/cloudmedia-edit-asset.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var Orchard;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){$(function(){var t=window.localStorage;$("#tabs").tabs({activate:function(){t&&t.setItem&&t.setItem("selectedAssetTab",$("#tabs").tabs("option","active"))},active:t&&t.getItem?t.getItem("selectedAssetTab"):null}).show()})}(e=t.AssetEdit||(t.AssetEdit={}))}(e=t.MediaServices||(t.MediaServices={}))}(e=t.Azure||(t.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var a;!function(e){var a;!function(e){var a;!function(e){function a(){var e=!0;return r.find("input[name$='.OriginalFileName'], input.sync-upload-input").each(function(){return""==$(this).val()?(e=!1,!1):void 0}),e}function i(){a()&&l.unblock()}function t(e,a){var t=$(e).closest("[data-upload-accept-file-types]"),o=a.errorThrown&&a.errorThrown.length>0?a.errorThrown:a.textStatus;switch(t.find(".progress-bar").hide(),t.find(".progress-text").hide(),t.find(".cancel-upload").hide(),t.data("upload-isactive",!1),o){case"error":return void alert('The upload of the selected file failed. One possible cause is that the file size exceeds the configured maxRequestLength setting (see: http://msdn.microsoft.com/en-us/library/system.web.configuration.httpruntimesection.maxrequestlength(v=vs.110).aspx). Also make sure the executionTimeOut is set to allow for enough time for the request to execute when debug="false".');case"abort":return}var n=a.result.temporaryFileName,r=a.result.originalFileName,l=a.result.fileSize;t.find("input[name$='.OriginalFileName']").val(r),t.find("input[name$='.TemporaryFileName']").val(n),t.find("input[name$='.FileSize']").val(l),i(),$(e).replaceWith("<span>Successfully uploaded video file '"+r+"'.</span>")}function o(e){var a=$(e).closest("[data-upload-accept-file-types]"),i=a.data("upload-accept-file-types"),o=r.closest("form").find("[name='__RequestVerificationToken']").val(),n=a.find(".cancel-upload");e.fileupload({autoUpload:!1,acceptFileTypes:new RegExp(i,"i"),type:"POST",url:a.data("upload-fallback-url"),formData:{__RequestVerificationToken:o},progressall:function(e,i){var t=Math.floor(i.loaded/i.total*100);a.find(".progress-bar").show().find(".progress").css("width",t+"%"),a.find(".progress-text").show().text("Uploading ("+t+"%)...")},done:function(e,a){t(this,a)},fail:function(e,a){t(this,a)},processdone:function(e,i){a.find(".validation-text").hide(),a.data("upload-isactive",!0),n.show();var t=i.submit();a.data("xhr",t)},processfail:function(e,i){a.find(".validation-text").show()}}),n.on("click",function(e){if(e.preventDefault(),confirm("Are you sure you want to cancel this upload?")){var i=a.data("xhr");i.abort()}})}function n(){var e=$(".upload-proxied").show();r=e.find(".required-uploads-group"),l=e.find(".edit-item-sidebar"),u=r.length>0,u&&(l.block({message:r.data("block-description"),overlayCSS:{backgroundColor:"#fff",cursor:"default"},css:{cursor:"default",border:null,width:null,left:0,margin:"30px 0 0 0",backgroundColor:null}}),e.find(".async-upload-file-input").each(function(){o($(this))}),window.onbeforeunload=function(a){var i=!1;e.find("[data-upload-accept-file-types]").each(function(){return 1==$(this).data("upload-isactive")?(i=!0,!1):void 0}),i&&(a.returnValue="There are uploads in progress. These will be aborted if you navigate away.")},e.find(".sync-upload-input").on("change",function(e){i()}),i()),e.find("[data-prompt]").on("change",function(e){var a=$(e.currentTarget);confirm(a.data("prompt"))||a.val("")})}var r,l,u;e.initializeUploadProxied=n}(a=e.CloudVideoEdit||(e.CloudVideoEdit={}))}(a=e.MediaServices||(e.MediaServices={}))}(a=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
@@ -1,5 +1,5 @@
|
||||
/// <reference path="typings/jquery.d.ts" />
|
||||
/// <reference path="typings/jqueryui.d.ts" />
|
||||
/// <reference path="Typings/jquery.d.ts" />
|
||||
/// <reference path="Typings/jqueryui.d.ts" />
|
||||
var Orchard;
|
||||
(function (Orchard) {
|
||||
var Azure;
|
||||
@@ -33,3 +33,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orchard || (Orchard = {}));
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtZWRpdC1jbG91ZHZpZGVvcGFydC50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcyIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5DbG91ZFZpZGVvRWRpdCIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5DbG91ZFZpZGVvRWRpdC5oYXNDb3JzU3VwcG9ydCJdLCJtYXBwaW5ncyI6IkFBQUEsNENBQTRDO0FBQzVDLDhDQUE4QztBQUU5QyxJQUFPLE9BQU8sQ0F3QmI7QUF4QkQsV0FBTyxPQUFPO0lBQUNBLElBQUFBLEtBQUtBLENBd0JuQkE7SUF4QmNBLFdBQUFBLEtBQUtBO1FBQUNDLElBQUFBLGFBQWFBLENBd0JqQ0E7UUF4Qm9CQSxXQUFBQSxhQUFhQTtZQUFDQyxJQUFBQSxjQUFjQSxDQXdCaERBO1lBeEJrQ0EsV0FBQUEsY0FBY0EsRUFBQ0EsQ0FBQ0E7Z0JBQy9DQztvQkFDSUMsTUFBTUEsQ0FBQ0EsaUJBQWlCQSxJQUFJQSxJQUFJQSxjQUFjQSxFQUFFQSxDQUFDQTtnQkFDckRBLENBQUNBO2dCQUVERCxDQUFDQSxDQUFDQTtvQkFDRSxJQUFJLGFBQWEsR0FBRyxjQUFjLEVBQUUsQ0FBQztvQkFFckMsRUFBRSxDQUFDLENBQUMsYUFBYSxDQUFDLENBQUMsQ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ZS5zZXRJdGVtKVxuICAgICAgICAgICAgICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbShcInNlbGVjdGVkQ2xvdWRWaWRlb1RhYlwiLCAkKFwiI3RhYnNcIikudGFicyhcIm9wdGlvblwiLCBcImFjdGl2ZVwiKSk7XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgYWN0aXZlOiAhaXNDcmVhdGluZyAmJiBsb2NhbFN0b3JhZ2UgJiYgbG9jYWxTdG9yYWdlLmdldEl0ZW0gPyBsb2NhbFN0b3JhZ2UuZ2V0SXRlbShcInNlbGVjdGVkQ2xvdWRWaWRlb1RhYlwiKSA6IG51bGxcbiAgICAgICAgfSkuc2hvdygpO1xuICAgIH0pO1xufSJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){function t(){return"withCredentials"in new XMLHttpRequest}$(function(){var i=t();i?e.initializeUploadDirect():e.initializeUploadProxied();var a=window.localStorage,o=$("#tabs").data("cloudvideo-iscreating");$("#tabs").tabs({activate:function(){a&&a.setItem&&a.setItem("selectedCloudVideoTab",$("#tabs").tabs("option","active"))},active:!o&&a&&a.getItem?a.getItem("selectedCloudVideoTab"):null}).show()})}(t=e.CloudVideoEdit||(e.CloudVideoEdit={}))}(t=e.MediaServices||(e.MediaServices={}))}(t=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
!function(t){var a=function(a){var i=t("#media-library-main-list li.has-focus .media-thumbnail-cloud-video").data("id");return i==a},i=function(){var i=t("#media-library-main-editor-focus .properties");i.each(function(){var i=t(this),d=i.find(".upload-status-wrapper"),e=i.find(".publication-status span"),u=i.find(".upload-status-text"),s=i.find(".upload-progress-value"),o=t(".upload-progress-status"),l=d.data("status-url"),n=d.data("upload-status"),r=d.data("published"),p=d.data("video-id");if("Uploaded"!=n||!r){var f=function(){a(p)&&t.ajax({url:l,cache:!1}).done(function(a){if(s.text(a.uploadState.percentComplete+"%"),u.text(a.uploadState.status),e.text(d.data(a.published?"published-text":"draft-text")),a.published){var i=t(".media-thumbnail-cloud-video[data-id="+p+"]");i.parents("li:first").find(".publication-status").hide()}return"Uploaded"==a.uploadState.status?void o.hide():("Uploading"==a.uploadState.status&&o.show(),void window.setTimeout(f,5e3))})};f()}})};i()}(jQuery);
|
@@ -20,3 +20,5 @@ var Orchard;
|
||||
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
||||
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
||||
})(Orchard || (Orchard = {}));
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtdmlkZW9wbGF5ZXItZGF0YS50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcyIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5WaWRlb1BsYXllciIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5WaWRlb1BsYXllci5EYXRhIiwiT3JjaGFyZC5BenVyZS5NZWRpYVNlcnZpY2VzLlZpZGVvUGxheWVyLkRhdGEuQXNzZXRUeXBlIl0sIm1hcHBpbmdzIjoiQUFBQSxJQUFPLE9BQU8sQ0FnRmI7QUFoRkQsV0FBTyxPQUFPO0lBQUNBLElBQUFBLEtBQUtBLENBZ0ZuQkE7SUFoRmNBLFdBQUFBLEtBQUtBO1FBQUNDLElBQUFBLGFBQWFBLENBZ0ZqQ0E7UUFoRm9CQSxXQUFBQSxhQUFhQTtZQUFDQyxJQUFBQSxXQUFXQSxDQWdGN0NBO1lBaEZrQ0EsV0FBQUEsV0FBV0E7Z0JBQUNDLElBQUFBLElBQUlBLENBZ0ZsREE7Z0JBaE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nVtYmVyO1xuICAgICAgICBIZWlnaHQ6IG51bWJlcjtcbiAgICAgICAgRGlzcGxheVJhdGlvWDogbnVtYmVyO1xuICAgICAgICBEaXNwbGF5UmF0aW9ZOiBudW1iZXI7XG4gICAgfVxufSAiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var s;!function(e){var s;!function(e){var s;!function(e){var s;!function(e){!function(e){e[e.VideoAsset=0]="VideoAsset",e[e.DynamicVideoAsset=1]="DynamicVideoAsset",e[e.ThumbnailAsset=2]="ThumbnailAsset",e[e.SubtitleAsset=3]="SubtitleAsset"}(e.AssetType||(e.AssetType={}));e.AssetType}(s=e.Data||(e.Data={}))}(s=e.VideoPlayer||(e.VideoPlayer={}))}(s=e.MediaServices||(e.MediaServices={}))}(s=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var __extends=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n},Orchard;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(e,n,r,i,o,a,s,c){t.call(this,e,n,r,!1,i,o,a,s),this.alternateContent=c}return __extends(e,t),e.prototype.isSupported=function(){return!0},e.prototype.inject=function(){var t=_(this.filteredAssets().ThumbnailAssets).first();this.debug("Injecting alternate content into element '{0}'.",this.container.id);var e=$("<div>").addClass("cloudvideo-player-alt-wrapper").css("width",this.playerWidth).css("height",this.playerHeight);t&&e.css("background-image","url('"+t.MainFileUrl+"')");var n=$("<div>").addClass("cloudvideo-player-alt-inner").appendTo(e);this.alternateContent&&_(this.alternateContent).each(function(t){$(t).appendTo(n)}),e.appendTo(this.container)},e.prototype.debug=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t.prototype.debug.call(this,"AltInjector: "+e,n)},e}(t.Injector);t.AltInjector=e}(e=t.Injectors||(t.Injectors={}))}(e=t.VideoPlayer||(t.VideoPlayer={}))}(e=t.MediaServices||(t.MediaServices={}))}(e=t.Azure||(t.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var __extends=this&&this.__extends||function(e,t){function r(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);r.prototype=t.prototype,e.prototype=new r},Orchard;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t=function(e){function t(){e.apply(this,arguments)}return __extends(t,e),t.prototype.isSupported=function(){var e=document.createElement("video"),t=e&&e.canPlayType&&!!e.canPlayType('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),r=MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/mp4; codecs="avc1.4d404f"'),o=_(this.filteredAssets().DynamicVideoAssets).any();this.debug("Browser supports HTML5 video and the H264 and AAC codecs: {0}",t),this.debug("Browser supports the Media Source Extensions API: {0}",r),this.debug("Item has at least one dynamic video asset: {0}",o);var i=t&&r&&o;return this.debug("isSupported() returns {0}.",i),i},t.prototype.inject=function(){var e=this,t=_(this.filteredAssets().DynamicVideoAssets).first(),r=_(this.filteredAssets().ThumbnailAssets).first();this.debug("Injecting player into element '{0}'.",this.container.id);var o=$("<video controls>").attr("width",this.playerWidth).attr("height",this.playerHeight);r&&o.attr("poster",r.MainFileUrl),o.appendTo(this.container);var i=t.MpegDashUrl,s=new Dash.di.DashContext,n=new MediaPlayer(s);n.startup(),n.addEventListener("error",function(t){e.debug("Error of type '{0}' detected; cleaning up container and faulting this injector.",t.error),e.fault()}),n.debug.setLogToBrowserConsole(!1),n.attachView(o[0]),n.attachSource(i),n.setAutoPlay(this.autoPlay)},t.prototype.debug=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.prototype.debug.call(this,"DashInjector: "+t,r)},t}(e.Injector);e.DashInjector=t}(t=e.Injectors||(e.Injectors={}))}(t=e.VideoPlayer||(e.VideoPlayer={}))}(t=e.MediaServices||(e.MediaServices={}))}(t=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var __extends=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);r.prototype=e.prototype,t.prototype=new r},Orchard;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(t){function e(){t.apply(this,arguments)}return __extends(e,t),e.prototype.isSupported=function(){var t=document.createElement("video"),e=t&&!!t.canPlayType;return this.debug("Browser supports HTML5 video: {0}",e),this.debug("isSupported() returns {0}.",e),e},e.prototype.inject=function(){var t=this,e=_(this.filteredAssets().ThumbnailAssets).first();this.debug("Injecting player into element '{0}'.",this.container.id);var r=$("<video controls>").attr("width",this.playerWidth).attr("height",this.playerHeight);e&&r.attr("poster",e.MainFileUrl),this.autoPlay&&r.attr("autoplay","");var a=[];if(_(this.assetData.DynamicVideoAssets).forEach(function(e){var r=$("<source>").attr("src",e.SmoothStreamingUrl).attr("type","application/vnd.ms-sstr+xml"),i=$("<source>").attr("src",e.HlsUrl).attr("type","application/x-mpegURL"),n=$("<source>").attr("src",e.MpegDashUrl).attr("type","application/dash+xml");t.applyMediaQueries&&e.MediaQuery&&$([r,i,n]).attr("media",e.MediaQuery),a.push(r,i,n)}),_(this.assetData.DynamicVideoAssets).forEach(function(e){_(e.EncoderMetadata&&e.EncoderMetadata.AssetFiles||[]).filter(function(t){return _(t.VideoTracks).any()}).sort(function(t){return t.Bitrate}).reverse().forEach(function(r){var i=new URI(e.MainFileUrl).filename(r.Name),n=$("<source>").attr("src",i.toString()).attr("type",r.MimeType);t.applyMediaQueries&&e.MediaQuery&&n.attr("media",e.MediaQuery),a.push(n)})}),_(this.assetData.VideoAssets).forEach(function(e){var r=$("<source>").attr("src",e.MainFileUrl).attr("type",e.MimeType);t.applyMediaQueries&&e.MediaQuery&&r.attr("media",e.MediaQuery),a.push(r)}),_(this.filteredAssets().SubtitleAssets).forEach(function(t){var e=$('<track kind="captions">').attr("label",t.Name).attr("src",t.MainFileUrl).attr("srclang",t.Language);a.push(e)}),!_(a).any())return this.debug("No sources available; cleaning up container and faulting this injector."),void this.fault();$(a).each(function(t,e){$(e).appendTo(r)}),r.appendTo(this.container);var i=_(a).last()[0],n=function(e){t.debug("Error detected; cleaning up container and faulting this injector."),t.fault()};i.addEventListener("error",n,!1),r.on("error",n)},e.prototype.debug=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];t.prototype.debug.call(this,"Html5Injector: "+e,r)},e}(t.Injector);t.Html5Injector=e}(e=t.Injectors||(t.Injectors={}))}(e=t.VideoPlayer||(t.VideoPlayer={}))}(e=t.MediaServices||(t.MediaServices={}))}(e=t.Azure||(t.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var __extends=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);n.prototype=t.prototype,e.prototype=new n},Orchard;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){var t;!function(e){function t(e){var t=document.getElementById(e);t&&t.addEventListener("mediaPlayerStateChange",'Orchard.Azure.MediaServices.VideoPlayer.Injectors.instances["'+e+'"].onMediaPlayerStateChange')}e.instances=new Array;var n=function(t){function n(e,n,i,r,s,a,o,c,l){t.call(this,e,n,i,r,s,a,o,c),this.contentBaseUrl=l,this.flashVersion="10.2.0",this.innerElementId=e.id+"-inner"}return __extends(n,t),n.prototype.isSupported=function(){var e=swfobject.hasFlashPlayerVersion(this.flashVersion),t=_(this.filteredAssets().DynamicVideoAssets).any(),n=e&&t;return this.debug("Browser has required Flash version: {0}",e),this.debug("Item has at least one dynamic video asset: {0}",t),this.debug("isSupported() returns {0}.",n),n},n.prototype.inject=function(){var t=this,n=_(this.filteredAssets().DynamicVideoAssets).first(),i=_(this.filteredAssets().ThumbnailAssets).first(),r={src:n.SmoothStreamingUrl,plugin_AdaptiveStreamingPlugin:encodeURIComponent(this.contentBaseUrl+"MSAdaptiveStreamingPlugin.swf"),AdaptiveStreamingPlugin_retryLive:"true",AdaptiveStreamingPlugin_retryInterval:"10",autoPlay:this.autoPlay.toString(),bufferingOverlay:"false",poster:i?encodeURIComponent(i.MainFileUrl):null,javascriptCallbackFunction:"Orchard.Azure.MediaServices.VideoPlayer.Injectors.onSmpBridgeCreated"},s={allowFullScreen:"true",allowScriptAccess:"always",wmode:"direct"},a={id:this.innerElementId};$("<div>").attr("id",this.innerElementId).appendTo(this.container),this.debug("Injecting player into element '{0}'.",this.container.id),swfobject.embedSWF(this.contentBaseUrl+"StrobeMediaPlayback.swf",this.innerElementId,this.playerWidth.toString(),this.playerHeight.toString(),this.flashVersion,this.contentBaseUrl+"expressInstall.swf",r,s,a,function(e){e.success||t.fault()}),e.instances[this.innerElementId]=this},n.prototype.onMediaPlayerStateChange=function(t){"playbackError"==t&&(this.debug("Playback error detected; cleaning up container and faulting this injector."),e.instances[this.innerElementId]=null,this.fault())},n.prototype.debug=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];t.prototype.debug.call(this,"SmpInjector: "+e,n)},n}(e.Injector);e.SmpInjector=n,e.onSmpBridgeCreated=t}(t=e.Injectors||(e.Injectors={}))}(t=e.VideoPlayer||(e.VideoPlayer={}))}(t=e.MediaServices||(e.MediaServices={}))}(t=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var Orchard;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e;!function(t){var e=function(){function t(t,e,i,s,n,r,a,o){this.container=t,this.playerWidth=e,this.playerHeight=i,this.autoPlay=s,this.assetData=n,this.applyMediaQueries=r,this.debugToConsole=a,this.nextInjector=o,this._isFaulted=!1}return t.prototype.isFaulted=function(){return this._isFaulted},t.prototype.invoke=function(){this.isSupported()?this.inject():this.nextInjector&&this.nextInjector.invoke()},t.prototype.isSupported=function(){throw new Error("This method is abstract and must be overridden in an inherited class.")},t.prototype.inject=function(){throw new Error("This method is abstract and must be overridden in an inherited class.")},t.prototype.filteredAssets=function(){if(!this.applyMediaQueries)return this.assetData;var t=function(t){return!t.MediaQuery||window.matchMedia(t.MediaQuery).matches};return{VideoAssets:_(this.assetData.VideoAssets).filter(t),DynamicVideoAssets:_(this.assetData.DynamicVideoAssets).filter(t),ThumbnailAssets:_(this.assetData.ThumbnailAssets).filter(t),SubtitleAssets:_(this.assetData.SubtitleAssets).filter(t)}},t.prototype.fault=function(){this._isFaulted||(this._isFaulted=!0,$(this.container).empty(),this.nextInjector&&this.nextInjector.invoke())},t.prototype.debug=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];this.debugToConsole&&console.debug(t.replace(/{(\d+)}/g,function(t,i){return"undefined"!=typeof e[i]?e[i]:t}))},t}();t.Injector=e}(e=t.Injectors||(t.Injectors={}))}(e=t.VideoPlayer||(t.VideoPlayer={}))}(e=t.MediaServices||(t.MediaServices={}))}(e=t.Azure||(t.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
var Orchard;!function(e){var a;!function(a){var t;!function(a){var t;!function(a){var t=e.Azure.MediaServices.VideoPlayer.Injectors;$(function(){$(".cloudmedia-videoplayer-container").each(function(e,a){function d(){$(r).empty();var e=[$("<span>").addClass("cloudvideo-player-error-text").text(v),$("<button>").addClass("cloudvideo-player-retry-button").text(p).click(function(){d()}),$("<span>").addClass("cloudvideo-player-alt-text").text(y)],a=new t.AltInjector(r,l,i,o,c,!0,null,e),s=new t.Html5Injector(r,l,i,n,o,c,!0,a),f=new t.DashInjector(r,l,i,n,o,c,!0,s),h=new t.SmpInjector(r,l,i,n,o,c,!0,f,u),x=h;x.invoke()}var r=a,o=$(a).data("cloudvideo-player-assetdata"),l=$(a).data("cloudvideo-player-width"),i=$(a).data("cloudvideo-player-height"),c=$(a).data("cloudvideo-player-applymediaqueries"),n=$(a).data("cloudvideo-player-autoplay"),u=$(a).data("cloudvideo-player-content-baseurl"),v=$(a).data("cloudvideo-player-errortext"),y=$(a).data("cloudvideo-player-alttext"),p=$(a).data("cloudvideo-player-retrytext");d()})})}(t=a.VideoPlayer||(a.VideoPlayer={}))}(t=a.MediaServices||(a.MediaServices={}))}(a=e.Azure||(e.Azure={}))}(Orchard||(Orchard={}));
|
File diff suppressed because one or more lines are too long
@@ -1,12 +1 @@
|
||||
/*
|
||||
console-shim 1.0.2
|
||||
https://github.com/kayahr/console-shim
|
||||
Copyright (C) 2011 Klaus Reimer <k@ailis.de>
|
||||
Licensed under the MIT license
|
||||
(See http://www.opensource.org/licenses/mit-license)
|
||||
*/
|
||||
'use strict';function f(){return function(){}}
|
||||
(function(){function c(a,l,b){var c=Array.prototype.slice.call(arguments,2);return function(){var b=c.concat(Array.prototype.slice.call(arguments,0));a.apply(l,b)}}window.console||(window.console={});var a=window.console;if(!a.log)if(window.log4javascript){var b=log4javascript.getDefaultLogger();a.log=c(b.info,b);a.debug=c(b.debug,b);a.info=c(b.info,b);a.warn=c(b.warn,b);a.error=c(b.error,b)}else a.log=f();a.debug||(a.debug=a.log);a.info||(a.info=a.log);a.warn||(a.warn=a.log);a.error||(a.error=a.log);
|
||||
if(null!=window.__consoleShimTest__||eval("/*@cc_on @_jscript_version \x3c\x3d 9@*/"))b=function(d){var b,e,c;d=Array.prototype.slice.call(arguments,0);c=d.shift();e=d.length;if(1<e&&!1!==window.__consoleShimTest__){"string"!=typeof d[0]&&(d.unshift("%o"),e+=1);for(b=(b=d[0].match(/%[a-z]/g))?b.length+1:1;b<e;b+=1)d[0]+=" %o"}Function.apply.call(c,a,d)},a.log=c(b,window,a.log),a.debug=c(b,window,a.debug),a.info=c(b,window,a.info),a.warn=c(b,window,a.warn),a.error=c(b,window,a.error);a.assert||(a.assert=
|
||||
function(){var d=Array.prototype.slice.call(arguments,0);d.shift()||(d[0]="Assertion failed: "+d[0],a.error.apply(a,d))});a.dir||(a.dir=a.log);a.dirxml||(a.dirxml=a.log);a.exception||(a.exception=a.error);if(!a.time||!a.timeEnd){var g={};a.time=function(a){g[a]=(new Date).getTime()};a.timeEnd=function(b){var c=g[b];c&&(a.log(b+": "+((new Date).getTime()-c)+"ms"),delete g[b])}}a.table||(a.table=function(b,c){var e,g,j,h,k;if(b&&b instanceof Array&&b.length){if(!c||!(c instanceof Array))for(e in c=
|
||||
[],b[0])b[0].hasOwnProperty(e)&&c.push(e);e=0;for(g=b.length;e<g;e+=1){j=[];h=0;for(k=c.length;h<k;h+=1)j.push(b[e][c[h]]);Function.apply.call(a.log,a,j)}}});a.clear||(a.clear=f());a.trace||(a.trace=f());a.group||(a.group=f());a.groupCollapsed||(a.groupCollapsed=f());a.groupEnd||(a.groupEnd=f());a.timeStamp||(a.timeStamp=f());a.profile||(a.profile=f());a.profileEnd||(a.profileEnd=f());a.count||(a.count=f())})();
|
||||
!function(){"use strict";var bind=function(o,n,e){var l=Array.prototype.slice.call(arguments,2);return function(){var e=l.concat(Array.prototype.slice.call(arguments,0));o.apply(n,e)}};window.console||(window.console={});var console=window.console;if(!console.log)if(window.log4javascript){var log=log4javascript.getDefaultLogger();console.log=bind(log.info,log),console.debug=bind(log.debug,log),console.info=bind(log.info,log),console.warn=bind(log.warn,log),console.error=bind(log.error,log)}else console.log=function(o){};if(console.debug||(console.debug=console.log),console.info||(console.info=console.log),console.warn||(console.warn=console.log),console.error||(console.error=console.log),null!=window.__consoleShimTest__||eval("/*@cc_on @_jscript_version <= 9@*/")){var wrap=function(o){var n,e,l,c;if(o=Array.prototype.slice.call(arguments,0),c=o.shift(),e=o.length,e>1&&window.__consoleShimTest__!==!1)for("string"!=typeof o[0]&&(o.unshift("%o"),e+=1),l=o[0].match(/%[a-z]/g),n=l?l.length+1:1;e>n;n+=1)o[0]+=" %o";Function.apply.call(c,console,o)};console.log=bind(wrap,window,console.log),console.debug=bind(wrap,window,console.debug),console.info=bind(wrap,window,console.info),console.warn=bind(wrap,window,console.warn),console.error=bind(wrap,window,console.error)}if(console.assert||(console.assert=function(){var o=Array.prototype.slice.call(arguments,0),n=o.shift();n||(o[0]="Assertion failed: "+o[0],console.error.apply(console,o))}),console.dir||(console.dir=console.log),console.dirxml||(console.dirxml=console.log),console.exception||(console.exception=console.error),!console.time||!console.timeEnd){var timers={};console.time=function(o){timers[o]=(new Date).getTime()},console.timeEnd=function(o){var n=timers[o];n&&(console.log(o+": "+((new Date).getTime()-n)+"ms"),delete timers[o])}}console.table||(console.table=function(o,n){var e,l,c,s,r,i;if(o&&o instanceof Array&&o.length){if(!(n&&n instanceof Array)){n=[];for(i in o[0])o[0].hasOwnProperty(i)&&n.push(i)}for(e=0,l=o.length;l>e;e+=1){for(c=[],s=0,r=n.length;r>s;s+=1)c.push(o[e][n[s]]);Function.apply.call(console.log,console,c)}}}),console.clear||(console.clear=function(){}),console.trace||(console.trace=function(){}),console.group||(console.group=function(){}),console.groupCollapsed||(console.groupCollapsed=function(){}),console.groupEnd||(console.groupEnd=function(){}),console.timeStamp||(console.timeStamp=function(){}),console.profile||(console.profile=function(){}),console.profileEnd||(console.profileEnd=function(){}),console.count||(console.count=function(){})}();
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user