feat: starting showing local achievements

This commit is contained in:
Zamitto 2024-09-24 13:56:32 -03:00
parent 5b0cf1e82b
commit 7e3cf0a00e
25 changed files with 102 additions and 12 deletions

View file

@ -13,6 +13,7 @@ import type {
UpdateProfileRequest,
} from "@types";
import type { CatalogueCategory } from "@shared";
import { Game } from "@main/entity";
contextBridge.exposeInMainWorld("electron", {
/* Torrenting */
@ -49,6 +50,8 @@ contextBridge.exposeInMainWorld("electron", {
getGameStats: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getGameStats", objectId, shop),
getTrendingGames: () => ipcRenderer.invoke("getTrendingGames"),
getGameAchievements: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getGameAchievements", objectId, shop),
/* User preferences */
getUserPreferences: () => ipcRenderer.invoke("getUserPreferences"),