diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index 0ff2a5f2..5312e43b 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -959,6 +959,7 @@ https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment-with-locales.min. https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment-with-langs.min.js https://cdnjs.cloudflare.com/ajax/libs/mootools/1.4.5/mootools-core-full-compat-yc.min.js https://cdnjs.cloudflare.com/ajax/libs/mootools/1.6.0/mootools-core.min.js +https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.5/mousetrap.min.js https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/14.7.0/nouislider.min.js https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.8.1/nouislider.min.js https://cdnjs.cloudflare.com/ajax/libs/nprogress/0.2.0/nprogress.min.css diff --git a/core/mappings.js b/core/mappings.js index 8700151d..20d96603 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -426,6 +426,8 @@ mappings.cdn = { 'moment.js/{version}/moment.min.': resources.moment, 'moment.js/{version}/moment-with-locales.': resources.moment, 'mootools/{version}/mootools-core': resources.mootools, + 'mousetrap/{version}/mousetrap.min.js': resources.mousetrap, + 'mousetrap/{version}/mousetrap.js': resources.mousetrap, 'nprogress/{version}/nprogress.min.js': resources.nprogressJS, 'nprogress/{version}/nprogress.js': resources.nprogressJS, 'nprogress/{version}/nprogress.min.css': resources.nprogressCSS, diff --git a/core/resources.js b/core/resources.js index 9d078c68..399d9427 100644 --- a/core/resources.js +++ b/core/resources.js @@ -785,6 +785,10 @@ let resources = { 'mootools': { 'path': 'resources/mootools/{version}/mootools-core.min.jsm' }, + // mousetrap + 'mousetrap': { + 'path': 'resources/mousetrap/{version}/mousetrap.min.jsm' + }, // ngx-bootstrap datepicker 'ngxBootstrapDatepicker': { 'path': 'resources/ngx-bootstrap/{version}/datepicker/bs-datepicker.css' diff --git a/modules/internal/targets.js b/modules/internal/targets.js index e3b0ec7f..086cb3be 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -350,6 +350,7 @@ targets.setLastVersion = function (type, version) { if (helpers.compareVersion('1.4.5', version)) return '1.4.5'; // <= v1.4.5 return '1.6.0'; } + if (type.startsWith('/mousetrap/1.')) return '1.6.5'; if (type.startsWith('/ngx-bootstrap/')) { // The only resource used from ngx-bootstrap is the CSS file for the datepicker. // This CSS is unchanged since version 7. So it's not necessary to host it more than once. @@ -519,6 +520,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'mousetrap.min.jsm': 'mousetrap', 'jquery.powertip.min.jsm': 'jquery-powertip', 'jsrender.min.jsm': 'jsrender', 'supabase.min.jsm': 'supabase-js', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 39469c92..c78cab1a 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -28,6 +28,7 @@
Added