mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
move CreateX functions to wcore (#275)
This commit is contained in:
@@ -361,7 +361,7 @@ function handleWSEventMessage(msg: WSEventType) {
|
||||
return;
|
||||
}
|
||||
if (msg.eventtype == "layoutaction") {
|
||||
const layoutAction: WSLayoutActionData = msg.data;
|
||||
const layoutAction: LayoutActionData = msg.data;
|
||||
const tabId = layoutAction.tabid;
|
||||
const layoutModel = getLayoutModelForTabById(tabId);
|
||||
switch (layoutAction.actiontype) {
|
||||
|
||||
Vendored
+10
-10
@@ -208,6 +208,16 @@ declare global {
|
||||
data64: string;
|
||||
};
|
||||
|
||||
// waveobj.LayoutActionData
|
||||
type LayoutActionData = {
|
||||
tabid: string;
|
||||
actiontype: string;
|
||||
blockid: string;
|
||||
nodesize?: number;
|
||||
indexarr?: number[];
|
||||
magnified?: boolean;
|
||||
};
|
||||
|
||||
// waveobj.LayoutState
|
||||
type LayoutState = WaveObj & {
|
||||
rootnode?: any;
|
||||
@@ -525,16 +535,6 @@ declare global {
|
||||
data64: string;
|
||||
};
|
||||
|
||||
// eventbus.WSLayoutActionData
|
||||
type WSLayoutActionData = {
|
||||
tabid: string;
|
||||
actiontype: string;
|
||||
blockid: string;
|
||||
nodesize?: number;
|
||||
indexarr?: number[];
|
||||
magnified?: boolean;
|
||||
};
|
||||
|
||||
// webcmd.WSRpcCommand
|
||||
type WSRpcCommand = {
|
||||
wscommand: "rpc";
|
||||
|
||||
Reference in New Issue
Block a user