mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 02:01:48 +03:00
40 lines
1.1 KiB
TypeScript
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;
|