Skip to content

Commit b23ba07

Browse files
committed
Small aesthetic and format changes
1 parent bd54c7e commit b23ba07

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/app/app.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<md-sidenav #sidenav class="sidenav" mode="side" opened="true">
1313
<md-nav-list>
1414
<md-list-item *ngFor="let link of links">
15-
<a routerLink="/ws-viewer" routerLinkActive="active" mdLine>Item {{ link }}</a>
15+
<a routerLink="/ws-viewer" routerLinkActive="active" mdLine>Microservice MS{{ link | number:'2.0-0'}}</a>
1616
<button md-icon-button>
1717
<md-icon>info</md-icon>
1818
</button>

src/app/ws-viewer/ws-viewer.component.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<div class="ws-viewer">
22

3-
<h1>
4-
Welcome to {{title}}!
5-
</h1>
3+
<h1>{{title}}</h1>
64
<p>
7-
This example will connect to a websocket server and start listening to it, printing the received value on screen
5+
In this section you can connect to a Freestyle metrics server and start listening to it,
6+
the values will be shown on screen as they are received
87
</p>
98

109
<button md-raised-button color="{{ isCurrentlyListening() ? 'warn' : 'primary' }}" (click)="toggleListening()">
@@ -24,7 +23,7 @@ <h1>
2423
<h2>{{ metric?.metric }}</h2>
2524
</md-grid-tile>
2625
<md-grid-tile>
27-
<h2>{{ metric?.value }}</h2>
26+
<h2>{{ metric?.value | number:'1.15-15' }}</h2>
2827
</md-grid-tile>
2928
</md-grid-list>
3029

src/app/ws-viewer/ws-viewer.component.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { DatePipe } from '@angular/common';
32
import { Subscription } from 'rxjs/Subscription';
43

54
import { WsService } from './ws.service';
@@ -11,7 +10,7 @@ import { Metric } from '../shared/metric.model';
1110
styleUrls: ['./ws-viewer.component.scss']
1211
})
1312
export class WsViewerComponent implements OnInit {
14-
title = 'WebSockets example';
13+
title = 'Metric streaming example';
1514
metric: Metric;
1615
subscription: Subscription;
1716

src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>PollingExample</title>
5+
<title>Freestyle Opscenter</title>
66
<base href="/">
77

88
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)