Files
nanobot/nanobot/channels/feishu/webui/index.tsx
T

40 lines
1.1 KiB
TypeScript

import { lazy } from "react";
import type { ChannelUiContribution } from "@/channel-plugins/types";
import { chatAppGuideUrl } from "@/components/settings/channels/catalog";
const FeishuAssistantsPanel = lazy(() =>
import("./FeishuAssistantsPanel").then(({ FeishuAssistantsPanel: component }) => ({
default: component,
})),
);
export default {
Panel: FeishuAssistantsPanel,
aliases: {
lark: {
displayName: "Lark",
initials: "LK",
logoUrl: "https://www.larksuite.com/favicon.ico",
},
},
presentation: {
displayName: "Feishu",
initials: "FS",
color: "#3370FF",
logoUrl: "https://www.feishu.cn/favicon.ico",
setup: {
mode: "connect",
command: "nanobot channels login feishu",
docsUrl: chatAppGuideUrl("feishu"),
manualFields: [
{ key: "channels.feishu.appId" },
{ key: "channels.feishu.appSecret" },
{ key: "channels.feishu.domain" },
{ key: "channels.feishu.groupPolicy" },
{ key: "channels.feishu.allowFrom" },
],
},
},
} satisfies ChannelUiContribution;