-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(app-shell): Generate file structure for features
- Loading branch information
pkurochka
committed
Mar 9, 2018
1 parent
8407ffc
commit 7f27941
Showing
51 changed files
with
546 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<mat-toolbar color="primary"> | ||
<span>SmartGreen analytics</span> | ||
</mat-toolbar> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-navbar', | ||
templateUrl: './navbar.component.html', | ||
styleUrls: ['./navbar.component.scss'] | ||
}) | ||
export class NavbarComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<sga-navbar></sga-navbar> | ||
<router-outlet></router-outlet> |
Empty file.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
src/app/core/containers/not-found-page/not-found-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Component, ChangeDetectionStrategy } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-not-found-page', | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
template: ` | ||
<mat-card> | ||
<mat-card-title>404: Not Found</mat-card-title> | ||
<mat-card-content> | ||
<p>Hey! It looks like this page doesn't exist yet.</p> | ||
</mat-card-content> | ||
<mat-card-actions> | ||
<button mat-raised-button color="primary" routerLink="/">Take Me Home</button> | ||
</mat-card-actions> | ||
</mat-card> | ||
`, | ||
styles: [ | ||
` | ||
:host { | ||
text-align: center; | ||
} | ||
`, | ||
], | ||
}) | ||
export class NotFoundPageComponent { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { RouterModule } from '@angular/router'; | ||
import { MaterialModule } from '../materal/material.module'; | ||
|
||
import { AppComponent } from './containers/app/app.component'; | ||
import { NotFoundPageComponent } from './containers/not-found-page/not-found-page.component'; | ||
import { NavbarComponent } from './components/navbar/navbar.component'; | ||
|
||
const COMPONENTS = [ | ||
AppComponent , | ||
NavbarComponent, | ||
NotFoundPageComponent | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
RouterModule, | ||
MaterialModule | ||
], | ||
declarations: COMPONENTS, | ||
exports: COMPONENTS | ||
}) | ||
export class CoreModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ITimeserie } from './timeserie'; | ||
|
||
export interface IEquip { | ||
equip_name: string; | ||
time: string; | ||
S3avg: number; | ||
S4avg: number; | ||
TempAvg: number; | ||
timeseries?: ITimeserie[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { IEquip } from './equip'; | ||
|
||
export interface ISite { | ||
site: string; | ||
equips?: IEquip[]; | ||
preview?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface ITimeserie { | ||
hour: number; | ||
temperature: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Action } from '@ngrx/store'; | ||
|
||
export enum SitesActionTypes { | ||
SitesAction = '[Sites] Action' | ||
} | ||
|
||
export class Sites implements Action { | ||
readonly type = SitesActionTypes.SitesAction; | ||
} | ||
|
||
export type SitesActions = Sites; |
3 changes: 3 additions & 0 deletions
3
src/app/sites/components/equip-analytics/equip-analytics.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
equip-analytics works! | ||
</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/app/sites/components/equip-analytics/equip-analytics.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-equip-analytics', | ||
templateUrl: './equip-analytics.component.html', | ||
styleUrls: ['./equip-analytics.component.scss'] | ||
}) | ||
export class EquipAnalyticsComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/components/site-detail/site-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
site-detail works! | ||
</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/app/sites/components/site-detail/site-detail.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-site-detail', | ||
templateUrl: './site-detail.component.html', | ||
styleUrls: ['./site-detail.component.scss'] | ||
}) | ||
export class SiteDetailComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/components/site-preview-list/site-preview-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
site-preview-list works! | ||
</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/app/sites/components/site-preview-list/site-preview-list.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-site-preview-list', | ||
templateUrl: './site-preview-list.component.html', | ||
styleUrls: ['./site-preview-list.component.scss'] | ||
}) | ||
export class SitePreviewListComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/components/site-preview/site-preview.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
site-preview works! | ||
</p> |
Empty file.
15 changes: 15 additions & 0 deletions
15
src/app/sites/components/site-preview/site-preview.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sga-site-preview', | ||
templateUrl: './site-preview.component.html', | ||
styleUrls: ['./site-preview.component.scss'] | ||
}) | ||
export class SitePreviewComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/containers/equipment-analytics-page/equipment-analytics-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
equipment-analytics-page works! | ||
</p> |
Empty file.
32 changes: 32 additions & 0 deletions
32
src/app/sites/containers/equipment-analytics-page/equipment-analytics-page.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { EquipmentAnalyticsPageComponent } from './equipment-analytics-page.component'; | ||
import { Store, StoreModule } from '@ngrx/store'; | ||
|
||
describe('EquipmentAnalyticsPageComponent', () => { | ||
let component: EquipmentAnalyticsPageComponent; | ||
let fixture: ComponentFixture<EquipmentAnalyticsPageComponent>; | ||
let store: Store<any>; | ||
|
||
beforeEach(async() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ StoreModule.forRoot({}) ], | ||
declarations: [ EquipmentAnalyticsPageComponent ] | ||
}); | ||
|
||
await TestBed.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(EquipmentAnalyticsPageComponent); | ||
component = fixture.componentInstance; | ||
store = TestBed.get(Store); | ||
|
||
spyOn(store, 'dispatch').and.callThrough(); | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
src/app/sites/containers/equipment-analytics-page/equipment-analytics-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Store } from '@ngrx/store'; | ||
import { SitesState } from '../../reducers/index'; | ||
|
||
@Component({ | ||
selector: 'sga-equipment-analytics-page', | ||
templateUrl: './equipment-analytics-page.component.html', | ||
styleUrls: ['./equipment-analytics-page.component.scss'] | ||
}) | ||
export class EquipmentAnalyticsPageComponent implements OnInit { | ||
|
||
constructor(private store: Store<SitesState>) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/containers/site-details-page/site-details-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
site-details-page works! | ||
</p> |
Empty file.
32 changes: 32 additions & 0 deletions
32
src/app/sites/containers/site-details-page/site-details-page.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { SiteDetailsPageComponent } from './site-details-page.component'; | ||
import { Store, StoreModule } from '@ngrx/store'; | ||
|
||
describe('SiteDetailsPageComponent', () => { | ||
let component: SiteDetailsPageComponent; | ||
let fixture: ComponentFixture<SiteDetailsPageComponent>; | ||
let store: Store<any>; | ||
|
||
beforeEach(async() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ StoreModule.forRoot({}) ], | ||
declarations: [ SiteDetailsPageComponent ] | ||
}); | ||
|
||
await TestBed.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(SiteDetailsPageComponent); | ||
component = fixture.componentInstance; | ||
store = TestBed.get(Store); | ||
|
||
spyOn(store, 'dispatch').and.callThrough(); | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
17 changes: 17 additions & 0 deletions
17
src/app/sites/containers/site-details-page/site-details-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Store } from '@ngrx/store'; | ||
import { SitesState } from '../../reducers/index'; | ||
|
||
@Component({ | ||
selector: 'sga-site-details-page', | ||
templateUrl: './site-details-page.component.html', | ||
styleUrls: ['./site-details-page.component.scss'] | ||
}) | ||
export class SiteDetailsPageComponent implements OnInit { | ||
|
||
constructor(private store: Store<SitesState>) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
3 changes: 3 additions & 0 deletions
3
src/app/sites/containers/sites-page/sites-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
sites-page works! | ||
</p> |
Empty file.
Oops, something went wrong.