feat(settings): move IM bot to top-level menu

Remove the legacy Plugins-tab registrations, keep the channel-logo navigation, and harden upgrade/package verification.
This commit is contained in:
xmanrui 2026-08-25 22:42:41 +08:00
parent 892e18db77
commit 1ce8126edb
30 changed files with 815 additions and 842 deletions

View file

@ -18,7 +18,6 @@ import {
import { installDingtalkStyles } from '../dingtalk/styles.js';
import {
WECOM_ENDPOINTS,
WECOM_RPC_CHANNEL,
formatRemaining,
normalizeProvisioning,
normalizeSnapshot,
@ -546,11 +545,3 @@ export function WecomSettingsTab({ rpcCall }) {
? h(EmptyView, { busy, onStart: () => void startProvisioning() }) : null,
botList)));
}
export function apply(ctx) {
ctx.effect(() => installWecomStyles(), 'wecom-settings: install client styles');
const rpcCall = (endpoint, payload, signal) => ctx.connection.rpc.call(WECOM_RPC_CHANNEL, endpoint, payload, signal);
ctx.slots.inject('settings.plugins.tab', () => ctx.slots.register({
name: 'settings.plugins.tab', id: 'wecom', order: 45, label: '企业微信', inject: () => ({ rpcCall }),
}, WecomSettingsTab));
}