feat: rename server package to hub

Rename the `server/` directory to `hub/` and update all references
across CLI, docs, web, and workspace configuration.
This commit is contained in:
weishu
2026-01-27 19:51:21 +08:00
parent 10fe9f0cd9
commit 37e10a831b
125 changed files with 301 additions and 285 deletions
+3 -3
View File
@@ -274,9 +274,9 @@ export default function Home() {
<h3 className="font-bold">{t('installation.npm.step1')}</h3>
</div>
<div className="bg-slate-950 text-slate-50 p-4 rounded-xl font-mono text-sm flex justify-between items-center border-2 border-slate-800">
<code>npx @twsxtd/hapi server --relay</code>
<Button variant="ghost" size="icon" className="text-slate-400 hover:text-white hover:bg-slate-800" onClick={() => copyToClipboard("npx @twsxtd/hapi server --relay", "server")}>
{copied === "server" ? <Check className="h-4 w-4" /> : <Copy className="h-4 w-4" />}
<code>npx @twsxtd/hapi hub --relay</code>
<Button variant="ghost" size="icon" className="text-slate-400 hover:text-white hover:bg-slate-800" onClick={() => copyToClipboard("npx @twsxtd/hapi hub --relay", "hub")}>
{copied === "hub" ? <Check className="h-4 w-4" /> : <Copy className="h-4 w-4" />}
</Button>
</div>
</div>