chore: directory migration - gateway→server, web→client/electron

This commit is contained in:
2026-09-08 19:16:35 +08:00
parent fd9f99a3f9
commit f9d757b5e5
243 changed files with 5095 additions and 228 deletions

View File

@ -0,0 +1,15 @@
/*
* AgentMail 鸿蒙客户端 — 全局配置
* apiBase 可运行时修改(设置页/登录页),persist 到 preferences
*/
/** 默认联调 Gateway(pi 提供,GUI 联调专用) */
export const DEFAULT_API_BASE: string = 'http://192.168.2.60:8180/api/v1';
/** 模拟器 NAT 访问宿主机地址(备用,若 LAN 直连不通) */
export const EMULATOR_HOST_BASE: string = 'http://10.0.2.2:8180/api/v1';
/** preferences 存储键 */
export const PREF_KEY_API_BASE: string = 'api_base';
export const PREF_KEY_TOKEN: string = 'user_token';
export const PREF_KEY_USERNAME: string = 'username';