chore: merge with main

This commit is contained in:
Chubby Granny Chaser 2025-01-21 10:44:43 +00:00
parent eb11eb2bd0
commit 0f0a67b55e
No known key found for this signature in database
10 changed files with 15 additions and 20 deletions

View File

@ -1,8 +1,7 @@
import { registerEvent } from "../register-event";
import { shell } from "electron";
import { parseExecutablePath } from "../helpers/parse-executable-path";
import { levelKeys } from "@main/level";
import { gamesSublevel } from "@main/level";
import { gamesSublevel, levelKeys } from "@main/level";
import { GameShop } from "@types";
const openGame = async (

View File

@ -1,7 +1,6 @@
import { registerEvent } from "../register-event";
import { HydraApi } from "@main/services";
import { levelKeys } from "@main/level";
import { gamesSublevel } from "@main/level";
import { gamesSublevel, levelKeys } from "@main/level";
import type { GameShop } from "@types";
const removeGameFromLibrary = async (

View File

@ -1,7 +1,6 @@
import { registerEvent } from "../register-event";
import { downloadsSublevel } from "@main/level";
import { levelKeys, downloadsSublevel } from "@main/level";
import { GameShop } from "@types";
import { levelKeys } from "@main/level";
const removeGame = async (
_event: Electron.IpcMainInvokeEvent,

View File

@ -1,6 +1,5 @@
import { registerEvent } from "../register-event";
import { gamesSublevel } from "@main/level";
import { levelKeys } from "@main/level";
import { levelKeys, gamesSublevel } from "@main/level";
import type { GameShop } from "@types";
const selectGameWinePrefix = async (

View File

@ -1,6 +1,5 @@
import { registerEvent } from "../register-event";
import { levelKeys } from "@main/level";
import { gamesSublevel } from "@main/level";
import { gamesSublevel, levelKeys } from "@main/level";
import { GameShop } from "@types";
const updateLaunchOptions = async (

View File

@ -1,8 +1,7 @@
import { Notification } from "electron";
import { registerEvent } from "../register-event";
import { t } from "i18next";
import { db } from "@main/level";
import { levelKeys } from "@main/level";
import { db, levelKeys } from "@main/level";
import type { UserPreferences } from "@types";
const publishNewRepacksNotification = async (

View File

@ -1,5 +1,4 @@
import { downloadsSublevel } from "@main/level";
import { levelKeys } from "@main/level";
import { downloadsSublevel, levelKeys } from "@main/level";
import { registerEvent } from "../register-event";
import { DownloadManager } from "@main/services";
import type { GameShop } from "@types";

View File

@ -1,5 +1,4 @@
import { downloadsSublevel } from "@main/level";
import { levelKeys } from "@main/level";
import { downloadsSublevel, levelKeys } from "@main/level";
import { registerEvent } from "../register-event";
import { DownloadManager } from "@main/services";
import type { GameShop } from "@types";

View File

@ -2,8 +2,7 @@ import type { ComparedAchievements, GameShop, UserPreferences } from "@types";
import { registerEvent } from "../register-event";
import { HydraApi } from "@main/services";
import { db } from "@main/level";
import { levelKeys } from "@main/level";
import { db, levelKeys } from "@main/level";
const getComparedUnlockedAchievements = async (
_event: Electron.IpcMainInvokeEvent,

View File

@ -6,9 +6,13 @@ import { Aria2 } from "./services/aria2";
import { downloadsSublevel } from "./level/sublevels/downloads";
import { sortBy } from "lodash-es";
import { Downloader } from "@shared";
import { gameAchievementsSublevel, gamesSublevel, levelKeys } from "./level";
import {
gameAchievementsSublevel,
gamesSublevel,
levelKeys,
db,
} from "./level";
import { Auth, User, type UserPreferences } from "@types";
import { db } from "./level";
import { knexClient } from "./knex-client";
const loadState = async (userPreferences: UserPreferences | null) => {