diff --git a/core/mappings.js b/core/mappings.js index b3d4b06e..9219991a 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -392,6 +392,7 @@ var mappings = { '@findify/bundle@{version}/dist/vendors~sentry.js': resources.findifyBundle, 'flv.js/dist/flv.min.js': resources.flvJS, 'hls.js/dist/hls.min.js': resources.hlsJS, + 'history@{version}/umd/history.min.js': resources.history, 'hls.js@latest': resources.hlsJS, 'jquery@{version}/dist/jquery.': resources.jQuery, 'jquery@{version}/dist/jquery.min.': resources.jQuery, diff --git a/core/resources.js b/core/resources.js index ce105e8e..6d69e7c9 100644 --- a/core/resources.js +++ b/core/resources.js @@ -345,6 +345,11 @@ var resources = { 'path': 'resources/google-material-design-icons/google-material-design-icons.css', 'type': 'text/css' }, + // history + 'history': { + 'path': 'resources/history/{version}/history.min.jsm', + 'type': 'application/javascript' + }, // hls.js 'hlsJS': { 'path': 'resources/hls.js/{version}/hls.min.jsm', diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index 0186dd0f..d4035bed 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -408,6 +408,8 @@ helpers.setLastVersion = function (type, version) { return '4.7.0'; } else if (type.includes('/fontawesome/5.')) { return '5.14.0'; + } else if (type.includes('/history/')) { + return '4.10.1'; } else if (type.includes('/hls.js/')) { return '0.13.2'; } else if (type.includes('/jets/0.')) { @@ -597,6 +599,7 @@ helpers.compareVersion = function (v1, v2) { }; const ListOfFiles = { + 'history.min.jsm': 'history', 'axios.min.jsm': 'Axios', 'object-assign.min.jsm': 'Object assign', 'slick-lightbox.css': 'slick-lightbox CSS', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index d6dd3a4d..44d7147d 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -27,6 +27,7 @@
diff --git a/resources/history/4.10.1/history.min.jsm b/resources/history/4.10.1/history.min.jsm new file mode 100644 index 00000000..84b64e23 --- /dev/null +++ b/resources/history/4.10.1/history.min.jsm @@ -0,0 +1 @@ +!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.History={})}(this,function(n){"use strict";function E(){return(E=Object.assign||function(n){for(var t=1;tt?e.splice(t,e.length-t,o):e.push(o),s({action:"PUSH",location:o,index:t,entries:e})}})},replace:function(n,t){var e="REPLACE",o=C(n,t,h(),w.location);f.confirmTransitionTo(o,e,r,function(n){n&&(w.entries[w.index]=o,s({action:e,location:o}))})},go:p,goBack:function(){p(-1)},goForward:function(){p(1)},canGo:function(n){var t=w.index+n;return 0<=t&&t