refactor: DevTools → ethend 重命名 + 加入生产环境

- 目录 devtools/ → ethend/
- CLI 脚本 devtools.sh/.bat → ethend.sh/.bat
- 环境变量 DEVTOOLS_PORT → ETHEND_PORT
- docker-compose.yml 新增 ethend 服务(生产部署)
- 同步更新全部文档、注释和配置文件

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 09:32:36 +08:00
parent 27187997b3
commit 365f5ceb2f
30 changed files with 455 additions and 189 deletions
+17
View File
@@ -0,0 +1,17 @@
// 页面路由 Store — 管理当前显示的页面
import { create } from 'zustand';
export type PageId = 'chat' | 'admin-models' | 'admin-dashboard' | 'profile';
interface PageState {
currentPage: PageId;
setPage: (page: PageId) => void;
goToChat: () => void;
}
export const usePageStore = create<PageState>((set) => ({
currentPage: 'chat',
setPage: (page) => set({ currentPage: page }),
goToChat: () => set({ currentPage: 'chat' }),
}));