Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Shopware Monitoring</title>
<title>Shopmon</title>

<!-- Open Graph / Facebook -->
<meta
Expand All @@ -13,7 +13,7 @@
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://shopmon.fos.gg/" />
<meta property="og:title" content="Shopware Monitoring" />
<meta property="og:title" content="Shopmon" />
<meta
property="og:description"
content="Shopmon is a hosted Shopware Monitoring solution. It provides you with a detailed overview of your Shopware instance and its performance."
Expand All @@ -23,7 +23,7 @@
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://shopmon.fos.gg/" />
<meta property="twitter:title" content="Shopware Monitoring" />
<meta property="twitter:title" content="Shopmon" />
<meta
property="twitter:description"
content="Shopmon is a hosted Shopware Monitoring solution. It provides you with a detailed overview of your Shopware instance and its performance."
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/composables/useShopDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export function useShopDetail() {
latestShopwareVersion.value = shopwareVersions.value[0];

if (shop.value?.name) {
document.title = shop.value.name;
const pageTitle = route.meta.title;
document.title =
typeof pageTitle === "string"
? `${pageTitle} - ${shop.value.name} | Shopmon`
: `${shop.value.name} | Shopmon`;
}
} catch (e) {
error(e instanceof Error ? e.message : String(e));
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ router.beforeEach(async (to: RouteLocationNormalized) => {
}
});

const DEFAULT_TITLE = "Shopware Monitoring";
const DEFAULT_TITLE = "Shopmon";
router.afterEach(async (to) => {
await nextTick();

const title = to.meta.title;
if (typeof title === "string") {
document.title = title;
document.title = `${title} | ${DEFAULT_TITLE}`;
return;
}

Expand Down