Merge branch 'master' into allow-to-import-app-as-lib

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2022-12-19 07:51:16 +02:00
commit 1d14289b96
511 files changed
+12013 -7005

No files matched your search

@@ -165,7 +165,23 @@ exports[`installing update when started renders 1`] = `
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -232,7 +248,7 @@ exports[`installing update when started renders 1`] = `
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -434,7 +450,23 @@ exports[`installing update when started when user checks for updates renders 1`]
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -501,7 +533,7 @@ exports[`installing update when started when user checks for updates renders 1`]
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -703,7 +735,23 @@ exports[`installing update when started when user checks for updates when new up
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -770,7 +818,7 @@ exports[`installing update when started when user checks for updates when new up
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -997,7 +1045,23 @@ exports[`installing update when started when user checks for updates when new up
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1064,7 +1128,7 @@ exports[`installing update when started when user checks for updates when new up
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -1291,7 +1355,23 @@ exports[`installing update when started when user checks for updates when new up
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1358,7 +1438,7 @@ exports[`installing update when started when user checks for updates when new up
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -1560,7 +1640,23 @@ exports[`installing update when started when user checks for updates when no new
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1627,7 +1723,7 @@ exports[`installing update when started when user checks for updates when no new
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -190,7 +190,23 @@ exports[`encourage user to update when sufficient time passed since update was d
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -257,7 +273,7 @@ exports[`encourage user to update when sufficient time passed since update was d
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -459,7 +475,23 @@ exports[`encourage user to update when sufficient time passed since update was d
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -526,7 +558,7 @@ exports[`encourage user to update when sufficient time passed since update was d
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -33,7 +33,6 @@
height: 100%;
left: 0;
opacity: 0.15;
z-index: -1;
transition: opacity 0.1s;
}
}
@@ -165,7 +165,23 @@ exports[`installing update using tray when started renders 1`] = `
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -232,7 +248,7 @@ exports[`installing update using tray when started renders 1`] = `
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -434,7 +450,23 @@ exports[`installing update using tray when started when user checks for updates
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -501,7 +533,7 @@ exports[`installing update using tray when started when user checks for updates
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -703,7 +735,23 @@ exports[`installing update using tray when started when user checks for updates
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -770,7 +818,7 @@ exports[`installing update using tray when started when user checks for updates
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -997,7 +1045,23 @@ exports[`installing update using tray when started when user checks for updates
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1064,7 +1128,7 @@ exports[`installing update using tray when started when user checks for updates
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -1291,7 +1355,23 @@ exports[`installing update using tray when started when user checks for updates
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1358,7 +1438,7 @@ exports[`installing update using tray when started when user checks for updates
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -1560,7 +1640,23 @@ exports[`installing update using tray when started when user checks for updates
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -1627,7 +1723,7 @@ exports[`installing update using tray when started when user checks for updates
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -190,7 +190,23 @@ exports[`force user to update when too long since update was downloaded when app
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -257,7 +273,7 @@ exports[`force user to update when too long since update was downloaded when app
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -484,7 +500,23 @@ exports[`force user to update when too long since update was downloaded when app
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -551,7 +583,7 @@ exports[`force user to update when too long since update was downloaded when app
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -825,7 +857,23 @@ exports[`force user to update when too long since update was downloaded when app
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -892,7 +940,7 @@ exports[`force user to update when too long since update was downloaded when app
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -165,7 +165,23 @@ exports[`periodical checking of updates given updater is enabled and configurati
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -232,7 +248,7 @@ exports[`periodical checking of updates given updater is enabled and configurati
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -7,7 +7,7 @@ import periodicalCheckForUpdatesInjectable from "./periodical-check-for-updates.
import { getGlobalOverride } from "../../../../../common/test-utils/get-global-override";
export default getGlobalOverride(periodicalCheckForUpdatesInjectable, () => ({
start: async () => {},
stop: async () => {},
start: () => {},
stop: () => {},
started: false,
}));
@@ -16,9 +16,9 @@ const startCheckingForUpdatesInjectable = getInjectable({
return {
id: "start-checking-for-updates",
run: async () => {
run: () => {
if (updatingIsEnabled && !periodicalCheckForUpdates.started) {
await periodicalCheckForUpdates.start();
periodicalCheckForUpdates.start();
}
},
};
@@ -165,7 +165,23 @@ exports[`selection of update stability when started renders 1`] = `
<div
class="HotbarCell isDraggingOwner animateDown"
index="0"
/>
>
<div
style="z-index: 12; position: absolute;"
>
<div
class="HotbarIcon contextMenuAvailable"
>
<div
class="Avatar rounded disabled avatar"
id="hotbarIcon-hotbar-icon-catalog-entity"
style="width: 40px; height: 40px; background: rgb(5, 1, 130);"
>
Ca
</div>
</div>
</div>
</div>
<div
class="HotbarCell isDraggingOwner animateDown"
index="1"
@@ -232,7 +248,7 @@ exports[`selection of update stability when started renders 1`] = `
class="badge Badge small clickable"
id="hotbarIndex"
>
0
1
</div>
</div>
<i
@@ -12,7 +12,7 @@ import checkForPlatformUpdatesInjectable from "./check-for-platform-updates.inje
import type { UpdateChannel, ReleaseChannel } from "../../../common/update-channels";
import { getPromiseStatus } from "../../../../../common/test-utils/get-promise-status";
import loggerInjectable from "../../../../../common/logger.injectable";
import type { Logger } from "../../../../../common/logger";
import { noop } from "../../../../../common/utils";
describe("check-for-platform-updates", () => {
let checkForPlatformUpdates: CheckForPlatformUpdates;
@@ -37,7 +37,13 @@ describe("check-for-platform-updates", () => {
logErrorMock = jest.fn();
di.override(loggerInjectable, () => ({ error: logErrorMock }) as unknown as Logger);
di.override(loggerInjectable, () => ({
error: logErrorMock,
debug: noop,
info: noop,
silly: noop,
warn: noop,
}));
checkForPlatformUpdates = di.inject(checkForPlatformUpdatesInjectable);
});
@@ -12,7 +12,7 @@ import asyncFn from "@async-fn/jest";
import { getPromiseStatus } from "../../../../../common/test-utils/get-promise-status";
import type { DiContainer } from "@ogre-tools/injectable";
import loggerInjectable from "../../../../../common/logger.injectable";
import type { Logger } from "../../../../../common/logger";
import { noop } from "../../../../../common/utils";
describe("download-platform-update", () => {
let downloadPlatformUpdate: DownloadPlatformUpdate;
@@ -43,7 +43,13 @@ describe("download-platform-update", () => {
di.override(electronUpdaterInjectable, () => electronUpdaterFake);
logErrorMock = jest.fn();
di.override(loggerInjectable, () => ({ error: logErrorMock }) as unknown as Logger);
di.override(loggerInjectable, () => ({
error: logErrorMock,
debug: noop,
info: noop,
silly: noop,
warn: noop,
}));
downloadPlatformUpdate = di.inject(downloadPlatformUpdateInjectable);
});