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

@ -1,4 +1,4 @@
export const DINGTALK_STYLE_ID = 'xmanrui-dsh-dingtalk-settings';
export const DINGTALK_STYLE_ID = 'xmanrui-dsh-im-dingtalk-settings';
const CSS = String.raw`
.ddt-page {
@ -126,7 +126,7 @@ export function installDingtalkStyles() {
const existing = document.querySelector(`style[data-plugin-css="${DINGTALK_STYLE_ID}"]`);
if (existing) return () => {};
const style = document.createElement('style');
style.dataset.plugin = '@xmanrui/dsh-dingtalk';
style.dataset.plugin = '@xmanrui/dsh-im';
style.dataset.pluginCss = DINGTALK_STYLE_ID;
style.textContent = CSS;
document.head.appendChild(style);