Add documentation

This commit is contained in:
2024-03-29 12:52:15 +01:00
parent 4aca08d89a
commit da6159861d
11 changed files with 67 additions and 15 deletions

View File

@@ -0,0 +1,40 @@
<script setup>
import GuestLayout from '../Layouts/GuestLayout.vue';
</script>
<template>
<GuestLayout>
<h1 class="font-extrabold">How to use the service</h1>
<hr class="h-1 mx-auto bg-gray-100 border-0 mb-5 rounded dark:bg-gray-700">
<h2 class="font-bold mb-4">Main menu</h2>
<ol class="ml-10 list-decimal">
<li>Type in the keyword(s) to find a product for which you want to compare the price (product name, description, article number, ...)</li>
<li>You can either sort/filter the results or simply click on any table row to find the product prices</li>
<li>Price comparison will appear in the <span>"Results"</span> table</li>
</ol>
<br/>
To get the lowest price you can sort the results by price column.
Click on the country name to display the corresponding product page.
<br/>
Some countries are not included for the comparison by default (e.g. Bulgaria, Cyprus, Greece) due to technical limitations on their websites.
<br/>
For these you will have to use Online search funtionality.
Online search is available by clicking on "Online" checkbox.
<br/>
<br/>
<img src="/images/pic_online.png" />
<br/>
<h2 class="font-bold mb-4">Settings menu</h2>
<p class="mb-2 underline">In the settings menu you can change:</p>
<ul class="ml-10 list-disc mb-10">
<li>the country in which to search for the product(s) to compare (default country is based on your location)</li>
<li>list of countries where the product(s) are available for comparison (default all)</li>
<li>currency re-calculation</li>
</ul>
<img src="/images/pic_settings.png" />
</GuestLayout>
</template>

View File

@@ -7,6 +7,7 @@ import {
computed,
nextTick,
watch,
inject,
} from "vue";
import Swal from "sweetalert2";
@@ -22,7 +23,6 @@ import searchimg from "@/assets/search-icon.svg";
import { settingsStore } from '../settingsStore.js';
import { FwbInput } from 'flowbite-vue';
const screenWidth = ref(screen.width)
const screenHeight = ref(screen.height)
const hover = ref(true);
@@ -390,8 +390,6 @@ onMounted(() => {
});
const showRow = async (item) => {
console.log("ITEM=", item);
this.$matomo.trackEvent('Product', 'search', 'text', settingsStore.text);
this.$matomo.trackEvent('Product', 'click', 'code', item.globalCode);
itemCode.value = item.code;
try {
@@ -400,6 +398,7 @@ const showRow = async (item) => {
countries: settingsStore.countries,
currency: settingsStore.currency,
online: settingsStore.online,
text: settingsStore.text,
});
products.value = response.data.products;