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

@@ -0,0 +1,14 @@
<template>
<div class="notification is-warning">
<h1 class="title is-5">There is no <em class="is-bold">{{ api_var }}</em> configured.</h1>
<p>Please configure the API connection using the button <i class="fa fa-cog"></i> in the top right corner of the
page.</p>
</div>
</template>
<script setup>
import {useStorage} from "@vueuse/core";
const api_url = useStorage('api_url', '')
const api_var = computed(() => (!api_url.value) ? 'API URL' : 'API token')
</script>