Skip to content

Commit

Permalink
Add blank flag, fix Nepal flag. Fix handling of unknown time zone. Ge…
Browse files Browse the repository at this point in the history
…neral code updates.
  • Loading branch information
kshetline committed Feb 22, 2018
1 parent 4c45294 commit 3416682
Show file tree
Hide file tree
Showing 9 changed files with 641 additions and 2,678 deletions.
3,269 changes: 611 additions & 2,658 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svc-ng",
"version": "1.3.13",
"version": "1.3.14",
"license": "MIT AND GPL-3.0-or-later",
"scripts": {
"ng": "ng",
Expand All @@ -12,21 +12,21 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.4",
"@angular/common": "^5.2.4",
"@angular/compiler": "^5.2.4",
"@angular/core": "^5.2.4",
"@angular/animations": "^5.2.5",
"@angular/common": "^5.2.5",
"@angular/compiler": "^5.2.5",
"@angular/core": "^5.2.5",
"@angular/flex-layout": "2.0.0-beta.10-4905443",
"@angular/forms": "^5.2.4",
"@angular/http": "^5.2.4",
"@angular/platform-browser": "^5.2.4",
"@angular/platform-browser-dynamic": "^5.2.4",
"@angular/router": "^5.2.4",
"@angular/forms": "^5.2.5",
"@angular/http": "^5.2.5",
"@angular/platform-browser": "^5.2.5",
"@angular/platform-browser-dynamic": "^5.2.5",
"@angular/router": "^5.2.5",
"array-buffer-reader": "^1.0.0",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"ks-astronomy": "^1.0.0",
"ks-date-time-zone": "^1.0.1",
"ks-date-time-zone": "^1.2.0",
"ks-math": "^1.1.0",
"ks-util": "^1.0.5",
"lodash": "^4.17.5",
Expand All @@ -36,14 +36,14 @@
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "^1.6.8",
"@angular/compiler-cli": "^5.2.4",
"@angular/language-service": "^5.2.4",
"@types/googlemaps": "^3.30.5",
"@angular/cli": "^1.7.0",
"@angular/compiler-cli": "^5.2.5",
"@angular/language-service": "^5.2.5",
"@types/googlemaps": "^3.30.7",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/lodash": "^4.14.102",
"@types/node": "^6.0.100",
"@types/lodash": "^4.14.104",
"@types/node": "^6.0.101",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="about-dialog">
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
<h2>Sky View Café NP</h2>
Version 1.3.13<br><br>
Version 1.3.14<br><br>
Copyright © 2016-2018 Kerry Shetline.
</div>
</p-dialog>
Expand Down
2 changes: 1 addition & 1 deletion src/app/svc/svc-atlas-dialog/svc-atlas-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export class SvcAtlasDialogComponent {
this.locations = results.matches.map((location: AtlasLocation): LocationInfo => {
return {
rank: location.rank,
flagCode: location.flagCode,
flagCode: location.flagCode || 'blank',
name: location.displayName,
lat: formatLatitude(location.latitude),
lon: formatLongitude(location.longitude),
Expand Down
7 changes: 6 additions & 1 deletion src/app/svc/svc-zone-selector/svc-zone-selector.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ export class SvcZoneSelectorComponent implements ControlValueAccessor, OnInit {

if (groups) {
let g1 = groups[1];
const g2 = groups[2];
let g2 = groups[2];

if (!this.knownIanaZones.has(newZone) && g1 !== LMT && g1 !== OS && !g1.startsWith(UT)) {
g1 = OS;
g2 = undefined;
}

if (g1.endsWith('/')) {
g1 = groups[1].slice(0, -1);
Expand Down
2 changes: 2 additions & 0 deletions src/assets/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
<div style="padding-left: 1em; text-indent: -1em">

<p><b>1.3.14, 2018-02-21:</b> Minor bug fixes, code update.</p>

<p><b>1.3.13, 2018-02-12:</b> Fix bug in display of Jupiter and the Great Red Spot in the Moons view.</p>

<p><b>1.3.12, 2018-02-06:</b> Mostly internal code changes, with one minor cosmetic update and a new link added
Expand Down
Binary file added src/assets/resources/flags/blank.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/resources/flags/np.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { initTimeZoneLargeAlt } from 'ks-date-time-zone/dist/ks-timezone-large-alt';

initTimeZoneLargeAlt();

if (environment.production) {
enableProdMode();
Expand Down

0 comments on commit 3416682

Please sign in to comment.