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
trueif this is a first launch (client was just created). - get_
client - Get the singleton client record.