From a9e915fd763268a046c8c528c1efa22ce85312e3 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:42:38 +0200 Subject: [PATCH 1/8] issue-1987: Angular CLI update for packages - @angular/core@latest, @angular/cli@latest --- package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index f9eb9fc..ee9e190 100644 --- a/package.json +++ b/package.json @@ -23,17 +23,17 @@ }, "private": true, "dependencies": { - "@angular/animations": "10.1.6", + "@angular/animations": "11.2.0", "@angular/cdk": "~10.2.5", - "@angular/common": "10.1.6", - "@angular/compiler": "10.1.6", - "@angular/core": "10.1.6", + "@angular/common": "11.2.0", + "@angular/compiler": "11.2.0", + "@angular/core": "11.2.0", "@angular/flex-layout": "^10.0.0-beta.32", - "@angular/forms": "10.1.6", + "@angular/forms": "11.2.0", "@angular/material": "~10.2.5", - "@angular/platform-browser": "10.1.6", - "@angular/platform-browser-dynamic": "10.1.6", - "@angular/router": "10.1.6", + "@angular/platform-browser": "11.2.0", + "@angular/platform-browser-dynamic": "11.2.0", + "@angular/router": "11.2.0", "@ng-select/ng-select": "^4.0.4", "@ngx-progressbar/core": "^5.3.2", "@ngx-progressbar/http": "^5.3.2", @@ -60,10 +60,10 @@ "zone.js": "~0.10.2" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.1002.0", - "@angular/cli": "~10.1.7", - "@angular/compiler-cli": "10.1.6", - "@angular/language-service": "10.1.6", + "@angular-devkit/build-angular": "~0.1102.0", + "@angular/cli": "~11.2.0", + "@angular/compiler-cli": "11.2.0", + "@angular/language-service": "11.2.0", "@ngxs/devtools-plugin": "^3.7.0", "@ngxs/logger-plugin": "^3.7.0", "@types/antlr4-autosuggest": "0.0.0", @@ -80,7 +80,7 @@ "http-server": "^0.12.3", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~5.0.0", - "karma": "~5.0.0", + "karma": "~6.1.1", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-firefox-launcher": "~1.1.0", From 8be8386bcc789d9c9be8e443ff408e8eb720c22a Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:42:39 +0200 Subject: [PATCH 2/8] issue-1987: @angular/cli migration - update-angular-config-v11 Remove deprecated options from 'angular.json' that are no longer present in v11. --- angular.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/angular.json b/angular.json index 621b3f0..577280e 100644 --- a/angular.json +++ b/angular.json @@ -58,7 +58,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, @@ -81,7 +80,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, From 29e74627e3534643de9b8a83908e0b6458bb3400 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:43:09 +0200 Subject: [PATCH 3/8] issue-1987: @angular/cli migration - update-workspace-dependencies-v11 Update workspace dependencies to match a new v11 project. --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ee9e190..c1f37e7 100644 --- a/package.json +++ b/package.json @@ -67,18 +67,18 @@ "@ngxs/devtools-plugin": "^3.7.0", "@ngxs/logger-plugin": "^3.7.0", "@types/antlr4-autosuggest": "0.0.0", - "@types/jasmine": "~3.3.0", + "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.6", "@types/node": "^12.11.1", "antlr4-tool": "~1.0.21", - "codelyzer": "^5.1.2", + "codelyzer": "^6.0.0", "compass-mixins": "^0.12.10", "compression-webpack-plugin": "^2.0.0", "filemanager-webpack-plugin": "^2.0.5", "find-chrome-version": "^1.0.2", "glob": "^7.1.3", "http-server": "^0.12.3", - "jasmine-core": "~3.5.0", + "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.1.1", "karma-chrome-launcher": "~3.1.0", From ee586ade45206cdc3d5c5d1de2199973d57855a6 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:44:06 +0200 Subject: [PATCH 4/8] issue-1987: @angular/core migration - migration-v11-router-relative-link-resolution-default The default value for `relativeLinkResolution` is changing from 'legacy' to 'corrected'. This migration updates `RouterModule` configurations that use the default value to now specifically use 'legacy' to prevent breakages when updating. --- src/app/app.routing.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.routing.module.ts b/src/app/app.routing.module.ts index adecbd6..a8223ed 100644 --- a/src/app/app.routing.module.ts +++ b/src/app/app.routing.module.ts @@ -71,7 +71,7 @@ const routes: Routes = [ @NgModule({ // TODO Preload modules to which we actually have access to. - imports: [RouterModule.forRoot(routes, {urlUpdateStrategy: 'eager', scrollPositionRestoration: 'top'})], + imports: [RouterModule.forRoot(routes, { urlUpdateStrategy: 'eager', scrollPositionRestoration: 'top', relativeLinkResolution: 'legacy' })], exports: [RouterModule], providers: [ RepositorySearchResultResolver From 88c99258f6addf71a899a97a7f3b4b8279716cd1 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:44:14 +0200 Subject: [PATCH 5/8] issue-1987: @angular/core migration - migration-v11-wait-for-async `async` to `waitForAsync` migration. The `async` testing function has been renamed to `waitForAsync` to avoid confusion with the native `async` keyword. --- src/app/modules/core/guards/abstract-authority-guard.spec.ts | 2 +- src/app/modules/core/pages/account/my-account.component.spec.ts | 2 +- src/app/modules/core/pages/browse/browse.component.spec.ts | 2 +- src/app/modules/core/pages/homepage/homepage.component.spec.ts | 2 +- .../core/pages/page-not-found/page-not-found.component.spec.ts | 2 +- .../pages/search/repository-search-results.component.spec.ts | 2 +- .../modules/core/pages/search/repository-search.service.spec.ts | 2 +- .../core/services/interceptors/error.interceptor.spec.ts | 2 +- .../core/services/interceptors/token.interceptor.spec.ts | 2 +- .../dashboard/pages/dashboard/dashboard.component.spec.ts | 2 +- .../pages/environment-info/environment-info.component.spec.ts | 2 +- .../pages/browse-logs/browse-logs.component.spec.ts | 2 +- .../pages/manage-loggers/manage-loggers.component.spec.ts | 2 +- .../stream-log-filter/stream-log-filter.component.spec.ts | 2 +- .../pages/stream-log/stream-log.component.spec.ts | 2 +- .../pages/list-routes/list-routes.component.spec.ts | 2 +- .../security-ldap-role-mapping-form-field.component.spec.ts | 2 +- .../security-ldap-configuration.component.spec.ts | 2 +- .../security-management-index.component.spec.ts | 2 +- .../pages/manage-settings/manage-settings.component.spec.ts | 2 +- .../dialogs/storage-form/storage-form.dialog.component.spec.ts | 2 +- .../pages/browse-repository/browse-repository.component.spec.ts | 2 +- .../pages/browse-storages/browse-storages.component.spec.ts | 2 +- .../list-repositories/list-repositories.component.spec.ts | 2 +- .../components/list-storages/list-storages.component.spec.ts | 2 +- .../pages/manage-repository/manage-repository.component.spec.ts | 2 +- .../pages/list-users/list-users.component.spec.ts | 2 +- .../access-model-listing/user-access-model.component.spec.ts | 2 +- .../pages/manage-user/manage-user.component.spec.ts | 2 +- .../user-management/pages/view-user/view-user.component.spec.ts | 2 +- .../aql-autocomplete/aql-autocomplete.component.spec.ts | 2 +- .../select-autocomplete/select-autocomplete.component.spec.ts | 2 +- .../form/form-field-errors/form-field-errors.component.spec.ts | 2 +- .../layout/components/breadcrumb/breadcrumb.component.spec.ts | 2 +- .../directory-listing/directory-listing.component.spec.ts | 2 +- .../components/page-container/page-container.component.spec.ts | 2 +- 36 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/app/modules/core/guards/abstract-authority-guard.spec.ts b/src/app/modules/core/guards/abstract-authority-guard.spec.ts index ec85a8c..3b7e573 100644 --- a/src/app/modules/core/guards/abstract-authority-guard.spec.ts +++ b/src/app/modules/core/guards/abstract-authority-guard.spec.ts @@ -1,5 +1,5 @@ import {AbstractAuthorityGuard} from './abstract-authority-guard'; -import {async, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, TestBed, waitForAsync } from '@angular/core/testing'; import {NgxsModule, Store} from '@ngxs/store'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/core/pages/account/my-account.component.spec.ts b/src/app/modules/core/pages/account/my-account.component.spec.ts index 9bd7739..8f13b46 100644 --- a/src/app/modules/core/pages/account/my-account.component.spec.ts +++ b/src/app/modules/core/pages/account/my-account.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/core/pages/browse/browse.component.spec.ts b/src/app/modules/core/pages/browse/browse.component.spec.ts index 7f0b21a..975568f 100644 --- a/src/app/modules/core/pages/browse/browse.component.spec.ts +++ b/src/app/modules/core/pages/browse/browse.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; diff --git a/src/app/modules/core/pages/homepage/homepage.component.spec.ts b/src/app/modules/core/pages/homepage/homepage.component.spec.ts index 033f050..9f50fd8 100644 --- a/src/app/modules/core/pages/homepage/homepage.component.spec.ts +++ b/src/app/modules/core/pages/homepage/homepage.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/core/pages/page-not-found/page-not-found.component.spec.ts b/src/app/modules/core/pages/page-not-found/page-not-found.component.spec.ts index d95b919..e634a73 100644 --- a/src/app/modules/core/pages/page-not-found/page-not-found.component.spec.ts +++ b/src/app/modules/core/pages/page-not-found/page-not-found.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { PageNotFoundComponent } from './page-not-found.component'; diff --git a/src/app/modules/core/pages/search/repository-search-results.component.spec.ts b/src/app/modules/core/pages/search/repository-search-results.component.spec.ts index 0a87cc6..81186b7 100644 --- a/src/app/modules/core/pages/search/repository-search-results.component.spec.ts +++ b/src/app/modules/core/pages/search/repository-search-results.component.spec.ts @@ -1,5 +1,5 @@ import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {HttpClient} from '@angular/common/http'; import {NgxsModule} from '@ngxs/store'; diff --git a/src/app/modules/core/pages/search/repository-search.service.spec.ts b/src/app/modules/core/pages/search/repository-search.service.spec.ts index 9dcb154..37f2a0e 100644 --- a/src/app/modules/core/pages/search/repository-search.service.spec.ts +++ b/src/app/modules/core/pages/search/repository-search.service.spec.ts @@ -1,5 +1,5 @@ import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; -import {async, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, TestBed, waitForAsync } from '@angular/core/testing'; import {RepositorySearchService} from './repository-search.service'; import {SearchResponse, SearchResult} from './search-result-interfaces'; diff --git a/src/app/modules/core/services/interceptors/error.interceptor.spec.ts b/src/app/modules/core/services/interceptors/error.interceptor.spec.ts index c88c5d3..30fd0d3 100644 --- a/src/app/modules/core/services/interceptors/error.interceptor.spec.ts +++ b/src/app/modules/core/services/interceptors/error.interceptor.spec.ts @@ -1,5 +1,5 @@ import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; -import {async, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, TestBed, waitForAsync } from '@angular/core/testing'; import {HTTP_INTERCEPTORS, HttpClient, HttpErrorResponse} from '@angular/common/http'; import {Actions, NgxsModule, ofActionDispatched, Store} from '@ngxs/store'; import {NgxsFormPluginModule} from '@ngxs/form-plugin'; diff --git a/src/app/modules/core/services/interceptors/token.interceptor.spec.ts b/src/app/modules/core/services/interceptors/token.interceptor.spec.ts index c16d3e0..e28b119 100644 --- a/src/app/modules/core/services/interceptors/token.interceptor.spec.ts +++ b/src/app/modules/core/services/interceptors/token.interceptor.spec.ts @@ -1,5 +1,5 @@ import {HttpClientTestingModule, HttpTestingController, TestRequest} from '@angular/common/http/testing'; -import {async, fakeAsync, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, fakeAsync, TestBed, waitForAsync } from '@angular/core/testing'; import {HTTP_INTERCEPTORS, HttpClient} from '@angular/common/http'; import {RouterTestingModule} from '@angular/router/testing'; diff --git a/src/app/modules/dashboard/pages/dashboard/dashboard.component.spec.ts b/src/app/modules/dashboard/pages/dashboard/dashboard.component.spec.ts index 0d61200..df0d9f8 100644 --- a/src/app/modules/dashboard/pages/dashboard/dashboard.component.spec.ts +++ b/src/app/modules/dashboard/pages/dashboard/dashboard.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {RouterTestingModule} from '@angular/router/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/environment-info/pages/environment-info/environment-info.component.spec.ts b/src/app/modules/environment-info/pages/environment-info/environment-info.component.spec.ts index 782b844..7cbb242 100644 --- a/src/app/modules/environment-info/pages/environment-info/environment-info.component.spec.ts +++ b/src/app/modules/environment-info/pages/environment-info/environment-info.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {CommonModule} from '@angular/common'; import {EnvironmentInfoComponent} from './environment-info.component'; diff --git a/src/app/modules/logging-management/pages/browse-logs/browse-logs.component.spec.ts b/src/app/modules/logging-management/pages/browse-logs/browse-logs.component.spec.ts index 8ca957d..a3bbb5c 100644 --- a/src/app/modules/logging-management/pages/browse-logs/browse-logs.component.spec.ts +++ b/src/app/modules/logging-management/pages/browse-logs/browse-logs.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/logging-management/pages/manage-loggers/manage-loggers.component.spec.ts b/src/app/modules/logging-management/pages/manage-loggers/manage-loggers.component.spec.ts index 7331cd0..2577cdc 100644 --- a/src/app/modules/logging-management/pages/manage-loggers/manage-loggers.component.spec.ts +++ b/src/app/modules/logging-management/pages/manage-loggers/manage-loggers.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/logging-management/pages/stream-log/components/stream-log-filter/stream-log-filter.component.spec.ts b/src/app/modules/logging-management/pages/stream-log/components/stream-log-filter/stream-log-filter.component.spec.ts index 96124c5..9683898 100644 --- a/src/app/modules/logging-management/pages/stream-log/components/stream-log-filter/stream-log-filter.component.spec.ts +++ b/src/app/modules/logging-management/pages/stream-log/components/stream-log-filter/stream-log-filter.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/logging-management/pages/stream-log/stream-log.component.spec.ts b/src/app/modules/logging-management/pages/stream-log/stream-log.component.spec.ts index d0d422d..8df7ab4 100644 --- a/src/app/modules/logging-management/pages/stream-log/stream-log.component.spec.ts +++ b/src/app/modules/logging-management/pages/stream-log/stream-log.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/route-management/pages/list-routes/list-routes.component.spec.ts b/src/app/modules/route-management/pages/list-routes/list-routes.component.spec.ts index abe07d3..11cdd37 100644 --- a/src/app/modules/route-management/pages/list-routes/list-routes.component.spec.ts +++ b/src/app/modules/route-management/pages/list-routes/list-routes.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {ToastrModule} from 'ngx-toastr'; diff --git a/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/components/security-ldap-role-mapping-form-field/security-ldap-role-mapping-form-field.component.spec.ts b/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/components/security-ldap-role-mapping-form-field/security-ldap-role-mapping-form-field.component.spec.ts index def4134..17d3ba9 100644 --- a/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/components/security-ldap-role-mapping-form-field/security-ldap-role-mapping-form-field.component.spec.ts +++ b/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/components/security-ldap-role-mapping-form-field/security-ldap-role-mapping-form-field.component.spec.ts @@ -1,5 +1,5 @@ import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {Component, ViewChild} from '@angular/core'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/security-ldap-configuration.component.spec.ts b/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/security-ldap-configuration.component.spec.ts index 7d52ecd..96e4176 100644 --- a/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/security-ldap-configuration.component.spec.ts +++ b/src/app/modules/security-management/pages/ldap-management/security-ldap-configuration/security-ldap-configuration.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {RouterTestingModule} from '@angular/router/testing'; diff --git a/src/app/modules/security-management/pages/security-management-index/security-management-index.component.spec.ts b/src/app/modules/security-management/pages/security-management-index/security-management-index.component.spec.ts index 4978653..837844f 100644 --- a/src/app/modules/security-management/pages/security-management-index/security-management-index.component.spec.ts +++ b/src/app/modules/security-management/pages/security-management-index/security-management-index.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {RouterTestingModule} from '@angular/router/testing'; diff --git a/src/app/modules/server-settings/pages/manage-settings/manage-settings.component.spec.ts b/src/app/modules/server-settings/pages/manage-settings/manage-settings.component.spec.ts index e8cfb42..47381c2 100644 --- a/src/app/modules/server-settings/pages/manage-settings/manage-settings.component.spec.ts +++ b/src/app/modules/server-settings/pages/manage-settings/manage-settings.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/storage-management/dialogs/storage-form/storage-form.dialog.component.spec.ts b/src/app/modules/storage-management/dialogs/storage-form/storage-form.dialog.component.spec.ts index 779a1f6..22941cf 100644 --- a/src/app/modules/storage-management/dialogs/storage-form/storage-form.dialog.component.spec.ts +++ b/src/app/modules/storage-management/dialogs/storage-form/storage-form.dialog.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/storage-management/pages/browse-repository/browse-repository.component.spec.ts b/src/app/modules/storage-management/pages/browse-repository/browse-repository.component.spec.ts index bc6489b..75e1c7d 100644 --- a/src/app/modules/storage-management/pages/browse-repository/browse-repository.component.spec.ts +++ b/src/app/modules/storage-management/pages/browse-repository/browse-repository.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/storage-management/pages/browse-storages/browse-storages.component.spec.ts b/src/app/modules/storage-management/pages/browse-storages/browse-storages.component.spec.ts index 49d5bec..144ecd7 100644 --- a/src/app/modules/storage-management/pages/browse-storages/browse-storages.component.spec.ts +++ b/src/app/modules/storage-management/pages/browse-storages/browse-storages.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/storage-management/pages/browse-storages/components/list-repositories/list-repositories.component.spec.ts b/src/app/modules/storage-management/pages/browse-storages/components/list-repositories/list-repositories.component.spec.ts index e86f01d..54a4155 100644 --- a/src/app/modules/storage-management/pages/browse-storages/components/list-repositories/list-repositories.component.spec.ts +++ b/src/app/modules/storage-management/pages/browse-storages/components/list-repositories/list-repositories.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/storage-management/pages/browse-storages/components/list-storages/list-storages.component.spec.ts b/src/app/modules/storage-management/pages/browse-storages/components/list-storages/list-storages.component.spec.ts index dc7cfcf..28564c2 100644 --- a/src/app/modules/storage-management/pages/browse-storages/components/list-storages/list-storages.component.spec.ts +++ b/src/app/modules/storage-management/pages/browse-storages/components/list-storages/list-storages.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {HttpClientTestingModule} from '@angular/common/http/testing'; diff --git a/src/app/modules/storage-management/pages/manage-repository/manage-repository.component.spec.ts b/src/app/modules/storage-management/pages/manage-repository/manage-repository.component.spec.ts index 819185f..4a35cd4 100644 --- a/src/app/modules/storage-management/pages/manage-repository/manage-repository.component.spec.ts +++ b/src/app/modules/storage-management/pages/manage-repository/manage-repository.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/user-management/pages/list-users/list-users.component.spec.ts b/src/app/modules/user-management/pages/list-users/list-users.component.spec.ts index 75bcdf0..484cabe 100644 --- a/src/app/modules/user-management/pages/list-users/list-users.component.spec.ts +++ b/src/app/modules/user-management/pages/list-users/list-users.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {ToastrModule} from 'ngx-toastr'; diff --git a/src/app/modules/user-management/pages/manage-user/form/access-model-listing/user-access-model.component.spec.ts b/src/app/modules/user-management/pages/manage-user/form/access-model-listing/user-access-model.component.spec.ts index cf39f22..1485c68 100644 --- a/src/app/modules/user-management/pages/manage-user/form/access-model-listing/user-access-model.component.spec.ts +++ b/src/app/modules/user-management/pages/manage-user/form/access-model-listing/user-access-model.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/modules/user-management/pages/manage-user/manage-user.component.spec.ts b/src/app/modules/user-management/pages/manage-user/manage-user.component.spec.ts index c15496f..45e3ba9 100644 --- a/src/app/modules/user-management/pages/manage-user/manage-user.component.spec.ts +++ b/src/app/modules/user-management/pages/manage-user/manage-user.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {ToastrModule} from 'ngx-toastr'; diff --git a/src/app/modules/user-management/pages/view-user/view-user.component.spec.ts b/src/app/modules/user-management/pages/view-user/view-user.component.spec.ts index bc006e7..c33ef32 100644 --- a/src/app/modules/user-management/pages/view-user/view-user.component.spec.ts +++ b/src/app/modules/user-management/pages/view-user/view-user.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {HttpClientTestingModule} from '@angular/common/http/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; diff --git a/src/app/shared/form/autocomplete/aql-autocomplete/aql-autocomplete.component.spec.ts b/src/app/shared/form/autocomplete/aql-autocomplete/aql-autocomplete.component.spec.ts index 1d981fd..cb1a207 100644 --- a/src/app/shared/form/autocomplete/aql-autocomplete/aql-autocomplete.component.spec.ts +++ b/src/app/shared/form/autocomplete/aql-autocomplete/aql-autocomplete.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {AqlAutocompleteComponent} from './aql-autocomplete.component'; diff --git a/src/app/shared/form/autocomplete/select-autocomplete/select-autocomplete.component.spec.ts b/src/app/shared/form/autocomplete/select-autocomplete/select-autocomplete.component.spec.ts index 3cb3ce0..016b670 100644 --- a/src/app/shared/form/autocomplete/select-autocomplete/select-autocomplete.component.spec.ts +++ b/src/app/shared/form/autocomplete/select-autocomplete/select-autocomplete.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {CommonModule} from '@angular/common'; diff --git a/src/app/shared/form/form-field-errors/form-field-errors.component.spec.ts b/src/app/shared/form/form-field-errors/form-field-errors.component.spec.ts index 2276a50..e2ba599 100644 --- a/src/app/shared/form/form-field-errors/form-field-errors.component.spec.ts +++ b/src/app/shared/form/form-field-errors/form-field-errors.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {FormFieldErrorsComponent} from './form-field-errors.component'; diff --git a/src/app/shared/layout/components/breadcrumb/breadcrumb.component.spec.ts b/src/app/shared/layout/components/breadcrumb/breadcrumb.component.spec.ts index 2bc734f..dd174b4 100644 --- a/src/app/shared/layout/components/breadcrumb/breadcrumb.component.spec.ts +++ b/src/app/shared/layout/components/breadcrumb/breadcrumb.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BreadcrumbComponent} from './breadcrumb.component'; diff --git a/src/app/shared/layout/components/directory-listing/directory-listing.component.spec.ts b/src/app/shared/layout/components/directory-listing/directory-listing.component.spec.ts index 8d62a58..07411ee 100644 --- a/src/app/shared/layout/components/directory-listing/directory-listing.component.spec.ts +++ b/src/app/shared/layout/components/directory-listing/directory-listing.component.spec.ts @@ -1,5 +1,5 @@ import {HttpClientTestingModule} from '@angular/common/http/testing'; -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {NgxsModule} from '@ngxs/store'; diff --git a/src/app/shared/layout/components/page-container/page-container.component.spec.ts b/src/app/shared/layout/components/page-container/page-container.component.spec.ts index ccc8984..1deec0e 100644 --- a/src/app/shared/layout/components/page-container/page-container.component.spec.ts +++ b/src/app/shared/layout/components/page-container/page-container.component.spec.ts @@ -1,4 +1,4 @@ -import {async, ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing'; +import { async, ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import {RouterTestingModule} from '@angular/router/testing'; import {PageContainerComponent} from './page-container.component'; From 2c061299ab477fb9681ff155a2d8c475bf92766b Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 22:50:29 +0200 Subject: [PATCH 6/8] issue-1987: Angular CLI update for packages - @angular/material@latest --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c1f37e7..7604067 100644 --- a/package.json +++ b/package.json @@ -24,13 +24,13 @@ "private": true, "dependencies": { "@angular/animations": "11.2.0", - "@angular/cdk": "~10.2.5", + "@angular/cdk": "~11.2.0", "@angular/common": "11.2.0", "@angular/compiler": "11.2.0", "@angular/core": "11.2.0", "@angular/flex-layout": "^10.0.0-beta.32", "@angular/forms": "11.2.0", - "@angular/material": "~10.2.5", + "@angular/material": "~11.2.0", "@angular/platform-browser": "11.2.0", "@angular/platform-browser-dynamic": "11.2.0", "@angular/router": "11.2.0", From 41f9718bfbadcf08eaf2a5b8cd0c5efb9dffa491 Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 23:30:03 +0200 Subject: [PATCH 7/8] issue-1987: upgrade(ng-11) Removing support for IE 9 and 10 --- .browserslistrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.browserslistrc b/.browserslistrc index 6aedafa..32b3607 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -6,4 +6,4 @@ last 2 versions Firefox ESR not dead -IE 9-11 \ No newline at end of file +IE 11 From 0d7d093a31618f58eac5c70a532c0f429951d42c Mon Sep 17 00:00:00 2001 From: Steve Todorov Date: Mon, 15 Feb 2021 23:30:26 +0200 Subject: [PATCH 8/8] issue-1987: upgrade(ng-11) Fixing deprecation warnings. --- angular.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 577280e..5c335ea 100644 --- a/angular.json +++ b/angular.json @@ -93,9 +93,7 @@ "options": { "browserTarget": "strongbox-web-ui:build", "proxyConfig": "./tools/proxy.conf.js", - "servePath": "/static/assets", - "baseHref": "/", - "deployUrl": "/static/assets/" + "servePath": "/static/assets" }, "configurations": { "production": {