mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes to commit 9e802db
This commit is contained in:
parent
9e802db6d3
commit
e5779c84ae
|
@ -1,7 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { saveModemConfig } from "../js/api";
|
||||
|
||||
|
||||
import { setActivePinia } from "pinia";
|
||||
import pinia from "../store/index";
|
||||
setActivePinia(pinia);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { saveModemConfig } from "../js/api";
|
||||
|
||||
|
||||
|
||||
import { setActivePinia } from "pinia";
|
||||
import pinia from "../store/index";
|
||||
setActivePinia(pinia);
|
||||
|
|
|
@ -1,28 +1,19 @@
|
|||
import { getModemConfigAsJSON } from "./settingsHandler.ts";
|
||||
|
||||
|
||||
|
||||
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 fetchSettings() {
|
||||
|
||||
}
|
||||
export function fetchSettings() {}
|
||||
|
||||
export function saveSettings() {
|
||||
// save settings via post
|
||||
console.log("post settings");
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue