initial frontend

This commit is contained in:
sergeysav committed 2024-10-20 12:37:40 -07:00
1 parent 4d5b525288
commit e22245998f
29 files changed
+338 -7

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { ref } from 'vue'
export function useTelemetry(name: string) {
const data = ref<any | null>(null);
const error = ref<any | null>(null);
fetch(`/api/tlm/${name}`)
.then((res) => res.json())
.then((json) => (data.value = json))
.catch((err) => (error.value = err));
return { data, error };
}