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 }> {
6262 this . entity
6363 } " WHERE id = ${ stubMaker ( ) } `
6464 ) ;
65- const row = stmt . get ( id ) as { data_json : string , position : number } ;
65+ const row = stmt . get ( id ) as { data_json : string ; position : number } ;
6666 if ( ! row ) {
6767 return [ null , - 1 ] ;
6868 }
@@ -130,7 +130,7 @@ export const exportDestination = {};
130130export const metadataCrud = {
131131 get ( db : sqlite3 . Database ) {
132132 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 } > ;
134134 const metadata : Record < string , string > = { } ;
135135 for ( const row of rows ) {
136136 metadata [ row . key ] = row . value ;
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class Store {
147147 validateSQLiteDriver ( ) {
148148 const memdb = new sqlite3 . default ( ':memory:' ) ;
149149 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 } ;
151151 if ( ! minSemver ( row . version , '3.38.1' ) ) {
152152 throw new Error (
153153 'Unsupported SQLite driver version: ' + JSON . stringify ( row )
@@ -361,7 +361,10 @@ SELECT
361361FROM ds_result o
362362GROUP BY panel_id
363363` ) ;
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+ } > ;
365368
366369 const resultPanelMap : Record < string , PanelResult > = { } ;
367370 for ( const result of results ) {
Original file line number Diff line number Diff line change @@ -184,4 +184,6 @@ if (false) {
184184 }
185185 ) ;
186186 } ) ;
187+ } else {
188+ test ( 'ok' , function ( ) { } ) ;
187189}
Original file line number Diff line number Diff line change @@ -70,4 +70,6 @@ if (false) {
7070 DEFAULT_TIMEOUT * 10
7171 ) ;
7272 } ) ;
73+ } else {
74+ test ( 'ok' , function ( ) { } ) ;
7375}
Original file line number Diff line number Diff line change @@ -71,4 +71,6 @@ if (false) {
7171 ) ;
7272 }
7373 } ) ;
74+ } else {
75+ test ( 'ok' , function ( ) { } ) ;
7476}
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ export function Navigation<View extends string = DefaultView>({
1818 { pages . map ( ( page ) => (
1919 < div
2020 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+ } `}
2324 title = { page . title }
2425 >
2526 < Button
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ if (MODE === 'browser') {
3232 Object . values ( LANGUAGES ) . map ( function processLanguageInit ( l ) {
3333 if ( l . inMemoryInit ) {
3434 // These can be really big, so run it out of band
35- setTimeout ( function ( ) {
35+ setTimeout ( function ( ) {
3636 l . inMemoryInit ( ) ;
3737 } ) ;
3838 }
@@ -84,11 +84,11 @@ export function defaultRoutes(): Routes {
8484 } ,
8585 MODE === 'server'
8686 ? {
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+ }
9292 : null ,
9393 {
9494 endpoint : 'settings' ,
Original file line number Diff line number Diff line change @@ -656,12 +656,12 @@ export function builtinCompletions(
656656 ...( language === 'sql'
657657 ? [ ]
658658 : [
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+ ] ) ,
665665 ] ;
666666}
667667
@@ -683,11 +683,11 @@ export function panelNameCompletions(
683683 ) {
684684 return panels . map (
685685 ( 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 )
691691 ) ;
692692 }
693693
@@ -771,7 +771,10 @@ export function makeAutocomplete(
771771 . flat ( )
772772 . filter (
773773 // 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 ( ) )
775778 ) ;
776779 } ;
777780}
You can’t perform that action at this time.
0 commit comments