diff --git a/src/js/exports.js b/src/js/exports.js deleted file mode 100644 index be3ca3ccc..000000000 --- a/src/js/exports.js +++ /dev/null @@ -1,23 +0,0 @@ -//this file should be concatenated with the legacy js files - -//try to keep this list short because we need to eliminate it eventually -global.getuid = Misc.getuid; - -//these exports are just for debugging in the browser -global.snapshot = DB.getSnapshot; -global.config = Config; -// global.addnotif = Notifications.add; - -global.glarsesMode = toggleGlarses; - -global.stats = TestStats.getStats; - -global.replay = Replay.getReplayExport; - -global.enableTimerDebug = TestTimer.enableTimerDebug; - -global.getTimerStats = TestTimer.getTimerStats; - -global.toggleUnsmoothedRaw = Result.toggleUnsmoothedRaw; - -global.enableSpacingDebug = TestStats.enableSpacingDebug; diff --git a/src/js/global-dependencies.js b/src/js/index.js similarity index 61% rename from src/js/global-dependencies.js rename to src/js/index.js index bbcc1ba1a..a84dcfc95 100644 --- a/src/js/global-dependencies.js +++ b/src/js/index.js @@ -25,3 +25,25 @@ import * as TestStats from "./test/test-stats"; import * as Replay from "./test/replay"; import * as TestTimer from "./test/test-timer"; import * as Result from "./test/test-timer"; + +//try to keep this list short because we need to eliminate it eventually +global.getuid = Misc.getuid; + +//these exports are just for debugging in the browser +global.snapshot = DB.getSnapshot; +global.config = Config; +// global.addnotif = Notifications.add; + +global.glarsesMode = toggleGlarses; + +global.stats = TestStats.getStats; + +global.replay = Replay.getReplayExport; + +global.enableTimerDebug = TestTimer.enableTimerDebug; + +global.getTimerStats = TestTimer.getTimerStats; + +global.toggleUnsmoothedRaw = Result.toggleUnsmoothedRaw; + +global.enableSpacingDebug = TestStats.enableSpacingDebug;