Files
SnowCatQQ/release-tools/webui-static/assets/about-hJDPu37V.js
T
2026-11-12 06:29:38 +08:00

2 lines
8.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{j as e}from"./react-vendor-jWT2yUdV.js";import{a as l,c as r}from"./chunk-5PILOUBS-KHYNqMZE.js";import{c}from"./chunk-D5XJWRAV-DVN21qSw.js";import{c as o}from"./chunk-NAV3ZXLI-ChbUTMf0.js";import{d as x}from"./chunk-IHO36JMK-DJPUeGG0.js";import{i as p}from"./chunk-MLPFQTYO-DSnBqIsb.js";import{l as h}from"./chunk-OPTZHMJX-CY9g90YL.js";import{s as f,W as j}from"./index-DiaaLdUu.js";import{t as u,a as m}from"./chunk-ML27DD5T-ZFWrMOn-.js";import{u as g}from"./useRequest-B1BwPztr.js";import{a as N,b,c as w,d as y,e as v,f as S}from"./index-DPx4wqle.js";import{i as C,j as T,k as P}from"./index-FvTxWQTZ.js";import{a as L,b as k}from"./index-BBhZPeTB.js";import{l as Q}from"./logo-kBMoCJob.js";import"./qface-BZLvZXJ8.js";import"./chunk-M3MASYO7-B4fjH-eW.js";import"./chunk-RJKRL3AU-CjtrMR1U.js";import"./chunk-AXSF7SRE-Cr4elNVq.js";import"./index-BsnVex0g.js";import"./react-hot-toast-cGcFZPSt.js";import"./react-router-dom-C6k78GT4.js";import"./index-BV9-YCKp.js";import"./chunk-UX7UMZL5-CMHjUaC_.js";import"./SelectionManager-Dl9uHsLK.js";import"./usePress-BrNwsdVw.js";import"./layout-Buao20KT.js";import"./gestures-BHfQC-M8.js";import"./features-animation-BkV7kg8P.js";import"./Item-D8Sud-UP.js";import"./iconBase-B7bT1FlI.js";function _(){const{data:a,loading:n,error:i}=g(j.GetSnowCatVersion);return e.jsx("div",{className:"flex items-center gap-2",children:i?e.jsx(o,{color:"danger",variant:"flat",size:"sm",children:i.message}):n?e.jsx(f,{size:"sm",color:"default"}):e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o,{size:"sm",color:"default",variant:"flat",className:"text-default-500",children:"WebUI Next"}),e.jsxs(o,{size:"sm",color:"primary",variant:"flat",children:["Core ",a==null?void 0:a.version]})]})})}function ne(){const a=[{icon:e.jsx(L,{size:20}),title:"接入方式全",desc:"WS 正反连、HTTP 上报、HTTP SSE、MCP 四种接入方式,按需取用。",className:"bg-primary-50 text-primary"},{icon:e.jsx(k,{size:20}),title:"社区自持主干",desc:"上游 Ending 后由社区接力维护,Fork 是遗愿,我们续写。",className:"bg-success-50 text-success"},{icon:e.jsx(N,{size:20}),title:"OneBot 11 全量",desc:"181 上游动作 + SnowLuma 采石场 29+ 动作,持续扩充。",className:"bg-warning-50 text-warning"},{icon:e.jsx(T,{size:20}),title:"稳定线内建",desc:"掉线指数退避重连、真人节奏抖动、小时预算、连发熔断。",className:"bg-secondary-50 text-secondary"},{icon:e.jsx(b,{size:20}),title:"全平台零硬改",desc:"自动发现已装 QQ、自动读实况版本、一键注入;亦有便携制作器。",className:"bg-default-50 text-default-600"},{icon:e.jsx(w,{size:20}),title:"本地运行时",desc:"一切动作都在本地执行,代码全开源白盒可查,无任何外发。",className:"bg-danger-50 text-danger"}],n=[{icon:e.jsx(y,{}),name:"GitHub · DandanLLab/SnowCatQQ",href:"https://github.com/DandanLLab/SnowCatQQ"},{icon:e.jsx(P,{}),name:"文档 · README 与接入指南",href:"https://github.com/DandanLLab/SnowCatQQ#readme"},{icon:e.jsx(v,{}),name:"API 文档 · OneBot v11 动作全表",href:"https://github.com/DandanLLab/SnowCatQQ/tree/main/docs/api"},{icon:e.jsx(S,{}),name:"MCP 接入 · Network 配置 mcpServers",href:"https://github.com/DandanLLab/SnowCatQQ#mcp"}],i=[{name:"NapCat(NapNeko/NapCatQQ)",role:"底座 · 上游已官宣 Ending,Fork 接力"},{name:"SnowLuma(继任 TomyJan/SnowLuma)",role:"能力采石场 · qzone 全家桶/群相册/闪照等"}],t="bg-white/55 dark:bg-white/[0.04] backdrop-blur-xl border border-white/60 dark:border-white/10 shadow-sm rounded-2xl";return e.jsxs("div",{className:"sc-page flex flex-col gap-5",children:[e.jsx("title",{children:"关于 - SnowCat WebUI · 雪猫控制台"}),e.jsxs("div",{className:"rounded-2xl px-5 py-6 bg-gradient-to-r from-primary-100/70 via-primary-50/40 to-transparent dark:from-primary-900/30 dark:via-primary-900/10 dark:to-transparent border border-primary-100/60 dark:border-primary-900/30 relative overflow-hidden",children:[e.jsx("div",{className:"absolute -right-10 -top-10 w-40 h-40 rounded-full bg-primary-300/30 blur-3xl pointer-events-none"}),e.jsxs("div",{className:"flex items-center gap-4 flex-wrap relative",children:[e.jsx(p,{src:Q,alt:"SnowCat Logo(雪猫)",width:44,height:44,className:"rounded-xl"}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold text-default-900 dark:text-white tracking-tight",children:"SnowCat · 雪猫"}),e.jsx("p",{className:"text-small text-default-500 mt-0.5",children:"社区自持的 QQ 融合客户端 · 本地运行时 · 白盒可查"})]}),e.jsx("div",{className:"ml-auto flex items-center gap-3",children:e.jsx(_,{})})]})]}),e.jsx(x,{className:"opacity-50"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 flex-grow",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4 flex-col items-start",children:e.jsx("h2",{className:"text-lg font-bold",children:"为什么有雪猫"})}),e.jsxs(r,{className:"py-4 text-default-600 leading-relaxed space-y-2",children:[e.jsx("p",{children:"2026-11 上游 NapCat 官宣 Ending,SnowLuma 原库消失。Fork 是遗愿, 接力棒掉在地上我们捡——雪猫由此而生。"}),e.jsx("p",{children:"我们不与官方对着干:官方走工作流,雪猫走个人开发者的娱乐与陪伴路线, 两赛道互不干涉,社区共享。运行时全部在本地,所有动作本地执行、代码白盒可查。"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:a.map((s,d)=>e.jsx(l,{shadow:"sm",className:t,children:e.jsxs(r,{className:"flex flex-row items-start gap-4 p-4",children:[e.jsx("div",{className:`p-3 rounded-lg ${s.className}`,children:s.icon}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-default-900",children:s.title}),e.jsx("p",{className:"text-small text-default-500 mt-1",children:s.desc})]})]})},d))}),e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsx("h2",{className:"text-lg font-bold",children:"接入方式"})}),e.jsx(r,{className:"py-4",children:e.jsxs(u,{"aria-label":"接入方式",size:"sm",classNames:{tabList:"bg-default-100/50"},children:[e.jsx(m,{title:"WebSocket",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"正向 WS:雪猫开服务端口,客户端连进来(网络配置 → WS服务器)。"}),e.jsx("p",{children:"反向 WS:雪猫作为客户端主动连你的服务(网络配置 → WS客户端,dsh 生态即此模式)。"}),e.jsx("p",{className:"text-tiny text-default-400",children:"协议:OneBot v11,事件上报 + 动作调用双通道。"})]})},"ws"),e.jsx(m,{title:"HTTP",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"HTTP 服务器:本地开端口收动作调用(网络配置 → HTTP服务器)。"}),e.jsx("p",{children:"HTTP 客户端:事件主动 POST 上报到你的回调地址。"}),e.jsx("p",{children:"HTTP SSE:服务器推送事件流,适合浏览器内直连。"})]})},"http"),e.jsx(m,{title:"MCP",children:e.jsxs("div",{className:"text-small text-default-600 space-y-2 pt-2",children:[e.jsx("p",{children:"Model Context Protocol:把雪猫的全部动作以 MCP 工具形式暴露。"}),e.jsx("p",{children:"在网络配置 → MCP 服务器中添加条目,AI 宿主(Claude / dsh 等)即可直连调用。"}),e.jsx("p",{className:"text-tiny text-default-400",children:"传输:Streamable HTTP,兼容 MCP 2025-03-26 规范。"})]})},"mcp")]})})]})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsx("h2",{className:"text-lg font-bold",children:"开源与文档"})}),e.jsx(r,{className:"py-4 space-y-2",children:e.jsx("div",{className:"flex flex-col gap-1",children:n.map((s,d)=>e.jsxs(h,{isExternal:!0,href:s.href,className:"flex items-center justify-between p-2.5 rounded-xl hover:bg-default-100/50 transition-colors text-default-600 text-small",children:[e.jsxs("span",{className:"flex items-center gap-3 min-w-0",children:[s.icon,e.jsx("span",{className:"truncate",children:s.name})]}),e.jsx("span",{className:"text-tiny text-default-400 flex-shrink-0",children:"→"})]},d))})})]}),e.jsxs(l,{shadow:"sm",className:t,children:[e.jsx(c,{className:"pb-0 pt-4 px-4",children:e.jsxs("h2",{className:"text-lg font-bold flex items-center gap-2",children:[e.jsx(C,{className:"text-danger"})," 上游致谢"]})}),e.jsxs(r,{className:"py-4 space-y-3",children:[i.map(s=>e.jsxs("div",{children:[e.jsx("p",{className:"text-small font-medium text-default-700",children:s.name}),e.jsx("p",{className:"text-tiny text-default-400 mt-0.5",children:s.role})]},s.name)),e.jsx(x,{className:"opacity-40"}),e.jsxs("p",{className:"text-tiny text-default-400",children:["MIT License © ",new Date().getFullYear()," SnowCat Team · Made with ❤️ by the community"]})]})]})]})]})]})}export{ne as default};