-
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.
- Loading branch information
Showing
35 changed files
with
480 additions
and
288 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 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"files.autoSave": "onFocusChange" | ||
} | ||
{ | ||
"files.autoSave": "onFocusChange", | ||
"sonarlint.connectedMode.project": { | ||
"connectionId": "mysonarqube", | ||
"projectKey": "My-weather-app" | ||
}, | ||
"git.ignoreLimitWarning": true | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export class GeoData { | ||
|
||
constructor( | ||
public lat: number, | ||
public lng: number, | ||
public formatted_address: String | ||
) { } | ||
} | ||
export class GeoData { | ||
|
||
constructor( | ||
public lat: Number, | ||
public lng: Number, | ||
public formatted_address: 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,7 @@ | ||
export class ServerHealthData { | ||
|
||
constructor( | ||
public status: String, | ||
public text: 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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { NgModule } from '@angular/core'; | ||
import { HttpModule } from '@angular/http'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
/** Modules by feature **/ | ||
import { WeatherModule } from './views/weather/weather.module'; | ||
import { NewsModule } from './views/news/news.module'; | ||
import { QuoteModule } from './views/quote-list/quote.module'; | ||
import { PrimeNgModule } from './primeng.module'; | ||
import { CustomFiltersModule } from './customfilters.module'; | ||
|
||
import { AppComponent } from './app.component'; | ||
import { HeaderComponent } from './views/header/header.component'; | ||
import { FooterComponent } from './views/footer/footer.component'; | ||
|
||
import { AppRoutingModule } from './app-routing.module'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent, | ||
HeaderComponent, | ||
FooterComponent | ||
], | ||
imports: [ | ||
BrowserModule, | ||
AppRoutingModule, | ||
HttpModule, | ||
FormsModule, | ||
BrowserAnimationsModule, | ||
CustomFiltersModule, | ||
PrimeNgModule, | ||
WeatherModule, | ||
NewsModule, | ||
QuoteModule | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { } | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { NgModule } from '@angular/core'; | ||
import { HttpModule } from '@angular/http'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; | ||
|
||
/** Modules by feature **/ | ||
import { HeaderModule } from './views/header/header.module'; | ||
import { WeatherModule } from './views/weather/weather.module'; | ||
import { NewsModule } from './views/news/news.module'; | ||
import { QuoteModule } from './views/quote-list/quote.module'; | ||
import { PrimeNgModule } from './primeng.module'; | ||
import { CustomFiltersModule } from './customfilters.module'; | ||
|
||
import { AppComponent } from './app.component'; | ||
import { FooterComponent } from './views/footer/footer.component'; | ||
|
||
import { AppRoutingModule } from './app-routing.module'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent, | ||
FooterComponent | ||
], | ||
imports: [ | ||
BrowserModule, | ||
AppRoutingModule, | ||
HttpModule, | ||
FormsModule, | ||
BrowserAnimationsModule, | ||
CustomFiltersModule, | ||
PrimeNgModule, | ||
HeaderModule, | ||
WeatherModule, | ||
NewsModule, | ||
QuoteModule | ||
], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { } |
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
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,27 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { Http, Response } from '@angular/http'; | ||
import { environment } from '../../environments/environment'; | ||
import 'rxjs/Rx'; | ||
|
||
import { ServerHealthData } from '../Shared/ServerHealthData'; | ||
|
||
@Injectable() | ||
export class ServerHealthService { | ||
|
||
constructor(private http: Http) { } | ||
|
||
check() { | ||
|
||
const url = `${environment.apiUrl}/api/serverhealth`; | ||
return this.http.get(url) | ||
.map( | ||
(response: Response) => { | ||
const res = response.json(); | ||
return new ServerHealthData( | ||
res.status, | ||
res.text); | ||
} | ||
); | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -10,3 +10,8 @@ | |
.env-css-prod { | ||
color: red; | ||
} | ||
|
||
.api-status { | ||
text-align: right; | ||
} | ||
|
Oops, something went wrong.