mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
34 lines
No EOL
923 B
JavaScript
34 lines
No EOL
923 B
JavaScript
const UnitType = {
|
|
none: "none",
|
|
OSD: "OSD",
|
|
imperial: "imperial",
|
|
metric: "metric",
|
|
}
|
|
|
|
var globalSettings = {
|
|
// Configurator rendering options
|
|
// Used to depict how the units are displayed within the UI
|
|
unitType: null,
|
|
// Used to convert units within the UI
|
|
osdUnits: null,
|
|
// Map
|
|
mapProviderType: null,
|
|
mapApiKey: null,
|
|
proxyURL: null,
|
|
proxyLayer: null,
|
|
// Show colours for profiles
|
|
showProfileParameters: null,
|
|
// tree target for documents
|
|
docsTreeLocation: 'master',
|
|
cliAutocomplete: true,
|
|
assistnowApiKey: null,
|
|
assistnowOfflineData: [],
|
|
assistnowOfflineDate: 0,
|
|
store: null,
|
|
saveAssistnowData: function() {
|
|
this.store.set('assistnow_offline_data', this.assistnowOfflineData);
|
|
this.store.set('assistnow_offline_date', this.assistnowOfflineDate);
|
|
}
|
|
};
|
|
|
|
module.exports = { globalSettings, UnitType }; |