Refactoring: Pinia stores are called *Store now.

This commit is contained in:
baldo 2022-08-23 15:14:07 +02:00
parent 5ae27f530e
commit 2cbdc92ef1
5 changed files with 31 additions and 31 deletions
frontend/src/components/page

View file

@ -2,13 +2,13 @@
import {useConfigStore} from "@/stores/config";
import {useVersionStore} from "@/stores/version";
const config = useConfigStore();
const version = useVersionStore();
const configStore = useConfigStore();
const versionStore = useVersionStore();
</script>
<template>
<footer v-if="config.getConfig">
ffffng ({{ version.getVersion }})
<footer v-if="configStore.getConfig">
ffffng ({{ versionStore.getVersion }})
<a href="https://github.com/freifunkhamburg/ffffng" target="_blank">
<i class="fa fa-code" aria-hidden="true" /> Source Code
</a>
@ -16,12 +16,12 @@ const version = useVersionStore();
<i class="fa fa-bug" aria-hidden="true" /> Fehler melden
</a>
<a
v-if="config.getConfig.legal.privacyUrl"
:href="config.getConfig.legal.privacyUrl"
v-if="configStore.getConfig.legal.privacyUrl"
:href="configStore.getConfig.legal.privacyUrl"
target="_blank">Datenschutz</a>
<a
v-if="config.getConfig.legal.imprintUrl"
:href="config.getConfig.legal.imprintUrl"
v-if="configStore.getConfig.legal.imprintUrl"
:href="configStore.getConfig.legal.imprintUrl"
target="_blank">Impressum</a>
</footer>
</template>

View file

@ -1,12 +1,12 @@
<script setup lang="ts">
import { useConfigStore } from "@/stores/config";
import {useConfigStore} from "@/stores/config";
import {route, RouteName} from "@/router";
const config = useConfigStore();
const configStore = useConfigStore();
</script>
<template>
<header v-if="config.getConfig">
<header v-if="configStore.getConfig">
<nav>
<RouterLink class="logo" :to="route(RouteName.HOME)">
<img
@ -17,8 +17,8 @@ const config = useConfigStore();
</RouterLink>
<h1>
{{ config.getConfig.community.name }} Knotenverwaltung
<RouterLink :to="route(RouteName.HOME)">
{{ configStore.getConfig.community.name }} Knotenverwaltung
</RouterLink>
</h1>