functional save horde settings
parent
0d28631e58
commit
05a51cd42c
19
index.html
19
index.html
|
|
@ -940,13 +940,18 @@
|
||||||
<div class="sp-tab-page" id="sp-horde-tab-page">
|
<div class="sp-tab-page" id="sp-horde-tab-page">
|
||||||
<!-- Horde tab page -->
|
<!-- Horde tab page -->
|
||||||
<div></div>
|
<div></div>
|
||||||
<sp-label>Horde Key:</sp-label
|
<div>
|
||||||
><sp-textfield
|
<sp-label>Horde Key:</sp-label
|
||||||
id="tiHordeApiKey"
|
><sp-textfield
|
||||||
type="password"
|
id="tiHordeApiKey"
|
||||||
placeholder="0000000000"
|
type="password"
|
||||||
value=""
|
placeholder="0000000000"
|
||||||
></sp-textfield>
|
value=""
|
||||||
|
></sp-textfield>
|
||||||
|
<button class="btnSquare" id="btnSaveHordeSettings">
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<sp-radio-group>
|
<sp-radio-group>
|
||||||
<sp-label id="BackendTypeLabel" slot="label"
|
<sp-label id="BackendTypeLabel" slot="label"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,17 @@ const psapi = require('../../psapi')
|
||||||
const html_manip = require('../html_manip')
|
const html_manip = require('../html_manip')
|
||||||
const layer_util = require('../layer')
|
const layer_util = require('../layer')
|
||||||
const dummy = require('../dummy')
|
const dummy = require('../dummy')
|
||||||
|
const io = require('../io')
|
||||||
|
class HordeSettings {
|
||||||
|
static {}
|
||||||
|
static async saveSettings() {
|
||||||
|
const settings = await getSettings()
|
||||||
|
|
||||||
|
let native_horde_settings = await mapPluginSettingsToHorde(settings)
|
||||||
|
const horde_api_key = html_manip.getHordeApiKey()
|
||||||
|
native_horde_settings['api_key'] = html_manip.getHordeApiKey()
|
||||||
|
await io.IOJson.saveHordeSettingsToFile(native_horde_settings)
|
||||||
|
}
|
||||||
class hordeGenerator {
|
class hordeGenerator {
|
||||||
//horde generation process:
|
//horde generation process:
|
||||||
//*) get the settings
|
//*) get the settings
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue