Module wcore

Module wcore 

Source
Expand description

Wave Core: application coordinator for storage + pub/sub. Port of Goโ€™s pkg/wcore/wcore.go + window.go + workspace.go + block.go.

Orchestrates WaveStore mutations with WPS event publishing.

Re-exportsยง

pub use block::*;
pub use dnd::*;
pub use event::*;
pub use tab::*;
pub use window::*;
pub use workspace::*;

Modulesยง

block ๐Ÿ”’
Block CRUD operations.
dnd ๐Ÿ”’
Drag-and-drop operations: moving/promoting/tearing-off blocks and tabs.
event ๐Ÿ”’
Pub/sub event publishing for WaveObj updates.
tab ๐Ÿ”’
Tab CRUD and reorder operations.
window ๐Ÿ”’
Window CRUD, focus, workspace switching, and repair operations.
workspace ๐Ÿ”’
Workspace CRUD operations.

Constantsยง

LAYOUT_ACTION_CLEAR_TREE
LAYOUT_ACTION_INSERT
LAYOUT_ACTION_INSERT_AT_INDEX
LAYOUT_ACTION_REMOVE
LAYOUT_ACTION_REPLACE
LAYOUT_ACTION_SPLIT_HORIZONTAL
LAYOUT_ACTION_SPLIT_VERTICAL

Functionsยง

ensure_initial_data
Ensure initial data is present in the store. Creates a default Client, Window, Workspace, Tab if the store is empty. Returns true if this is a first launch (client was just created).
get_client
Get the singleton client record.