feat(channels): add DingTalk via bundled plugin mirror and pure Node deploy (#215)

This commit is contained in:
paisley
2026-02-28 11:36:40 +08:00
committed by GitHub
Unverified
parent d4f77a442c
commit d63810f54b
13 changed files with 482 additions and 13 deletions

View File

@@ -570,7 +570,17 @@ function AddChannelDialog({ selectedType, onSelectType, onClose, onChannelAdded
// Step 2: Save channel configuration via IPC
const config: Record<string, unknown> = { ...configValues };
await window.electron.ipcRenderer.invoke('channel:saveConfig', selectedType, config);
const saveResult = await window.electron.ipcRenderer.invoke('channel:saveConfig', selectedType, config) as {
success?: boolean;
warning?: string;
pluginInstalled?: boolean;
};
if (!saveResult?.success) {
throw new Error('Failed to save channel config');
}
if (typeof saveResult.warning === 'string' && saveResult.warning) {
toast.warning(saveResult.warning);
}
// Step 3: Add a local channel entry for the UI
await addChannel({