mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
cf0e9de0ea
commit
ee0d559d94
3 changed files with 40 additions and 35 deletions
|
@ -8,8 +8,6 @@ const settings = useSettingsStore(pinia);
|
|||
|
||||
import { useStateStore } from "../store/stateStore.js";
|
||||
const state = useStateStore(pinia);
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -54,10 +52,6 @@ const state = useStateStore(pinia);
|
|||
</div>
|
||||
</div>
|
||||
<div class="card-body p-2 mb-1">
|
||||
|
||||
|
||||
|
||||
|
||||
<button
|
||||
class="btn btn-secondary btn-sm ms-1 me-1"
|
||||
id="updater_channel"
|
||||
|
|
|
@ -31,7 +31,6 @@ onMounted(() => {
|
|||
getModemConfig();
|
||||
getModemVersion();
|
||||
new Modal("#modemCheck", {}).show();
|
||||
|
||||
});
|
||||
|
||||
function getModemState() {
|
||||
|
@ -77,12 +76,16 @@ function getNetworkState() {
|
|||
data-bs-target="#networkStatusCollapse"
|
||||
data-bs-toggle="collapse"
|
||||
>
|
||||
Network <span class="badge ms-2 bg-success" :class="
|
||||
Network
|
||||
<span
|
||||
class="badge ms-2 bg-success"
|
||||
:class="
|
||||
state.modem_connection === 'connected'
|
||||
? 'bg-success'
|
||||
: 'bg-danger'
|
||||
"
|
||||
>{{ getNetworkState() }}</span>
|
||||
>{{ getNetworkState() }}</span
|
||||
>
|
||||
</button>
|
||||
</h2>
|
||||
<div
|
||||
|
@ -91,7 +94,9 @@ function getNetworkState() {
|
|||
>
|
||||
<div class="accordion-body">
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
<span class="input-group-text" style="width: 180px">Modem port</span>
|
||||
<span class="input-group-text" style="width: 180px"
|
||||
>Modem port</span
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
|
@ -106,7 +111,9 @@ function getNetworkState() {
|
|||
</div>
|
||||
|
||||
<div class="input-group input-group-sm mb-1">
|
||||
<span class="input-group-text" style="width: 180px">Modem host</span>
|
||||
<span class="input-group-text" style="width: 180px"
|
||||
>Modem host</span
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
class="form-control"
|
||||
|
|
|
@ -14,7 +14,12 @@ export function getModemConfig() {
|
|||
}
|
||||
|
||||
export function saveModemConfig() {
|
||||
postToServer(settings.modem_host, settings.modem_port, "config", getModemConfigAsJSON());
|
||||
postToServer(
|
||||
settings.modem_host,
|
||||
settings.modem_port,
|
||||
"config",
|
||||
getModemConfigAsJSON(),
|
||||
);
|
||||
}
|
||||
|
||||
export function startModem() {
|
||||
|
@ -27,5 +32,4 @@ export function stopModem() {
|
|||
|
||||
export function getModemVersion() {
|
||||
getFromServer(settings.modem_host, settings.modem_port, "version", null);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue