mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
feat(api): add dbGetGlobalFavorites method to expose global favorites
This commit is contained in:
1 parent
4211f22a69
commit
fa742cbaba
3 files changed
+13
-1
No files matched your search
@@ -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),
|
||||
|
||||
Vendored
+1
@@ -177,6 +177,7 @@ declare global {
|
||||
playlistId: string
|
||||
) => Promise<boolean>;
|
||||
dbGetFavorites: (playlistId: string) => Promise<any[]>;
|
||||
dbGetGlobalFavorites: () => Promise<any[]>;
|
||||
// Recently viewed (playlist-specific)
|
||||
dbGetRecentItems: (playlistId: string) => Promise<any[]>;
|
||||
dbAddRecentItem: (
|
||||
|
||||
+11
-1
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user