diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html index e17a454..d3eac7b 100644 --- a/ui/src/app/app.component.html +++ b/ui/src/app/app.component.html @@ -1,6 +1,9 @@ - MeTube + + + MeTube + + + + + + + + {{ addInProgress ? "Adding..." : "Download" }} + + - - + + + + Quality - + {{ q.text }} - + Format - + {{ f.text }} - - - Auto Start - - Yes - No - - + + + Advanced Options + - - - - - {{ addInProgress ? "Adding..." : "Add" }} - - - Advanced options - - - - - Download Folder - + + + + + + + + + + + + Auto Start + + Yes + No + + - - Custom Name Prefix - + + + Download Folder + + + - - - - - Items limit - - + + + Custom Name Prefix + + + + + + Items Limit + + + + + + + Strict Playlist Mode + + + + + + + + + + + + + Import URLs + - - - - - Strict Playlist mode - - + + + + Export URLs + + + + + + Copy URLs + - - - Import - - - Toggle Dropdown - - - - - Export All URLs - - - - - Copy All URLs - - - - @@ -267,7 +346,10 @@ - + + diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index c1d4e46..649c33c 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -1,7 +1,7 @@ import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { faTrashAlt, faCheckCircle, faTimesCircle, IconDefinition } from '@fortawesome/free-regular-svg-icons'; -import { faRedoAlt, faSun, faMoon, faCircleHalfStroke, faCheck, faExternalLinkAlt, faDownload } from '@fortawesome/free-solid-svg-icons'; +import { faRedoAlt, faSun, faMoon, faCircleHalfStroke, faCheck, faExternalLinkAlt, faDownload, faFileImport, faFileExport, faCopy } from '@fortawesome/free-solid-svg-icons'; import { CookieService } from 'ngx-cookie-service'; import { map, Observable, of } from 'rxjs'; @@ -38,6 +38,7 @@ export class AppComponent implements AfterViewInit { importInProgress = false; cancelImportFlag = false; versionInfo: string | null = null; + isAdvancedOpen = false; @ViewChild('queueMasterCheckbox') queueMasterCheckbox: MasterCheckboxComponent; @ViewChild('queueDelSelected') queueDelSelected: ElementRef; @@ -59,6 +60,9 @@ export class AppComponent implements AfterViewInit { faCircleHalfStroke = faCircleHalfStroke; faDownload = faDownload; faExternalLinkAlt = faExternalLinkAlt; + faFileImport = faFileImport; + faFileExport = faFileExport; + faCopy = faCopy; constructor(public downloads: DownloadsService, private cookieService: CookieService, private http: HttpClient) { this.format = cookieService.get('metube_format') || 'any'; @@ -451,4 +455,8 @@ export class AppComponent implements AfterViewInit { } }); } + + toggleAdvanced() { + this.isAdvancedOpen = !this.isAdvancedOpen; + } }