mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 02:30:22 +08:00
适配 DSH 0.1.6-alpha.2 并更新本体接口与验证
This commit is contained in:
1 parent
5c6492db71
commit
fa575632e5
34 files changed
+284
-781
No files matched your search
+4
-4
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user