mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
some typescript fixing
This commit is contained in:
parent
af5b1a2d8e
commit
f1c2fad8c4
3 changed files with 6 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// @ts-nocheck
|
// @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 { saveSettingsToFile } from "../js/settingsHandler";
|
||||||
|
|
||||||
import { setActivePinia } from "pinia";
|
import { setActivePinia } from "pinia";
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<script setup lang="ts">
|
<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 { setActivePinia } from "pinia";
|
||||||
import pinia from "../store/index";
|
import pinia from "../store/index";
|
||||||
setActivePinia(pinia);
|
setActivePinia(pinia);
|
||||||
|
|
|
@ -139,7 +139,6 @@ export function newBroadcast(broadcastChannel, chatmessage) {
|
||||||
|
|
||||||
var file_checksum = ""; //crc32(file).toString(16).toUpperCase();
|
var file_checksum = ""; //crc32(file).toString(16).toUpperCase();
|
||||||
var message_type = "broadcast_transmit";
|
var message_type = "broadcast_transmit";
|
||||||
var command = "broadcast";
|
|
||||||
|
|
||||||
var timestamp = Math.floor(Date.now() / 1000);
|
var timestamp = Math.floor(Date.now() / 1000);
|
||||||
var uuid = uuidv4();
|
var uuid = uuidv4();
|
||||||
|
@ -153,7 +152,7 @@ export function newBroadcast(broadcastChannel, chatmessage) {
|
||||||
uuid = uuid.slice(-4);
|
uuid = uuid.slice(-4);
|
||||||
|
|
||||||
let newChatObj: messageDefaultObject = {
|
let newChatObj: messageDefaultObject = {
|
||||||
command: broadcast,
|
command: "broadcast",
|
||||||
hmac_signed: false,
|
hmac_signed: false,
|
||||||
percent: 0,
|
percent: 0,
|
||||||
bytesperminute: 0, // You need to assign a value here
|
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_bpm = [];
|
||||||
chat.arq_speed_list_timestamp = [];
|
chat.arq_speed_list_timestamp = [];
|
||||||
chat.arq_speed_list_snr = [];
|
chat.arq_speed_list_snr = [];
|
||||||
|
//@ts-expect-error
|
||||||
chat.selectedMessageObject = [];
|
chat.selectedMessageObject = [];
|
||||||
|
|
||||||
// id and uuid are the same
|
// id and uuid are the same
|
||||||
var data = getFromUnsortedChatListByUUID(id);
|
var data = getFromUnsortedChatListByUUID(id);
|
||||||
console.log(data);
|
|
||||||
chat.selectedMessageObject = data;
|
chat.selectedMessageObject = data;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue