diff --git a/frontend/composeables/useAuth.ts b/frontend/composeables/useAuth.ts new file mode 100644 index 0000000..3acb2c5 --- /dev/null +++ b/frontend/composeables/useAuth.ts @@ -0,0 +1,15 @@ +export function useAuth() { + const token = useState("token", () => null) + + function setToken(t: string) { + token.value = t + localStorage.setItem("token", t) + } + + function loadToken() { + token.value = localStorage.getItem("token") + } + + return { token, setToken, loadToken } +} + diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue new file mode 100644 index 0000000..8a31107 --- /dev/null +++ b/frontend/pages/index.vue @@ -0,0 +1,7 @@ + + diff --git a/frontend/pages/owners.vue b/frontend/pages/owners.vue new file mode 100644 index 0000000..1a6bf69 --- /dev/null +++ b/frontend/pages/owners.vue @@ -0,0 +1,19 @@ + + + +