Flechazo 4f281715f6 feat: fold the changelog in place, a disclosure button on the divider, pointer-lit glass rims
Folding keeps the button where it was clicked: entries above the viewport
go at once with the scroll corrected, the ones in view fade while the list
closes, and the page scrolls at most one screen. Nothing is hidden just to
be measured any more; that shortened the document, clamped scrollY and made
the button jump. Fold frames run inside the glass loop ahead of the glass,
in whole pixels, with only opacity and transform on the entries.

The "more" button sits on the list's closing divider with the label, the
version count and a chevron well; label and width ease between states.

Hover no longer brightens the whole glass: the rim nearest the pointer
catches a highlight that follows it, the bezel bends a little further,
pills lean toward the pointer, and a press lights the body from the
contact point.
2026-10-25 10:20:24 +08:00

bd2-site

BD2 离线版的客户端与服务端下载站,部署在 https://bd2.flechazo.xin。纯静态页面,无构建步骤。

  • site/:站点根目录。背景 assets/bg.webp 裁自 SpecialIllust291(2048×1100);app.js 用 WebGL 着色器绘制背景光影和所有液态玻璃(按元素实时矩形计算折射、色散、高光,跟随鼠标形变),不支持 WebGL 时退回 CSS backdrop-filter 玻璃。data/latest.json 记录当前下载文件的版本、大小与 SHA-256;更新日志在浏览器中读取 /releases/CHANGELOG.md。
  • /releases/ 由 Caddy 只读反代到 BD2 服务端的签名发布目录(DATA_DIR/releases),与启动器、服务端自动更新使用同一套文件。
  • scripts/sync.py:BD2 仓库 bd2w release publish、签名并上传发布材料后,运行它重新生成 site/data/latest.json,再提交、推送并部署。
  • scripts/serve.py:本地预览,/releases/ 从发布主机获取。
python -I scripts/sync.py --release F:/code/go/bd2/.build/release-site
python -I scripts/serve.py --upstream https://bd2.flechazo.xin

部署:服务器 /opt/bd2-site 是本仓库的检出,Caddy 站点块位于 server-infra/bd2-site/Caddyfile。

cd /opt/bd2-site && git fetch origin && git checkout --detach <commit>
S
Description
No description provided
Readme
637 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 65.5%
CSS 23.5%
HTML 6.5%
Python 4.5%