Migrate most of frontend callServerMethod usage over to websocket

This commit is contained in:
AAGaming
2023-08-05 01:11:43 -04:00
committed by marios8543
parent cfb6fe69e3
commit 34d1a34b10
14 changed files with 162 additions and 160 deletions
+24
View File
@@ -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<installPluginArgs>('utilities/install_plugin');
type installPluginsArgs = [
requests: {
artifact: string;
name?: string;
version?: string;
hash?: string | boolean;
installType?: InstallType;
}[],
];
export let installPlugins = window.DeckyBackend.callable<installPluginsArgs>('utilities/install_plugins');
export let uninstallPlugin = window.DeckyBackend.callable<[name: string]>('utilities/uninstall_plugin');