Skip to content

Commit

Permalink
Merge pull request #8 from PiwikPRO/fix/add-example-pages-titles
Browse files Browse the repository at this point in the history
Add pages titles
  • Loading branch information
szymonSys authored Jun 25, 2024
2 parents ff7721a + 1278e4c commit ccf41c1
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 1 deletion.
3 changes: 3 additions & 0 deletions example/pages/content-tracking/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ onMounted(() => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/cookie-management/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ const showToast = (message: string) => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/custom-dimensions/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const pageData = {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/custom-events/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const pageData = {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/download-and-outlink/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const pageData = {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<div>
Expand Down
9 changes: 8 additions & 1 deletion example/pages/ecommerce/index.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<script setup lang="ts">
import { ref } from "vue";
import type { PaymentInformation, Product } from "@piwikpro/nuxt-piwik-pro";
import { ref } from "vue";
import { products } from "~/data/ecommerce";
const toastMessage = ref("");
const isToastVisible = ref(false);
const pageData = {
title: "ECommerce",
};
const showToast = (message: string) => {
toastMessage.value = message;
Expand Down Expand Up @@ -101,6 +105,9 @@ const handleShowProductDetails = (product: Product) => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<div class="columns-2">
<div class="card bg-base-100 shadow-xl inventory">
<div class="card-body">
Expand Down
3 changes: 3 additions & 0 deletions example/pages/goal-conversion/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ const showToast = (message: string) => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.heading }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<script setup lang="ts"></script>

<template>
<Head>
<Title>Piwik PRO example usage</Title>
</Head>
<UContainer class="m-8">
<Navigation />
</UContainer>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/page-views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const showToast = (message: string) => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>{{ pageData.title }}</h1>
<p>{{ pageData.description }}</p>
Expand Down
3 changes: 3 additions & 0 deletions example/pages/site-search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ const showToast = (message: string) => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<article>
<ServicesUsageExample />
Expand Down
6 changes: 6 additions & 0 deletions example/pages/user-management/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { onMounted, ref } from "vue";
const userId = ref("");
const visitorId = ref("");
const visitorInfo = ref({});
const pageData = {
title: "UserManagement",
};
const callAsyncMethods = () =>
usePiwikPro(async ({ UserManagement }) => {
Expand All @@ -23,6 +26,9 @@ onMounted(() => {
</script>

<template>
<Head>
<Title>{{ pageData.title }}</Title>
</Head>
<UContainer class="prose p-8">
<h1>User Management</h1>
<article>
Expand Down

0 comments on commit ccf41c1

Please sign in to comment.