Files
blog/src/components/SearchDialog.astro
T
wait4xandGLM-5.3 938558ad4c feat(launch): 热力图与 webhook 发布闭环(T2/T3)
- T2 (op-artalk 车道):gitea heatmap 构建期拉取+fallback+空态三保险,
  53×7 灰阶格复用 tokens(亮暗自动),日界锚定 Asia/Shanghai,零 JS,
  zh/en 首页挂载;fallback 经死端点实测不破构建
- T3:webhook_receiver.py(HMAC 强制+main-only+构建锁)以 systemd
  --user 常驻 13021;gitea hook 注册(events=push, branch=main)
- 三个深坑:gitea 容器回宿主须走桥网关 IP 而非 127.0.0.1;gitea 28
  egress 拦私网须 ALLOWED_HOST_LIST(ALLOWLIST 是废弃名);systemd
  用户服务缺用户 PATH 致 build 静默失败(stamp 不更新即症状)

验证: 测试投递 202→构建→staging 戳更新(09:48:37 实测);
      dist 热力图 376 格真数据(9 次贡献)zh/en 双页

Spec: 2026-10-25_add-blog-launch
Co-authored-by: GLM-5.3
2026-10-25 09:49:19 +08:00

17 lines
633 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
// 薄壳:历史挂载点名与 DOM id 不变(BaseLayout 无需感知),
// 实现整体迁往 CommandPalette(动作 + 导航 + 搜索三层命令面板)
import CommandPalette from './CommandPalette.astro';
import { localeOf } from '../lib/locale';
import type { Locale } from '../lib/locale';
interface Props {
locale?: Locale;
}
// BaseLayout 暂未传 locale:按所在页路径构建期自判(zh 页恒 zh,零回归;
// en 页由此拿到英文化面板与 /en/ 导航目标,无需动 BaseLayout)
const { locale = localeOf(Astro.url.pathname) } = Astro.props;
---
<CommandPalette locale={locale} />