适配 DSH 0.1.6-alpha.2 并更新本体接口与验证

This commit is contained in:
yexi committed 2026-09-19 16:39:48 +08:00
1 parent 5c6492db71
commit fa575632e5
34 files changed
+284 -781

No files matched your search

+4 -4
View File
@@ -775,7 +775,7 @@ window.__ModuleLoader__.load({
"remote",
"settingsScope"
];
/** Contribute the unrestricted card to the plugin-configuration tab. */
/** 注册本插件的配置页面。 */
function apply(ctx) {
ensureStyles();
ctx.effect(() => ctx.locale.register(NS, {
@@ -783,9 +783,9 @@ window.__ModuleLoader__.load({
en
}), "dsh-unrestricted: dictionaries");
const controller = createUnrestrictedController(ctx);
ctx.slots.inject("settings.plugin.item", () => ctx.slots.register({
name: "settings.plugin.item",
key: "unrestricted",
ctx.slots.inject("plugins.bundle.config", () => ctx.slots.register({
name: "plugins.bundle.config",
key: "dsh-unrestricted",
locale: NS,
inject: () => controller.face()
}, UnrestrictedCard));