diff --git a/.env.tis b/.env.tis index 9abf20b..a541ac0 100644 --- a/.env.tis +++ b/.env.tis @@ -1,2 +1,5 @@ TENANT=tis DIST_DIR=tis +# TIS_BUILD_DATE= +# TIS_APP_VERSION= +# TIS_BUILD_NUMBER= diff --git a/angular.json b/angular.json index 9c5de5c..431e41c 100644 --- a/angular.json +++ b/angular.json @@ -44,8 +44,7 @@ } ], "outputHashing": "all", - "outputPath": "dist/default", - "serviceWorker": "ngsw-config.json" + "outputPath": "dist/default" }, "development": { "extractLicenses": false, @@ -80,8 +79,7 @@ } ], "outputHashing": "all", - "outputPath": "dist/production", - "serviceWorker": "ngsw-config.json" + "outputPath": "dist/production" }, "staging": { "extractLicenses": true, @@ -93,7 +91,6 @@ ], "optimization": true, "outputHashing": "all", - "serviceWorker": "ngsw-config.json", "sourceMap": false }, "tis": { @@ -138,8 +135,7 @@ } ], "outputHashing": "all", - "outputPath": "dist/tis", - "serviceWorker": "ngsw-config.json" + "outputPath": "dist/tis" }, "tis-development": { "assets": [ @@ -186,7 +182,6 @@ "optimization": false, "outputHashing": "all", "outputPath": "dist/tis", - "serviceWorker": "ngsw-config.json", "sourceMap": true } }, diff --git a/ngsw-config.json b/ngsw-config.json index e9c4674..eefe9b9 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -1,9 +1,9 @@ { "$schema": "./node_modules/@angular/service-worker/config/schema.json", "appData": { - "appVersion": "0.0.17", - "buildDate": "2026-05-16T16:43:54.103Z", - "buildNumber": 17 + "appVersion": "0.0.22", + "buildDate": "2026-05-16T16:59:05.769Z", + "buildNumber": 22 }, "assetGroups": [ { @@ -11,8 +11,7 @@ "name": "app", "resources": { "files": [ - "/favicon.ico", - "/index.html" + "/favicon.ico" ] }, "updateMode": "prefetch" diff --git a/src/app.config.ts b/src/app.config.ts index cc109a0..6a21d98 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -19,7 +19,7 @@ import { withEnabledBlockingInitialNavigation, withInMemoryScrolling, } from '@angular/router'; -import { provideServiceWorker } from '@angular/service-worker'; +// import { provideServiceWorker } from '@angular/service-worker'; // Use the consolidated preset that includes our custom variables import { ConfirmationService, MessageService } from 'primeng/api'; import { providePrimeNG } from 'primeng/config'; @@ -74,9 +74,9 @@ export const appConfig: ApplicationConfig = { withInterceptors([loggingInterceptor, authInterceptor, errorInterceptor, dedupInterceptor]), withInterceptorsFromDi(), ), - provideServiceWorker('ngsw-worker.js', { - enabled: !isDevMode(), - registrationStrategy: 'registerWhenStable:30000', - }), + // provideServiceWorker('ngsw-worker.js', { + // enabled: !isDevMode(), + // registrationStrategy: 'registerWhenStable:30000', + // }), ], }; diff --git a/src/app/domains/pos/layouts/pagesLayout/layout.component.ts b/src/app/domains/pos/layouts/pagesLayout/layout.component.ts index 58a119c..d4859ab 100644 --- a/src/app/domains/pos/layouts/pagesLayout/layout.component.ts +++ b/src/app/domains/pos/layouts/pagesLayout/layout.component.ts @@ -10,6 +10,7 @@ import { Card } from 'primeng/card'; import { Menu } from 'primeng/menu'; import { finalize } from 'rxjs'; import images from 'src/assets/images'; +import config from 'src/config'; import { PosInfoStore, PosProfileStore } from '../../store'; import { DeviceInfoStore } from '../../store/device.store'; import { PosMainMenuSidebarComponent } from '../mainMenuSidebar/main-menu-sidebar.component'; @@ -83,7 +84,7 @@ export class PosPagesLayoutComponent { now = new Date(); - homeRouteLink = '/pos'; + homeRouteLink = config.isPosApplication ? '/' : '/pos'; async getData() { if (!this.posInfo() || !this.posProfile()) { diff --git a/src/app/domains/pos/modules/landing/services/payment-bridge.service.ts b/src/app/domains/pos/modules/landing/services/payment-bridge.service.ts index 0d7da81..0bcfe39 100644 --- a/src/app/domains/pos/modules/landing/services/payment-bridge.service.ts +++ b/src/app/domains/pos/modules/landing/services/payment-bridge.service.ts @@ -17,7 +17,7 @@ export class PosPaymentBridgeService extends PosPaymentBridgeAbstract { this.toastServices.error({ text: '@@@@@@@@@@@@@' }); // @ts-ignore - window.webV = { + window.WebV = { onPaymentResult: () => { this.toastServices.error({ text: 'asdasdsadassadasdas' }); }, diff --git a/src/app/shared/components/dialog/light-bottomsheet.component.html b/src/app/shared/components/dialog/light-bottomsheet.component.html index 5fd859a..ac088f8 100644 --- a/src/app/shared/components/dialog/light-bottomsheet.component.html +++ b/src/app/shared/components/dialog/light-bottomsheet.component.html @@ -19,7 +19,7 @@ } } -