Skip to content

Commit

Permalink
Merge pull request #76 from WowUp/feature/2.11.1
Browse files Browse the repository at this point in the history
Feature/2.11.1
  • Loading branch information
jliddev authored Apr 2, 2024
2 parents 31b6d4b + 917bdc7 commit b17140e
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 53 deletions.
4 changes: 2 additions & 2 deletions wowup-electron/app/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function rendererInvoke(channel: string, ...args: any[]): Promise<any> {
/* eslint-enable @typescript-eslint/no-unsafe-argument */
}

function rendererOff(event: string | symbol, listener: (...args: any[]) => void) {
ipcRenderer.off(event, listener);
function rendererOff(channel: string, listener: (...args: any[]) => void) {
ipcRenderer.off(channel, listener);
}

function rendererOn(channel: string, listener: (event: IpcRendererEvent, ...args: any[]) => void) {
Expand Down
27 changes: 6 additions & 21 deletions wowup-electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion wowup-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wowup-cf",
"version": "2.11.0",
"version": "2.11.1",
"private": true,
"description": "World of Warcraft addon updater",
"keywords": [
Expand Down Expand Up @@ -130,6 +130,7 @@
"curseforge-v2": "1.2.0",
"del": "7.1.0",
"dotenv": "16.3.1",
"electron": "28.2.1",
"electron-builder": "24.9.1",
"electron-notarize": "1.2.2",
"electron-reload": "2.0.0-alpha.1",
Expand Down
6 changes: 3 additions & 3 deletions wowup-electron/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BehaviorSubject, Observable, Subject } from "rxjs";
import { OverlayContainer, OverlayModule } from "@angular/cdk/overlay";
import { HttpClient, HttpClientModule } from "@angular/common/http";
import { TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { RouterTestingModule } from "@angular/router/testing";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";
Expand Down Expand Up @@ -45,7 +45,7 @@ describe("AppComponent", () => {
["updateForClientType", "updateForAllClientTypes"],
{
persistUpdateInformationToWowUpAddon: () => {},
}
},
);

addonServiceSpy = jasmine.createSpyObj("AddonService", ["processAutoUpdates", "syncAllClients"], {
Expand All @@ -57,7 +57,7 @@ describe("AppComponent", () => {
{
getAdRequiredProviders: () => [],
},
{}
{},
);

warcraftInstallationService = jasmine.createSpyObj("WarcraftInstallationService", [""], {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Subject } from "rxjs";
import { HttpClient, HttpClientModule } from "@angular/common/http";
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { TestBed } from "@angular/core/testing";
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog";
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down Expand Up @@ -43,7 +43,7 @@ describe("AddonDetailComponent", () => {
{
addonInstalled$: new Subject<AddonUpdateEvent>().asObservable(),
getChangelog: () => "",
}
},
);

addonUiService = jasmine.createSpyObj("AddonUiService", [""], {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Subject } from "rxjs";

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HttpClient, HttpClientModule } from "@angular/common/http";
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog";
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";
import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-compiler";
Expand Down Expand Up @@ -31,7 +31,7 @@ describe("InstallFromProtocolDialogComponent", () => {
{
getAddonForProtocol: () => Promise.resolve(undefined),
},
{}
{},
);

sessionService = jasmine.createSpyObj("SessionService", [""], {});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog";
import { MatDialogRef } from "@angular/material/dialog";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Subject } from "rxjs";

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

import { httpLoaderFactory } from "../../../app.module";
Expand All @@ -27,7 +27,7 @@ describe("MyAddonStatusCellComponent", () => {
{
addonInstalled$: new Subject<AddonUpdateEvent>().asObservable(),
addonRemoved$: new Subject<string>().asObservable(),
}
},
);

await TestBed.configureTestingModule({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { TestBed } from "@angular/core/testing";
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog";
import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MAT_LEGACY_SNACK_BAR_DATA as MAT_SNACK_BAR_DATA } from "@angular/material/legacy-snack-bar";
import { MAT_SNACK_BAR_DATA } from "@angular/material/snack-bar";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";

import { MatModule } from "../../../modules/mat-module";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { TestBed } from "@angular/core/testing";
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog";
import { MAT_DIALOG_DATA, MatDialogRef } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from "@angular/material/legacy-dialog";
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
import { WowUpService } from "../../../services/wowup/wowup.service";
import { getStandardImports } from "../../../tests/test-helpers";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { TelemetryDialogComponent } from "./telemetry-dialog.component";
import { MatLegacyDialogRef as MatDialogRef } from "@angular/material/legacy-dialog";
import { MatDialogRef } from "@angular/material/dialog";
import { HttpClient, HttpClientModule } from "@angular/common/http";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";
import { httpLoaderFactory } from "../../../app.module";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs";
import { HttpClientModule } from "@angular/common/http";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { FormsModule } from "@angular/forms";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";

import { ElectronService } from "../../../services";
Expand Down Expand Up @@ -53,7 +53,7 @@ describe("OptionsAppSectionComponent", () => {
isWin: false,
isLinux: true,
isMac: false,
}
},
);

wowUpServiceSpy = jasmine.createSpyObj("WowUpService", ["getStartWithSystem"], {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs";

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from "@angular/material/legacy-dialog";
import { MatDialog, MatDialogModule } from "@angular/material/dialog";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down Expand Up @@ -34,7 +34,7 @@ describe("OptionsWowSectionComponent", () => {
},
{
products$: new BehaviorSubject<InstalledProduct[]>([]).asObservable(),
}
},
);

wowUpServiceSpy = jasmine.createSpyObj(
Expand All @@ -45,7 +45,7 @@ describe("OptionsWowSectionComponent", () => {
},
{
wowUpReleaseChannel: WowUpReleaseChannelType.Stable,
}
},
);

warcraftInstallationService = jasmine.createSpyObj("WarcraftInstallationService", [""], {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TranslateMessageFormatCompiler } from "ngx-translate-messageformat-comp

import { HttpClient, HttpClientModule } from "@angular/common/http";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExternalLinkDirective } from "./external-link.directive";
import { Component } from "@angular/core";
import { getStandardImports, mockPreload } from "../tests/test-helpers";
import { WowUpService } from "../services/wowup/wowup.service";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { LinkService } from "../services/links/link.service";

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { OverlayModule } from "@angular/cdk/overlay";
import { HttpClient, HttpClientModule } from "@angular/common/http";
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";
import { ComponentFixture, TestBed } from "@angular/core/testing";
import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog";
import { MatDialog } from "@angular/material/dialog";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { TranslateCompiler, TranslateLoader, TranslateModule } from "@ngx-translate/core";

Expand Down
Loading

0 comments on commit b17140e

Please sign in to comment.