Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactored statistics and generator objects / datapaths to be more ro…
…bust, universal, and extensible.
  • Loading branch information
Evan Langlais committed Apr 16, 2019
1 parent 78056d9 commit b0541e6
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 435 deletions.
73 changes: 55 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions src/app/generator-object.ts
Expand Up @@ -8,12 +8,21 @@ export interface GeneratorObject {

export interface GeneratorState {
online: boolean;
status: string;
status_code: number;
state: string;
state_code: number;
fault_count?: number;
fault_codes?: Array<string>;
status_count?: number;
status_codes?: Array<string>;
ip?: string;
}

export interface GeneratorMetric {
id: string;
title: string;
units: string;
min: number;
max: number;
value?: number;
timestamp?: number;
}
5 changes: 3 additions & 2 deletions src/app/generator-search/generator-search.component.css
Expand Up @@ -14,6 +14,7 @@ a#genLink {
} */

mat-card.generator-card {
width: calc(100% - 70px);
height: calc(100% - 70px);
width: 300px;
height: 300px;
margin: 5px;
}

0 comments on commit b0541e6

Please sign in to comment.