Rename Cargo crates (bterminal-core→agor-core, bterminal-relay→agor-relay), env vars (BTERMINAL_*→AGOR_*), config paths (~/.config/agor), CSS custom properties, plugin API object, package names, and all documentation. BREAKING CHANGE: config/data paths changed from bterminal to agor.
11 lines
327 B
Rust
11 lines
327 B
Rust
use agor_core::event::EventSink;
|
|
use tauri::{AppHandle, Emitter};
|
|
|
|
/// Bridges agor-core's EventSink trait to Tauri's event system.
|
|
pub struct TauriEventSink(pub AppHandle);
|
|
|
|
impl EventSink for TauriEventSink {
|
|
fn emit(&self, event: &str, payload: serde_json::Value) {
|
|
let _ = self.0.emit(event, &payload);
|
|
}
|
|
}
|