File tree Expand file tree Collapse file tree 7 files changed +72
-63
lines changed Expand file tree Collapse file tree 7 files changed +72
-63
lines changed Original file line number Diff line number Diff line change 1
1
/* Dropdown container */
2
2
.dropdown {
3
- position : relative;
4
- display : inline-block;
5
- width : 300px ;
6
- text-align : center;
3
+ position : relative;
4
+ display : inline-block;
5
+ width : 300px ;
6
+ text-align : center;
7
7
}
8
8
9
9
/* Dropdown button */
10
10
.dropdown-toggle {
11
- background : white;
12
- color : black;
13
- padding : 10px ;
14
- width : 100% ;
11
+ background : white;
12
+ color : black;
13
+ padding : 10px ;
14
+ width : 100% ;
15
15
}
16
16
17
17
/* Dropdown menu */
18
18
.dropdown-menu {
19
- display : none;
20
- position : absolute;
21
- background : white;
22
- color : black;
23
- list-style : none;
24
- padding : 0 ;
25
- margin : 0 ;
26
- width : 100% ;
19
+ display : none;
20
+ position : absolute;
21
+ background : white;
22
+ color : black;
23
+ list-style : none;
24
+ padding : 0 ;
25
+ margin : 0 ;
26
+ width : 100% ;
27
27
}
28
28
29
29
.dropdown-menu li {
30
- padding : 10px ;
31
- width : 100% ;
32
- }
30
+ padding : 10px ;
31
+ width : 100% ;
32
+ }
Original file line number Diff line number Diff line change @@ -61,4 +61,4 @@ export class Dropdown extends DisplayComponent<ComponentProps> {
61
61
public getNavdataFormat ( ) : string | null {
62
62
return this . navdataFormat
63
63
}
64
- }
64
+ }
Original file line number Diff line number Diff line change 1
1
.auth-container {
2
- font-size : x-large;
3
- width : 100% ;
4
- height : 100% ;
5
- position : relative;
6
- top : 100px ;
7
- }
8
-
9
- .button {
10
- width : 150px ;
11
- height : 50px ;
12
- font-size : x-large;
13
- margin-top : 5px ;
14
- background : white;
15
- color : black;
16
- display : flex;
17
- justify-content : center;
18
- align-items : center;
19
- }
20
-
21
- .qr-code {
22
- width : 300px ;
23
- height : 300px ;
24
- display : none;
25
- }
26
-
27
- .horizontal {
28
- display : flex;
29
- flex-direction : row;
30
- justify-content : center;
31
- align-items : center;
32
- }
33
-
34
- .vertical {
35
- display : flex;
36
- flex-direction : column;
37
- justify-content : center;
38
- align-items : center;
39
- }
2
+ font-size : x-large;
3
+ width : 100% ;
4
+ height : 100% ;
5
+ position : relative;
6
+ top : 100px ;
7
+ }
8
+
9
+ .button {
10
+ width : 150px ;
11
+ height : 50px ;
12
+ font-size : x-large;
13
+ margin-top : 5px ;
14
+ background : white;
15
+ color : black;
16
+ display : flex;
17
+ justify-content : center;
18
+ align-items : center;
19
+ }
20
+
21
+ .qr-code {
22
+ width : 300px ;
23
+ height : 300px ;
24
+ display : none;
25
+ }
26
+
27
+ .horizontal {
28
+ display : flex;
29
+ flex-direction : row;
30
+ justify-content : center;
31
+ align-items : center;
32
+ }
33
+
34
+ .vertical {
35
+ display : flex;
36
+ flex-direction : column;
37
+ justify-content : center;
38
+ align-items : center;
39
+ }
Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
39
39
const percent = Math . round ( ( args . unzipped / args . total ) * 100 )
40
40
this . navdataTextRef . instance . textContent = `Unzipping files... ${ percent } % complete`
41
41
} )
42
+
43
+ this . commBusListener . on ( "NAVIGRAPH_DownloadFailed" , ( jsonArgs : string ) => {
44
+ const args = JSON . parse ( jsonArgs )
45
+ console . error ( "WASM download failed" , args )
46
+ this . navdataTextRef . instance . textContent = `Download failed: ${ args . error } `
47
+ // set style to red
48
+ this . navdataTextRef . instance . style . color = "red"
49
+ } )
42
50
}
43
51
44
52
public render ( ) : VNode {
@@ -132,4 +140,4 @@ export class NavigraphLogin extends DisplayComponent<NavigraphLoginProps> {
132
140
} )
133
141
. catch ( e => console . error ( e ) )
134
142
}
135
- }
143
+ }
Original file line number Diff line number Diff line change 3
3
This is a simple JavaScript gauge to interface with the WASM module.
4
4
5
5
## Building
6
- To build to your ` Packages ` folder and listen to changes (i.e. when you're debugging or quickly prototyping) you can run ` npm run dev ` . Otherwise, run ` npm run build `
6
+
7
+ To build to your ` Packages ` folder and listen to changes (i.e. when you're debugging or quickly prototyping) you can run ` npm run dev ` . Otherwise, run ` npm run build `
Original file line number Diff line number Diff line change 1
1
import { DataStore } from "@microsoft/msfs-sdk"
2
2
import { initializeApp , NavigraphApp , Scope } from "@navigraph/app"
3
3
import { getAuth } from "@navigraph/auth"
4
- import { getPackagesAPI } from "@navigraph/packages"
5
4
import { getChartsAPI } from "@navigraph/charts"
5
+ import { getPackagesAPI } from "@navigraph/packages"
6
6
7
7
const config : NavigraphApp = {
8
8
clientId : "YOUR_CLIENT_ID" ,
@@ -34,4 +34,4 @@ export const auth = getAuth({
34
34
35
35
export const charts = getChartsAPI ( )
36
36
37
- export const packages = getPackagesAPI ( )
37
+ export const packages = getPackagesAPI ( )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import copy from "rollup-plugin-copy"
3
3
import esbuild from "rollup-plugin-esbuild"
4
4
import css from "rollup-plugin-import-css"
5
5
6
- const DEBUG = process . env . DEBUG === ' true' ;
6
+ const DEBUG = process . env . DEBUG === " true"
7
7
8
8
let outputDest = "../aircraft/PackageSources"
9
9
if ( DEBUG ) {
You can’t perform that action at this time.
0 commit comments