From 43486e104a2b12ac8671a0633ed8b47a8c0f38a9 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:29:53 +0200 Subject: [PATCH 1/2] remove cookie service unable to build a release, testing to see if it's to do with the added cookie service --- ui/package-lock.json | 21 --------------------- ui/package.json | 1 - 2 files changed, 22 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 1915086c7..ffedddfea 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -23,7 +23,6 @@ "@ng-bootstrap/ng-bootstrap": "^15.1.1", "bootstrap": "^5.3.2", "moment": "^2.29.4", - "ngx-cookie-service": "^16.1.0", "ngx-webstorage": "^12.0.0", "rxjs": "~7.5.0", "tslib": "^2.3.0", @@ -11066,18 +11065,6 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "node_modules/ngx-cookie-service": { - "version": "16.1.0", - "resolved": "https://registry.npmjs.org/ngx-cookie-service/-/ngx-cookie-service-16.1.0.tgz", - "integrity": "sha512-FrzMjsGCHZCd2sEucigMaGyzImBL0l6gwWn6jmLBhcNVx0D7P8Yvtgk9aUptlqBrVKy4c2upglSa3Ogv3679bw==", - "dependencies": { - "tslib": "^2.0.0" - }, - "peerDependencies": { - "@angular/common": "^16.0.0", - "@angular/core": "^16.0.0" - } - }, "node_modules/ngx-webstorage": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/ngx-webstorage/-/ngx-webstorage-12.0.0.tgz", @@ -23428,14 +23415,6 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "ngx-cookie-service": { - "version": "16.1.0", - "resolved": "https://registry.npmjs.org/ngx-cookie-service/-/ngx-cookie-service-16.1.0.tgz", - "integrity": "sha512-FrzMjsGCHZCd2sEucigMaGyzImBL0l6gwWn6jmLBhcNVx0D7P8Yvtgk9aUptlqBrVKy4c2upglSa3Ogv3679bw==", - "requires": { - "tslib": "^2.0.0" - } - }, "ngx-webstorage": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/ngx-webstorage/-/ngx-webstorage-12.0.0.tgz", diff --git a/ui/package.json b/ui/package.json index 20af641b7..1aa605da5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -29,7 +29,6 @@ "@ng-bootstrap/ng-bootstrap": "^15.1.1", "bootstrap": "^5.3.2", "moment": "^2.29.4", - "ngx-cookie-service": "^16.1.0", "ngx-webstorage": "^12.0.0", "rxjs": "~7.5.0", "tslib": "^2.3.0", From f064181da5f3881ae0d7494ab5b213ee4142cd84 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:30:57 +0200 Subject: [PATCH 2/2] remove cookie service code --- ui/src/app/account/service/account.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/app/account/service/account.service.ts b/ui/src/app/account/service/account.service.ts index 55c1a099a..45d4cbcc0 100644 --- a/ui/src/app/account/service/account.service.ts +++ b/ui/src/app/account/service/account.service.ts @@ -4,7 +4,7 @@ import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http' import { BehaviorSubject, EMPTY, Observable, Subject, catchError, map, of, takeUntil, tap } from 'rxjs' import { IAccount } from '../model/account.model' -import { CookieService } from 'ngx-cookie-service' +// import { CookieService } from 'ngx-cookie-service' // TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service //import { MSMemberService } from 'app/entities/member/member.service'; @@ -21,7 +21,7 @@ export class AccountService { // TODO: uncomment when language service is implemented //private languageService: JhiLanguageService, private sessionStorage: SessionStorageService, - private cookieService: CookieService, + //private cookieService: CookieService, private http: HttpClient // TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service //private memberService: MSMemberService ) {} @@ -50,7 +50,7 @@ export class AccountService { this.authenticated = true const account: IAccount = response.body if (account.langKey) { - this.cookieService.set('locale', account.langKey) + // this.cookieService.set('locale', account.langKey) } this.accountData.next(account)