feat(article): 文章列表添加日期热力图、分类和标签筛选#33
Open
kev1nweng wants to merge 1 commit into
Open
Conversation
This reverts commit a396262.
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.
问题描述
现有文章列表页只有关键词搜索,无法按日期、分类、标签筛选。文章数量增多后定位某篇文章很不方便,而闪念页面已有完善的筛选交互(热力图、标签云、时间快捷筛选),值得参考。
解决方案
ContributionGraph组件,点击某天按日期筛选文章改动范围
frontend/src/views/articles/list/index.vue- 添加左侧边栏布局、筛选条件标签frontend/src/views/articles/list/composables/useArticleList.ts- 新增日期/标签/分类/时间筛选状态和逻辑,热力图/标签/分类统计数据计算frontend/src/locales/*.json(11个语言文件) - 新增todayArticles、monthArticles、allArticles、allCategories四个 i18n 键测试
已在本地验证:热力图日历点击某天可按日期筛选;今日/本月快捷筛选正常工作;分类和标签云点击可筛选,计数正确;筛选互斥逻辑正常(选标签清除日期,选日期清除标签等);筛选条件标签显示正确且可单独清除;分页在筛选后正常工作。
关联 Issue: #21。
分支已推送至 origin/feat/article-filter。
Closes #21