mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
wsh rpc working (#55)
lots of iterations on an RPC protocol. getting wsh working with a getmeta/setmeta command in addition to html mode.
This commit is contained in:
@@ -98,3 +98,13 @@ class ObjectServiceType {
|
||||
|
||||
export const ObjectService = new ObjectServiceType()
|
||||
|
||||
// windowservice.WindowService (window)
|
||||
class WindowServiceType {
|
||||
// @returns object updates
|
||||
SetWindowPosAndSize(arg2: string, arg3: Point, arg4: WinSize): Promise<void> {
|
||||
return WOS.callBackendService("window", "SetWindowPosAndSize", Array.from(arguments))
|
||||
}
|
||||
}
|
||||
|
||||
export const WindowService = new WindowServiceType()
|
||||
|
||||
|
||||
Vendored
+8
-1
@@ -30,7 +30,7 @@ declare global {
|
||||
|
||||
type BlockCommand = {
|
||||
command: string;
|
||||
} & ( BlockAppendIJsonCommand | BlockInputCommand | BlockSetViewCommand | BlockSetMetaCommand | BlockMessageCommand | BlockAppendFileCommand );
|
||||
} & ( BlockSetMetaCommand | BlockGetMetaCommand | BlockMessageCommand | BlockAppendFileCommand | BlockAppendIJsonCommand | BlockInputCommand | BlockSetViewCommand );
|
||||
|
||||
// wstore.BlockDef
|
||||
type BlockDef = {
|
||||
@@ -40,6 +40,12 @@ declare global {
|
||||
meta?: MetaType;
|
||||
};
|
||||
|
||||
// wshutil.BlockGetMetaCommand
|
||||
type BlockGetMetaCommand = {
|
||||
command: "getmeta";
|
||||
oid: string;
|
||||
};
|
||||
|
||||
// wshutil.BlockInputCommand
|
||||
type BlockInputCommand = {
|
||||
command: "controller:input";
|
||||
@@ -57,6 +63,7 @@ declare global {
|
||||
// wshutil.BlockSetMetaCommand
|
||||
type BlockSetMetaCommand = {
|
||||
command: "setmeta";
|
||||
oid?: string;
|
||||
meta: MetaType;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user