Skip to content

Commit 3416682

Browse files
committed
Add blank flag, fix Nepal flag. Fix handling of unknown time zone. General code updates.
1 parent 4c45294 commit 3416682

9 files changed

Lines changed: 641 additions & 2678 deletions

File tree

package-lock.json

Lines changed: 611 additions & 2658 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svc-ng",
3-
"version": "1.3.13",
3+
"version": "1.3.14",
44
"license": "MIT AND GPL-3.0-or-later",
55
"scripts": {
66
"ng": "ng",
@@ -12,21 +12,21 @@
1212
},
1313
"private": true,
1414
"dependencies": {
15-
"@angular/animations": "^5.2.4",
16-
"@angular/common": "^5.2.4",
17-
"@angular/compiler": "^5.2.4",
18-
"@angular/core": "^5.2.4",
15+
"@angular/animations": "^5.2.5",
16+
"@angular/common": "^5.2.5",
17+
"@angular/compiler": "^5.2.5",
18+
"@angular/core": "^5.2.5",
1919
"@angular/flex-layout": "2.0.0-beta.10-4905443",
20-
"@angular/forms": "^5.2.4",
21-
"@angular/http": "^5.2.4",
22-
"@angular/platform-browser": "^5.2.4",
23-
"@angular/platform-browser-dynamic": "^5.2.4",
24-
"@angular/router": "^5.2.4",
20+
"@angular/forms": "^5.2.5",
21+
"@angular/http": "^5.2.5",
22+
"@angular/platform-browser": "^5.2.5",
23+
"@angular/platform-browser-dynamic": "^5.2.5",
24+
"@angular/router": "^5.2.5",
2525
"array-buffer-reader": "^1.0.0",
2626
"core-js": "^2.4.1",
2727
"font-awesome": "^4.7.0",
2828
"ks-astronomy": "^1.0.0",
29-
"ks-date-time-zone": "^1.0.1",
29+
"ks-date-time-zone": "^1.2.0",
3030
"ks-math": "^1.1.0",
3131
"ks-util": "^1.0.5",
3232
"lodash": "^4.17.5",
@@ -36,14 +36,14 @@
3636
"zone.js": "^0.8.19"
3737
},
3838
"devDependencies": {
39-
"@angular/cli": "^1.6.8",
40-
"@angular/compiler-cli": "^5.2.4",
41-
"@angular/language-service": "^5.2.4",
42-
"@types/googlemaps": "^3.30.5",
39+
"@angular/cli": "^1.7.0",
40+
"@angular/compiler-cli": "^5.2.5",
41+
"@angular/language-service": "^5.2.5",
42+
"@types/googlemaps": "^3.30.7",
4343
"@types/jasmine": "~2.8.3",
4444
"@types/jasminewd2": "~2.0.2",
45-
"@types/lodash": "^4.14.102",
46-
"@types/node": "^6.0.100",
45+
"@types/lodash": "^4.14.104",
46+
"@types/node": "^6.0.101",
4747
"codelyzer": "^4.0.1",
4848
"jasmine-core": "~2.8.0",
4949
"jasmine-spec-reporter": "~4.2.1",

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="about-dialog">
33
<img src="/assets/resources/svc_lunar_eclipse.png" alt="lunar eclipse" width="64" height="64">
44
<h2>Sky View Café NP</h2>
5-
Version 1.3.13<br><br>
5+
Version 1.3.14<br><br>
66
Copyright © 2016-2018 Kerry Shetline.
77
</div>
88
</p-dialog>

src/app/svc/svc-atlas-dialog/svc-atlas-dialog.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class SvcAtlasDialogComponent {
209209
this.locations = results.matches.map((location: AtlasLocation): LocationInfo => {
210210
return {
211211
rank: location.rank,
212-
flagCode: location.flagCode,
212+
flagCode: location.flagCode || 'blank',
213213
name: location.displayName,
214214
lat: formatLatitude(location.latitude),
215215
lon: formatLongitude(location.longitude),

src/app/svc/svc-zone-selector/svc-zone-selector.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ export class SvcZoneSelectorComponent implements ControlValueAccessor, OnInit {
104104

105105
if (groups) {
106106
let g1 = groups[1];
107-
const g2 = groups[2];
107+
let g2 = groups[2];
108+
109+
if (!this.knownIanaZones.has(newZone) && g1 !== LMT && g1 !== OS && !g1.startsWith(UT)) {
110+
g1 = OS;
111+
g2 = undefined;
112+
}
108113

109114
if (g1.endsWith('/')) {
110115
g1 = groups[1].slice(0, -1);

src/assets/about.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
<h2 class="header-sans"><a name="history">What's New / Version History</a></h2>
6161
<div style="padding-left: 1em; text-indent: -1em">
6262

63+
<p><b>1.3.14, 2018-02-21:</b> Minor bug fixes, code update.</p>
64+
6365
<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>
6466

6567
<p><b>1.3.12, 2018-02-06:</b> Mostly internal code changes, with one minor cosmetic update and a new link added
83 Bytes
Loading

src/assets/resources/flags/np.png

-72 Bytes
Loading

src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

44
import { AppModule } from './app/app.module';
55
import { environment } from './environments/environment';
6+
import { initTimeZoneLargeAlt } from 'ks-date-time-zone/dist/ks-timezone-large-alt';
7+
8+
initTimeZoneLargeAlt();
69

710
if (environment.production) {
811
enableProdMode();

0 commit comments

Comments
 (0)