2023-09-12 15:52:16 +00:00
|
|
|
import { defineStore } from 'pinia'
|
|
|
|
import { ref, computed } from 'vue';
|
|
|
|
|
|
|
|
export const useChatStore = defineStore('chatStore', () => {
|
|
|
|
var chat_filter = ref([
|
|
|
|
{ type: "newchat" },
|
|
|
|
{ type: "received" },
|
|
|
|
{ type: "transmit" },
|
|
|
|
{ type: "ping-ack" },
|
|
|
|
{ type: "broadcast_received" },
|
|
|
|
{ type: "broadcast_transmit" },
|
|
|
|
//{ type: "request" },
|
|
|
|
//{ type: "response" },
|
|
|
|
])
|
|
|
|
|
2023-09-12 20:49:41 +00:00
|
|
|
|
2023-09-20 04:46:37 +00:00
|
|
|
var selectedCallsign = ref()
|
|
|
|
var inputText = ref()
|
2023-09-21 12:17:03 +00:00
|
|
|
var inputFile = ref()
|
|
|
|
var inputFileName = ref("-")
|
|
|
|
var inputFileType = ref("-")
|
|
|
|
var inputFileSize = ref("-")
|
2023-09-12 20:49:41 +00:00
|
|
|
|
2023-09-12 15:52:16 +00:00
|
|
|
var callsign_list = ref()
|
2023-09-12 20:49:41 +00:00
|
|
|
var sorted_chat_list = ref()
|
|
|
|
var unsorted_chat_list = ref([])
|
|
|
|
|
2023-09-21 12:17:03 +00:00
|
|
|
var chartSpeedPER0 = ref()
|
|
|
|
var chartSpeedPER25 = ref()
|
|
|
|
var chartSpeedPER75 = ref()
|
|
|
|
|
2023-09-12 20:49:41 +00:00
|
|
|
|
2023-09-21 12:17:03 +00:00
|
|
|
return {selectedCallsign, inputText, chat_filter, callsign_list, sorted_chat_list, unsorted_chat_list, inputFileName, inputFileSize, inputFileType, inputFile, chartSpeedPER0, chartSpeedPER25, chartSpeedPER75 };
|
2023-09-12 15:52:16 +00:00
|
|
|
});
|