mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 19:36:23 +08:00

* Updating rebuilt client-side assets that only changed in terms of sourceMappingURL * Updating rebuilt client-side assets that changed functionally * Fixing/simplifying Layout editor toolbox stickyness and height restriction to viewport * Compile workflow: Upgrading actions/checkout and microsoft/setup-msbuild actions to their latest versions * Compile workflow: Adding steps to validate that the client-side assets are up-to-date * Compile workflow: Temporarily disabling MSBuild steps * Moving client-side assets build to a separate job in the compile workflow * Updating client-side compilation job * Temporarily disabling the .NET build * Separating package install from asset rebuild * Adding debug command * Fixing working directory * Debugging * Attempting to get rid of false positives due to line ending changes * Removing debug code * Checking asset validation by modifying Orchard.Resources/Assets/Less/Bootstrap/variables.less, but not its derivatives * Revert "Checking asset validation by modifying Orchard.Resources/Assets/Less/Bootstrap/variables.less, but not its derivatives" This reverts commit3fc9b8362b
. * Revert "Temporarily disabling the .NET build" This reverts commit2a8fef7793
. * Fixing error message when client-side assets are not up-to-date
55 lines
11 KiB
JavaScript
55 lines
11 KiB
JavaScript
/*
|
|
** NOTE: This file is generated by Gulp and should not be edited directly!
|
|
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp.
|
|
*/
|
|
|
|
/// <reference path="Typings/jquery.d.ts" />
|
|
/// <reference path="Typings/underscore.d.ts" />
|
|
var Orchard;
|
|
(function (Orchard) {
|
|
var Azure;
|
|
(function (Azure) {
|
|
var MediaServices;
|
|
(function (MediaServices) {
|
|
var VideoPlayer;
|
|
(function (VideoPlayer) {
|
|
var Injectors = Orchard.Azure.MediaServices.VideoPlayer.Injectors;
|
|
$(function () {
|
|
$(".cloudmedia-videoplayer-container").each(function (index, elem) {
|
|
var container = elem;
|
|
var assetData = $(elem).data("cloudvideo-player-assetdata");
|
|
var playerWidth = $(elem).data("cloudvideo-player-width");
|
|
var playerHeight = $(elem).data("cloudvideo-player-height");
|
|
var applyMediaQueries = $(elem).data("cloudvideo-player-applymediaqueries");
|
|
var autoPlay = $(elem).data("cloudvideo-player-autoplay");
|
|
var contentBaseUrl = $(elem).data("cloudvideo-player-content-baseurl");
|
|
var errorText = $(elem).data("cloudvideo-player-errortext");
|
|
var altText = $(elem).data("cloudvideo-player-alttext");
|
|
var retryText = $(elem).data("cloudvideo-player-retrytext");
|
|
function invokeInjectors() {
|
|
$(container).empty();
|
|
var alternateContent = [
|
|
$("<span>").addClass("cloudvideo-player-error-text").text(errorText),
|
|
$("<button>").addClass("cloudvideo-player-retry-button").text(retryText).click(function () {
|
|
invokeInjectors();
|
|
}),
|
|
$("<span>").addClass("cloudvideo-player-alt-text").text(altText)
|
|
];
|
|
// Construct a chain of injectors (each will invoke the next on failure).
|
|
var altInjector = new Injectors.AltInjector(container, playerWidth, playerHeight, assetData, applyMediaQueries, true, null, alternateContent);
|
|
var html5Injector = new Injectors.Html5Injector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, altInjector);
|
|
var dashInjector = new Injectors.DashInjector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, html5Injector);
|
|
var smpInjector = new Injectors.SmpInjector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, dashInjector, contentBaseUrl);
|
|
var firstInjector = smpInjector;
|
|
firstInjector.invoke();
|
|
}
|
|
invokeInjectors();
|
|
});
|
|
});
|
|
})(VideoPlayer = MediaServices.VideoPlayer || (MediaServices.VideoPlayer = {}));
|
|
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
|
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
|
})(Orchard || (Orchard = {}));
|
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtdmlkZW9wbGF5ZXItbWFpbi5qcyIsImNsb3VkbWVkaWEtdmlkZW9wbGF5ZXItbWFpbi50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ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AgICAgICAgICAgIHZhciByZXRyeVRleHQ6IHN0cmluZyA9ICQoZWxlbSkuZGF0YShcImNsb3VkdmlkZW8tcGxheWVyLXJldHJ5dGV4dFwiKTtcclxuXHJcbiAgICAgICAgICAgIGZ1bmN0aW9uIGludm9rZUluamVjdG9ycygpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAkKGNvbnRhaW5lcikuZW1wdHkoKTtcclxuXHJcbiAgICAgICAgICAgICAgICB2YXIgYWx0ZXJuYXRlQ29udGVudCA9IFtcclxuICAgICAgICAgICAgICAgICAgICAkKFwiPHNwYW4+XCIpLmFkZENsYXNzKFwiY2xvdWR2aWRlby1wbGF5ZXItZXJyb3ItdGV4dFwiKS50ZXh0KGVycm9yVGV4dCksXHJcbiAgICAgICAgICAgICAgICAgICAgJChcIjxidXR0b24+XCIpLmFkZENsYXNzKFwiY2xvdWR2aWRlby1wbGF5ZXItcmV0cnktYnV0dG9uXCIpLnRleHQocmV0cnlUZXh0KS5jbGljayhmdW5jdGlvbiAoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGludm9rZUluamVjdG9ycygpO1xyXG4gICAgICAgICAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICAgICAgICAgICQoXCI8c3Bhbj5cIikuYWRkQ2xhc3MoXCJjbG91ZHZpZGVvLXBsYXllci1hbHQtdGV4dFwiKS50ZXh0KGFsdFRleHQpXHJcbiAgICAgICAgICAgICAgICBdO1xyXG5cclxuICAgICAgICAgICAgICAgIC8vIENvbnN0cnVjdCBhIGNoYWluIG9mIGluamVjdG9ycyAoZWFjaCB3aWxsIGludm9rZSB0aGUgbmV4dCBvbiBmYWlsdXJlKS5cclxuICAgICAgICAgICAgICAgIHZhciBhbHRJbmplY3RvciA9IG5ldyBJbmplY3RvcnMuQWx0SW5qZWN0b3IoY29udGFpbmVyLCBwbGF5ZXJXaWR0aCwgcGxheWVySGVpZ2h0LCBhc3NldERhdGEsIGFwcGx5TWVkaWFRdWVyaWVzLCB0cnVlLCBudWxsLCBhbHRlcm5hdGVDb250ZW50KTtcclxuICAgICAgICAgICAgICAgIHZhciBodG1sNUluamVjdG9yID0gbmV3IEluamVjdG9ycy5IdG1sNUluamVjdG9yKGNvbnRhaW5lciwgcGxheWVyV2lkdGgsIHBsYXllckhlaWdodCwgYXV0b1BsYXksIGFzc2V0RGF0YSwgYXBwbHlNZWRpYVF1ZXJpZXMsIHRydWUsIGFsdEluamVjdG9yKTtcclxuICAgICAgICAgICAgICAgIHZhciBkYXNoSW5qZWN0b3IgPSBuZXcgSW5qZWN0b3JzLkRhc2hJbmplY3Rvcihjb250YWluZXIsIHBsYXllcldpZHRoLCBwbGF5ZXJIZWlnaHQsIGF1dG9QbGF5LCBhc3NldERhdGEsIGFwcGx5TWVkaWFRdWVyaWVzLCB0cnVlLCBodG1sNUluamVjdG9yKTtcclxuICAgICAgICAgICAgICAgIHZhciBzbXBJbmplY3RvciA9IG5ldyBJbmplY3RvcnMuU21wSW5qZWN0b3IoY29udGFpbmVyLCBwbGF5ZXJXaWR0aCwgcGxheWVySGVpZ2h0LCBhdXRvUGxheSwgYXNzZXREYXRhLCBhcHBseU1lZGlhUXVlcmllcywgdHJ1ZSwgZGFzaEluamVjdG9yLCBjb250ZW50QmFzZVVybCk7XHJcblxyXG4gICAgICAgICAgICAgICAgdmFyIGZpcnN0SW5qZWN0b3I6IEluamVjdG9ycy5JbmplY3RvciA9IHNtcEluamVjdG9yO1xyXG4gICAgICAgICAgICAgICAgZmlyc3RJbmplY3Rvci5pbnZva2UoKTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaW52b2tlSW5qZWN0b3JzKCk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9KTtcclxufSJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|