diff --git a/THIRD_PARTY.txt b/THIRD_PARTY.txt index f2d68438..9af585fb 100644 --- a/THIRD_PARTY.txt +++ b/THIRD_PARTY.txt @@ -363,6 +363,7 @@ https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.15.3/theme-chalk/index.min.c https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.13/ember.debug.js https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.18.2/ember.debug.js https://cdnjs.cloudflare.com/ajax/libs/ember.js/3.27.5/ember.debug.js +https://cdnjs.cloudflare.com/ajax/libs/exif-js/2.3.0/exif.min.js https://cdnjs.cloudflare.com/ajax/libs/ext-core/3.1.0/ext-core.js https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/css/jquery.fancybox.min.css https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/js/jquery.fancybox.min.js diff --git a/core/mappings.js b/core/mappings.js index 9cd8e996..b01f3393 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -281,6 +281,7 @@ mappings.cdn = { 'element-ui/{version}/': resources.elementUI, 'ember.js/{version}/ember.': resources.ember, 'ext-core/{version}/ext-core.': resources.extCore, + 'exif-js/{version}/exif.': resources.exifJS, 'fancybox/{version}/jquery.fancybox.min.js': resources.fancyBoxJS, 'fancybox/{version}/jquery.fancybox.js': resources.fancyBoxJS, 'fancybox/{version}/helpers/jquery.fancybox-media.js': resources.fancyBoxMediaJS, @@ -527,6 +528,7 @@ mappings.cdn = { 'ember-source@{version}/dist/legacy/ember.': resources.ember, 'ember-source@{version}/dist/legacy/ember.min.': resources.ember, 'ethjs@{version}/dist/ethjs.': resources.ethJs, + 'exif-js@{version}/exif.': resources.exifJS, '@findify/bundle@{version}/dist/bundle.js': resources.findifyBundle, '@findify/bundle@{version}/dist/components.js': resources.findifyBundle, '@findify/bundle@{version}/dist/config.js': resources.findifyBundle, diff --git a/core/resources.js b/core/resources.js index cf640584..17b963f2 100644 --- a/core/resources.js +++ b/core/resources.js @@ -359,6 +359,10 @@ var resources = { 'ethJs': { 'path': 'resources/ethjs/{version}/ethjs.min.jsm' }, + // exif-js + 'exifJS': { + 'path': 'resources/exif-js/{version}/exif.min.jsm' + }, // Ext Core 'extCore': { 'path': 'resources/ext-core/{version}/ext-core.jsm' diff --git a/core/shorthands.js b/core/shorthands.js index e44629a9..0b3e507c 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -214,6 +214,15 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': `resources/vue/${lastVersion}/vue.min.jsm`, 'bundle': '' }; + } else if (CompleteURL.startsWith('cdn.jsdelivr.net/npm/exif-js')) { + lastVersion = targets.setLastVersion('/exif-js/2.'); + return { + 'source': channelHost, + 'versionDelivered': lastVersion, + 'versionRequested': lastVersion, + 'path': `resources/exif-js/${lastVersion}/exif.min.jsm`, + 'bundle': '' + }; } else { return false; } diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 621078e4..e97f274b 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -273,6 +273,8 @@ targets.setLastVersion = function (type, version) { return '3.27.5'; } else if (type.startsWith('/ethjs')) { return '0.4.0'; + } else if (type.startsWith('/exif-js/2.')) { + return '2.3.0'; } else if (type.startsWith('/ext-core/3.')) { return '3.1.0'; } else if (type.startsWith('/fastclick/1.')) { @@ -660,6 +662,7 @@ targets.determineResourceName = function (filename) { }; const ListOfFiles = { + 'exif.min.jsm': 'Exif.js', 'bootstrap-icons.min.css': 'Bootstrap Icons', 'clappr.min.jsm': 'clappr', 'script.min.jsm': 'script.js', diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 1c40bea7..e1e15235 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -33,6 +33,8 @@
  • Mapping: vuex -> cdn.jsdelivr.net

  • +
  • Added: exif-js v2.3.0 (#590)
  • +
  • Fixed: Version detection of Vue.js
  • Fixed: Latest version of toastr.js (#590)
  • diff --git a/resources/exif-js/2.3.0/exif.min.jsm b/resources/exif-js/2.3.0/exif.min.jsm new file mode 100644 index 00000000..670fe12a --- /dev/null +++ b/resources/exif-js/2.3.0/exif.min.jsm @@ -0,0 +1 @@ +(function(){function e(e){return!!e.exifdata}function t(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a4?m:t+8,a=[],l=0;l4?m:t+8,f(e,o,g-1);case 3:if(1==g)return e.getUint16(t+8,!i);for(o=g>2?m:t+8,a=[],l=0;le.byteLength)return{};var o=l(e,t,t+i,C,r);if(o.Compression)switch(o.Compression){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=t+o.JpegIFOffset,s=o.JpegIFByteCount;o.blob=new Blob([new Uint8Array(e.buffer,a,s)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o.Compression)}else 2==o.PhotometricInterpretation&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function f(e,t,r){var i="";for(n=t;n")+8,s=(o=o.substring(o.indexOf("0){t["@attributes"]={};for(var n=0;n0)for(var n=0;n