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