bunch of ui tweaks and server ui

This commit is contained in:
2025-09-04 23:29:46 -05:00
parent ea9f255e95
commit e07b5044f9
3 changed files with 116 additions and 34 deletions
+4
View File
@@ -115,6 +115,10 @@ impl FleenApp {
Ok(())
}
pub fn open_server(&self, port: &str) {
Command::new("open").arg(format!("http://localhost:{}", port)).spawn();
}
pub fn create_page(&self, file_type: FileType, name: &str, parent: Option<&String>) -> Result<(), FleenError> {
let mut target = match parent {
Some(s) => PathBuf::from(s),