From 871c7920d97a8dafd9a87f90cfdda7a2fd1d5f69 Mon Sep 17 00:00:00 2001 From: Mirko Teodorovic Date: Sat, 17 Oct 2020 17:24:24 +0200 Subject: [PATCH 1/4] add live images Signed-off-by: Mirko Teodorovic --- .../channels/details/channels.details.component.html | 7 ++----- .../things/channels/details/channels.details.component.ts | 8 ++++++-- .../things/devices/details/devices.details.component.html | 6 +++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/app/pages/things/channels/details/channels.details.component.html b/src/app/pages/things/channels/details/channels.details.component.html index a2b32232..2e3c364e 100644 --- a/src/app/pages/things/channels/details/channels.details.component.html +++ b/src/app/pages/things/channels/details/channels.details.component.html @@ -30,13 +30,10 @@ - Raw Messages + Image -
- No messages to display -
-
{{ message | json }}
+
diff --git a/src/app/pages/things/channels/details/channels.details.component.ts b/src/app/pages/things/channels/details/channels.details.component.ts index a0193676..9f889c07 100644 --- a/src/app/pages/things/channels/details/channels.details.component.ts +++ b/src/app/pages/things/channels/details/channels.details.component.ts @@ -1,5 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; +import { DomSanitizer } from '@angular/platform-browser' import { ChannelsService } from 'app/common/services/channels/channels.service'; import { MessagesService } from 'app/common/services/messages/messages.service'; @@ -24,13 +25,16 @@ export class ChannelsDetailsComponent implements OnInit { selectedThings = []; editorMetadata = ''; - + cont = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; + image = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; constructor( private route: ActivatedRoute, private channelsService: ChannelsService, private messagesService: MessagesService, private notificationsService: NotificationsService, - ) {} + private domSanitizer: DomSanitizer, + ) { + } ngOnInit() { const chanID = this.route.snapshot.paramMap.get('id'); diff --git a/src/app/pages/things/devices/details/devices.details.component.html b/src/app/pages/things/devices/details/devices.details.component.html index fbced899..b3189fc2 100644 --- a/src/app/pages/things/devices/details/devices.details.component.html +++ b/src/app/pages/things/devices/details/devices.details.component.html @@ -31,13 +31,13 @@ - Raw Messages + Image
- No messages to display + No image to display
-
{{ message | json }}
+
From b063e89c5346e97c36a3fc94e76aec41f6fa109b Mon Sep 17 00:00:00 2001 From: Mirko Teodorovic Date: Sat, 17 Oct 2020 17:25:39 +0200 Subject: [PATCH 2/4] add live images Signed-off-by: Mirko Teodorovic --- .../pages/things/channels/details/channels.details.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/things/channels/details/channels.details.component.ts b/src/app/pages/things/channels/details/channels.details.component.ts index 9f889c07..a21210ca 100644 --- a/src/app/pages/things/channels/details/channels.details.component.ts +++ b/src/app/pages/things/channels/details/channels.details.component.ts @@ -25,7 +25,7 @@ export class ChannelsDetailsComponent implements OnInit { selectedThings = []; editorMetadata = ''; - cont = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; + image = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; constructor( private route: ActivatedRoute, From 7cc66dfc13a6732b43d098a095d55f060e5a00b1 Mon Sep 17 00:00:00 2001 From: Mirko Teodorovic Date: Sat, 17 Oct 2020 17:34:36 +0200 Subject: [PATCH 3/4] add live images Signed-off-by: Mirko Teodorovic --- .../things/channels/details/channels.details.component.html | 2 +- .../things/channels/details/channels.details.component.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/pages/things/channels/details/channels.details.component.html b/src/app/pages/things/channels/details/channels.details.component.html index 2e3c364e..dd65a2bc 100644 --- a/src/app/pages/things/channels/details/channels.details.component.html +++ b/src/app/pages/things/channels/details/channels.details.component.html @@ -33,7 +33,7 @@ Image - + diff --git a/src/app/pages/things/channels/details/channels.details.component.ts b/src/app/pages/things/channels/details/channels.details.component.ts index a21210ca..ab23e059 100644 --- a/src/app/pages/things/channels/details/channels.details.component.ts +++ b/src/app/pages/things/channels/details/channels.details.component.ts @@ -1,6 +1,5 @@ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; -import { DomSanitizer } from '@angular/platform-browser' import { ChannelsService } from 'app/common/services/channels/channels.service'; import { MessagesService } from 'app/common/services/messages/messages.service'; @@ -26,13 +25,12 @@ export class ChannelsDetailsComponent implements OnInit { selectedThings = []; editorMetadata = ''; - image = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; + imageWS = 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAABkCAYAAAC/zKGXAAAAKklEQVR42u3KsQ0AAAgDIL3c0+sLriYw06lMHbQoiqIoiqIoiqIoip/jAtiD+TmYhJoAAAAAAElFTkSuQmC'; constructor( private route: ActivatedRoute, private channelsService: ChannelsService, private messagesService: MessagesService, private notificationsService: NotificationsService, - private domSanitizer: DomSanitizer, ) { } From 629e4d1a332408bb5019a39a5188b4cbb3324e0a Mon Sep 17 00:00:00 2001 From: Mirko Teodorovic Date: Sat, 17 Oct 2020 17:36:59 +0200 Subject: [PATCH 4/4] revert this file to master Signed-off-by: Mirko Teodorovic --- .../things/devices/details/devices.details.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/things/devices/details/devices.details.component.html b/src/app/pages/things/devices/details/devices.details.component.html index b3189fc2..fbced899 100644 --- a/src/app/pages/things/devices/details/devices.details.component.html +++ b/src/app/pages/things/devices/details/devices.details.component.html @@ -31,13 +31,13 @@ - Image + Raw Messages
- No image to display + No messages to display
- +
{{ message | json }}