Update to Angular 11

This commit is contained in:
Nathanael Anderson
2024-02-22 15:16:50 -06:00
parent 82f5fd74a7
commit d4e6047ec5
21 changed files with 1768 additions and 2627 deletions
-4
View File
@@ -50,7 +50,6 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": true, "aot": true,
"extractLicenses": true, "extractLicenses": true,
@@ -73,7 +72,6 @@
"optimization": false, "optimization": false,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": false, "aot": false,
"extractLicenses": true, "extractLicenses": true,
@@ -96,7 +94,6 @@
"optimization": false, "optimization": false,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": false, "aot": false,
"extractLicenses": true, "extractLicenses": true,
@@ -119,7 +116,6 @@
"optimization": false, "optimization": false,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"extractCss": true,
"namedChunks": false, "namedChunks": false,
"aot": false, "aot": false,
"extractLicenses": true, "extractLicenses": true,
+17 -17
View File
@@ -17,15 +17,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^10.2.5", "@angular/animations": "^11.2.14",
"@angular/common": "^10.2.5", "@angular/common": "^11.2.14",
"@angular/compiler": "^10.2.5", "@angular/compiler": "^11.2.14",
"@angular/core": "^10.2.5", "@angular/core": "^11.2.14",
"@angular/forms": "^10.2.5", "@angular/forms": "^11.2.14",
"@angular/platform-browser": "^10.2.5", "@angular/platform-browser": "^11.2.14",
"@angular/platform-browser-dynamic": "^10.2.5", "@angular/platform-browser-dynamic": "^11.2.14",
"@angular/platform-server": "^10.2.5", "@angular/platform-server": "^11.2.14",
"@angular/router": "^10.2.5", "@angular/router": "^11.2.14",
"@simonwep/pickr": "^1.0.0-beta", "@simonwep/pickr": "^1.0.0-beta",
"@types/hammerjs": "^2.0.45", "@types/hammerjs": "^2.0.45",
"@types/jquery": "^3.5.29", "@types/jquery": "^3.5.29",
@@ -47,17 +47,17 @@
"zone.js": "~0.10.2" "zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1002.4", "@angular-devkit/build-angular": "~0.1102.19",
"@angular/cli": "^10.2.4", "@angular/cli": "^11.2.19",
"@angular/compiler-cli": "^10.2.5", "@angular/compiler-cli": "^11.2.14",
"@angular/language-service": "^10.2.5", "@angular/language-service": "^11.2.14",
"@types/jasmine": "^3.3.13", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^5.1.2", "codelyzer": "^6.0.0",
"jasmine-core": "~3.5.0", "jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0", "jasmine-spec-reporter": "~5.0.0",
"karma": "~5.0.0", "karma": "~6.4.2",
"karma-chrome-launcher": "~3.1.0", "karma-chrome-launcher": "~3.1.0",
"karma-cli": "^2.0.0", "karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "~3.0.2",
+2 -2
View File
@@ -1,8 +1,8 @@
import { TestBed, async } from '@angular/core/testing'; import { TestBed, waitForAsync } from '@angular/core/testing';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
describe('AppComponent', () => { describe('AppComponent', () => {
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ declarations: [
AppComponent AppComponent
+1 -1
View File
@@ -57,7 +57,7 @@ import { StreamOptionsComponent } from './stream-options/stream-options.componen
BrowserModule, BrowserModule,
DragulaModule.forRoot(), DragulaModule.forRoot(),
FormsModule, FormsModule,
RouterModule.forRoot(AppRoutes, { useHash: true }), RouterModule.forRoot(AppRoutes, { useHash: true, relativeLinkResolution: 'legacy' }),
MzTooltipModule, MzTooltipModule,
MzModalModule, MzModalModule,
MzButtonModule, MzButtonModule,
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { CurrentTaskItemComponent } from './current-task-item.component'; import { CurrentTaskItemComponent } from './current-task-item.component';
@@ -6,7 +6,7 @@ describe('CurrentTaskItemComponent', () => {
let component: CurrentTaskItemComponent; let component: CurrentTaskItemComponent;
let fixture: ComponentFixture<CurrentTaskItemComponent>; let fixture: ComponentFixture<CurrentTaskItemComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [CurrentTaskItemComponent], declarations: [CurrentTaskItemComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { CurrentTasksComponent } from './current-tasks.component'; import { CurrentTasksComponent } from './current-tasks.component';
@@ -6,7 +6,7 @@ describe('CurrentTasksComponent', () => {
let component: CurrentTasksComponent; let component: CurrentTasksComponent;
let fixture: ComponentFixture<CurrentTasksComponent>; let fixture: ComponentFixture<CurrentTasksComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [CurrentTasksComponent], declarations: [CurrentTasksComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { FilesComponent } from './files.component'; import { FilesComponent } from './files.component';
@@ -6,7 +6,7 @@ describe('FilesComponent', () => {
let component: FilesComponent; let component: FilesComponent;
let fixture: ComponentFixture<FilesComponent>; let fixture: ComponentFixture<FilesComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ FilesComponent ] declarations: [ FilesComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { HeaderBannerComponent } from './header-banner.component'; import { HeaderBannerComponent } from './header-banner.component';
@@ -6,7 +6,7 @@ describe('HeaderBannerComponent', () => {
let component: HeaderBannerComponent; let component: HeaderBannerComponent;
let fixture: ComponentFixture<HeaderBannerComponent>; let fixture: ComponentFixture<HeaderBannerComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [HeaderBannerComponent], declarations: [HeaderBannerComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { HeaderComponent } from './header.component'; import { HeaderComponent } from './header.component';
@@ -6,7 +6,7 @@ describe('HeaderComponent', () => {
let component: HeaderComponent; let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>; let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ HeaderComponent ] declarations: [ HeaderComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { ToolsComponent } from './tools.component'; import { ToolsComponent } from './tools.component';
@@ -6,7 +6,7 @@ describe('ToolsComponent', () => {
let component: ToolsComponent; let component: ToolsComponent;
let fixture: ComponentFixture<ToolsComponent>; let fixture: ComponentFixture<ToolsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ToolsComponent], declarations: [ToolsComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LinkComponent } from './link.component'; import { LinkComponent } from './link.component';
@@ -6,7 +6,7 @@ describe('LinkComponent', () => {
let component: LinkComponent; let component: LinkComponent;
let fixture: ComponentFixture<LinkComponent>; let fixture: ComponentFixture<LinkComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ LinkComponent ] declarations: [ LinkComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LoadingSpinnerSmallComponent } from './loading-spinner-small.component'; import { LoadingSpinnerSmallComponent } from './loading-spinner-small.component';
@@ -6,7 +6,7 @@ describe('LoadingSpinnerSmallComponent', () => {
let component: LoadingSpinnerSmallComponent; let component: LoadingSpinnerSmallComponent;
let fixture: ComponentFixture<LoadingSpinnerSmallComponent>; let fixture: ComponentFixture<LoadingSpinnerSmallComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ LoadingSpinnerSmallComponent ] declarations: [ LoadingSpinnerSmallComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { LoadingSpinnerComponent } from './loading-spinner.component'; import { LoadingSpinnerComponent } from './loading-spinner.component';
@@ -6,7 +6,7 @@ describe('LoadingSpinnerComponent', () => {
let component: LoadingSpinnerComponent; let component: LoadingSpinnerComponent;
let fixture: ComponentFixture<LoadingSpinnerComponent>; let fixture: ComponentFixture<LoadingSpinnerComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ LoadingSpinnerComponent ] declarations: [ LoadingSpinnerComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { PackageItemComponent } from './package-item.component'; import { PackageItemComponent } from './package-item.component';
@@ -6,7 +6,7 @@ describe('PackageItemComponent', () => {
let component: PackageItemComponent; let component: PackageItemComponent;
let fixture: ComponentFixture<PackageItemComponent>; let fixture: ComponentFixture<PackageItemComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ PackageItemComponent ] declarations: [ PackageItemComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { PackagesComponent } from './packages.component'; import { PackagesComponent } from './packages.component';
@@ -6,7 +6,7 @@ describe('PackagesComponent', () => {
let component: PackagesComponent; let component: PackagesComponent;
let fixture: ComponentFixture<PackagesComponent>; let fixture: ComponentFixture<PackagesComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ PackagesComponent ] declarations: [ PackagesComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { SetupGuideComponent } from './setup-guide.component'; import { SetupGuideComponent } from './setup-guide.component';
@@ -6,7 +6,7 @@ describe('SetupGuideComponent', () => {
let component: SetupGuideComponent; let component: SetupGuideComponent;
let fixture: ComponentFixture<SetupGuideComponent>; let fixture: ComponentFixture<SetupGuideComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [SetupGuideComponent], declarations: [SetupGuideComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { StatusBarComponent } from './status-bar.component'; import { StatusBarComponent } from './status-bar.component';
@@ -6,7 +6,7 @@ describe('StatusBarComponent', () => {
let component: StatusBarComponent; let component: StatusBarComponent;
let fixture: ComponentFixture<StatusBarComponent>; let fixture: ComponentFixture<StatusBarComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ StatusBarComponent ] declarations: [ StatusBarComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { StreamOptionsComponent } from './stream-options.component'; import { StreamOptionsComponent } from './stream-options.component';
@@ -6,7 +6,7 @@ describe('StreamOptionsComponent', () => {
let component: StreamOptionsComponent; let component: StreamOptionsComponent;
let fixture: ComponentFixture<StreamOptionsComponent>; let fixture: ComponentFixture<StreamOptionsComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [StreamOptionsComponent], declarations: [StreamOptionsComponent],
}).compileComponents(); }).compileComponents();
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { WebviewComponent } from './webview.component'; import { WebviewComponent } from './webview.component';
@@ -6,7 +6,7 @@ describe('WebviewComponent', () => {
let component: WebviewComponent; let component: WebviewComponent;
let fixture: ComponentFixture<WebviewComponent>; let fixture: ComponentFixture<WebviewComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ WebviewComponent ] declarations: [ WebviewComponent ]
}) })
@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { WirelessConnectionComponent } from './wireless-connection.component'; import { WirelessConnectionComponent } from './wireless-connection.component';
@@ -6,7 +6,7 @@ describe('WirelessConnectionComponent', () => {
let component: WirelessConnectionComponent; let component: WirelessConnectionComponent;
let fixture: ComponentFixture<WirelessConnectionComponent>; let fixture: ComponentFixture<WirelessConnectionComponent>;
beforeEach(async(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [WirelessConnectionComponent], declarations: [WirelessConnectionComponent],
}).compileComponents(); }).compileComponents();
+1715 -2570
View File
File diff suppressed because it is too large Load Diff