working moved event to modes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// src/client/components/mod.rs
|
||||
// src/components/handlers.rs
|
||||
pub mod form;
|
||||
pub mod preview_card;
|
||||
pub mod command_line;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// src/client/components1/mod.rs
|
||||
// src/components1/mod.rs
|
||||
pub mod models;
|
||||
pub mod handlers;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ pub mod tui;
|
||||
pub mod config;
|
||||
pub mod state;
|
||||
pub mod components1;
|
||||
pub mod modes;
|
||||
|
||||
pub use ui::run_ui;
|
||||
|
||||
|
||||
2
client/src/modes/handlers.rs
Normal file
2
client/src/modes/handlers.rs
Normal file
@@ -0,0 +1,2 @@
|
||||
// src/client/modes/handlers.rs
|
||||
pub mod event;
|
||||
0
client/src/modes/handlers/edit.rs
Normal file
0
client/src/modes/handlers/edit.rs
Normal file
@@ -5,7 +5,7 @@ use crossterm::cursor::{SetCursorStyle};
|
||||
use crate::tui::terminal::AppTerminal;
|
||||
use crate::config::config::Config;
|
||||
use common::proto::multieko2::adresar::{PostAdresarRequest, PutAdresarRequest};
|
||||
use super::form::FormState;
|
||||
use crate::ui::handlers::form::FormState;
|
||||
|
||||
pub struct EventHandler {
|
||||
pub command_mode: bool,
|
||||
0
client/src/modes/handlers/highlight.rs
Normal file
0
client/src/modes/handlers/highlight.rs
Normal file
0
client/src/modes/handlers/read_only.rs
Normal file
0
client/src/modes/handlers/read_only.rs
Normal file
4
client/src/modes/mod.rs
Normal file
4
client/src/modes/mod.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
// src/client/modes/mod.rs
|
||||
pub mod handlers;
|
||||
|
||||
pub use handlers::*;
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
pub mod ui;
|
||||
pub mod form;
|
||||
pub mod event;
|
||||
pub mod render;
|
||||
|
||||
pub use ui::run_ui;
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
use crate::tui::terminal::AppTerminal;
|
||||
use crate::config::colors::Theme;
|
||||
use crate::config::config::Config;
|
||||
use crate::ui::handlers::{event::EventHandler, form::FormState, render::render_ui};
|
||||
use crate::ui::handlers::{form::FormState, render::render_ui};
|
||||
use crate::modes::handlers::event::EventHandler;
|
||||
use crate::state::state::AppState;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user