From 462b3ff56ac7388900e4295591ba84b4da425dc0 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 19 Dec 2022 00:44:30 +0330 Subject: [PATCH 1/2] chore(ff-pwa): disallow all search engines --- uniquely/flight-finder-pwa/robots.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniquely/flight-finder-pwa/robots.txt b/uniquely/flight-finder-pwa/robots.txt index c2a49f4fb..1f53798bb 100644 --- a/uniquely/flight-finder-pwa/robots.txt +++ b/uniquely/flight-finder-pwa/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Allow: / +Disallow: / From 81d4c7ea875e759a2b9a86f49a143617bffe9b2c Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Mon, 19 Dec 2022 00:53:52 +0330 Subject: [PATCH 2/2] fix(ff-pwa): render issues --- .../src/component/page-flight-finder.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts b/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts index 40d81619f..cb7ef21cf 100644 --- a/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts +++ b/uniquely/flight-finder-pwa/src/component/page-flight-finder.ts @@ -3,7 +3,7 @@ import {l10n} from '@alwatr/i18n'; import {SignalInterface} from '@alwatr/signal'; import {modalController} from '@ionic/core'; import {css, html} from 'lit'; -import {customElement, state} from 'lit/decorators.js'; +import {customElement} from 'lit/decorators.js'; import {map} from 'lit/directives/map.js'; import ionNormalize from '../style/ionic.normalize.js'; @@ -50,7 +50,7 @@ export class PageFlightFinder extends AlwatrElement { `, ]; - @state() private __jobList: Array = []; + private __jobList: Array = []; static jobListSignal = new SignalInterface('job-list'); static jobAddSignal = new SignalInterface('job-add'); @@ -64,6 +64,7 @@ export class PageFlightFinder extends AlwatrElement { PageFlightFinder.jobListSignal.addListener((jobList) => { this.__jobList = jobList; + this.requestUpdate(); }); } override render(): TemplateResult { @@ -89,8 +90,6 @@ export class PageFlightFinder extends AlwatrElement { } private __renderAirlineListCard(): TemplateResult { - const airlineItemList = map(this.__jobList, (airline) => html` `); - return html` @@ -98,7 +97,9 @@ export class PageFlightFinder extends AlwatrElement { ۵ ${l10n.localize('seconds_ago')} - ${airlineItemList} + + ${map(this.__jobList, (airline) => html``)} + `; }