diff --git a/.config/nuxt.ts b/.config/nuxt.ts index 4e92654..d429910 100644 --- a/.config/nuxt.ts +++ b/.config/nuxt.ts @@ -159,5 +159,8 @@ export default defineNuxtConfig({ }, features: { inlineStyles: false + }, + experimental: { + typedPages: true } }); diff --git a/app/components/CookiesController.vue b/app/components/CookiesController.vue index 41c5179..f15ac42 100644 --- a/app/components/CookiesController.vue +++ b/app/components/CookiesController.vue @@ -20,9 +20,9 @@ moduleOptions.localeTexts = { } }; -moduleOptions.cookies.necessary[0].name = t("cookies_necessary_title"); -moduleOptions.cookies.necessary[0].description = t("cookies_necessary_description"); -moduleOptions.cookies.necessary[0].links = { +moduleOptions.cookies.necessary[0]!.name = t("cookies_necessary_title"); +moduleOptions.cookies.necessary[0]!.description = t("cookies_necessary_description"); +moduleOptions.cookies.necessary[0]!.links = { "/legal/cookies": t("cookie_policy"), "/legal/privacy": t("privacy_policy"), "/legal/terms": t("terms_of_use") diff --git a/app/components/ToastsController.client.vue b/app/components/ToastsController.client.vue index 1d92d18..535a24a 100644 --- a/app/components/ToastsController.client.vue +++ b/app/components/ToastsController.client.vue @@ -7,7 +7,7 @@ watch(toasts, () => { nextTick(() => { if (!refToasts.value) return; for (let i = 0; i < refToasts.value.length; i++) { - const toast = $bootstrap.showToast(refToasts.value[i]); + const toast = $bootstrap.showToast(refToasts.value[i]!); if (!toast) continue; toast.addEventListener("hidden.bs.toast", () => { if (i + 1 === refToasts.value?.length) $toasts.removeAll(); diff --git a/app/components/bond/BondMarkers.vue b/app/components/bond/BondMarkers.vue index 4071057..f9bd782 100644 --- a/app/components/bond/BondMarkers.vue +++ b/app/components/bond/BondMarkers.vue @@ -130,8 +130,8 @@ watch(() => props.markers, (value) => {
- - + + {{ marker.title }}
diff --git a/app/components/bond/BondStories.vue b/app/components/bond/BondStories.vue index 485d347..9a4bdde 100644 --- a/app/components/bond/BondStories.vue +++ b/app/components/bond/BondStories.vue @@ -128,7 +128,7 @@ watch(() => props.marker, () => { diff --git a/app/components/map/MapPublic.vue b/app/components/map/MapPublic.vue index b5a6808..7fb7976 100644 --- a/app/components/map/MapPublic.vue +++ b/app/components/map/MapPublic.vue @@ -50,7 +50,7 @@ onMounted(() => { } const length = markers.value.length; if (length) { - setView([markers.value[length - 1].lat, markers.value[length - 1].lng], 3); + setView([markers.value[length - 1]!.lat, markers.value[length - 1]!.lng], 3); } }); diff --git a/app/components/map/MapView.vue b/app/components/map/MapView.vue index 79d684d..8f15033 100644 --- a/app/components/map/MapView.vue +++ b/app/components/map/MapView.vue @@ -75,7 +75,7 @@ onMounted(() => { } const length = props.markers.length; if (length) { - setView([props.markers[length - 1].lat, props.markers[length - 1].lng], 3); + setView([props.markers[length - 1]!.lat, props.markers[length - 1]!.lng], 3); } }); diff --git a/app/pages/app/premium/subscribe.vue b/app/pages/app/premium/subscribe.vue index 094e785..bb6e9f7 100644 --- a/app/pages/app/premium/subscribe.vue +++ b/app/pages/app/premium/subscribe.vue @@ -13,9 +13,9 @@ if (!user.value.bond?.id) { const loading = ref(false); const paid = ref(false); -const { _ptxn } = useRoute().query; +const { query } = useRoute("app-premium-subscribe"); const isPtxnValid = ref(false); -if (_ptxn) loading.value = true; +if (query._ptxn) loading.value = true; const { $paddle, $toasts } = useNuxtApp(); const initialized = ref(false); @@ -51,7 +51,7 @@ onMounted(async () => { if (!subscribe) return; paid.value = true; await sessionFetch(); - if (_ptxn) return; + if (query._ptxn) return; $toasts.add({ message: t("subscribed"), success: true }); $paddle.close(); }, @@ -75,7 +75,7 @@ useSeo({
-