diff --git a/src/app/app.component.html b/src/app/app.component.html index 6ec00c9..61ee690 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,67 +1,95 @@
-
- -
-
-
-
- - -
-
-
-
- - - - - - - - - - - -
-
+
+ +
+
+
+
+ @if (router.url.split(';')[0] !== '/player') { + + } @else { + + } +
- -
-
- - - - Home - Login - Subscriptions - Downloads - Tasks - - - Settings - - - - {{subscription.name}} - - - - - - - -
+
+
+ @if (postsService.config?.Extra.enable_notifications) { + + } + + + + + + + @if (!postsService.config?.Advanced.multi_user_mode || postsService.isLoggedIn) { + + } + @if (allowThemeChange) { + + } + + +
+
+
+ +
+
+ + + + @if (postsService.config && (!postsService.config.Advanced.multi_user_mode || postsService.isLoggedIn)) { + Home + } + @if (postsService.config && postsService.config.Advanced.multi_user_mode && !postsService.isLoggedIn) { + Login + } + @if (postsService.config && allowSubscriptions && postsService.hasPermission('subscriptions')) { + Subscriptions + } + @if (postsService.config && enableDownloadsManager && postsService.hasPermission('downloads_manager')) { + Downloads + } + @if (postsService.config && postsService.hasPermission('tasks_manager')) { + Tasks + } + @if (postsService.config && postsService.hasPermission('settings')) { + + Settings + } + @if (postsService.config && allowSubscriptions && postsService.subscriptions && postsService.hasPermission('subscriptions')) { + @if (postsService.subscriptions.length > 0) { + + } + @for (subscription of postsService.subscriptions; track subscription) { + {{subscription.name}} + } + } + + + + + + +
\ No newline at end of file diff --git a/src/app/components/archive-viewer/archive-viewer.component.html b/src/app/components/archive-viewer/archive-viewer.component.html index a25f151..29401f9 100644 --- a/src/app/components/archive-viewer/archive-viewer.component.html +++ b/src/app/components/archive-viewer/archive-viewer.component.html @@ -3,75 +3,68 @@ Filter -
-
- - - - - - - - - - - - - {{(row.type === 'audio') ? 'audiotrack' : 'movie'}} - - - - - - Date - {{element.timestamp*1000 | date: 'short'}} - - - - - Title - - - {{element.title}} - - - - - - - ID - - - {{element.id}} - - - - - - - Extractor - - - {{element.extractor}} - - - - - - - -
+
+ + + + + + + + + + + + {{(row.type === 'audio') ? 'audiotrack' : 'movie'}} + + + + + Date + {{element.timestamp*1000 | date: 'short'}} + + + + Title + + + {{element.title}} + + + + + + ID + + + {{element.id}} + + + + + + Extractor + + + {{element.extractor}} + + + + + + +
- -
-

Archives empty

-
- +@if ((!archives || archives.length === 0)) { +
+

Archives empty

+
+}
@@ -82,7 +75,9 @@ Subscription None - {{sub.name}} + @for (sub of postsService.subscriptions; track sub) { + {{sub.name}} + } @@ -95,49 +90,55 @@
-
- -
-
- Drag and Drop -
-
- -
-
-
+ +
+
+ Drag and Drop +
+
+ +
+
+
-
- - - - - - -
- {{ item.relativePath }} - -
- - Subscription - - None - {{sub.name}} - - - - File type - - Video - Audio - - - -
-
+ + @for (item of files; track item; let i = $index) { + + + {{ item.relativePath }} + + +
+ + Subscription + + None + @for (sub of postsService.subscriptions; track sub) { + {{sub.name}} + } + + + + File type + + Video + Audio + + + +
+ + + } + +
diff --git a/src/app/components/concurrent-stream/concurrent-stream.component.html b/src/app/components/concurrent-stream/concurrent-stream.component.html index 414c4ac..ffcea14 100644 --- a/src/app/components/concurrent-stream/concurrent-stream.component.html +++ b/src/app/components/concurrent-stream/concurrent-stream.component.html @@ -1,6 +1,14 @@
- - - - + @if (!watch_together_clicked) { + + } @else { + @if (!started) { + @if (server_already_exists) { + + } @else if (server_mode) { + + } + } + + }
\ No newline at end of file diff --git a/src/app/components/custom-playlists/custom-playlists.component.html b/src/app/components/custom-playlists/custom-playlists.component.html index 4a80cd2..2b8a721 100644 --- a/src/app/components/custom-playlists/custom-playlists.component.html +++ b/src/app/components/custom-playlists/custom-playlists.component.html @@ -1,13 +1,18 @@ -
+@if (playlists) { +
-
-
- -
-
+
+ @for (playlist of playlists; track playlist; let i = $index) { +
+ +
+ } @empty { +
+ No playlists available. Create one from your downloading files by clicking the blue plus button. +
+ } +
-
-
- No playlists available. Create one from your downloading files by clicking the blue plus button. -
+
+}
\ No newline at end of file diff --git a/src/app/components/downloads/downloads.component.html b/src/app/components/downloads/downloads.component.html index 5c11a12..7005015 100644 --- a/src/app/components/downloads/downloads.component.html +++ b/src/app/components/downloads/downloads.component.html @@ -1,97 +1,102 @@
-
- - - - - Date - {{element.timestamp_start | date: 'short'}} - - - - - Title - - - {{element.title}} +
+ + + + Date + {{element.timestamp_start | date: 'short'}} + + + + Title + + + {{element.title}} + + + + + + Subscription + + @if (element.sub_name) { + {{element.sub_name}} + } @else { + N/A + } + + + + + Progress + + @if (!element.error) { + @if (element.step_index !== 2) { + {{STEP_INDEX_TO_LABEL[element.step_index]}} + } @else { + @if (element.percent_complete) { + {{+(element.percent_complete) > 100 ? '100' : element.percent_complete}}% + } @else { + N/A + } + } + } @else { + Error + } + + + + + Actions + + @if (!minimizeButtons) { +
+ @for (downloadAction of downloadActions; track downloadAction) { + + @if (downloadAction.loading && downloadAction.loading(element)) { + + } + @if (downloadAction.show(element)) { + + } - - - - - - Subscription - - - {{element.sub_name}} - - - N/A - - - - - - - Progress - - - {{STEP_INDEX_TO_LABEL[element.step_index]}} - - - - {{+(element.percent_complete) > 100 ? '100' : element.percent_complete}}% - - - N/A - - - Error - - - - - - Actions - -
- - - - - - -
-
- - - - - - -
-
-
- - - - - - - -
-
- - - -
+ } +
+ } @else { +
+ + + @for (downloadAction of downloadActions; track downloadAction) { + @if (downloadAction.show(element)) { + + } + } + +
+ } +
+
+ + +
+ + +
+ @if (!uids) { +
+ + + +
+ }
- -
-

No downloads available!

-
\ No newline at end of file +@if ((!downloads || downloads.length === 0) && downloads_retrieved && !uids) { +
+

No downloads available!

+
+} \ No newline at end of file diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html index 0569a8a..bd7cbe6 100644 --- a/src/app/components/login/login.component.html +++ b/src/app/components/login/login.component.html @@ -1,46 +1,55 @@ - - -
- - User name - - -
-
- - Password - - -
-
- -
- - User name - - -
-
- - Password - - -
-
- - Confirm Password - - -
-
-
-