[CodeFactor] Apply fixes to commit 9e802db

This commit is contained in:
codefactor-io 2023-11-09 18:46:53 +00:00
parent 9e802db6d3
commit e5779c84ae
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
3 changed files with 3 additions and 15 deletions

View file

@ -1,7 +1,6 @@
<script setup lang="ts">
import { saveModemConfig } from "../js/api";
import { setActivePinia } from "pinia";
import pinia from "../store/index";
setActivePinia(pinia);

View file

@ -1,8 +1,6 @@
<script setup lang="ts">
import { saveModemConfig } from "../js/api";
import { setActivePinia } from "pinia";
import pinia from "../store/index";
setActivePinia(pinia);

View file

@ -1,28 +1,19 @@
import { getModemConfigAsJSON } from "./settingsHandler.ts";
export function getModemConfig(){
export function getModemConfig() {
// fetch Settings
getFromServer("localhost", 5000, "config");
getFromServer("localhost", 5000, "devices/audio");
getFromServer("localhost", 5000, "devices/serial");
}
export function saveModemConfig(){
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");
}