fixing some typescript errors

This commit is contained in:
DJ2LS 2024-01-05 23:30:03 +01:00
parent f56790dbc3
commit 3d9a9c90b2
4 changed files with 5 additions and 129 deletions

View file

@ -5,9 +5,7 @@ setActivePinia(pinia);
import { settingsStore as settings } from "../store/settingsStore.js";
function saveSettings() {
saveSettingsToFile();
}
</script>
<template>
@ -60,14 +58,12 @@ function saveSettings() {
aria-label="Input group"
aria-describedby="btnGroupAddon"
v-model="settings.remote.STATION.mycall"
@input="saveSettings"
/>
<select
class="form-select form-select-sm"
aria-label=".form-select-sm"
id="myCallSSID"
v-model="settings.remote.STATION.myssid"
@change="saveSettings"
>
<option selected value="0">0</option>
<option value="1">1</option>
@ -110,7 +106,6 @@ function saveSettings() {
aria-label="Input group"
aria-describedby="btnGroupAddon"
v-model="settings.remote.STATION.mygrid"
@input="saveSettings"
/>
</div>
</div>

View file

@ -1,7 +1,5 @@
<script setup lang="ts">
import { startRigctld, stopRigctld } from "../js/deprecated_daemon";
import { setActivePinia } from "pinia";
import pinia from "../store/index";
@ -18,13 +16,13 @@ function startStopRigctld() {
settings.remote.RADIO.serial_port = (<HTMLInputElement>document.getElementById("hamlib_deviceport")).value;
startRigctld();
//startRigctld();
break;
case "running":
stopRigctld();
// dirty hack for calling this command twice, otherwise modem won't stop rigctld from time to time
stopRigctld();
//stopRigctld();
break;
default:
}

View file

@ -9,108 +9,8 @@ import { settingsStore as settings } from "../store/settingsStore.js";
</script>
<template>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50">Enable "is typing"</label>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="enable_is_writing"
@change="setConfig"
v-model="settings.enable_is_writing"
disabled
/>
<label class="form-check-label" for="GraphicsSwitch"
>Additional broadcast burst</label
>
</div>
</label>
</div>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50">Allow requesting "user profile"</label>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="enable_request_profile"
@change="setConfig"
v-model="settings.enable_request_profile"
disabled
/>
</div>
</label>
</div>
<h5>...soon...</h5>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50"
>Allow requesting "shared folder"</label
>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="enable_request_shared_folder"
@change="setConfig"
v-model="settings.enable_request_shared_folder"
disabled
/>
</div>
</label>
</div>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50">Shared folder path</label>
<input
type="text"
class="form-control w-50"
id="shared_folder_path"
@change="setConfig"
v-model="settings.shared_folder_path"
disabled
/>
</div>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50"
>Enable auto retry on Beacon or Ping
</label>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline">
<input
class="form-check-input"
type="checkbox"
id="enable_auto_retry"
@change="setConfig"
v-model="settings.enable_auto_retry"
disabled
/>
</div>
</label>
</div>
<div class="input-group input-group-sm mb-1">
<span class="input-group-text w-50">message retry attempts</span>
<select
class="form-select form-select-sm w-50"
id="max_retry_attempts"
@change="setConfig"
v-model="settings.max_retry_attempts"
disabled
>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
</div>
</template>

View file

@ -9,24 +9,7 @@ import { settingsStore as settings } from "../store/settingsStore.js";
</script>
<template>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50">Enable FSK mode</label>
<label class="input-group-text w-50">
<div class="form-check form-switch form-check-inline ms-2">
<input
class="form-check-input"
type="checkbox"
id="fskModeSwitch"
@change="setConfig"
v-model="settings.remote.MODEM.enable_fsk"
disabled
/>
<label class="form-check-label" for="fskModeSwitch"
>not available, yet</label
>
</div>
</label>
</div>
<div class="input-group input-group-sm mb-1">
<label class="input-group-text w-50">Enable MESH protocol</label>
<label class="input-group-text w-50">