move pwa manifest to backend

This commit is contained in:
Julian Krauser 2025-04-24 16:49:14 +02:00
parent 916e61897a
commit 20a2a3ccd0
23 changed files with 95 additions and 54 deletions

View file

@ -8,6 +8,11 @@
</div>
<Footer @contextmenu.prevent />
<Notification />
<Teleport to="head">
<link rel="icon" type="image/ico" :href="config.server_address + '/api/public/favicon.ico'" />
<link rel="manifest" :href="config.server_address + '/api/public/manifest.webmanifest'" />
</Teleport>
</template>
<script setup lang="ts">
@ -15,20 +20,32 @@ import { defineComponent } from "vue";
import { RouterView } from "vue-router";
import Header from "./components/Header.vue";
import Footer from "./components/Footer.vue";
import { mapState } from "pinia";
import { mapActions, mapState } from "pinia";
import { useAuthStore } from "./stores/auth";
import { isAuthenticatedPromise } from "./router/authGuard";
import ContextMenu from "./components/ContextMenu.vue";
import Modal from "./components/Modal.vue";
import Notification from "./components/Notification.vue";
import { config } from "./config";
import { useConfigurationStore } from "@/stores/configuration";
</script>
<script lang="ts">
export default defineComponent({
watch: {
clubName() {
document.title = this.clubName;
},
},
computed: {
...mapState(useAuthStore, ["authCheck"]),
...mapState(useConfigurationStore, ["clubName"]),
},
mounted() {
this.configure();
document.title = this.clubName;
if (!this.authCheck && localStorage.getItem("access_token")) {
isAuthenticatedPromise().catch(() => {
localStorage.removeItem("access_token");
@ -36,5 +53,8 @@ export default defineComponent({
});
}
},
methods: {
...mapActions(useConfigurationStore, ["configure"]),
},
});
</script>