feature(settings): load settings configuration

This commit is contained in:
2026-06-05 13:45:11 +02:00
parent 8acb675a03
commit cf781ff3f5
7 changed files with 21 additions and 0 deletions
@@ -17,9 +17,19 @@ limitations under the License.
<script setup>
import LeftSidebarLayout from '@/layouts/LeftSidebarLayout.vue';
import { loadSettingsConfig } from '../utils/settingsParser';
import { onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const settingsLoaded = ref(false)
const settings = ref([]);
onMounted(async () => {
settings.value = (await loadSettingsConfig()).contents;
settingsLoaded.value = true;
});
</script>
<template>
@@ -32,6 +42,11 @@ const { t } = useI18n();
<LeftSidebarLayout class="layout">
<template #sidebar>
</template>
<div>
<div v-if="!settingsLoaded">
{{ t('loading') }}
</div>
</div>
</LeftSidebarLayout>
</div>
</template>
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "Laden ...",
"search": {
"searchBar": {
"submit": "Suchen",
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "Loading ...",
"search": {
"searchBar": {
"submit": "Search",
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "Cargando ...",
"search": {
"searchBar": {
"submit": "Buscar",
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "Chargement ...",
"search": {
"searchBar": {
"submit": "Rechercher",
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "Caricamento ...",
"search": {
"searchBar": {
"submit": "Cerca",
+1
View File
@@ -1,4 +1,5 @@
{
"loading": "A carregar ...",
"search": {
"searchBar": {
"submit": "Pesquisar",