重构作品分享链路

统一发布分享弹窗为作品分享卡片

支持下载分享卡与小程序九宫切图保存

小程序复制链接改为可直达作品详情的 web-view 路径

修复本地 dev Rust 构建绕过损坏 sccache

补充分享链路与 dev 启动文档和测试
This commit is contained in:
2026-06-11 21:32:29 +08:00
parent ccb5023197
commit c5763fdf25
37 changed files with 1958 additions and 305 deletions

View File

@@ -114,6 +114,18 @@ describe('index stylesheet unread dots', () => {
expect(block).toContain('var(--platform-cool-bg)');
expect(block).not.toContain('background: transparent;');
});
it('keeps mini program recommend runtime inside a share snapshot safe area', () => {
const css = readIndexCss();
const block = getCssBlock(
css,
"html[data-wechat-mini-program-runtime='true']\n .platform-recommend-runtime-panel",
);
expect(block).toContain('max-height: min(76dvh, 42rem);');
expect(block).toContain('transform: scale(0.88);');
expect(block).toContain('transform-origin: center;');
});
});
describe('index stylesheet draft mobile cards', () => {