Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

Merge branch 'agent/claude/sort-direction'

longmeidao40fe59ab70a4
diff --cc web/app.js
index f89010e43,e2e63976d..a402b1a9b
--- a/web/app.js
+++ b/web/app.js
@@@ -143,12 -169,11 +169,16 @@@ function wireCountRow()
function renderCatalogLoading(label='正在读取作品'){
const count=$('#count');
count.setAttribute('aria-busy','true');
- count.textContent='';count.setAttribute('aria-label',label);
+ count.setAttribute('aria-label',label);
+ // 回收站的计数挂在说明行上,这一行只剩「清空回收站」,没有会变的数字可占位。
+ count.innerHTML=state&&state.state==='trash'?''
+ :`<span class="mono"><span class="countskeleton"></span></span>`+countSortsHtml();
+ wireCountRow();
+ /* 骨架一铺上去就得把底部那颗 Loading Dots 收掉。骨架说的是「等下会出现几张什么
+ 形状的卡」,dots 说的是「上面已经有内容,还在往下接」;两段同时在场时一屏里
+ 铺着两种等待动画,而实际只有一次请求在跑。哨兵的可见性由数据落地后的
+ `has_more` 重新决定,所以这里只管收,不必记住原值。 */
+ $('#loadSentinel').hidden=true;
$('#grid').innerHTML=pageSkeletonHtml(label,{cards:true,className:'catalog-skeleton'});
}
/* 每个管理表面的加载态只有一份定义,深链启动和路由到位后都从这里取。