wip: add html event type

This commit is contained in:
Jonathan Kelley committed 2022-12-14 19:07:33 -08:00
1 parent fa3d1ef574
commit e256fe1079
17 files changed
+340 -245

No files matched your search

+4 -9
View File
@@ -11,15 +11,10 @@ use dioxus_html::events::*;
#[derive(serde::Serialize, serde::Deserialize)]
pub(crate) struct IpcMessage {
pub method: String,
pub params: serde_json::Value,
}
pub(crate) fn parse_ipc_message(payload: &str) -> Option<IpcMessage> {
match serde_json::from_str(payload) {
Ok(message) => Some(message),
Err(_) => None,
}
pub name: String,
pub element: ElementId,
pub bubbles: bool,
pub data: serde_json::Value,
}
#[derive(serde::Serialize, serde::Deserialize)]