Compare commits

...

3 Commits

Author SHA1 Message Date
tigerenwork 90c4115f20 Publish v1.16 2026-08-11 23:07:51 +08:00
tigerenwork aa63d6e28a build: apt 使用阿里云镜像,加速国内网络下的镜像构建 2026-08-11 23:07:51 +08:00
tigerenwork e7ec875a32 fix: 侧边栏文件夹计数跟随状态筛选变化 2026-08-11 23:07:51 +08:00
3 changed files with 8 additions and 8 deletions

View File

@ -27,8 +27,8 @@ default, e.g. via QEMU emulation).
```sh
docker buildx build --platform linux/amd64 \
--build-arg VERSION=1.14 \
-t 192.168.2.212:3000/tigeren/metube:1.14 \
--build-arg VERSION=1.16 \
-t 192.168.2.212:3000/tigeren/metube:1.16 \
--push .
```

View File

@ -16,8 +16,10 @@ WORKDIR /app
# so it stays cached unless this block itself changes.
# apt caches are BuildKit cache mounts: even when this layer is invalidated,
# package downloads are reused instead of hitting deb.debian.org again.
# deb.debian.org is slow from CN networks, so point apt at a local mirror first.
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sed -i 's|deb\.debian\.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources && \
apt-get update && \
apt-get install -y --no-install-recommends ffmpeg aria2 curl tini gosu ca-certificates unzip \
chromium libnss3 libfreetype6 libharfbuzz0b fonts-freefont-ttf && \

View File

@ -185,19 +185,17 @@ export class AppComponent implements OnInit {
get folderNavs(): { name: string; count: number }[] {
const counts = new Map<string, number>();
const bump = (dl: Download) => {
const key = dl.folder || '';
for (const { value } of this.statusEntries(this.status)) {
const key = value.folder || '';
counts.set(key, (counts.get(key) || 0) + 1);
};
this.downloads.queue.forEach(bump);
this.downloads.done.forEach(bump);
}
return Array.from(counts.entries())
.map(([name, count]) => ({ name, count }))
.sort((a, b) => a.name.localeCompare(b.name, 'zh'));
}
get allCount(): number {
return this.downloads.queue.size + this.downloads.done.size;
return this.statusEntries(this.status).length;
}
get folderName(): string {