mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-19 02:58:47 +02:00
fix:#53 linted formatted frontend files
This commit is contained in:
@ -43,51 +43,51 @@ const disabledPages = [
|
||||
const router = useRouter();
|
||||
const route = useRoute();
|
||||
|
||||
const domain = "cal.htwk-leipzig.de"
|
||||
provide('domain', domain);
|
||||
const domain = "cal.htwk-leipzig.de";
|
||||
provide("domain", domain);
|
||||
const baseUri = "https://" + domain;
|
||||
const canonical = computed(() => `${baseUri}${router.resolve(route.name ? { name: route.name } : route).path}`);
|
||||
const title = computed(() => route.meta.label?
|
||||
`HTWKalender - ${t(String(route.meta.label))}`:
|
||||
"HTWKalender"
|
||||
const canonical = computed(
|
||||
() =>
|
||||
`${baseUri}${router.resolve(route.name ? { name: route.name } : route).path}`,
|
||||
);
|
||||
const description = computed(() => route.meta.description?
|
||||
t(String(route.meta.description)):
|
||||
t("description")
|
||||
const title = computed(() =>
|
||||
route.meta.label
|
||||
? `HTWKalender - ${t(String(route.meta.label))}`
|
||||
: "HTWKalender",
|
||||
);
|
||||
const description = computed(() =>
|
||||
route.meta.description ? t(String(route.meta.description)) : t("description"),
|
||||
);
|
||||
|
||||
useHead({
|
||||
title: title,
|
||||
link: [
|
||||
{ rel: "canonical", href: canonical},
|
||||
],
|
||||
title: title,
|
||||
link: [{ rel: "canonical", href: canonical }],
|
||||
meta: [
|
||||
{ name: "description", content: description},
|
||||
{ property: "og:description", content: description},
|
||||
]
|
||||
{ name: "description", content: description },
|
||||
{ property: "og:description", content: description },
|
||||
],
|
||||
});
|
||||
|
||||
// SEO optimization
|
||||
useServerHead({
|
||||
title: title
|
||||
title: title,
|
||||
});
|
||||
useServerSeoMeta({
|
||||
title: title,
|
||||
description: description,
|
||||
keywords:
|
||||
"HTWK Leipzig, Stundenplan, iCal, freie Räume, Lerngruppen, Sport, Prüfungen",
|
||||
// openGraph
|
||||
ogTitle: title,
|
||||
ogDescription: description,
|
||||
ogImage: `${baseUri}/img/banner-image.png`,
|
||||
ogImageType: "image/png",
|
||||
ogLocale: "de_DE",
|
||||
ogUrl: canonical,
|
||||
// twitter
|
||||
twitterCard: "summary_large_image",
|
||||
twitterSite: "@HTWKLeipzig",
|
||||
});
|
||||
useServerSeoMeta(
|
||||
{
|
||||
title: title,
|
||||
description: description,
|
||||
keywords: "HTWK Leipzig, Stundenplan, iCal, freie Räume, Lerngruppen, Sport, Prüfungen",
|
||||
// openGraph
|
||||
ogTitle: title,
|
||||
ogDescription: description,
|
||||
ogImage: `${baseUri}/img/banner-image.png`,
|
||||
ogImageType: "image/png",
|
||||
ogLocale: "de_DE",
|
||||
ogUrl: canonical,
|
||||
// twitter
|
||||
twitterCard: "summary_large_image",
|
||||
twitterSite: "@HTWKLeipzig",
|
||||
}
|
||||
);
|
||||
|
||||
const store = moduleStore();
|
||||
const mobilePage = ref(true);
|
||||
@ -104,15 +104,14 @@ const updateMobile = () => {
|
||||
|
||||
updateMobile();
|
||||
|
||||
if (!import.meta.env.SSR)
|
||||
window.addEventListener("resize", updateMobile);
|
||||
if (!import.meta.env.SSR) window.addEventListener("resize", updateMobile);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MenuBar />
|
||||
<RouterView v-slot="{ Component, route }" class="mb-8">
|
||||
<RouterView v-slot="{ Component, route: currentRoute }" class="mb-8">
|
||||
<transition name="scale" mode="out-in">
|
||||
<div :key="route.name ?? ''" class="origin-near-top">
|
||||
<div :key="currentRoute.name ?? ''" class="origin-near-top">
|
||||
<component :is="Component" />
|
||||
</div>
|
||||
</transition>
|
||||
|
Reference in New Issue
Block a user