From 71644ac77f678a946313118ed68b0a819d85873a Mon Sep 17 00:00:00 2001 From: nobody Date: Sun, 31 Jan 2021 06:33:28 +0100 Subject: [PATCH] Added: Day.js v1.10.4 (#258) --- core/mappings.js | 1 + core/resources.js | 5 +++++ modules/internal/targets.js | 3 +++ pages/updates/updates.html | 1 + resources/dayjs/1.10.4/dayjs.min.jsm | 1 + 5 files changed, 11 insertions(+) create mode 100644 resources/dayjs/1.10.4/dayjs.min.jsm 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 @@
  • Added: Missing resources for Highlight.js (#253)
  • Improved: HTML filter (#257)
  • Added: jquery-validation-unobtrusive v3.2.11 (#258)
  • +
  • Added: Day.js v1.10.4 (#258)
  • diff --git a/resources/dayjs/1.10.4/dayjs.min.jsm b/resources/dayjs/1.10.4/dayjs.min.jsm new file mode 100644 index 00000000..a5374323 --- /dev/null +++ b/resources/dayjs/1.10.4/dayjs.min.jsm @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.dayjs=e()}(this,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",s="week",u="month",a="quarter",o="year",f="date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},l={s:$,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+$(r,2,"0")+":"+$(i,2,"0")},m:function t(e,n){if(e.date()