wsh deleteblock

This commit is contained in:
sawka
2024-07-18 18:14:11 -07:00
parent f0263865bd
commit fd3581fc42
8 changed files with 121 additions and 1 deletions
+5
View File
@@ -22,6 +22,11 @@ class WshServerType {
return WOS.wshServerRpcHelper_call("createblock", data, opts);
}
// command "deleteblock" [call]
DeleteBlockCommand(data: CommandDeleteBlockData, opts?: WshRpcCommandOpts): Promise<void> {
return WOS.wshServerRpcHelper_call("deleteblock", data, opts);
}
// command "file:append" [call]
AppendFileCommand(data: CommandAppendFileData, opts?: WshRpcCommandOpts): Promise<void> {
return WOS.wshServerRpcHelper_call("file:append", data, opts);
+1 -1
View File
@@ -10,7 +10,7 @@
border-radius: 3px;
display: flex;
flex-direction: column;
font-family: Inter;
font: var(--base-font);
.dir-table-head {
.dir-table-head-row {
display: flex;
+5
View File
@@ -95,6 +95,11 @@ declare global {
rtopts: RuntimeOpts;
};
// wshrpc.CommandDeleteBlockData
type CommandDeleteBlockData = {
blockid: string;
};
// wshrpc.CommandGetMetaData
type CommandGetMetaData = {
oref: ORef;