feat(frontend): restore the posts count badge and drop dead vipbg-v1 rules
统计行补回「文章」徽章。上一轮按「项目不做帖子」的要求把它删掉了,现在这个判断反过来了,于是恢复:位置回到参考主题的顺序(文章在最前),计数仍走 count_user_posts,图标改用全局 FA5+ 的 fa-file-alt,与其余徽章(评论 / 点赞 / 人气)保持一致。 删掉 main.css 里 .vipbg-v1 与 .vipbg-v1:before 两条死规则。全站没有任何地方使用这个类,而且 :before 里的 f006 是 FA4 码位,在 FA5 中映射不到任何字形,留着只会让人以为水印能出来。 两个契约测试里原本断言统计行不输出文章徽章,改回断言输出,并补上 fa-file-alt 的校验。 重建 main.min.css;public bundle 本次未变,因为它打包的 header-userbox.css 没有改动。573 项契约测试全部通过。
This commit is contained in:
@@ -307,8 +307,8 @@ test('after-box author card mirrors legacy user-card structure', () => {
|
||||
assert.match(render, /<div class="user-desc mt10 muted-2-color em09">/);
|
||||
assert.doesNotMatch(render, /user-btns/);
|
||||
assert.doesNotMatch(render, /发布文章.*用户中心/s);
|
||||
// The project ships no posts, so the stats row carries no posts chip.
|
||||
assert.doesNotMatch(identity, /tag-posts/);
|
||||
// The stats row carries the posts chip.
|
||||
assert.match(identity, /tag-posts/);
|
||||
assert.match(identity, /tag-comment/);
|
||||
assert.match(identity, /tag-follow/);
|
||||
assert.match(identity, /tag-like/);
|
||||
|
||||
Reference in New Issue
Block a user