[CodeFactor] Apply fixes to commit 1449869

This commit is contained in:
codefactor-io 2024-02-06 21:50:14 +00:00
parent 1449869c0f
commit 6670e0a6d1
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
3 changed files with 27 additions and 54 deletions

View file

@ -6,7 +6,6 @@ import chat_new_message from "./chat_new_message.vue";
<template>
<div class="container-fluid m-0 p-0">
<div class="row h-100 ms-0 mt-0 me-1">
<div class="col-3 m-0 p-0 h-100 bg-light">
<!------Chats area ---------------------------------------------------------------------->
@ -34,11 +33,7 @@ import chat_new_message from "./chat_new_message.vue";
<!------ new message area ---------------------------------------------------------------------->
<chat_new_message />
<chat_new_message />
</div>
</div>
</div>

View file

@ -9,7 +9,6 @@ import { startChatWithNewStation } from "../js/chatHandler";
import { ref, computed } from "vue";
const chat = useChatStore(pinia);
function chatSelected(callsign) {
@ -49,24 +48,17 @@ function newChat() {
//updateAllChat(false);
this.newChatCall.value = "";
}
</script>
<template>
<nav class="navbar sticky-top bg-body-tertiary">
<button
class="btn btn-outline-primary w-100"
data-bs-target="#newChatModal"
data-bs-toggle="modal"
>
<i class="bi bi-pencil-square"> Start a new chat</i>
</button>
</nav>
<nav class="navbar sticky-top bg-body-tertiary">
<button
class="btn btn-outline-primary w-100"
data-bs-target="#newChatModal"
data-bs-toggle="modal"
>
<i class="bi bi-pencil-square"> Start a new chat</i>
</button>
</nav>
<div
class="list-group bg-body-tertiary m-0 p-1"

View file

@ -22,10 +22,6 @@ function getDateTime(timestampRaw) {
return `${year}-${month}-${day}`;
}
import {
Chart as ChartJS,
CategoryScale,
@ -41,7 +37,6 @@ import { Bar } from "vue-chartjs";
import { ref, computed } from "vue";
import annotationPlugin from "chartjs-plugin-annotation";
ChartJS.register(
CategoryScale,
LinearScale,
@ -115,32 +110,27 @@ const beaconHistogramData = computed(() => ({
},
],
}));
</script>
<template>
<nav class="navbar sticky-top bg-body-tertiary shadow">
<div class="input-group mb-0 p-0 w-50">
<button type="button" class="btn btn-outline-secondary" disabled>
Beacons
</button>
<nav class="navbar sticky-top bg-body-tertiary shadow ">
<div class="input-group mb-0 p-0 w-50">
<button type="button" class="btn btn-outline-secondary" disabled>
Beacons
</button>
<div
class="form-floating border border-secondary-subtle border-1 rounded-end"
>
<Bar
:data="beaconHistogramData"
:options="beaconHistogramOptions"
width="300"
height="50"
/>
</div>
</div>
</nav>
<div
class="form-floating border border-secondary-subtle border-1 rounded-end"
>
<Bar
:data="beaconHistogramData"
:options="beaconHistogramOptions"
width="300"
height="50"
/>
</div>
</div>
</nav>
<div class="tab-content p-3" id="nav-tabContent-chat-messages">
<template
@ -180,10 +170,6 @@ const beaconHistogramData = computed(() => ({
</div>
</template>
</div>
</template>
<style>