From 2c7d3b19dfba713ab68c70a0c2f9ed650ae1f5ac Mon Sep 17 00:00:00 2001 From: m67hoff Date: Thu, 6 Sep 2018 17:25:06 +0200 Subject: [PATCH] combine info into help componet --- src/app/app.component.css | 20 ++++--- src/app/app.component.html | 94 +++++++++++++++++++------------- src/app/app.module.ts | 2 - src/app/help/help.component.css | 26 +++++++++ src/app/help/help.component.html | 28 ++++++++-- src/app/help/help.component.ts | 8 +++ src/app/info/info.component.css | 22 -------- src/app/info/info.component.html | 14 ----- src/app/info/info.component.ts | 19 ------- 9 files changed, 126 insertions(+), 107 deletions(-) delete mode 100644 src/app/info/info.component.css delete mode 100644 src/app/info/info.component.html delete mode 100644 src/app/info/info.component.ts diff --git a/src/app/app.component.css b/src/app/app.component.css index c6ee836..864f634 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -6,13 +6,13 @@ .app-backdrop { top: 0; - left: 0; - right: 0; - bottom: 0; - position: absolute; - display: block; - background-color: rgba(0,0,0,.6); - z-index: 999; + left: 0; + right: 0; + bottom: 0; + position: absolute; + display: block; + background-color: rgba(0, 0, 0, .6); + z-index: 999; } .app-toolbar-filler { @@ -65,10 +65,14 @@ button { .transfer-sidenav { padding: 10px; padding-left: 0px; - min-width: 400px; background-color: snow } +.transfer-sidenav mat-card { + width: 400px; + margin-left: 0px; +} + .transfer-date { font-weight: 300; font-size: 12px; diff --git a/src/app/app.component.html b/src/app/app.component.html index a693e47..a5ba50a 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -2,8 +2,8 @@

AsperaBrowser - Angular Sample App to Aspera API

-    @@ -39,7 +39,7 @@

Node API Settings:

-
+
@@ -48,7 +48,7 @@

Node API Settings:

-
+
@@ -73,9 +73,11 @@

Node API Settings:

- {{ isConnected ? 'check_circle' + {{ isConnected ? + 'check_circle' : 'error' }} - Error: {{ HTTPerror.status }} - {{ HTTPerror.statusText }} - {{ HTTPerror.message + Error: {{ HTTPerror.status }} - {{ HTTPerror.statusText }} - {{ + HTTPerror.message }} - {{ HTTPerror.error?.code }} - {{ HTTPerror.error?.host }}

@@ -86,19 +88,16 @@

Node API Settings:

- - - - - - +
-
{{ config.isFixedURL ? '' : ti.transfer_spec.remote_host + ' -' }} {{ ti.start_time +
{{ config.isFixedURL ? '' : ti.transfer_spec.remote_host + ' -' }} {{ + ti.start_time | date:'EE HH:mm' }}
-
+
pause_circle_filled check_circle error @@ -112,22 +111,26 @@

Node API Settings:

Files: {{ ti.files ? ti.files.length : '?'}} -
{{ ti.status === 'running' ? 'Current: ' + (ti.current_file | string) : 'Status: ' + (ti.status | status) +
{{ ti.status === 'running' ? 'Current: ' + (ti.current_file | string) : 'Status: ' + (ti.status | + status) }}
Error: {{ ti.error_desc }}
-
+
- {{ ti.bytes_written | size }} of {{ ti.bytes_expected | size }} - {{ ti.bytes_written | size }} in {{ ti.elapsed_usec/1000 | duration }} + {{ ti.bytes_written | size }} of {{ ti.bytes_expected | size }} + + {{ ti.bytes_written | size }} in {{ ti.elapsed_usec/1000 | duration + }} -
- ETA: {{(ti.remaining_usec/1000) | ETA | date:'EE HH:mm:ss'}} - {{(ti.remaining_usec/1000) +
+ ETA: {{(ti.remaining_usec/1000) | ETA | date:'EE HH:mm:ss'}} - + {{(ti.remaining_usec/1000) | duration }} remaining - {{ ti.calculated_rate_kbps | rate }}
@@ -145,8 +148,9 @@

Node API Settings:

highlight_off     -
@@ -201,12 +205,14 @@

Node API Settings:

{{ isConnected ? 'refresh' : 'lock_open' }} {{ isConnected ? 'Refresh' : 'Login ' }} - - @@ -215,28 +221,32 @@

Node API Settings:

file_upload File -
+
- - -
- Error: {{ HTTPerror.status }} - {{ HTTPerror.statusText }} - {{ HTTPerror.message + Error: {{ HTTPerror.status }} - {{ HTTPerror.statusText }} - {{ + HTTPerror.message }} - {{ HTTPerror.error?.code }} - {{ HTTPerror.error?.host }} Error: {{ APIerror }}
@@ -257,7 +267,8 @@

Node API Settings:

- + @@ -270,7 +281,8 @@

Node API Settings:

- + Type folder @@ -280,16 +292,20 @@

Node API Settings:

- + Name - + {{ item.basename }} - selected Files: {{ totalFiles}} + selected Files: {{ + totalFiles}} - + Size @@ -300,10 +316,12 @@

Node API Settings:

- + M Time {{ item.mtime | date:'yyyy-MM-dd HH:mm:ss z' }} - + {{totalDirs}} Directories + + {{totalDirs}} + Directories diff --git a/src/app/app.module.ts b/src/app/app.module.ts index dcd1f66..0d04001 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -17,7 +17,6 @@ import { DurationPipe, ETAPipe } from './pipes/duration.pipe'; import { StatusPipe, StringPipe } from './pipes/status.pipe'; import { CreateDirDialogComponent } from './dialog/create-dir-dialog.component'; import { DeleteConfDialogComponent } from './dialog/delete-conf-dialog.component'; -import { InfoComponent } from './info/info.component'; import { HelpComponent } from './help/help.component'; @@ -33,7 +32,6 @@ import { ZlibB64Module } from './zlib-b64/zlib-b64.module'; StatusPipe, StringPipe, CreateDirDialogComponent, DeleteConfDialogComponent, - InfoComponent, HelpComponent ], imports: [ diff --git a/src/app/help/help.component.css b/src/app/help/help.component.css index c315832..dfe98b0 100644 --- a/src/app/help/help.component.css +++ b/src/app/help/help.component.css @@ -1,4 +1,30 @@ +.mat-card { + width: 400px; + margin: 10px; + padding: 10px; + margin-bottom: 10px; + margin-left: 0px; + } + + .help-header { margin-top: 0px; margin-bottom: 0px; } + +.help-icon { + font-size: 24px; + vertical-align: middle; + height: 24px; + width: 24px; + margin-right: 10px; +} + +.help-link { + font-size: 16px; +} + +.help-detail { + font-weight: 300; + font-size: 12px; +} \ No newline at end of file diff --git a/src/app/help/help.component.html b/src/app/help/help.component.html index 28e4c1f..6a937ee 100644 --- a/src/app/help/help.component.html +++ b/src/app/help/help.component.html @@ -1,4 +1,24 @@ -

Help

-

- help works! -

+ + +

Info

+ + + +
\ No newline at end of file diff --git a/src/app/help/help.component.ts b/src/app/help/help.component.ts index af200e6..73495a5 100644 --- a/src/app/help/help.component.ts +++ b/src/app/help/help.component.ts @@ -9,6 +9,14 @@ export class HelpComponent implements OnInit { constructor() { } + links = [ + {url: 'https://www.asperasoft.com', name: 'Aspera Homepage', detail: 'move the world’s data at maximum speed'}, + {url: 'https://demo.asperasoft.com', name: 'Aspera Demoserver', detail: 'official Site for the Asper Demoserver used in this example'}, + {url: 'https://github.com/m67hoff/aspera-browser', name: 'AsperaBrowser @ GitHub', detail: 'Source and Docu for this Application (for Developers & Admins)'}, + {url: 'https://www.rubydoc.info/gems/asperalm', name: 'Laurents Aspera Command Line Interface', detail: 'aslmcli - command line interface to Aspera Applications and Rest API'} + ]; + + ngOnInit() { } diff --git a/src/app/info/info.component.css b/src/app/info/info.component.css deleted file mode 100644 index a96e64c..0000000 --- a/src/app/info/info.component.css +++ /dev/null @@ -1,22 +0,0 @@ -.info-header { - margin-top: 0px; - margin-bottom: 0px; -} - -.info-icon { - font-size: 24px; - vertical-align: middle; - height: 24px; - width: 24px; - margin-right: 10px; -} - -.info-link { - color: #3f51b5; - font-size: 16px; -} - -.info-detail { - font-weight: 300; - font-size: 12px; -} \ No newline at end of file diff --git a/src/app/info/info.component.html b/src/app/info/info.component.html deleted file mode 100644 index 069bac2..0000000 --- a/src/app/info/info.component.html +++ /dev/null @@ -1,14 +0,0 @@ -

Info

- - - \ No newline at end of file diff --git a/src/app/info/info.component.ts b/src/app/info/info.component.ts deleted file mode 100644 index 64910ca..0000000 --- a/src/app/info/info.component.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'app-info', - templateUrl: './info.component.html', - styleUrls: ['./info.component.css'] -}) -export class InfoComponent { - - links = [ - {url: 'https://www.asperasoft.com', name: 'Aspera Homepage', detail: 'move the world’s data at maximum speed'}, - {url: 'https://demo.asperasoft.com', name: 'Aspera Demoserver', detail: 'official Site for the Asper Demoserver used in this example'}, - {url: 'https://github.com/m67hoff/aspera-browser', name: 'AsperaBrowser @ GitHub', detail: 'Source and Docu for this Application (for Developers & Admins)'}, - {url: 'https://www.rubydoc.info/gems/asperalm', name: 'Laurents Aspera Command Line Interface', detail: 'aslmcli - command line interface to Aspera Applications and Rest API'} - ]; - - constructor() { } - -}