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
+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';
describe('AppComponent', () => {
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
+1 -1
View File
@@ -57,7 +57,7 @@ import { StreamOptionsComponent } from './stream-options/stream-options.componen
BrowserModule,
DragulaModule.forRoot(),
FormsModule,
RouterModule.forRoot(AppRoutes, { useHash: true }),
RouterModule.forRoot(AppRoutes, { useHash: true, relativeLinkResolution: 'legacy' }),
MzTooltipModule,
MzModalModule,
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';
@@ -6,7 +6,7 @@ describe('CurrentTaskItemComponent', () => {
let component: CurrentTaskItemComponent;
let fixture: ComponentFixture<CurrentTaskItemComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [CurrentTaskItemComponent],
}).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';
@@ -6,7 +6,7 @@ describe('CurrentTasksComponent', () => {
let component: CurrentTasksComponent;
let fixture: ComponentFixture<CurrentTasksComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [CurrentTasksComponent],
}).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';
@@ -6,7 +6,7 @@ describe('FilesComponent', () => {
let component: FilesComponent;
let fixture: ComponentFixture<FilesComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('HeaderBannerComponent', () => {
let component: HeaderBannerComponent;
let fixture: ComponentFixture<HeaderBannerComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [HeaderBannerComponent],
}).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';
@@ -6,7 +6,7 @@ describe('HeaderComponent', () => {
let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('ToolsComponent', () => {
let component: ToolsComponent;
let fixture: ComponentFixture<ToolsComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ToolsComponent],
}).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';
@@ -6,7 +6,7 @@ describe('LinkComponent', () => {
let component: LinkComponent;
let fixture: ComponentFixture<LinkComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('LoadingSpinnerSmallComponent', () => {
let component: LoadingSpinnerSmallComponent;
let fixture: ComponentFixture<LoadingSpinnerSmallComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('LoadingSpinnerComponent', () => {
let component: LoadingSpinnerComponent;
let fixture: ComponentFixture<LoadingSpinnerComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('PackageItemComponent', () => {
let component: PackageItemComponent;
let fixture: ComponentFixture<PackageItemComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('PackagesComponent', () => {
let component: PackagesComponent;
let fixture: ComponentFixture<PackagesComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('SetupGuideComponent', () => {
let component: SetupGuideComponent;
let fixture: ComponentFixture<SetupGuideComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [SetupGuideComponent],
}).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';
@@ -6,7 +6,7 @@ describe('StatusBarComponent', () => {
let component: StatusBarComponent;
let fixture: ComponentFixture<StatusBarComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('StreamOptionsComponent', () => {
let component: StreamOptionsComponent;
let fixture: ComponentFixture<StreamOptionsComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [StreamOptionsComponent],
}).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';
@@ -6,7 +6,7 @@ describe('WebviewComponent', () => {
let component: WebviewComponent;
let fixture: ComponentFixture<WebviewComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
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';
@@ -6,7 +6,7 @@ describe('WirelessConnectionComponent', () => {
let component: WirelessConnectionComponent;
let fixture: ComponentFixture<WirelessConnectionComponent>;
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [WirelessConnectionComponent],
}).compileComponents();