Compile the WebUI and response with it if webui is enabled.

This commit is contained in:
abdulmohsen
2024-05-01 17:26:02 +03:00
parent a3f0026363
commit 1a2ed6b377
16 changed files with 590 additions and 563 deletions

View File

@@ -1,3 +1,19 @@
<template>
<p>foo</p>
<template v-if="!api_url || !api_token">
<no-api/>
</template>
<template v-else>
<p>foo</p>
</template>
</template>
<script setup>
import {useStorage} from "@vueuse/core"
import NoApi from "~/components/NoApi.vue"
const api_url = useStorage('api_url', '')
const api_token = useStorage('api_token', '')
useHead({title: 'Index'})
</script>