[fix] dsh-mail-sender is waiting for activation

This commit is contained in:
zhhe committed 2026-11-16 14:09:15 +08:00
1 parent cfa7d33e02
commit 9607c6c3ce
5 files changed
+37 -21

No files matched your search

+7 -7
View File
@@ -19984,13 +19984,13 @@ var remote_default = TYPERT_REMOTE;
// src/client/api.ts
function createApi(ctx) {
const remote = ctx.remote["mail-gateway"];
const methods = remote_default.methods;
return {
get: () => remote.get(),
saveMailbox: (patch) => remote.saveMailbox(patch),
saveWhitelist: (addresses) => remote.saveWhitelist(addresses),
testConnection: (patch) => remote.testConnection(patch),
status: () => remote.status()
get: () => methods["mail-gateway/get"].invoke(ctx.remote, {}),
saveMailbox: (patch) => methods["mail-gateway/saveMailbox"].invoke(ctx.remote, { patch }),
saveWhitelist: (addresses) => methods["mail-gateway/saveWhitelist"].invoke(ctx.remote, { addresses }),
testConnection: (patch) => methods["mail-gateway/testConnection"].invoke(ctx.remote, { patch }),
status: () => methods["mail-gateway/status"].invoke(ctx.remote, {})
};
}
@@ -20284,7 +20284,7 @@ function MailGatewaySection({ api }) {
// src/client/index.ts
var name = "dsh-mail-sender";
var inject = ["slots", "remote", "remote.mail-gateway"];
var inject = ["slots", "remote"];
async function apply(ctx) {
const disposeRemote = await ctx.remote.$mount(remote_default);
const api = createApi(ctx);