Compare commits

..

No commits in common. "90c4115f2090761a6b6ccd0c49743cd158c065c4" and "33424409d5cc48e6ced4498acb0a9169b0d2a63a" have entirely different histories.

3 changed files with 8 additions and 8 deletions

View File

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

View File

@ -16,10 +16,8 @@ WORKDIR /app
# so it stays cached unless this block itself changes. # so it stays cached unless this block itself changes.
# apt caches are BuildKit cache mounts: even when this layer is invalidated, # apt caches are BuildKit cache mounts: even when this layer is invalidated,
# package downloads are reused instead of hitting deb.debian.org again. # 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 \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/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 update && \
apt-get install -y --no-install-recommends ffmpeg aria2 curl tini gosu ca-certificates unzip \ apt-get install -y --no-install-recommends ffmpeg aria2 curl tini gosu ca-certificates unzip \
chromium libnss3 libfreetype6 libharfbuzz0b fonts-freefont-ttf && \ chromium libnss3 libfreetype6 libharfbuzz0b fonts-freefont-ttf && \

View File

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