去掉起始页右下角设置齿轮(SettingsGear),登录页不再有任何 UI 入口; 改为监听地址栏 `#<hash>`,经 checkGate() 交后端 /api/web/gate 校验, 命中合法开发者才放行到登录页。合法 hash 只存在后端、前端不写死。 - 新增 api/gate.ts;App.tsx 用 hashchange 监听 + 防竞态校验 - 返回起始页时抹掉地址栏 hash,避免密钥留在历史里 - Server/.gitignore 忽略 dev_gate.txt(秘密,单独部署) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth.ts | ||
| gate.ts | ||
| weather.ts | ||