mirror of
				https://github.com/hydralauncher/hydra.git
				synced 2025-03-09 15:40:26 +00:00 
			
		
		
		
	feat: adding import download source
This commit is contained in:
		
							parent
							
								
									ddd9ea69df
								
							
						
					
					
						commit
						48e07370e4
					
				
					 70 changed files with 925 additions and 1261 deletions
				
			
		| 
						 | 
				
			
			@ -32,8 +32,7 @@ contextBridge.exposeInMainWorld("electron", {
 | 
			
		|||
 | 
			
		||||
  /* Catalogue */
 | 
			
		||||
  searchGames: (query: string) => ipcRenderer.invoke("searchGames", query),
 | 
			
		||||
  getCatalogue: (category: CatalogueCategory) =>
 | 
			
		||||
    ipcRenderer.invoke("getCatalogue", category),
 | 
			
		||||
  getCatalogue: () => ipcRenderer.invoke("getCatalogue"),
 | 
			
		||||
  getGameShopDetails: (objectID: string, shop: GameShop, language: string) =>
 | 
			
		||||
    ipcRenderer.invoke("getGameShopDetails", objectID, shop, language),
 | 
			
		||||
  getRandomGame: () => ipcRenderer.invoke("getRandomGame"),
 | 
			
		||||
| 
						 | 
				
			
			@ -52,6 +51,15 @@ contextBridge.exposeInMainWorld("electron", {
 | 
			
		|||
  authenticateRealDebrid: (apiToken: string) =>
 | 
			
		||||
    ipcRenderer.invoke("authenticateRealDebrid", apiToken),
 | 
			
		||||
 | 
			
		||||
  /* Download sources */
 | 
			
		||||
  getDownloadSources: () => ipcRenderer.invoke("getDownloadSources"),
 | 
			
		||||
  validateDownloadSource: (url: string) =>
 | 
			
		||||
    ipcRenderer.invoke("validateDownloadSource", url),
 | 
			
		||||
  addDownloadSource: (url: string) =>
 | 
			
		||||
    ipcRenderer.invoke("addDownloadSource", url),
 | 
			
		||||
  removeDownloadSource: (id: number) =>
 | 
			
		||||
    ipcRenderer.invoke("removeDownloadSource", id),
 | 
			
		||||
 | 
			
		||||
  /* Library */
 | 
			
		||||
  addGameToLibrary: (
 | 
			
		||||
    objectID: string,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue