From 34d1a34b10f4386865f3c241c5ae4026d2bfd8bd Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 5 Aug 2023 01:11:43 -0400 Subject: Migrate most of frontend callServerMethod usage over to websocket --- frontend/src/plugin.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'frontend/src/plugin.ts') diff --git a/frontend/src/plugin.ts b/frontend/src/plugin.ts index fa1bb28a..21d45654 100644 --- a/frontend/src/plugin.ts +++ b/frontend/src/plugin.ts @@ -13,3 +13,27 @@ export enum InstallType { REINSTALL, UPDATE, } + +type installPluginArgs = [ + artifact: string, + name?: string, + version?: string, + hash?: string | boolean, + installType?: InstallType, +]; + +export let installPlugin = window.DeckyBackend.callable('utilities/install_plugin'); + +type installPluginsArgs = [ + requests: { + artifact: string; + name?: string; + version?: string; + hash?: string | boolean; + installType?: InstallType; + }[], +]; + +export let installPlugins = window.DeckyBackend.callable('utilities/install_plugins'); + +export let uninstallPlugin = window.DeckyBackend.callable<[name: string]>('utilities/uninstall_plugin'); -- cgit v1.2.3