webui/index.ts

HKUDS/nanobot · nanobot/channels/email/webui/index.ts · typescript · MIT
email

Exports email channel UI presets and configuration for a chat application, including credentials and settings.

// Source: https://github.com/HKUDS/nanobot | License: MIT | Copyright 2025-present Xubin Ren and the nanobot contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { Mail } from "lucide-react";

import type { ChannelUiContribution } from "@/channel-plugins/types";
import {
  type ChannelProviderPresetDefinition,
  chatAppGuideUrl,
} from "@/channel-plugins/catalog";

const EMAIL_PROVIDER_PRESETS: ChannelProviderPresetDefinition[] = [
  {
    id: "gmail",
    values: {
      "channels.email.imapHost": "imap.gmail.com",
      "channels.email.imapPort": "993",
      "channels.email.smtpHost": "smtp.gmail.com",
      "channels.email.smtpPort": "587",
    },
  },
  {
    id: "outlook",
    values: {
      "channels.email.imapHost": "outlook.office365.com",
      "

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key