Compare commits
2 Commits
e30ae019e8
...
c1535227b9
| Author | SHA1 | Date |
|---|---|---|
|
|
c1535227b9 | |
|
|
c07c564bbb |
|
|
@ -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.19 \
|
--build-arg VERSION=1.20 \
|
||||||
-t 192.168.2.212:3000/tigeren/metube:1.19 \
|
-t 192.168.2.212:3000/tigeren/metube:1.20 \
|
||||||
--push .
|
--push .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB |
|
|
@ -53,6 +53,7 @@ export class AppComponent implements OnInit {
|
||||||
mode: 'downloads' | 'library' = 'downloads';
|
mode: 'downloads' | 'library' = 'downloads';
|
||||||
libraryEnabled = false;
|
libraryEnabled = false;
|
||||||
libraryFolders: LibraryFolder[] = [];
|
libraryFolders: LibraryFolder[] = [];
|
||||||
|
libraryFolderNames: string[] = [];
|
||||||
libraryFiles: LibraryFile[] = [];
|
libraryFiles: LibraryFile[] = [];
|
||||||
libraryFolder = ''; // '' = library root
|
libraryFolder = ''; // '' = library root
|
||||||
libraryLoading = false;
|
libraryLoading = false;
|
||||||
|
|
@ -187,8 +188,11 @@ export class AppComponent implements OnInit {
|
||||||
loadLibraryFolders(): void {
|
loadLibraryFolders(): void {
|
||||||
if (!this.libraryEnabled) return;
|
if (!this.libraryEnabled) return;
|
||||||
this.downloads.libraryFolders().subscribe({
|
this.downloads.libraryFolders().subscribe({
|
||||||
next: (res) => { this.libraryFolders = res.folders; },
|
next: (res) => {
|
||||||
error: () => { this.libraryFolders = []; }
|
this.libraryFolders = res.folders;
|
||||||
|
this.libraryFolderNames = res.folders.map(f => f.name).filter(n => n);
|
||||||
|
},
|
||||||
|
error: () => { this.libraryFolders = []; this.libraryFolderNames = []; }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -259,10 +263,6 @@ export class AppComponent implements OnInit {
|
||||||
this.organizeOpen = false;
|
this.organizeOpen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
get libraryFolderNames(): string[] {
|
|
||||||
return this.libraryFolders.map(f => f.name).filter(n => n);
|
|
||||||
}
|
|
||||||
|
|
||||||
private normalizeName(s: string): string {
|
private normalizeName(s: string): string {
|
||||||
return (s || '').toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g, ' ').trim();
|
return (s || '').toLowerCase().replace(/[^a-z0-9\u4e00-\u9fff]+/g, ' ').trim();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue