Repository navigation
feat(category): 分类页对齐官网首页栏目,预览数量动态跟随 - #349
Open
makisekurisu-jp wants to merge 1 commit into
Open
makisekurisu-jp wants to merge 1 commit into
makisekurisu-jp wants to merge 1 commit into
Conversation
makisekurisu-jp
force-pushed
the
feat/category-official-home
branch
from
November 29, 2026 18:36
ca478f9 to
b5ed916
Compare
makisekurisu-jp
force-pushed
the
feat/category-official-home
branch
from
November 29, 2026 18:39
b5ed916 to
f61d31f
Compare
Owner
|
喂喂这是什么,你再看看呢,关键词是从源里解析的还是内嵌的 |
Author
|
看了,确实是内嵌的: 已改为读取
|
Owner
|
我选择保持目前布局,并且准备移除ai剧评,所以没必要加入博客,其他我会合并,你可以不用改了,我来吧 |
Author
OK |
zxsos
added a commit
that referenced
this pull request
Nov 30, 2026
- Restore the two large shortcuts and four compact entries. - Keep the four homepage video shelves and the blog entry. - Read preview titles from preview.moreName when provided. - Show update progress and play counts on video cards.
makisekurisu-jp
force-pushed
the
feat/category-official-home
branch
from
November 30, 2026 07:44
a3ec3e9 to
b0ebb7d
Compare
zxsos
added a commit
that referenced
this pull request
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
AI短剧、AI漫剧,第二行博客、专题、标签、作者。黄果原创、精选推荐、最近上新、热播短剧。catalog.showDefaultPosts能力开关,分类页不再自动补默认帖子货架。CatalogPreview契约(limit / cate / moreLabel / moreCate / moreName / moreKind),每个栏目可独立指定预览分类、右侧文案、更多页标题和「更多」跳转;「更多热播」进入排行榜热播榜。preview.limit: 20只是安全上限,实际显示官网移动端当前解析到的卡片数。官网原创从 6 张变 8 张时,App 会同步显示 8 张。preview.moreName(例如精选推荐的更多页标题为「热门推荐」),未提供时回退到频道自身的label;App 不再内嵌站点专属标题。截图
完整分类页(改版后):
验证
npx tsc --noEmit通过。node scripts/test-category-official-preview.mjs通过 8 checks:6/6/10/10、右侧文案、2 大 4 小布局、博客入口、无默认帖子货架、更多推荐页头为「热门推荐」、更多热播进 ranks。node scripts/test-category-hitbox.mjs通过 4 checks。AI短剧/AI漫剧:最新更新 / 当前热播 / 精选推荐,默认当前热播。黄果原创:全部原创 / 原创漫剧 / 原创短剧,默认全部原创。精选推荐:无频道 tab,仅指标排序菜单。size:20返回 6/6/10/10,limit为上限而非固定显示数;精选推荐的moreName为「热门推荐」。manifest.rs已独立编译并跑通单测;完整cargo check受本机缺少gdk-3.0限制,交由 CI 验证。说明
未配置
preview的旧数据仍按原有逻辑显示默认 6 张,不会破坏兼容性;已配置时按preview.cate和preview.limit展示。