some typescript fixing

This commit is contained in:
DJ2LS 2023-10-22 15:52:30 +02:00
parent af5b1a2d8e
commit f1c2fad8c4
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,7 @@
<script setup lang="ts">
// @ts-nocheck
// reason for no check is, that we have some mixing of typescript and chart js which seems to be not to be fixed that easy
import { saveSettingsToFile } from "../js/settingsHandler";
import { setActivePinia } from "pinia";

View file

@ -1,4 +1,6 @@
<script setup lang="ts">
// @ts-nocheck
// reason for no check is, that we have some mixing of typescript and chart js which seems to be not to be fixed that easy
import { setActivePinia } from "pinia";
import pinia from "../store/index";
setActivePinia(pinia);

View file

@ -139,7 +139,6 @@ export function newBroadcast(broadcastChannel, chatmessage) {
var file_checksum = ""; //crc32(file).toString(16).toUpperCase();
var message_type = "broadcast_transmit";
var command = "broadcast";
var timestamp = Math.floor(Date.now() / 1000);
var uuid = uuidv4();
@ -153,7 +152,7 @@ export function newBroadcast(broadcastChannel, chatmessage) {
uuid = uuid.slice(-4);
let newChatObj: messageDefaultObject = {
command: broadcast,
command: "broadcast",
hmac_signed: false,
percent: 0,
bytesperminute: 0, // You need to assign a value here
@ -856,11 +855,11 @@ export function requestMessageInfo(id) {
chat.arq_speed_list_bpm = [];
chat.arq_speed_list_timestamp = [];
chat.arq_speed_list_snr = [];
//@ts-expect-error
chat.selectedMessageObject = [];
// id and uuid are the same
var data = getFromUnsortedChatListByUUID(id);
console.log(data);
chat.selectedMessageObject = data;
if (