Add leaflet js/css

This commit is contained in:
Calum McConnell 2021-04-09 10:36:36 -04:00
parent c3061891a5
commit 7075504193
No known key found for this signature in database
GPG Key ID: EFF5E1D7E0CD9B32
3 changed files with 21 additions and 0 deletions

View File

@ -317,6 +317,10 @@ mappings.cdn = {
'js-cookie/{version}/js.cookie.min.js': resources.jscookie,
'knockout/{version}/knockout': resources.knockout,
'lazysizes/{version}/lazysizes.min.js': resources.lazysizes,
'leaflet/{version}/leaflet.js': resources.leafletJS,
'leaflet/{version}/leaflet.css': resources.leafletCSS,
'leaflet/{version}/leaflet.min.js': resources.leafletJS,
'leaflet/{version}/leaflet.min.css': resources.leafletCSS,
'libphonenumber-js/{version}/libphonenumber-js.': resources.libphonenumber,
'libsodium-wrappers/{version}/sodium.min.js': resources.libsodiumJS,
'lightcase/{version}/js/lightcase.': resources.lightcaseJS,
@ -506,6 +510,8 @@ mappings.cdn = {
'jquery-ui-dist@{version}/jquery-ui.js': resources.jQueryUI,
'jquery-ui-dist@{version}/jquery-ui.min.js': resources.jQueryUI,
'jquery-validation@{version}/dist/jquery.validate.': resources.jqueryValidationPlugin,
'leaflet@{version}/dist/leaflet.js': resources.leafletJS,
'leaflet@{version}/dist/leaflet.css': resources.leafletCSS,
'lodash@{version}/lodash.min.js': resources.lodashJS,
'lozad': resources.lozad,
'npm-modernizr@{version}/modernizr.': resources.modernizr,

View File

@ -511,6 +511,13 @@ var resources = {
'lazysizes': {
'path': 'resources/lazysizes/{version}/lazysizes.min.jsm'
},
// leaflet
'leafletJS':{
'path': 'resources/leaflet/{version}/leaflet.jsm'
},
'leafletCSS':{
'path': 'resources/leaflet/{version}/leaflet.css'
},
// libphonenumber-js
'libphonenumber': {
'path': 'resources/libphonenumber-js/{version}/libphonenumber-js.min.jsm'

View File

@ -35,6 +35,8 @@ targets.determineBundle = function (path) {
val = 'Bootstrap Datepicker';
} else if (path.startsWith('/jquery.lazy/')) {
val = 'jQuery Lazy';
} else if (path.startsWith('/leaflet/')) {
val = 'leaflet';
} else if (path.startsWith('/waypoints/')) {
val = 'Waypoints';
} else if (path.startsWith('/highlight.js/')) {
@ -375,6 +377,10 @@ targets.setLastVersion = function (type, version) {
return '4.1.8';
} else if (type.startsWith('/lazysizes/5.')) {
return '5.3.1';
} else if (type.startsWith('/leaflet/0.')) {
return '0.7.7';
} else if (type.startsWith('/leaflet/1.')) {
return '1.7.1';
} else if (type.startsWith('/libphonenumber-js/1.')) {
return '1.9.4';
} else if (type.startsWith('/libsodium-wrappers/0.')) {
@ -574,6 +580,8 @@ targets.determineResourceName = function (filename) {
};
const ListOfFiles = {
'leaflet.jsm' : 'leaflet (JS)',
'leaflet.css' : 'leaflet (CSS)',
'bluebird.min.jsm': 'bluebird',
'feather.min.jsm': 'Feather Icons',
'babel.min.jsm': 'Babel standalone',