My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: egui eframe credits

+25 -2
+1 -1
crates/dto/src/entity/tag.rs
··· 1 1 //! `SeaORM` Entity, @generated by sea-orm-codegen 2.0 2 2 3 3 use migration::types::*; 4 - use sea_orm::ActiveValue::Set; 5 4 use sea_orm::entity::prelude::*; 5 + use sea_orm::ActiveValue::Set; 6 6 use std::{future::ready, pin::Pin}; 7 7 8 8 #[sea_orm::model]
+1 -1
crates/dto/src/entity/zettel.rs
··· 1 1 //! `SeaORM` Entity, @generated by sea-orm-codegen 2.0 2 2 3 3 use migration::types::*; 4 - use sea_orm::ActiveValue::Set; 5 4 use sea_orm::entity::prelude::*; 5 + use sea_orm::ActiveValue::Set; 6 6 use std::{future::ready, pin::Pin}; 7 7 8 8 #[sea_orm::model]
+20
src/gui/mod.rs
··· 51 51 egui::CentralPanel::default().show_inside(ui, |ui| { 52 52 ui.heading("Hello World!"); 53 53 ui.text_edit_singleline(&mut self.text); 54 + 55 + // credits! 56 + ui.with_layout(egui::Layout::bottom_up(egui::Align::LEFT), |ui| { 57 + powered_by_egui_and_eframe(ui); 58 + egui::warn_if_debug_build(ui); 59 + }); 54 60 }); 55 61 } 56 62 } 63 + 64 + fn powered_by_egui_and_eframe(ui: &mut egui::Ui) { 65 + ui.horizontal(|ui| { 66 + ui.spacing_mut().item_spacing.x = 0.0; 67 + ui.label("Powered by "); 68 + ui.hyperlink_to("egui", "https://github.com/emilk/egui"); 69 + ui.label(" and "); 70 + ui.hyperlink_to( 71 + "eframe", 72 + "https://github.com/emilk/egui/tree/master/crates/eframe", 73 + ); 74 + ui.label("."); 75 + }); 76 + }
+3
src/main.rs
··· 36 36 37 37 // then we spawn the tui on its own thread 38 38 let tui_handle = std::thread::spawn({ 39 + // arc stuff 39 40 let tui_rt = rt.clone(); 40 41 let shutdown = shutdown_signal.clone(); 42 + 43 + // closure to run the tui 41 44 move || -> color_eyre::Result<()> { 42 45 // block the tui on the same runtime as above 43 46 tui_rt.block_on(async {