Files
nanobot/nanobot/channels/matrix/webui/index.ts
T
chengyongru 2b232c9133 feat(webui): unify the Apps catalog (#6700)
* feat(webui): unify the Apps catalog

* fix(webui): serve all channel branding locally

* fix(webui): refine Apps navigation and sidebar
2026-11-18 15:05:57 +08:00

25 lines
932 B
TypeScript

import type { ChannelUiContribution } from "@/channel-plugins/types";
import { chatAppGuideUrl } from "@/channel-plugins/catalog";
export default {
presentation: {
logoUrl: "/brand/channels/matrix.svg",
displayName: "Matrix",
initials: "MX",
color: "#0DBD8B",
setup: {
mode: "credentials",
docsUrl: chatAppGuideUrl("matrix"),
fields: [
{ key: "channels.matrix.homeserver", section: "connection" },
{ key: "channels.matrix.useProxy", section: "connection", control: "switch" },
{ key: "channels.matrix.userId", section: "account" },
{ key: "channels.matrix.password", section: "credentials" },
{ key: "channels.matrix.accessToken", section: "credentials" },
{ key: "channels.matrix.deviceId", section: "credentials" },
{ key: "channels.matrix.groupPolicy", section: "behavior" },
],
},
},
} satisfies ChannelUiContribution;