dsh-folia 4.26.0-pre.42 → 4.26.0-pre.44
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/client.js +17 -39
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -17685,36 +17685,7 @@ window.__ModuleLoader__.load({
|
|
|
17685
17685
|
React.createElement("option", { value: "local" }, weT("本机 Wallpaper Engine({n})", { n: (sourceCounts && sourceCounts.local) || 0 })),
|
|
17686
17686
|
React.createElement("option", { value: "site" }, weT("站点壁纸({n})", { n: (sourceCounts && sourceCounts.site) || 0 })),
|
|
17687
17687
|
),
|
|
17688
|
-
|
|
17689
|
-
React.createElement("select", {
|
|
17690
|
-
className: "we-picker__playlist-select",
|
|
17691
|
-
value: sel.contentRatingFilter,
|
|
17692
|
-
onChange: onRatingFilterChange,
|
|
17693
|
-
"aria-label": weT("内容分级"),
|
|
17694
|
-
title: weT("对应 Wallpaper Engine 的内容分级(project.json contentrating)"),
|
|
17695
|
-
},
|
|
17696
|
-
React.createElement("option", { value: "all" }, weT("全部({n})", { n: basePlayable.length })),
|
|
17697
|
-
React.createElement("option", { value: "everyone" }, weT("Everyone / G({n})", { n: ratingCounts.everyone })),
|
|
17698
|
-
React.createElement("option", { value: "pg13" }, weT("PG13({n})", { n: ratingCounts.pg13 })),
|
|
17699
|
-
React.createElement("option", { value: "mature" }, weT("Mature / R({n})", { n: ratingCounts.mature })),
|
|
17700
|
-
React.createElement("option", { value: "unrated" }, weT("未分级({n})", { n: ratingCounts.unrated })),
|
|
17701
|
-
),
|
|
17702
|
-
React.createElement("span", { className: "we-picker__hint we-picker__label" }, weT("类型")),
|
|
17703
|
-
React.createElement("select", {
|
|
17704
|
-
className: "we-picker__playlist-select",
|
|
17705
|
-
value: sel.typeFilter,
|
|
17706
|
-
onChange: onTypeFilterChange,
|
|
17707
|
-
"aria-label": weT("类型"),
|
|
17708
|
-
title: weT("按壁纸类型过滤(只筛列表与轮播候选,不打断正在应用的壁纸)"),
|
|
17709
|
-
},
|
|
17710
|
-
React.createElement("option", { value: "all" }, weT("全部({n})", { n: basePlayable.length })),
|
|
17711
|
-
React.createElement("option", { value: "video" }, weT("视频({n})", { n: typeCounts.video || 0 })),
|
|
17712
|
-
React.createElement("option", { value: "web" }, weT("网页({n})", { n: typeCounts.web || 0 })),
|
|
17713
|
-
React.createElement("option", { value: "image" }, weT("图片({n})", { n: typeCounts.image || 0 })),
|
|
17714
|
-
React.createElement("option", { value: "scene" }, weT("场景({n})", { n: typeCounts.scene || 0 })),
|
|
17715
|
-
),
|
|
17716
|
-
renderTagSelect({ tagOptions, tagPicked, onTagFilterChange }),
|
|
17717
|
-
);
|
|
17688
|
+
);
|
|
17718
17689
|
}
|
|
17719
17690
|
|
|
17720
17691
|
/**
|
|
@@ -20083,7 +20054,7 @@ window.__ModuleLoader__.load({
|
|
|
20083
20054
|
});
|
|
20084
20055
|
await dlAwaitJob(active.id);
|
|
20085
20056
|
if (!alive) return;
|
|
20086
|
-
|
|
20057
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20087
20058
|
})();
|
|
20088
20059
|
return () => { alive = false; };
|
|
20089
20060
|
}, [load]);
|
|
@@ -20206,7 +20177,8 @@ window.__ModuleLoader__.load({
|
|
|
20206
20177
|
? weT("已切换到:{name}(本插件的壁纸与玻璃已让位)", { name: label || "" })
|
|
20207
20178
|
: weT("已恢复官方默认外观(壁纸已按记忆放回)"),
|
|
20208
20179
|
});
|
|
20209
|
-
|
|
20180
|
+
setState((prev) => (prev ? { ...prev, active: wantId || "" } : prev));
|
|
20181
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20210
20182
|
return;
|
|
20211
20183
|
}
|
|
20212
20184
|
|
|
@@ -20238,7 +20210,7 @@ window.__ModuleLoader__.load({
|
|
|
20238
20210
|
if (click.skipped) {
|
|
20239
20211
|
cards.markOk(cardId);
|
|
20240
20212
|
setNote({ ok: true, text: weT("已装过:{name}", { name: label || "" }) });
|
|
20241
|
-
|
|
20213
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20242
20214
|
return;
|
|
20243
20215
|
}
|
|
20244
20216
|
resp = click.resp;
|
|
@@ -20252,7 +20224,7 @@ window.__ModuleLoader__.load({
|
|
|
20252
20224
|
if (resp && resp.ok && r && r.deduped) {
|
|
20253
20225
|
setNote({ ok: true, text: weT("这套皮肤正在安装中,稍后自动刷新:{name}", { name: label || "" }) });
|
|
20254
20226
|
if (cardId && await skinInstalledNow(cardId)) cards.markOk(cardId);
|
|
20255
|
-
|
|
20227
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20256
20228
|
return;
|
|
20257
20229
|
}
|
|
20258
20230
|
// 还没下完:宿主回 202 pending(弱网下 13.8 MB 可能要两分钟以上)。
|
|
@@ -20323,8 +20295,13 @@ window.__ModuleLoader__.load({
|
|
|
20323
20295
|
const already = await skinInstalledNow((payload && payload.id) || cardId);
|
|
20324
20296
|
if (already) {
|
|
20325
20297
|
if (cardId) cards.markOk(cardId);
|
|
20298
|
+
// 就地更新:这张卡立刻变「已安装/应用」,整表只在后台对齐
|
|
20299
|
+
setState((prev) => {
|
|
20300
|
+
if (!prev || !Array.isArray(prev.site)) return prev;
|
|
20301
|
+
return { ...prev, site: prev.site.map((x) => (x && x.id === cardId ? { ...x, installed: true } : x)) };
|
|
20302
|
+
});
|
|
20326
20303
|
setNote({ ok: true, text: weT("已确认装好:{name} —— 点「应用」就能切换", { name: label2 }) });
|
|
20327
|
-
|
|
20304
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20328
20305
|
return;
|
|
20329
20306
|
}
|
|
20330
20307
|
if (cardId) cards.fail(cardId, "job-lost");
|
|
@@ -20387,7 +20364,7 @@ window.__ModuleLoader__.load({
|
|
|
20387
20364
|
if (already) {
|
|
20388
20365
|
if (cardId) cards.markOk(cardId);
|
|
20389
20366
|
setNote({ ok: true, text: weT("已确认装好:{name} —— 点「应用」就能切换", { name: label2 }) });
|
|
20390
|
-
|
|
20367
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20391
20368
|
return;
|
|
20392
20369
|
}
|
|
20393
20370
|
}
|
|
@@ -20438,7 +20415,7 @@ window.__ModuleLoader__.load({
|
|
|
20438
20415
|
: weT("这套清单本来就合规(没有可修的);若仍未被收录,把卡片上的原因发我"),
|
|
20439
20416
|
});
|
|
20440
20417
|
}
|
|
20441
|
-
|
|
20418
|
+
void load(true).catch(() => { /* 后台对齐(不阻塞界面) */ });
|
|
20442
20419
|
} else {
|
|
20443
20420
|
const code = (r && r.error) || "failed";
|
|
20444
20421
|
// 失败原因的**唯一真源**是 `dlFailReason`(四模块共用一张表,见 src/local-first.js):
|
|
@@ -39914,8 +39891,9 @@ window.__ModuleLoader__.load({
|
|
|
39914
39891
|
wallpapers: list,
|
|
39915
39892
|
hiddenIds: selection.hiddenIds,
|
|
39916
39893
|
search: sel.search,
|
|
39917
|
-
|
|
39918
|
-
|
|
39894
|
+
// 分级/类型下拉已移除 ⇒ 列表恒按 all 计算(旧持久化值不许在后台偷偷过滤)
|
|
39895
|
+
ratingFilter: "all",
|
|
39896
|
+
typeFilter: "all",
|
|
39919
39897
|
sourceFilter: sel.sourceFilter,
|
|
39920
39898
|
cacheFilter: readPickerCacheFilter(),
|
|
39921
39899
|
subtagFilter: readPickerSubtagFilter(),
|