File tree 4 files changed +12
-7
lines changed
4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,8 @@ function dist_rollup() {
319
319
// I will be picked up by rollup and bundled accordingly.
320
320
'components/init' : 'src/components/init.js' ,
321
321
'js/main_cordova' : 'src/js/main_cordova.js' ,
322
- 'js/utils/common' : 'src/js/utils/common.js'
322
+ 'js/utils/common' : 'src/js/utils/common.js' ,
323
+ 'js/tabs/logging' : 'src/js/tabs/logging.js'
323
324
} ,
324
325
plugins : [
325
326
alias ( {
Original file line number Diff line number Diff line change 1
- 'use strict ';
1
+ import { millitime } from '../utils/common.js ';
2
2
3
- TABS . logging = { } ;
4
- TABS . logging . initialize = function ( callback ) {
3
+ const logging = { } ;
4
+ logging . initialize = function ( callback ) {
5
5
6
6
if ( GUI . active_tab != 'logging' ) {
7
7
GUI . active_tab = 'logging' ;
@@ -319,6 +319,9 @@ TABS.logging.initialize = function (callback) {
319
319
}
320
320
} ;
321
321
322
- TABS . logging . cleanup = function ( callback ) {
322
+ logging . cleanup = function ( callback ) {
323
323
if ( callback ) callback ( ) ;
324
324
} ;
325
+
326
+ // TODO: only for transition to modules, drop this eventually
327
+ window . TABS . logging = logging ;
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ export function generateVirtualApiVersions() {
79
79
}
80
80
}
81
81
82
+ // TODO: these are temp binding while transition to module happens
82
83
window . microtime = microtime ;
83
- window . millitime = millitime ;
84
84
window . degToRad = degToRad ;
85
85
window . bytesToSize = bytesToSize ;
86
86
window . checkChromeRuntimeError = checkChromeRuntimeError ;
Original file line number Diff line number Diff line change 123
123
< script type ="text/javascript " src ="./js/tabs/led_strip.js "> </ script >
124
124
< script type ="text/javascript " src ="./js/tabs/sensors.js "> </ script >
125
125
< script type ="text/javascript " src ="./js/tabs/cli.js "> </ script >
126
- < script type ="text/javascript " src ="./js/tabs/logging.js "> </ script >
126
+ <!-- TODO: might be removed when everythign is in modules -->
127
+ < script type ="module " src ="./js/tabs/logging.js "> </ script >
127
128
< script type ="text/javascript " src ="./js/tabs/onboard_logging.js "> </ script >
128
129
< script type ="text/javascript " src ="./js/FirmwareCache.js "> </ script >
129
130
< script type ="text/javascript " src ="./js/tabs/firmware_flasher.js "> </ script >
You can’t perform that action at this time.
0 commit comments