-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
730249a
commit 38be721
Showing
13 changed files
with
82 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,31 @@ | ||
//init logging | ||
import { Rollbar } from './modules/Rollbar.js'; | ||
|
||
import './modules/HandlebarsHelpers.js'; | ||
|
||
import V from './modules/Veload.js'; | ||
|
||
if (window.location.hostname == 'veload.bike'){ | ||
Rollbar(); | ||
} | ||
$(async function(){ | ||
if (window.location.hostname == 'veload.bike'){ | ||
//init logging | ||
var Rollbar = await import('./modules/Rollbar.js'); | ||
Rollbar(); | ||
} | ||
}); | ||
|
||
$(async function(){ | ||
import('./modules/PhotoRefresher.js'); | ||
if (window.location.pathname == '/dashboard'){ | ||
await import('./modules/LocalPoller.js'); | ||
await import('./modules/SettingsPane.js'); | ||
await import('./modules/DataListeners.js'); | ||
|
||
await import('./modules/Goals.js'); | ||
let ride = await import('./modules/RideListeners.js'); | ||
let conn = await import('./modules/ConnectionStatus.js'); | ||
|
||
ride.RideListeners(); | ||
conn.ConnectionStatus(); | ||
await import('./modules/RideListeners.js'); | ||
await import('./modules/ConnectionStatus.js'); | ||
await import('./modules/Charts.js'); | ||
await import('./modules/Voice.js'); | ||
await import('./modules/Map.js'); | ||
|
||
V.loadInterface(); | ||
V.loadProfile(); | ||
} else { | ||
import('./modules/DownloadLink.js'); | ||
import('./modules/Weather.js'); | ||
$('body').removeClass('loading'); | ||
V.notLoading(); | ||
} | ||
import('./modules/PhotoRefresher.js'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ function ConnectionStatus(){ | |
}); | ||
} | ||
|
||
export { ConnectionStatus }; | ||
export let cs = new ConnectionStatus(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
import EventEmitter from 'eventemitter3'; | ||
const EE = new EventEmitter(); | ||
|
||
EE.on('uncaughtException', function (err) { | ||
console.error(err); | ||
}); | ||
|
||
export { EE } | ||
export { EE }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ function RideListeners(){ | |
}); | ||
} | ||
|
||
export { RideListeners }; | ||
export let rideListeners = new RideListeners(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import './HandlebarsHelpers.js'; | ||
|
||
var els = $('[id$="-temp"]'); | ||
var temps = []; | ||
const Templates = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters