feat: 分类计数改为括号样式并发布 v2.1.3
构建与发布 / 单测与集成测试 (push) Waiting to run
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (arm64, linux, ubuntu-24.04-arm) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (arm64, macos, macos-15) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (x64, linux, ubuntu-24.04) (push) Blocked by required conditions
构建与发布 / 打包 ${{ matrix.platform }} ${{ matrix.arch }} (x64, windows, windows-2025) (push) Blocked by required conditions
构建与发布 / 发布 GitHub Release (push) Blocked by required conditions

This commit is contained in:
lofyer
2026-08-06 18:37:50 +08:00
parent d6078098d6
commit c294b68e96
11 changed files with 53 additions and 21 deletions
@@ -579,10 +579,18 @@ app.whenReady().then(async () => {
const shelves = Array.from(document.querySelectorAll('#libraryShelfList .library-filter'));
const research = shelves.find((button) => button.textContent.includes('研究书架'));
const review = shelves.find((button) => button.textContent.includes('待复核书架'));
return all.querySelector('.library-filter-count').textContent === '3'
&& uncategorized.querySelector('.library-filter-count').textContent === '1'
&& research.querySelector('.library-filter-count').textContent === '1'
&& review.querySelector('.library-filter-count').textContent === '1';
const actionButtons = Array.from(
document.querySelectorAll('.library-shelf-actions .notes-icon-btn')
);
return all.textContent.trim() === '全部书籍(3'
&& uncategorized.textContent.trim() === '未分类(1'
&& research.textContent.trim() === '研究书架(1'
&& review.textContent.trim() === '待复核书架(1'
&& actionButtons.every((button) => {
const style = getComputedStyle(button);
return style.backgroundColor === 'rgba(0, 0, 0, 0)'
&& style.borderTopColor === 'rgba(0, 0, 0, 0)';
});
})()`)
);
check(