Classes
Methods
deepMerge(target, source) → {Object}
Deep merge objects (helper function)
Parameters:
Name | Type | Description |
---|---|---|
target | Object | Target object |
source | Object | Source object |
- Source
Returns:
Merged object
- Type:
- Object
get(section, key) → {*}
Get a setting value
Parameters:
Name | Type | Description |
---|---|---|
section | string | Settings section (connection, bluetooth, ntrip, ui, rover) |
key | string | Setting key |
- Source
Returns:
Setting value
- Type:
- *
getAll() → {Object}
Get all settings
- Source
Returns:
All settings
- Type:
- Object
getSection(section) → {Object}
Get all settings for a section
Parameters:
Name | Type | Description |
---|---|---|
section | string | Settings section |
- Source
Returns:
Section settings
- Type:
- Object
(async) initDb()
Initialize IndexedDB
- Source
(async) loadSettings()
Load settings from IndexedDB
- Source
(async) reset()
Clear all settings and reset to defaults
- Source
(async) saveSettings()
Save settings to IndexedDB
- Source
(async) set(section, key, value)
Set a setting value
Parameters:
Name | Type | Description |
---|---|---|
section | string | Settings section |
key | string | Setting key |
value | * | Setting value |
- Source
(async) update(section, values)
Update multiple settings at once
Parameters:
Name | Type | Description |
---|---|---|
section | string | Settings section |
values | Object | Object with key/value pairs |
- Source