mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
* fix disable button * add backend env for restricting registration * update state management * add allow_signup to app info * move allow_signup to backend only * cleanup docker-compose * potential darkmode fix * fix missing variable * add banner on login page * use random bools for tests * fix initial state bug * fix state reset
12 lines
430 B
TypeScript
12 lines
430 B
TypeScript
import { Ref, useAsync } from "@nuxtjs/composition-api";
|
|
import { useAsyncKey } from "../use-utils";
|
|
import { AppInfo } from "~/types/api-types/admin";
|
|
|
|
export function useAppInfo(): Ref<AppInfo | null> {
|
|
return useAsync(async () => {
|
|
// We use fetch here to reduce need for additional dependencies
|
|
const data = await fetch("/api/app/about").then((res) => res.json());
|
|
return data as AppInfo;
|
|
}, useAsyncKey());
|
|
}
|