From 15bb4f6995560e3f54a503ddd1ac914050dd6b57 Mon Sep 17 00:00:00 2001 From: newt Date: Mon, 11 Nov 2024 15:48:31 +0000 Subject: [PATCH] refactor: crates/echoed -> echoed --- Cargo.toml | 4 ++-- {crates/echoed => echoed}/Cargo.lock | 0 {crates/echoed => echoed}/Cargo.toml | 4 ++-- {crates/echoed => echoed}/Untitled-1.txt | 0 {crates/echoed => echoed}/src/helper.rs | 0 {crates/echoed => echoed}/src/helper/echo.rs | 0 {crates/echoed => echoed}/src/helper/tui.rs | 0 {crates/echoed => echoed}/src/lib.rs | 0 {crates/echoed => echoed}/src/main.rs | 0 {crates/echoed => echoed}/src/prelude.rs | 0 {crates/echoed => echoed}/src/views.rs | 0 {crates/echoed => echoed}/src/views/auth.rs | 0 {crates/echoed => echoed}/src/views/courses.rs | 6 +++--- 13 files changed, 7 insertions(+), 7 deletions(-) rename {crates/echoed => echoed}/Cargo.lock (100%) rename {crates/echoed => echoed}/Cargo.toml (80%) rename {crates/echoed => echoed}/Untitled-1.txt (100%) rename {crates/echoed => echoed}/src/helper.rs (100%) rename {crates/echoed => echoed}/src/helper/echo.rs (100%) rename {crates/echoed => echoed}/src/helper/tui.rs (100%) rename {crates/echoed => echoed}/src/lib.rs (100%) rename {crates/echoed => echoed}/src/main.rs (100%) rename {crates/echoed => echoed}/src/prelude.rs (100%) rename {crates/echoed => echoed}/src/views.rs (100%) rename {crates/echoed => echoed}/src/views/auth.rs (100%) rename {crates/echoed => echoed}/src/views/courses.rs (94%) diff --git a/Cargo.toml b/Cargo.toml index a26b4e1..518a25e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ [workspace] resolver = "2" -default-members = ["crates/echoed"] -members = ["crates/*"] +default-members = ["echoed"] +members = ["crates/*", "echoed"] diff --git a/crates/echoed/Cargo.lock b/echoed/Cargo.lock similarity index 100% rename from crates/echoed/Cargo.lock rename to echoed/Cargo.lock diff --git a/crates/echoed/Cargo.toml b/echoed/Cargo.toml similarity index 80% rename from crates/echoed/Cargo.toml rename to echoed/Cargo.toml index b6d9a4a..fe63c0a 100644 --- a/crates/echoed/Cargo.toml +++ b/echoed/Cargo.toml @@ -16,10 +16,10 @@ paste = "1.0.15" ratatui = "0.29.0" regex = "1.11.1" reqwest = { version = "0.12.9", features = ["cookies", "json", "multipart"] } -reqwest_cookie_store = { path = "../reqwest_cookie_store_tokio" } +reqwest_cookie_store = { path = "../crates/reqwest_cookie_store_tokio" } serde_cbor = "0.11.2" thiserror = "1.0.66" tokio = { version = "1.41.1", default-features = false, features = ["macros", "rt-multi-thread"] } tui-textarea = "0.7.0" -tui_confirm_dialog = { path = "../tui-confirm-dialog" } +tui_confirm_dialog = { path = "../crates/tui-confirm-dialog" } url = "2.5.3" diff --git a/crates/echoed/Untitled-1.txt b/echoed/Untitled-1.txt similarity index 100% rename from crates/echoed/Untitled-1.txt rename to echoed/Untitled-1.txt diff --git a/crates/echoed/src/helper.rs b/echoed/src/helper.rs similarity index 100% rename from crates/echoed/src/helper.rs rename to echoed/src/helper.rs diff --git a/crates/echoed/src/helper/echo.rs b/echoed/src/helper/echo.rs similarity index 100% rename from crates/echoed/src/helper/echo.rs rename to echoed/src/helper/echo.rs diff --git a/crates/echoed/src/helper/tui.rs b/echoed/src/helper/tui.rs similarity index 100% rename from crates/echoed/src/helper/tui.rs rename to echoed/src/helper/tui.rs diff --git a/crates/echoed/src/lib.rs b/echoed/src/lib.rs similarity index 100% rename from crates/echoed/src/lib.rs rename to echoed/src/lib.rs diff --git a/crates/echoed/src/main.rs b/echoed/src/main.rs similarity index 100% rename from crates/echoed/src/main.rs rename to echoed/src/main.rs diff --git a/crates/echoed/src/prelude.rs b/echoed/src/prelude.rs similarity index 100% rename from crates/echoed/src/prelude.rs rename to echoed/src/prelude.rs diff --git a/crates/echoed/src/views.rs b/echoed/src/views.rs similarity index 100% rename from crates/echoed/src/views.rs rename to echoed/src/views.rs diff --git a/crates/echoed/src/views/auth.rs b/echoed/src/views/auth.rs similarity index 100% rename from crates/echoed/src/views/auth.rs rename to echoed/src/views/auth.rs diff --git a/crates/echoed/src/views/courses.rs b/echoed/src/views/courses.rs similarity index 94% rename from crates/echoed/src/views/courses.rs rename to echoed/src/views/courses.rs index 091bcfe..b601a6c 100644 --- a/crates/echoed/src/views/courses.rs +++ b/echoed/src/views/courses.rs @@ -52,7 +52,7 @@ impl View for Courses { Ok(()) } - fn draw(&self, frame: &mut Frame, state: &State) { + fn draw(&self, frame: &mut Frame, _state: &State) { // let user = state.echo_user.as_ref().unwrap(); if let Some(x) = self.courses.first() { frame.render_widget(Line::raw(x.name.to_string()), frame.area()); @@ -61,8 +61,8 @@ impl View for Courses { async fn keypress( &mut self, - key: KeyEvent, - state: &mut State, + _key: KeyEvent, + _state: &mut State, _command_tx: &ViewSender, ) -> Result<()> { Ok(())