dsh-folia 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/routes/skins.js +10 -1
- package/package.json +1 -1
package/lib/routes/skins.js
CHANGED
|
@@ -595,7 +595,16 @@ export function registerSkinRoutes(webServer, c) {
|
|
|
595
595
|
id,
|
|
596
596
|
name: typeof doc.name === 'string' ? doc.name : id,
|
|
597
597
|
backgroundMedia: media ? { light: shape(media.light), dark: shape(media.dark) } : null,
|
|
598
|
-
|
|
598
|
+
// ⚠️ hooks 的声明位置是 **`facets.client.entry`**,不是 `contributes.hooks`
|
|
599
|
+
//(契约见皮肤中心 contracts/hooks-api.d.ts:`facets.client.entry (hooks.mjs)`)。
|
|
600
|
+
// 之前读 contributes.hooks ⇒ 28 套带动效的皮肤全部"无动效",而那正是它们
|
|
601
|
+
// 看起来"显示不全"的部分(粒子/漂浮/交互)。这里两个位置都认,以 facets 为准。
|
|
602
|
+
hooks: (() => {
|
|
603
|
+
const facets = (doc && doc.facets) || null;
|
|
604
|
+
const client = facets && facets.client;
|
|
605
|
+
if (client && typeof client.entry === 'string' && client.entry) return client.entry;
|
|
606
|
+
return typeof c.hooks === 'string' ? c.hooks : '';
|
|
607
|
+
})(),
|
|
599
608
|
});
|
|
600
609
|
},
|
|
601
610
|
}));
|