import { Card } from '@/components/ui/Card'; import { Input } from '@/components/ui/Input'; import { Button } from '@/components/ui/Button'; import { useAuth } from '@/context/AuthContext'; import { useToast } from '@/context/ToastContext'; export function SettingsPage() { const { token, serverUrl, setToken, setServerUrl } = useAuth(); const { toast } = useToast(); return (

设置

{/* Server Connection */}

服务器连接

setServerUrl(e.target.value)} placeholder="留空则使用同源地址(默认)" />

当 Dashboard 由同一个 Express 服务器提供时留空。设置为例如{' '} http://192.168.1.100:3000 用于远程服务器。

{/* Authentication */}

认证

setToken(e.target.value)} placeholder="输入 API Token" />

Token 来自环境变量 BEARER_TOKEN 或文件{' '} .social-mcp/bearer-token

{/* About */}

关于

Social MCP — 多平台社交媒体自动化

版本:0.1.0

技术栈:React 19 + TypeScript + Tailwind CSS

); }