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
55a17b793b
commit
fbf6853c96
2 changed files with 2 additions and 12 deletions
|
@ -15,8 +15,6 @@ import { useStateStore } from "../store/stateStore.js";
|
|||
const state = useStateStore(pinia);
|
||||
|
||||
import { startModem, stopModem } from "../js/api";
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
@ -1,29 +1,21 @@
|
|||
import { getModemConfigAsJSON } from "./settingsHandler.ts";
|
||||
import { getFromServer, postToServer } from "./rest.js";
|
||||
|
||||
|
||||
|
||||
export function getModemConfig() {
|
||||
|
||||
// fetch Settings
|
||||
getFromServer("localhost", 5000, "config");
|
||||
getFromServer("localhost", 5000, "devices/audio");
|
||||
getFromServer("localhost", 5000, "devices/serial");
|
||||
|
||||
}
|
||||
|
||||
|
||||
export function saveModemConfig() {
|
||||
postToServer("localhost", 5000, "config", getModemConfigAsJSON());
|
||||
|
||||
}
|
||||
|
||||
export function startModem() {
|
||||
postToServer("localhost", 5000, "modem/start", null);
|
||||
|
||||
}
|
||||
|
||||
export function stopModem() {
|
||||
postToServer("localhost", 5000, "modem/stop", null);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue