From 0ebc16ec0528f6a8dbab60886a6c1113c5375c94 Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 2 Jul 2021 22:50:10 +0300 Subject: [PATCH 1/4] (package.json) Removed "e2e" script since we don't provide e2e testing environment by default --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 7f4eab33..30bf8e69 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,7 @@ "start": "ng serve", "build": "ng build", "test": "ng test", - "lint": "ng lint", - "e2e": "ng e2e" + "lint": "ng lint" }, "dependencies": { "@angular/animations": "12.1.1", From 9abbf5fec25dec528a133bbc8a0260413064c557 Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 2 Jul 2021 22:50:19 +0300 Subject: [PATCH 2/4] (karma.conf.js) Updated the default path --- karma.conf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index bedda366..26d1778f 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -26,7 +26,7 @@ module.exports = function (config) suppressAll: true // removes the duplicated traces }, coverageReporter : { - dir : require('path').join(__dirname, './coverage/angular12'), + dir : require('path').join(__dirname, './coverage/fuse'), subdir : '.', reporters: [ {type: 'html'}, From 038c74df50028b725c570faf6d3e1422ea25e016 Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 2 Jul 2021 22:50:25 +0300 Subject: [PATCH 3/4] (transloco) Defined a fallback language --- src/app/core/transloco/transloco.module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/core/transloco/transloco.module.ts b/src/app/core/transloco/transloco.module.ts index 067244ce..07ecb638 100644 --- a/src/app/core/transloco/transloco.module.ts +++ b/src/app/core/transloco/transloco.module.ts @@ -23,6 +23,7 @@ import { TranslocoHttpLoader } from 'app/core/transloco/transloco.http-loader'; } ], defaultLang : 'en', + fallbackLang : 'en', reRenderOnLangChange: true, prodMode : environment.production }) From cc703081cab58b6db923ad2c269069549e0e56fe Mon Sep 17 00:00:00 2001 From: sercan Date: Fri, 2 Jul 2021 22:59:47 +0300 Subject: [PATCH 4/4] (dashboards/analytics) Removed unused chart options declarations --- .../dashboards/analytics/analytics.component.ts | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/app/modules/admin/dashboards/analytics/analytics.component.ts b/src/app/modules/admin/dashboards/analytics/analytics.component.ts index 247cfc3c..0bf5db3e 100644 --- a/src/app/modules/admin/dashboards/analytics/analytics.component.ts +++ b/src/app/modules/admin/dashboards/analytics/analytics.component.ts @@ -18,20 +18,11 @@ export class AnalyticsComponent implements OnInit, OnDestroy chartImpressions: ApexOptions; chartVisits: ApexOptions; chartVisitorsVsPageViews: ApexOptions; - data: any; - - chartAge: ApexOptions; - averagePurchaseValueOptions: ApexOptions; - browsersOptions: ApexOptions; - channelsOptions: ApexOptions; - devicesOptions: ApexOptions; - chartGender: ApexOptions; - chartLanguage: ApexOptions; chartNewVsReturning: ApexOptions; - refundsOptions: ApexOptions; - totalVisitsOptions: ApexOptions; - uniqueVisitorsOptions: ApexOptions; - uniquePurchasesOptions: ApexOptions; + chartGender: ApexOptions; + chartAge: ApexOptions; + chartLanguage: ApexOptions; + data: any; private _unsubscribeAll: Subject = new Subject();