From fa742cbaba9cbc77126d294a1037b35e7310f3a6 Mon Sep 17 00:00:00 2001 From: 4gray Date: Tue, 24 Feb 2026 19:09:16 +0100 Subject: [PATCH] feat(api): add dbGetGlobalFavorites method to expose global favorites --- apps/electron-backend/src/app/api/main.preload.ts | 1 + global.d.ts | 1 + tsconfig.base.json | 12 +++++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/electron-backend/src/app/api/main.preload.ts b/apps/electron-backend/src/app/api/main.preload.ts index 2421da93c..d1cbb70f5 100644 --- a/apps/electron-backend/src/app/api/main.preload.ts +++ b/apps/electron-backend/src/app/api/main.preload.ts @@ -221,6 +221,7 @@ contextBridge.exposeInMainWorld('electron', { ipcRenderer.invoke('DB_IS_FAVORITE', contentId, playlistId), dbGetFavorites: (playlistId: string) => ipcRenderer.invoke('DB_GET_FAVORITES', playlistId), + dbGetGlobalFavorites: () => ipcRenderer.invoke('DB_GET_GLOBAL_FAVORITES'), // Recently viewed (playlist-specific) dbGetRecentItems: (playlistId: string) => ipcRenderer.invoke('DB_GET_RECENT_ITEMS', playlistId), diff --git a/global.d.ts b/global.d.ts index 42034d34a..3f3972c0b 100644 --- a/global.d.ts +++ b/global.d.ts @@ -177,6 +177,7 @@ declare global { playlistId: string ) => Promise; dbGetFavorites: (playlistId: string) => Promise; + dbGetGlobalFavorites: () => Promise; // Recently viewed (playlist-specific) dbGetRecentItems: (playlistId: string) => Promise; dbAddRecentItem: ( diff --git a/tsconfig.base.json b/tsconfig.base.json index a918f48fa..73b61c512 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -24,7 +24,17 @@ "shared-interfaces": ["libs/shared/interfaces/src/index.ts"], "shared-portals": ["libs/ui/shared-portals/src/index.ts"], "remote-control": ["libs/ui/remote-control/src/index.ts"], - "database": ["libs/shared/database/src/index.ts"] + "database": ["libs/shared/database/src/index.ts"], + "xtream-store": [ + "apps/web/src/app/xtream-electron/stores/xtream.store.ts" + ], + "workspace-dashboard-feature": [ + "libs/workspace/dashboard/feature/src/index.ts" + ], + "workspace-dashboard-data-access": [ + "libs/workspace/dashboard/data-access/src/index.ts" + ], + "workspace-dashboard-ui": ["libs/workspace/dashboard/ui/src/index.ts"] } }, "exclude": ["node_modules", "tmp"],