dev/logic.rs now has the sample of VOELIN_DEMO_UI as plain values and as the events a server would send: the servers and their presence, the pictures (PNG bytes the front end saves), the chats with their pins and topics, the contacts, the private chats, the poke, the offline messages, the gateway's events, the notices and the recordings, and the older pages that answer scrolling up. The helpers that only look at the state (the divider of VOELIN_OPEN=unread, the first locked channel) moved with it. The Slint side (dev/bind.rs) keeps the switches, the window and the screenshot, and feeds the sample through the app's own events; a test replays the whole sample through events::handle and checks the state it leaves. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7 lines
276 B
Rust
7 lines
276 B
Rust
//! The sample data of `VOELIN_DEMO_UI` and the helpers of the development
|
|
//! switches that only look at the state. [`logic`] has the sample servers,
|
|
//! people, chats, contacts, notices and pictures as plain values and as the
|
|
//! events a server would send.
|
|
|
|
pub mod logic;
|