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
0b9c7084f2
commit
f27e2f7e68
|
@ -125,8 +125,11 @@ watch(
|
||||||
<div class="container-fluid overflow-auto p-0">
|
<div class="container-fluid overflow-auto p-0">
|
||||||
<chat_conversations />
|
<chat_conversations />
|
||||||
</div>
|
</div>
|
||||||
<div class="list-group overflow-auto" id="list-tab-chat" role="tablist">
|
<div
|
||||||
</div>
|
class="list-group overflow-auto"
|
||||||
|
id="list-tab-chat"
|
||||||
|
role="tablist"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Chat Messages -->
|
<!-- Chat Messages -->
|
||||||
|
@ -140,8 +143,15 @@ watch(
|
||||||
<button type="button" class="btn btn-outline-secondary" disabled>
|
<button type="button" class="btn btn-outline-secondary" disabled>
|
||||||
Beacons
|
Beacons
|
||||||
</button>
|
</button>
|
||||||
<div class="form-floating border border-secondary-subtle border-1 rounded-end">
|
<div
|
||||||
<Bar :data="beaconHistogramData" :options="beaconHistogramOptions" width="300" height="50" />
|
class="form-floating border border-secondary-subtle border-1 rounded-end"
|
||||||
|
>
|
||||||
|
<Bar
|
||||||
|
:data="beaconHistogramData"
|
||||||
|
:options="beaconHistogramOptions"
|
||||||
|
width="300"
|
||||||
|
height="50"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -19,7 +19,10 @@ import { loadAllData } from "../js/eventHandler";
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div aria-live="polite" aria-atomic="true" class="position-relative z-3">
|
<div aria-live="polite" aria-atomic="true" class="position-relative z-3">
|
||||||
<div class="toast-container position-absolute top-0 end-0 p-3" id="mainToastContainer"></div>
|
<div
|
||||||
|
class="toast-container position-absolute top-0 end-0 p-3"
|
||||||
|
id="mainToastContainer"
|
||||||
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
@ -27,7 +30,10 @@ import { loadAllData } from "../js/eventHandler";
|
||||||
<!-- Collapsible Left Navbar -->
|
<!-- Collapsible Left Navbar -->
|
||||||
<div class="col-auto p-0 bg-body-secondary border-end">
|
<div class="col-auto p-0 bg-body-secondary border-end">
|
||||||
<div class="flex-shrink-0 p-3">
|
<div class="flex-shrink-0 p-3">
|
||||||
<div class="collapse collapse-horizontal show" id="collapseLeftNavbar">
|
<div
|
||||||
|
class="collapse collapse-horizontal show"
|
||||||
|
id="collapseLeftNavbar"
|
||||||
|
>
|
||||||
<main_left_navbar />
|
<main_left_navbar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,14 +43,34 @@ import { loadAllData } from "../js/eventHandler";
|
||||||
<div class="col min-vh-100 m-0 p-0">
|
<div class="col min-vh-100 m-0 p-0">
|
||||||
<div class="tab-content" id="nav-tabContent-settings">
|
<div class="tab-content" id="nav-tabContent-settings">
|
||||||
<!-- Tab Panes -->
|
<!-- Tab Panes -->
|
||||||
<div class="tab-pane fade" id="list-home" role="tabpanel" aria-labelledby="list-home-list"></div>
|
<div
|
||||||
<div class="tab-pane fade d-none" id="list-mesh" role="tabpanel" aria-labelledby="list-mesh-list">
|
class="tab-pane fade"
|
||||||
|
id="list-home"
|
||||||
|
role="tabpanel"
|
||||||
|
aria-labelledby="list-home-list"
|
||||||
|
></div>
|
||||||
|
<div
|
||||||
|
class="tab-pane fade d-none"
|
||||||
|
id="list-mesh"
|
||||||
|
role="tabpanel"
|
||||||
|
aria-labelledby="list-mesh-list"
|
||||||
|
>
|
||||||
<mesh />
|
<mesh />
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade show active" id="list-grid" role="tabpanel" aria-labelledby="list-grid-list">
|
<div
|
||||||
|
class="tab-pane fade show active"
|
||||||
|
id="list-grid"
|
||||||
|
role="tabpanel"
|
||||||
|
aria-labelledby="list-grid-list"
|
||||||
|
>
|
||||||
<Dynamic_components />
|
<Dynamic_components />
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade" id="list-chat" role="tabpanel" aria-labelledby="list-chat-list">
|
<div
|
||||||
|
class="tab-pane fade"
|
||||||
|
id="list-chat"
|
||||||
|
role="tabpanel"
|
||||||
|
aria-labelledby="list-chat-list"
|
||||||
|
>
|
||||||
<chat />
|
<chat />
|
||||||
</div>
|
</div>
|
||||||
<settings_view />
|
<settings_view />
|
||||||
|
@ -60,5 +86,4 @@ import { loadAllData } from "../js/eventHandler";
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<main_modals />
|
<main_modals />
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -12,47 +12,133 @@ const state = useStateStore(pinia);
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<div class="btn-toolbar" role="toolbar">
|
||||||
<div class="btn-group btn-group-sm me-1" role="group">
|
<div class="btn-group btn-group-sm me-1" role="group">
|
||||||
<button class="btn btn-sm btn-secondary me-1" :class="{ 'btn-danger': state.ptt_state, 'btn-secondary': !state.ptt_state }" id="ptt_state" type="button" style="pointer-events: auto" disabled data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="PTT trigger state">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-1"
|
||||||
|
:class="{
|
||||||
|
'btn-danger': state.ptt_state,
|
||||||
|
'btn-secondary': !state.ptt_state,
|
||||||
|
}"
|
||||||
|
id="ptt_state"
|
||||||
|
type="button"
|
||||||
|
style="pointer-events: auto"
|
||||||
|
disabled
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-title="PTT trigger state"
|
||||||
|
>
|
||||||
<i class="bi bi-broadcast-pin" style="font-size: 0.8rem"></i>
|
<i class="bi bi-broadcast-pin" style="font-size: 0.8rem"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-secondary me-1" id="busy_state" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-html="true" :class="{ 'btn-danger': state.busy_state, 'btn-secondary': !state.busy_state }" data-bs-title="Modem state" disabled style="pointer-events: auto">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-1"
|
||||||
|
id="busy_state"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
:class="{
|
||||||
|
'btn-danger': state.busy_state,
|
||||||
|
'btn-secondary': !state.busy_state,
|
||||||
|
}"
|
||||||
|
data-bs-title="Modem state"
|
||||||
|
disabled
|
||||||
|
style="pointer-events: auto"
|
||||||
|
>
|
||||||
<i class="bi bi-cpu" style="font-size: 0.8rem"></i>
|
<i class="bi bi-cpu" style="font-size: 0.8rem"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group btn-group-sm me-1" role="group">
|
<div class="btn-group btn-group-sm me-1" role="group">
|
||||||
<button class="btn btn-sm btn-secondary me-4 disabled" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-title="What's the frequency, Kenneth?" style="pointer-events: auto">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-4 disabled"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-title="What's the frequency, Kenneth?"
|
||||||
|
style="pointer-events: auto"
|
||||||
|
>
|
||||||
{{ state.frequency / 1000 }} kHz
|
{{ state.frequency / 1000 }} kHz
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group btn-group-sm me-1" role="group">
|
<div class="btn-group btn-group-sm me-1" role="group">
|
||||||
<button class="btn btn-sm btn-secondary me-0" type="button" title="Speed level">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-0"
|
||||||
|
type="button"
|
||||||
|
title="Speed level"
|
||||||
|
>
|
||||||
<i class="bi bi-speedometer2" style="font-size: 1rem"></i>
|
<i class="bi bi-speedometer2" style="font-size: 1rem"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-secondary me-4 disabled" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-html="true" data-bs-titel="speed level">
|
<button
|
||||||
<i class="bi" :class="{ 'bi-reception-0': state.speed_level === 0, 'bi-reception-1': state.speed_level === 1, 'bi-reception-2': state.speed_level === 2, 'bi-reception-3': state.speed_level === 3, 'bi-reception-4': state.speed_level === 4 }" style="font-size: 1rem"></i>
|
class="btn btn-sm btn-secondary me-4 disabled"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
data-bs-titel="speed level"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
class="bi"
|
||||||
|
:class="{
|
||||||
|
'bi-reception-0': state.speed_level === 0,
|
||||||
|
'bi-reception-1': state.speed_level === 1,
|
||||||
|
'bi-reception-2': state.speed_level === 2,
|
||||||
|
'bi-reception-3': state.speed_level === 3,
|
||||||
|
'bi-reception-4': state.speed_level === 4,
|
||||||
|
}"
|
||||||
|
style="font-size: 1rem"
|
||||||
|
></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group btn-group-sm me-1" role="group">
|
<div class="btn-group btn-group-sm me-1" role="group">
|
||||||
<button class="btn btn-sm btn-secondary me-0" type="button" title="Bytes transferred">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-0"
|
||||||
|
type="button"
|
||||||
|
title="Bytes transferred"
|
||||||
|
>
|
||||||
<i class="bi bi-file-earmark-binary" style="font-size: 1rem"></i>
|
<i class="bi bi-file-earmark-binary" style="font-size: 1rem"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-secondary me-4 disabled" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-html="true" data-bs-title="total bytes of transmission">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-4 disabled"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
data-bs-title="total bytes of transmission"
|
||||||
|
>
|
||||||
{{ state.arq_total_bytes }}
|
{{ state.arq_total_bytes }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group btn-group-sm me-1" role="group">
|
<div class="btn-group btn-group-sm me-1" role="group">
|
||||||
<button class="btn btn-sm btn-secondary me-0" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-html="true" data-bs-title="Current or last connected with station">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary me-0"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
data-bs-title="Current or last connected with station"
|
||||||
|
>
|
||||||
<i class="bi bi-file-earmark-binary" style="font-size: 1rem"></i>
|
<i class="bi bi-file-earmark-binary" style="font-size: 1rem"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-secondary disabled me-1" type="button" data-bs-placement="top" data-bs-toggle="tooltip" data-bs-trigger="hover" data-bs-html="true" data-bs-title="the dxcallsign of the connected station">
|
<button
|
||||||
|
class="btn btn-sm btn-secondary disabled me-1"
|
||||||
|
type="button"
|
||||||
|
data-bs-placement="top"
|
||||||
|
data-bs-toggle="tooltip"
|
||||||
|
data-bs-trigger="hover"
|
||||||
|
data-bs-html="true"
|
||||||
|
data-bs-title="the dxcallsign of the connected station"
|
||||||
|
>
|
||||||
{{ state.dxcallsign }}
|
{{ state.dxcallsign }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,17 +148,44 @@ const state = useStateStore(pinia);
|
||||||
<div class="col-lg-4">
|
<div class="col-lg-4">
|
||||||
<div style="margin-right: 2px">
|
<div style="margin-right: 2px">
|
||||||
<div class="progress w-100" style="height: 20px; min-width: 200px">
|
<div class="progress w-100" style="height: 20px; min-width: 200px">
|
||||||
<div class="progress-bar progress-bar-striped bg-primary force-gpu" id="transmission_progress" role="progressbar" :style="{ width: state.arq_transmission_percent + '%' }" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
|
<div
|
||||||
<p class="justify-content-center m-0 d-flex position-absolute w-100 text-dark">Message Progress</p>
|
class="progress-bar progress-bar-striped bg-primary force-gpu"
|
||||||
|
id="transmission_progress"
|
||||||
|
role="progressbar"
|
||||||
|
:style="{ width: state.arq_transmission_percent + '%' }"
|
||||||
|
aria-valuenow="0"
|
||||||
|
aria-valuemin="0"
|
||||||
|
aria-valuemax="100"
|
||||||
|
></div>
|
||||||
|
<p
|
||||||
|
class="justify-content-center m-0 d-flex position-absolute w-100 text-dark"
|
||||||
|
>
|
||||||
|
Message Progress
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div hidden class="progress mb-0 rounded-0 rounded-bottom" style="height: 10px">
|
<div
|
||||||
<div class="progress-bar progress-bar-striped bg-warning" id="transmission_timeleft" role="progressbar" :style="{ width: state.arq_seconds_until_timeout_percent + '%' }" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
|
hidden
|
||||||
<p class="justify-content-center m-0 d-flex position-absolute w-100 text-dark">timeout in {{ state.arq_seconds_until_timeout }}s</p>
|
class="progress mb-0 rounded-0 rounded-bottom"
|
||||||
|
style="height: 10px"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="progress-bar progress-bar-striped bg-warning"
|
||||||
|
id="transmission_timeleft"
|
||||||
|
role="progressbar"
|
||||||
|
:style="{ width: state.arq_seconds_until_timeout_percent + '%' }"
|
||||||
|
aria-valuenow="0"
|
||||||
|
aria-valuemin="0"
|
||||||
|
aria-valuemax="100"
|
||||||
|
>
|
||||||
|
<p
|
||||||
|
class="justify-content-center m-0 d-flex position-absolute w-100 text-dark"
|
||||||
|
>
|
||||||
|
timeout in {{ state.arq_seconds_until_timeout }}s
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { getFreedataMessages } from "../js/api";
|
||||||
import { getRemote } from "../store/settingsStore.js";
|
import { getRemote } from "../store/settingsStore.js";
|
||||||
import { loadAllData } from "../js/eventHandler";
|
import { loadAllData } from "../js/eventHandler";
|
||||||
|
|
||||||
|
|
||||||
const isTextVisible = ref(false); // Initially, the text is invisible
|
const isTextVisible = ref(false); // Initially, the text is invisible
|
||||||
function toggleTextVisibility() {
|
function toggleTextVisibility() {
|
||||||
isTextVisible.value = !isTextVisible.value; // Toggle the visibility
|
isTextVisible.value = !isTextVisible.value; // Toggle the visibility
|
||||||
|
|
Loading…
Reference in a new issue