From bc9c8e8bbad7d9a9a8d50ee1261b270aa52db728 Mon Sep 17 00:00:00 2001 From: sgp Date: Thu, 5 Nov 2026 01:22:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(search):=20=E5=89=8D=E7=AB=AF=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=90=9C=E7=B4=A2=E6=94=AF=E6=8C=81=E6=BA=90=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E5=90=8D=EF=BC=88=E5=9C=A3=E8=AF=9E/=E6=AF=9B?= =?UTF-8?q?=E7=BB=92/=E5=8A=A8=E6=BC=AB=E7=AD=89=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E8=AF=8D=EF=BC=89=EF=BC=9B=E5=9F=BA=E7=BA=BF=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=87=B3443168/262?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- audit-emojis.html | 4 ++-- avatar.html | 4 ++-- emoji.html | 4 ++-- index.html | 4 ++-- js/core/iconlib.js | 8 +++++++- js/data/manifest/BASELINE.md | 6 +++--- skills.html | 4 ++-- sources.html | 4 ++-- 8 files changed, 22 insertions(+), 16 deletions(-) diff --git a/audit-emojis.html b/audit-emojis.html index 5a04753..0fa047c 100644 --- a/audit-emojis.html +++ b/audit-emojis.html @@ -33,9 +33,9 @@ h1{font-size:16px}h2{font-size:14px;margin:14px 0 6px} - + - + - + - + diff --git a/emoji.html b/emoji.html index 639e8ab..ca3724d 100644 --- a/emoji.html +++ b/emoji.html @@ -216,9 +216,9 @@ - + - + diff --git a/index.html b/index.html index 56b6b23..039bc9c 100644 --- a/index.html +++ b/index.html @@ -336,9 +336,9 @@ - + - + diff --git a/js/core/iconlib.js b/js/core/iconlib.js index 084127e..62b5ae4 100644 --- a/js/core/iconlib.js +++ b/js/core/iconlib.js @@ -8,7 +8,7 @@ const HGB_IconLib = (function () { 'use strict'; - const VERSION = '20261105b'; // 与 index.html 中 builtin-icons.js?v= 版本联动 + const VERSION = '20261105c'; // 与 index.html 中 builtin-icons.js?v= 版本联动 const cache = {}; // sid -> {icons:[...]} const pending = {}; // sid -> Promise @@ -160,9 +160,15 @@ const HGB_IconLib = (function () { for (var _i = 0; _i < sids.length; _i++) { var sid = sids[_i]; var list = cache[sid].icons || []; + // 源级中文名匹配(如「圣诞」→ withicons-christmas 全部图标) + var meta = (typeof HGB_BuiltinIcons !== 'undefined' && HGB_BuiltinIcons.sources && + HGB_BuiltinIcons.sources[sid]) || null; + var srcHit = !!(q && meta && + ((meta.name || '') + ' ' + (meta.nameCn || '')).toLowerCase().indexOf(q) !== -1); for (var j = 0; j < list.length; j++) { var ic = list[j]; var sc = scoreIcon(ic, q, roots); + if (sc < 0 && srcHit) sc = 250; if (sc >= 0) { hits.push({ sc: sc, diff --git a/js/data/manifest/BASELINE.md b/js/data/manifest/BASELINE.md index 9df1d6f..a22a867 100644 --- a/js/data/manifest/BASELINE.md +++ b/js/data/manifest/BASELINE.md @@ -5,12 +5,12 @@ ## 生成时间 -2026-11-04T16:55:44.384Z +2026-11-04T17:22:11.022Z ## ① 图标库(共享,LOGO/头像/海报共用) -- 源数:241 | 图标总数:422168 -- 类型分布:icon 177 / emoji 32 / brand 32 +- 源数:262 | 图标总数:443168 +- 类型分布:icon 177 / emoji 53 / brand 32 - 源清单(含 count/file/workspaces):js/data/manifest/icons.json ## ② 海报素材库 diff --git a/skills.html b/skills.html index 8801000..0319e95 100644 --- a/skills.html +++ b/skills.html @@ -185,9 +185,9 @@ - + - + diff --git a/sources.html b/sources.html index 73400c2..2547561 100644 --- a/sources.html +++ b/sources.html @@ -154,8 +154,8 @@ - - + +