initial frontend

This commit is contained in:
2024-10-20 12:37:40 -07:00
parent 4d5b525288
commit e22245998f
29 changed files with 338 additions and 7 deletions

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 };
}