Skip to content

Commit

Permalink
Rename event handler crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Aug 17, 2024
1 parent 3910bf9 commit 882afbd
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [
"wireman-logger",
"wireman-theme",
"wireman",
"tui-key-event-handler",
"wireman-event-handler",
]

default-members = ["wireman"]
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "tui-key-event-handler"
name = "wireman-event-handler"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion wireman/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ core = { package = "wireman-core", path = "../wireman-core", version = "0.1.0" }
config = { package = "wireman-config", path = "../wireman-config", version = "0.1.0" }
logger = { package = "wireman-logger", path = "../wireman-logger", version = "0.1.0" }
theme = { package = "wireman-theme", path = "../wireman-theme", version = "0.1.0" }
event-handler = { package = "wireman-event-handler", path = "../wireman-event-handler", version = "0.1.0" }
tui-widget-list = { version = "0.12.0" }
# tui-widget-list = { git = "https://github.com/preiter93/tui-widget-list.git", branch = "v0.9" }
# tui-widget-list = { path = "../../tui-widget-list", version = "0.9.0"}
tui-key-event-handler = { package = "tui-key-event-handler", path = "../tui-key-event-handler", version = "0.1.0" }
edtui = "0.7"
# edtui = { version = "0.7", path = "../../edtui" }
# edtui = { package = "edtui", version = "0.7", git = "https://github.com/preiter93/edtui.git" }
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ use crate::app::App;
use crate::context::{AppContext, HelpContext, MessagesTab, SelectionTab, Tab};
use crate::model::messages::{do_request, RequestResult};
use crossterm::event::{KeyCode, KeyEvent, KeyModifiers, MouseEvent};
use event_handler::EventHandler;
pub(crate) use selection::methods::MethodsSelectionEventsHandler;
pub(crate) use selection::methods_search::MethodsSearchEventsHandler;
pub(crate) use selection::services::ServicesSelectionEventsHandler;
pub(crate) use selection::services_search::ServicesSearchEventsHandler;
use tokio::sync::mpsc::{self, Receiver, Sender};
use tui_key_event_handler::EventHandler;

use self::headers::HeadersEventHandler;
use self::messages::request::RequestEventHandler;
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/headers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{context::AppContext, model::headers::HeadersTab, widgets::editor::TextEditor};
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum HeadersEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/messages/request.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::context::{AppContext, MessagesTab};
use crossterm::event::MouseEvent;
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum RequestEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/messages/response.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::context::{AppContext, MessagesTab};
use crossterm::event::MouseEvent;
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ResponseEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/selection/methods.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::context::{AppContext, SelectionTab};
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum MethodsSelectionEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/selection/methods_search.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::context::{AppContext, SelectionTab};
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum MethodsSearchEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/selection/services.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::context::{AppContext, SelectionTab};
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ServicesSelectionEvents {
Expand Down
2 changes: 1 addition & 1 deletion wireman/src/events/selection/services_search.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::context::{AppContext, SelectionTab};
use event_handler::{EventHandler, KeyCode, KeyEvent};
use std::fmt;
use tui_key_event_handler::{EventHandler, KeyCode, KeyEvent};

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ServicesSearchEvents {
Expand Down

0 comments on commit 882afbd

Please sign in to comment.