diff --git a/core/mappings.js b/core/mappings.js index 89e215ad..368765dd 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -257,6 +257,7 @@ mappings.cdn = { 'cookieconsent2/{version}/cookieconsent.css': resources.cookieconsent2CSS, 'd3/{version}/d3.min.js': resources.d3JS, 'd3-legend/{version}/d3-legend.': resources.d3legend, + 'dayjs/{version}/dayjs.': resources.dayjs, 'dexie/{version}/dexie.': resources.dexie, 'docsearch.js/{version}/docsearch.min.js': resources.docsearchJS, 'docsearch.js/{version}/docsearch.js': resources.docsearchJS, diff --git a/core/resources.js b/core/resources.js index e8e5ddf0..316e9c4b 100644 --- a/core/resources.js +++ b/core/resources.js @@ -339,6 +339,11 @@ var resources = { 'path': 'resources/d3-legend/{version}/d3-legend.min.jsm', 'type': 'application/javascript' }, + // dayjs + 'dayjs': { + 'path': 'resources/dayjs/{version}/dayjs.min.jsm', + 'type': 'application/javascript' + }, // dexie 'dexie': { 'path': 'resources/dexie/{version}/dexie.min.jsm', diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 121fff1f..5e3bdcc9 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -180,6 +180,8 @@ targets.setLastVersion = function (type, version) { return '6.5.0'; } else if (type.startsWith('/d3-legend/2.')) { return '2.25.6'; + } else if (type.startsWith('/dayjs/1.')) { + return '1.10.4'; } else if (type.startsWith('/dexie/3.') || type.startsWith('/dexie/latest') ) { return '3.0.3'; } else if (type.startsWith('/docsearch.js/2.')) { @@ -486,6 +488,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'dayjs.min.jsm': 'Day.js', 'jquery.validate.unobtrusive.min.jsm': 'jQuery Validate Unobtrusive', 'jquery.sliderPro.min.js': 'Slider Pro (JS)', 'knockout-latest.min.jsm': 'Knockout', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index c40e4fea..6d97a53c 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -34,6 +34,7 @@