-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
59 lines (41 loc) · 1.36 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<template>
<meta name="google-site-verification" content="RJ5wF4EZWSm7DGx0iVjukXX89mMMRZt2Edq1btd_aTM" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
import { SessionContext } from "@shopware-pwa/types";
import {useSessionContext, useCart, useBreadcrumbs, useNotifications} from "@shopware-pwa/composables-next";
import {createInstance } from "@shopware-pwa/api-client";
import {useSeoMeta} from "unhead";
useSeoMeta({
title: 'BLYSSUM',
ogTitle: 'BLYSSUM CLOTHING',
description: 'Affordable Streetwear by BLYSSUM',
ogDescription: 'Look at multiple Designs by BLYSSUM in our Onlineshop.',
ogImage: '/assets/images/seoLogo.png',
twitterCard: 'summary_large_image',
})
const { refreshSessionContext } = useSessionContext();
const { data: sessionContextData } = await useAsyncData(
"sessionContext",
async () => {
}
);
useSessionContext(sessionContextData.value as SessionContext);
useNotifications();
const runtimeConfig = useRuntimeConfig();
createInstance({
endpoint: runtimeConfig.public.shopware.shopwareEndpoint,
accessToken: runtimeConfig.public.shopware.shopwareAccessToken,
});
// import previously implemented module
const { refreshCart } = useCart();
onMounted(async () => {
await refreshSessionContext();
await refreshCart();
});
</script>
<style scoped>
</style>