From 5312bbc8aa59d01796030c924e82f350b50024b4 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 16 Jan 2023 06:04:01 +0100 Subject: [PATCH] Direct call of Google Material Icons (#1295) --- core/shorthands.js | 4 ++-- modules/internal/targets.js | 4 ---- pages/updates/updates.html | 4 ++++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/shorthands.js b/core/shorthands.js index e758ed4b..f80e1271 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -64,11 +64,11 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'bundle': '' }; } else if (channelPath.endsWith(MaterialIcons.DEFAULT)) { - lastVersion = targets.setLastVersion('/google-material-design-icons/'); + lastVersion = targets.setLastVersion('/materialicons/'); return { 'source': channelHost, 'versionDelivered': lastVersion, - 'path': `resources/google-material-design-icons/${lastVersion}/MaterialIcons.woff2`, + 'path': `resources/google-material-design-icons/materialicons/${lastVersion}/MaterialIcons.woff2`, 'bundle': '' }; } else if (Regex.BOOTSTRAP_DATEPICKER_3.test(channelPath)) { diff --git a/modules/internal/targets.js b/modules/internal/targets.js index 1a365ea9..569a3c4b 100644 --- a/modules/internal/targets.js +++ b/modules/internal/targets.js @@ -217,15 +217,11 @@ targets.setLastVersion = function (type, version) { if (type.startsWith('/gsap/1.')) return '1.20.5'; if (type.startsWith('/gsap/2.')) return '2.1.3'; if (type.startsWith('/gsap/3.')) return '3.11.4'; - - // just for testing ---------------------------------------------- if (type.startsWith('/materialicons/')) return 'v139'; if (type.startsWith('/materialiconsoutlined/')) return 'v108'; if (type.startsWith('/materialiconsround/')) return 'v107'; if (type.startsWith('/materialiconssharp/')) return 'v108'; if (type.startsWith('/materialiconstwotone/')) return 'v111'; - // --------------------------------------------------------------- - if (type.startsWith('/highlight.js/7.')) return '9.18.5'; if (type.startsWith('/highlight.js/8.')) return '9.18.5'; if (type.startsWith('/highlight.js/9.')) return '9.18.5'; diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 8cec5be6..0b0c024c 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -41,6 +41,10 @@ +

Mapping

+