diff --git a/.env.example b/.env.example index 6119cc45..e2e99029 100644 --- a/.env.example +++ b/.env.example @@ -27,6 +27,10 @@ NG_USE_Q_AND_AS=true # Enable Search-feature for 'Q & A's (Possible value: `true` or leave empty for `false`) NG_USE_Q_AND_A_SEARCH=true +# (Optional) Server-side Search-feature via API (Requires NG_USE_Q_AND_A_SEARCH to be true!) +SEARCH_API= +SEARCH_API_KEY= + # Enable Feedback-prompt on Sub-Category and Offer pages (Possible value: `true` or leave empty for `false`) NG_USE_FEEDBACK_PROMPT=true diff --git a/src/app/components/feedback-link/feedback-link.component.ts b/src/app/components/feedback-link/feedback-link.component.ts index e0e2d6c8..7a8d68ee 100644 --- a/src/app/components/feedback-link/feedback-link.component.ts +++ b/src/app/components/feedback-link/feedback-link.component.ts @@ -115,6 +115,7 @@ export class FeedbackLinkComponent implements OnChanges, OnInit { LoggingEventCategory.ai, LoggingEvent.FeedbackAnswered, { + name: value, // Use "name"-property for Matomo answer: value, }, ); diff --git a/src/app/components/offer/offer.component.ts b/src/app/components/offer/offer.component.ts index 17718cc9..7e19dae4 100644 --- a/src/app/components/offer/offer.component.ts +++ b/src/app/components/offer/offer.component.ts @@ -1,6 +1,5 @@ import { NgFor, NgIf } from '@angular/common'; import { Component, Input } from '@angular/core'; -import { RouterLink } from '@angular/router'; import { IonImg } from '@ionic/angular/standalone'; import { MarkdownModule } from 'ngx-markdown'; import { @@ -17,7 +16,7 @@ import { formatPhoneNumberAsUrl } from 'src/app/shared/utils'; templateUrl: './offer.component.html', styleUrls: ['./offer.component.scss'], standalone: true, - imports: [MarkdownModule, IonImg, NgIf, NgFor, RouterLink], + imports: [MarkdownModule, IonImg, NgIf, NgFor], }) export class OfferComponent { @Input() diff --git a/src/app/components/q-a-set/q-a-set.component.ts b/src/app/components/q-a-set/q-a-set.component.ts index 4fca863b..7bfb38ef 100644 --- a/src/app/components/q-a-set/q-a-set.component.ts +++ b/src/app/components/q-a-set/q-a-set.component.ts @@ -53,6 +53,7 @@ export class QASetComponent { ? LoggingEvent.QuestionOpen : LoggingEvent.QuestionClose, { + name: slug, // Use "name"-property for Matomo questionSlug: slug, question: question.substring(0, 100), }, diff --git a/src/app/components/search-input/search-input.component.html b/src/app/components/search-input/search-input.component.html index 1d89082c..5e6dfb97 100644 --- a/src/app/components/search-input/search-input.component.html +++ b/src/app/components/search-input/search-input.component.html @@ -2,18 +2,31 @@ role="search" #ngForm (ngSubmit)="doSubmit()" + class="search-input" > - + + + + +