Compare commits
3 Commits
33424409d5
...
90c4115f20
| Author | SHA1 | Date |
|---|---|---|
|
|
90c4115f20 | |
|
|
aa63d6e28a | |
|
|
e7ec875a32 |
|
|
@ -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 .
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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 && \
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue