@etspress/netflix 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etspress/netflix",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "流媒体合租主题插件",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "id": "netflix",
19
19
  "name": "流媒体合租主题",
20
20
  "description": "流媒体合租商店主题与页面展示配置",
21
- "version": "0.1.3",
21
+ "version": "0.1.4",
22
22
  "runtime": {
23
23
  "type": "npm-static",
24
24
  "publicRoot": "public"
package/plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schemaVersion": 1,
4
4
  "id": "netflix",
5
5
  "name": "流媒体合租主题",
6
- "version": "0.1.3",
6
+ "version": "0.1.4",
7
7
  "description": "流媒体合租商店主题与页面展示配置。",
8
8
  "author": "D&J Studio",
9
9
  "license": "MIT",
package/public/home.js CHANGED
@@ -142,6 +142,7 @@
142
142
  return src ? '<img src="' + escapeHtml(safeHref(src, '')) + '" alt="" loading="lazy"' + (index >= 5 ? ' hidden' : '') + '>' : '';
143
143
  }).join('');
144
144
  var recentSource = config.productCardShowRecentPurchase === '否' ? '' : (block.recentText || localized(product.recentlyGotOnBus || product.recent_purchase_text || product.latest_purchase_text));
145
+ if (config.productCardShowRecentPurchase !== '否' && !recentSource) { var baseMinutes = 33 + Number(cardIndex || 0) * 11; recentSource = [baseMinutes, baseMinutes + 6, baseMinutes + 13].map(function (minutes) { return minutes + '分钟前有人上车'; }).join('\n'); }
145
146
  var recentText = String(recentSource || '').split(/\r?\n/).map(function (item) { return item.replace(/^演示\s*[·•|::-]?\s*/, '').trim(); }).filter(Boolean).join('\n');
146
147
  var sparse = !tags && !description && !avatars.length && !recentText;
147
148
  var recentItems = recentText ? recentText.split(/\r?\n/).map(function (s) { return s.trim(); }).filter(Boolean) : [];