2023-09-07 08:47:33 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
|
|
import {saveSettingsToFile} from '../js/settingsHandler'
|
|
|
|
|
|
|
|
import { setActivePinia } from 'pinia';
|
|
|
|
import pinia from '../store/index';
|
|
|
|
setActivePinia(pinia);
|
|
|
|
|
|
|
|
import { useSettingsStore } from '../store/settingsStore.js';
|
|
|
|
const settings = useSettingsStore(pinia);
|
|
|
|
|
2023-09-09 16:29:32 +00:00
|
|
|
import { useStateStore } from '../store/stateStore.js';
|
|
|
|
const state = useStateStore(pinia);
|
2023-09-07 08:47:33 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class=" mb-3">
|
|
|
|
<div class="card mb-1">
|
|
|
|
<div class="card-header p-1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-1">
|
|
|
|
<i class="bi bi-house-door" style="font-size: 1.2rem"></i>
|
|
|
|
</div>
|
|
|
|
<div class="col-10">
|
|
|
|
<strong class="fs-5">Radio control</strong>
|
|
|
|
</div>
|
|
|
|
<div class="col-1 text-end">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
id="openHelpModalStation"
|
|
|
|
data-bs-toggle="modal"
|
|
|
|
data-bs-target="#stationHelpModal"
|
|
|
|
class="btn m-0 p-0 border-0"
|
|
|
|
disabled
|
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="bi bi-question-circle"
|
|
|
|
style="font-size: 1rem"
|
|
|
|
></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="card-body p-2">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="input-group bottom-0 m-0">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="me-2">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-text" id="basic-addon3">Frequency</span>
|
2023-09-09 16:29:32 +00:00
|
|
|
<input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3 basic-addon4" v-model="state.frequency">
|
2023-09-07 08:47:33 +00:00
|
|
|
<span class="input-group-text" id="basic-addon3">Hz</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-text" id="basic-addon4">Select a frequency</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="me-2">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-text" id="basic-addon3">Mode</span>
|
2023-09-09 16:29:32 +00:00
|
|
|
<select class="form-control" v-model="settings.hamlib_rigctld_ip">
|
|
|
|
<option value="USB">USB</option>
|
|
|
|
<option value="LSB">LSB</option>
|
|
|
|
<option value="AM">AM</option>
|
|
|
|
<option value="FM">FM</option>
|
2023-09-07 08:47:33 +00:00
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-text" id="basic-addon4">Select a mode</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="me-2">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-text" id="basic-addon3">Bandwidth</span>
|
|
|
|
<select class="form-control">
|
|
|
|
<option>500</option>
|
|
|
|
<option>1000</option>
|
|
|
|
<option>1500</option>
|
|
|
|
<option>2000</option>
|
|
|
|
</select>
|
|
|
|
<span class="input-group-text" id="basic-addon3">Hz</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-text" id="basic-addon4">Select a mode</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="me-2">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-text" id="basic-addon3">Power</span>
|
|
|
|
<select class="form-control">
|
|
|
|
<option>10</option>
|
|
|
|
<option>20</option>
|
|
|
|
<option>30</option>
|
|
|
|
<option>40</option>
|
|
|
|
<option>50</option>
|
|
|
|
<option>60</option>
|
|
|
|
<option>70</option>
|
|
|
|
<option>80</option>
|
|
|
|
<option>90</option>
|
|
|
|
<option>100</option>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
<span class="input-group-text" id="basic-addon3">%</span>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="form-text" id="basic-addon4">Select a mode</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div></div>
|
|
|
|
</template>
|