setup routes

This commit is contained in:
2024-10-10 20:40:25 +01:00
parent abfcbc8954
commit 67d6381123
20 changed files with 1194 additions and 490 deletions

View File

@ -1,16 +1,15 @@
use crate::services::Services;
use crate::route::RouteServices;
use crate::widgets::stream::StreamEvent;
use egui::{Frame, Margin, Response, Ui, Widget};
use egui_extras::Column;
use nostr_sdk::Event;
use nostrdb::Note;
pub struct StreamList<'a> {
streams: &'a Vec<Event>,
services: &'a Services,
streams: &'a Vec<Note<'a>>,
services: &'a RouteServices<'a>,
}
impl<'a> StreamList<'a> {
pub fn new(streams: &'a Vec<Event>, services: &'a Services) -> Self {
pub fn new(streams: &'a Vec<Note<'a>>, services: &'a RouteServices) -> Self {
Self { streams, services }
}
}