From ad0eab880c4a893f174141050d4d53e9f5f35868 Mon Sep 17 00:00:00 2001 From: Alex Shnitman Date: Thu, 23 Jun 2022 23:30:09 +0300 Subject: angular 13 and bootstrap 5 --- ui/src/app/app.component.html | 56 ++++++++++++++++----------------- ui/src/app/app.component.sass | 1 - ui/src/app/downloads.service.ts | 14 ++++----- ui/src/app/master-checkbox.component.ts | 12 +++---- 4 files changed, 40 insertions(+), 43 deletions(-) (limited to 'ui/src') diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html index 9317b85..74425aa 100644 --- a/ui/src/app/app.component.html +++ b/ui/src/app/app.component.html @@ -1,25 +1,27 @@ -
+
@@ -30,20 +32,16 @@
-
- Quality -
-
-
- Format -
-
@@ -69,7 +67,7 @@ - + Speed @@ -101,9 +99,9 @@ - - - + + + diff --git a/ui/src/app/app.component.sass b/ui/src/app/app.component.sass index a084286..517af03 100644 --- a/ui/src/app/app.component.sass +++ b/ui/src/app/app.component.sass @@ -10,7 +10,6 @@ margin: 0.5rem auto button.add-url - zmin-width: 7rem width: 100% $metube-section-color-bg: rgba(0,0,0,.07) diff --git a/ui/src/app/downloads.service.ts b/ui/src/app/downloads.service.ts index 25bcccc..8580a70 100644 --- a/ui/src/app/downloads.service.ts +++ b/ui/src/app/downloads.service.ts @@ -42,13 +42,13 @@ export class DownloadsService { data[0].forEach(entry => this.queue.set(...entry)); this.done.clear(); data[1].forEach(entry => this.done.set(...entry)); - this.queueChanged.next(); - this.doneChanged.next(); + this.queueChanged.next(null); + this.doneChanged.next(null); }); socket.fromEvent('added').subscribe((strdata: string) => { let data: Download = JSON.parse(strdata); this.queue.set(data.id, data); - this.queueChanged.next(); + this.queueChanged.next(null); }); socket.fromEvent('updated').subscribe((strdata: string) => { let data: Download = JSON.parse(strdata); @@ -61,18 +61,18 @@ export class DownloadsService { let data: Download = JSON.parse(strdata); this.queue.delete(data.id); this.done.set(data.id, data); - this.queueChanged.next(); - this.doneChanged.next(); + this.queueChanged.next(null); + this.doneChanged.next(null); }); socket.fromEvent('canceled').subscribe((strdata: string) => { let data: string = JSON.parse(strdata); this.queue.delete(data); - this.queueChanged.next(); + this.queueChanged.next(null); }); socket.fromEvent('cleared').subscribe((strdata: string) => { let data: string = JSON.parse(strdata); this.done.delete(data); - this.doneChanged.next(); + this.doneChanged.next(null); }); } diff --git a/ui/src/app/master-checkbox.component.ts b/ui/src/app/master-checkbox.component.ts index 8c8208a..a8358fc 100644 --- a/ui/src/app/master-checkbox.component.ts +++ b/ui/src/app/master-checkbox.component.ts @@ -7,9 +7,9 @@ interface Checkable { @Component({ selector: 'app-master-checkbox', template: ` -
- - +
+ +
` }) @@ -40,9 +40,9 @@ export class MasterCheckboxComponent { @Component({ selector: 'app-slave-checkbox', template: ` -
- - +
+ +
` }) -- cgit