File tree Expand file tree Collapse file tree 8 files changed +37
-24
lines changed Expand file tree Collapse file tree 8 files changed +37
-24
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class GenericCrud<T extends { id: string }> {
62
62
this . entity
63
63
} " WHERE id = ${ stubMaker ( ) } `
64
64
) ;
65
- const row = stmt . get ( id ) as { data_json : string , position : number } ;
65
+ const row = stmt . get ( id ) as { data_json : string ; position : number } ;
66
66
if ( ! row ) {
67
67
return [ null , - 1 ] ;
68
68
}
@@ -130,7 +130,7 @@ export const exportDestination = {};
130
130
export const metadataCrud = {
131
131
get ( db : sqlite3 . Database ) {
132
132
const stmt = db . prepare ( 'SELECT * FROM ds_metadata' ) ;
133
- const rows = stmt . all ( ) as Array < { key : string ; value : string } > ;
133
+ const rows = stmt . all ( ) as Array < { key : string ; value : string } > ;
134
134
const metadata : Record < string , string > = { } ;
135
135
for ( const row of rows ) {
136
136
metadata [ row . key ] = row . value ;
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class Store {
147
147
validateSQLiteDriver ( ) {
148
148
const memdb = new sqlite3 . default ( ':memory:' ) ;
149
149
const stmt = memdb . prepare ( 'SELECT sqlite_version() AS version' ) ;
150
- const row = stmt . get ( ) as { version : string } ;
150
+ const row = stmt . get ( ) as { version : string } ;
151
151
if ( ! minSemver ( row . version , '3.38.1' ) ) {
152
152
throw new Error (
153
153
'Unsupported SQLite driver version: ' + JSON . stringify ( row )
@@ -361,7 +361,10 @@ SELECT
361
361
FROM ds_result o
362
362
GROUP BY panel_id
363
363
` ) ;
364
- const results = stmt . all ( ) as Array < { panel_id : string ; data_json : string } > ;
364
+ const results = stmt . all ( ) as Array < {
365
+ panel_id : string ;
366
+ data_json : string ;
367
+ } > ;
365
368
366
369
const resultPanelMap : Record < string , PanelResult > = { } ;
367
370
for ( const result of results ) {
Original file line number Diff line number Diff line change @@ -184,4 +184,6 @@ if (false) {
184
184
}
185
185
) ;
186
186
} ) ;
187
+ } else {
188
+ test ( 'ok' , function ( ) { } ) ;
187
189
}
Original file line number Diff line number Diff line change @@ -70,4 +70,6 @@ if (false) {
70
70
DEFAULT_TIMEOUT * 10
71
71
) ;
72
72
} ) ;
73
+ } else {
74
+ test ( 'ok' , function ( ) { } ) ;
73
75
}
Original file line number Diff line number Diff line change @@ -71,4 +71,6 @@ if (false) {
71
71
) ;
72
72
}
73
73
} ) ;
74
+ } else {
75
+ test ( 'ok' , function ( ) { } ) ;
74
76
}
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ export function Navigation<View extends string = DefaultView>({
18
18
{ pages . map ( ( page ) => (
19
19
< div
20
20
key = { page . title }
21
- className = { `navigation-item ${ view === page . endpoint ? 'navigation-item--active' : ''
22
- } `}
21
+ className = { `navigation-item ${
22
+ view === page . endpoint ? 'navigation-item--active' : ''
23
+ } `}
23
24
title = { page . title }
24
25
>
25
26
< Button
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if (MODE === 'browser') {
32
32
Object . values ( LANGUAGES ) . map ( function processLanguageInit ( l ) {
33
33
if ( l . inMemoryInit ) {
34
34
// These can be really big, so run it out of band
35
- setTimeout ( function ( ) {
35
+ setTimeout ( function ( ) {
36
36
l . inMemoryInit ( ) ;
37
37
} ) ;
38
38
}
@@ -84,11 +84,11 @@ export function defaultRoutes(): Routes {
84
84
} ,
85
85
MODE === 'server'
86
86
? {
87
- endpoint : 'projects' ,
88
- view : MakeSelectProject ,
89
- title : 'Switch project' ,
90
- icon : IconFiles ,
91
- }
87
+ endpoint : 'projects' ,
88
+ view : MakeSelectProject ,
89
+ title : 'Switch project' ,
90
+ icon : IconFiles ,
91
+ }
92
92
: null ,
93
93
{
94
94
endpoint : 'settings' ,
Original file line number Diff line number Diff line change @@ -656,12 +656,12 @@ export function builtinCompletions(
656
656
...( language === 'sql'
657
657
? [ ]
658
658
: [
659
- {
660
- value : 'DM_setPanel(result)' ,
661
- meta : 'Set results of this DataStation panel' ,
662
- score : 1000 ,
663
- } ,
664
- ] ) ,
659
+ {
660
+ value : 'DM_setPanel(result)' ,
661
+ meta : 'Set results of this DataStation panel' ,
662
+ score : 1000 ,
663
+ } ,
664
+ ] ) ,
665
665
] ;
666
666
}
667
667
@@ -683,11 +683,11 @@ export function panelNameCompletions(
683
683
) {
684
684
return panels . map (
685
685
( panel ) =>
686
- ( {
687
- value : panel . name ,
688
- meta : 'Panel' ,
689
- score : 1000 ,
690
- } as Ace . Completion )
686
+ ( {
687
+ value : panel . name ,
688
+ meta : 'Panel' ,
689
+ score : 1000 ,
690
+ } as Ace . Completion )
691
691
) ;
692
692
}
693
693
@@ -771,7 +771,10 @@ export function makeAutocomplete(
771
771
. flat ( )
772
772
. filter (
773
773
// TODO: Make sure autocomplete is still working.
774
- ( c ) => c && ( c as any ) . value && ( c as any ) . value . toLowerCase ( ) . startsWith ( prefix . toLowerCase ( ) )
774
+ ( c ) =>
775
+ c &&
776
+ ( c as any ) . value &&
777
+ ( c as any ) . value . toLowerCase ( ) . startsWith ( prefix . toLowerCase ( ) )
775
778
) ;
776
779
} ;
777
780
}
You can’t perform that action at this time.
0 commit comments