mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 10:30:23 +08:00
适配 DSH 0.1.7 配置与会话接口
This commit is contained in:
1 parent
fa575632e5
commit
9ca994201a
33 files changed
+228
-221
No files matched your search
+4
-3
@@ -15,12 +15,12 @@ window.__ModuleLoader__.load({
|
||||
}
|
||||
/**
|
||||
* Create the card controller bound to the calling plugin's context.
|
||||
* @param ctx - the browser plugin context (connection + remote + settingsScope injected).
|
||||
* @param ctx - the browser plugin context (connection + remote + configForms injected).
|
||||
* @returns the controller whose face() feeds the slot inject share.
|
||||
*/
|
||||
function createUnrestrictedController(ctx) {
|
||||
const connection = ctx.get("connection");
|
||||
const settings = ctx.settingsScope.bind({ namespace: SETTINGS_NS });
|
||||
const settings = ctx.configForms.get(SETTINGS_NS);
|
||||
let snapshot = {
|
||||
enabled: false,
|
||||
writable: false,
|
||||
@@ -605,6 +605,7 @@ window.__ModuleLoader__.load({
|
||||
if (entry === void 0 || entry.status === "failed") props.loadPreview(presetId);
|
||||
}
|
||||
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
||||
open: true,
|
||||
className: "dsh-unrestricted-card",
|
||||
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", {
|
||||
className: "dsh-unrestricted-summary",
|
||||
@@ -773,7 +774,7 @@ window.__ModuleLoader__.load({
|
||||
"locale",
|
||||
"connection",
|
||||
"remote",
|
||||
"settingsScope"
|
||||
"configForms"
|
||||
];
|
||||
/** 注册本插件的配置页面。 */
|
||||
function apply(ctx) {
|
||||
|
||||
Reference in new issue
Block a user