mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 05:18:49 +03:00
32 lines
900 B
TypeScript
32 lines
900 B
TypeScript
import type { ChannelUiContribution } from "@/channel-plugins/types";
|
|
import { chatAppGuideUrl } from "@/components/settings/channels/catalog";
|
|
|
|
import { WeixinConnectFlow } from "./WeixinConnectFlow";
|
|
import {
|
|
WEIXIN_ADVANCED_FIELD_KEYS,
|
|
WEIXIN_PRIMARY_FIELD_KEYS,
|
|
WeixinPanel,
|
|
} from "./WeixinPanel";
|
|
|
|
export default {
|
|
Panel: WeixinPanel,
|
|
ConnectFlow: WeixinConnectFlow,
|
|
canConnectBeforeConfigured: true,
|
|
aliases: {
|
|
wechat: {},
|
|
},
|
|
presentation: {
|
|
displayName: "WeChat",
|
|
initials: "WX",
|
|
color: "#07C160",
|
|
logoUrl: "https://weixin.qq.com/favicon.ico",
|
|
setup: {
|
|
mode: "connect",
|
|
command: "nanobot channels login weixin",
|
|
docsUrl: chatAppGuideUrl("wechat"),
|
|
fields: WEIXIN_PRIMARY_FIELD_KEYS.map((key) => ({ key })),
|
|
manualFields: WEIXIN_ADVANCED_FIELD_KEYS.map((key) => ({ key })),
|
|
},
|
|
},
|
|
} satisfies ChannelUiContribution;
|