Add caddy and clean up build

This commit is contained in:
2026-09-10 11:20:46 +02:00
parent 443a7c483a
commit d6cb4078bc
9 changed files with 49 additions and 57 deletions
+8 -4
View File
@@ -1,13 +1,17 @@
<template>
<LanguageSwitcher />
{{ t('app.hello') }}
<RouterView />
<p>
{{ t('app.hello') }}
</p>
<Suspense>
<RouterView />
</Suspense>
</template>
<script setup>
import { useI18n } from 'vue-i18n'
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
const { t } = useI18n()
const { t } = useI18n();
</script>
+1 -1
View File
@@ -13,7 +13,7 @@ const loadedLocales = new Set()
async function loadLocaleMessages(locale) {
if (!loadedLocales.has(locale)) {
const messages = await import(`../locales/${locale}.json`)
const messages = await import(`./locales/${locale}.json`)
i18n.global.setLocaleMessage(locale, messages.default)
loadedLocales.add(locale)
}
+9 -2
View File
@@ -1,9 +1,16 @@
<template>
{{ t('app.world') }}
<p>{{ t('app.world') }}</p>
<p v-for="value in j">
{{ value }}
</p>
</template>
<script setup>
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const { t } = useI18n();
const res = await fetch("/php/notifications.php")
const j = await res.json();
</script>