Skip to content

Commit 398e41f

Browse files
committed
update message
1 parent ec8611d commit 398e41f

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
---
2-
description: Use only port 11436 for local preview and redeploys
2+
description: Use only port 11435 for local preview and redeploys
33
alwaysApply: true
44
---
55

66
# Local Preview Port
77

88
- Do not start a separate frontend dev server for this workspace.
9-
- For local preview, redeploy, and verification, use only `http://localhost:11436`.
10-
- If frontend files change, rebuild `web`, sync `web/dist` into `internal/server/static`, and then restart the backend on `:11436`.
9+
- For local preview, redeploy, and verification, use only `http://localhost:11435`.
10+
- Before any local preview or redeploy, stop the old preview process first.
11+
- Never keep multiple preview servers alive at the same time. If an older `csghub-lite` preview is still running, kill it and then start one fresh instance.
12+
- If frontend files change, rebuild `web`, sync `web/dist` into `internal/server/static`, and then restart the single backend preview on `:11435`.
1113
- Do not start or keep `5173` or any alternate preview port running unless the user explicitly asks for it.
1214

1315
```sh
1416
# ✅ Preferred local workflow
17+
pid11435=$(lsof -tiTCP:11435 -sTCP:LISTEN 2>/dev/null || true)
18+
pid11436=$(lsof -tiTCP:11436 -sTCP:LISTEN 2>/dev/null || true)
19+
pids=$(printf '%s\n%s\n' "$pid11435" "$pid11436" | awk 'NF' | sort -u)
20+
if [ -n "$pids" ]; then kill $pids; fi
1521
cd web && npm run build
1622
cd ..
1723
cp -r web/dist/. internal/server/static/
18-
go run ./cmd/csghub-lite serve --listen :11436
24+
go run ./cmd/csghub-lite serve --listen :11435
1925
```

web/src/data/aiApps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export const aiAppsCatalog: AIAppCatalogEntry[] = [
276276
status: "disabled",
277277
statusText: {
278278
en: "Disabled in AI Apps",
279-
zh: "AI Apps 中暂不支持",
279+
zh: "应用页暂不支持",
280280
},
281281
},
282282
{
@@ -325,7 +325,7 @@ export const aiAppsCatalog: AIAppCatalogEntry[] = [
325325
status: "disabled",
326326
statusText: {
327327
en: "Disabled in AI Apps",
328-
zh: "AI Apps 中暂不支持",
328+
zh: "应用页暂不支持",
329329
},
330330
},
331331
];

web/src/i18n.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const en: Record<string, string> = {
2323
"nav.marketplace": "Marketplace",
2424
"nav.library": "Models",
2525
"nav.chat": "Chat",
26-
"nav.aiApps": "AI Apps",
26+
"nav.aiApps": "应用",
2727

2828
// Dashboard
2929
"dash.resource": "RESOURCE UTILIZATION",
@@ -83,7 +83,7 @@ const en: Record<string, string> = {
8383
"mp.viewer": "Viewer",
8484

8585
// AI Apps
86-
"aiApps.title": "AI Apps",
86+
"aiApps.title": "应用",
8787
"aiApps.subtitle": "Discover and integrate powerful AI applications into your CSGHub-Lite environment.",
8888
"aiApps.search": "Search apps...",
8989
"aiApps.results": "{0} apps",
@@ -318,15 +318,15 @@ const zh: Record<string, string> = {
318318
"aiApps.disabled": "已禁用",
319319
"aiApps.installPreview": "安装预览",
320320
"aiApps.setupDetails": "安装详情",
321-
"aiApps.loadFailed": "加载 AI Apps 状态失败。",
321+
"aiApps.loadFailed": "加载应用状态失败。",
322322
"aiApps.openFailed": "打开应用失败。",
323323
"aiApps.installFailed": "安装失败",
324324
"aiApps.installRunning": "安装进行中",
325325
"aiApps.uninstallFailed": "卸载失败",
326326
"aiApps.uninstallRunning": "卸载进行中",
327327
"aiApps.installedReady": "该应用已安装,你可以在这里继续更新到最新版本。",
328328
"aiApps.readyToInstall": "该应用已准备好安装。",
329-
"aiApps.disabledDockerNotice": "依赖 Docker 的应用目前在 AI Apps 中暂时禁用,请先手动安装。",
329+
"aiApps.disabledDockerNotice": "依赖 Docker 的应用目前在应用页暂不支持,请先手动安装。",
330330
"aiApps.installMode": "安装方式",
331331
"aiApps.progressMode": "进度展示",
332332
"aiApps.currentStatus": "当前状态",
@@ -376,7 +376,7 @@ const zh: Record<string, string> = {
376376
"aiApps.phase.failed": "安装失败",
377377
"aiApps.phase.uninstall_failed": "卸载失败",
378378
"aiApps.phase.complete": "完成",
379-
"aiApps.phase.docker_disabled": "AI Apps 中已禁用",
379+
"aiApps.phase.docker_disabled": "应用页暂不支持",
380380

381381
// Settings
382382
"nav.settings": "设置",

web/src/pages/AIApps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ function actionLabel(state: AIAppRuntimeState): string {
831831
if (state.disabled) return t("aiApps.disabled");
832832
if (state.status === "installed") return t("aiApps.reinstallLatest");
833833
if (state.status === "failed") return t("aiApps.retryInstall");
834-
return t("aiApps.installLatest");
834+
return t("aiApps.install");
835835
}
836836

837837
function drawerNotice(state: AIAppRuntimeState): string {

0 commit comments

Comments
 (0)