mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding onlinefix credentials
This commit is contained in:
parent
70fe495965
commit
5bb1f753a2
25 changed files with 357 additions and 245 deletions
|
@ -14,6 +14,7 @@ import {
|
|||
gameRepository,
|
||||
repackRepository,
|
||||
repackerFriendlyNameRepository,
|
||||
steamGameRepository,
|
||||
userPreferencesRepository,
|
||||
} from "./repository";
|
||||
import { TorrentClient } from "./services/torrent-client";
|
||||
|
@ -104,17 +105,23 @@ const checkForNewRepacks = async () => {
|
|||
};
|
||||
|
||||
const loadState = async () => {
|
||||
const [friendlyNames, repacks] = await Promise.all([
|
||||
const [friendlyNames, repacks, steamGames] = await Promise.all([
|
||||
repackerFriendlyNameRepository.find(),
|
||||
repackRepository.find({
|
||||
order: {
|
||||
createdAt: "desc",
|
||||
},
|
||||
}),
|
||||
steamGameRepository.find({
|
||||
order: {
|
||||
name: "asc",
|
||||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
stateManager.setValue("repackersFriendlyNames", friendlyNames);
|
||||
stateManager.setValue("repacks", repacks);
|
||||
stateManager.setValue("steamGames", steamGames);
|
||||
|
||||
import("./events");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue