Provide search functionality through the TUI #134
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::{
|
app::{
|
||||||
state::{
|
machine::{
|
||||||
browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo,
|
browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo,
|
||||||
reload::AppReload, search::AppSearch, AppInner, AppMachine,
|
reload::AppReload, search::AppSearch, AppInner, AppMachine,
|
||||||
},
|
},
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
|
machine::{AppInner, AppMachine},
|
||||||
selection::{Delta, ListSelection},
|
selection::{Delta, ListSelection},
|
||||||
state::{AppInner, AppMachine},
|
|
||||||
AppPublic, AppState, IAppInteractBrowse,
|
AppPublic, AppState, IAppInteractBrowse,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -95,7 +95,7 @@ impl<MH: IMusicHoard> IAppInteractBrowse for AppMachine<MH, AppBrowse> {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::tui::app::{
|
use crate::tui::app::{
|
||||||
state::tests::{inner, music_hoard},
|
machine::tests::{inner, music_hoard},
|
||||||
IAppInteract,
|
IAppInteract,
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
state::{AppInner, AppMachine},
|
machine::{AppInner, AppMachine},
|
||||||
AppPublic, AppState, IAppInteractCritical,
|
AppPublic, AppState, IAppInteractCritical,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractCritical for AppMachine<MH, AppCritical> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::tui::app::state::tests::{music_hoard, inner};
|
use crate::tui::app::machine::tests::{music_hoard, inner};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
state::{AppInner, AppMachine},
|
machine::{AppInner, AppMachine},
|
||||||
AppPublic, AppState, IAppInteractError,
|
AppPublic, AppState, IAppInteractError,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractError for AppMachine<MH, AppError> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::tui::app::state::tests::{inner, music_hoard};
|
use crate::tui::app::machine::tests::{inner, music_hoard};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
state::{AppInner, AppMachine},
|
machine::{AppInner, AppMachine},
|
||||||
AppPublic, AppState, IAppInteractInfo,
|
AppPublic, AppState, IAppInteractInfo,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractInfo for AppMachine<MH, AppInfo> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::tui::app::state::tests::{music_hoard, inner};
|
use crate::tui::app::machine::tests::{music_hoard, inner};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -2,7 +2,7 @@ use crate::tui::{
|
|||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
selection::IdSelection,
|
selection::IdSelection,
|
||||||
state::{AppInner, AppMachine},
|
machine::{AppInner, AppMachine},
|
||||||
AppPublic, AppState, IAppInteractReload,
|
AppPublic, AppState, IAppInteractReload,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -83,7 +83,7 @@ impl<MH: IMusicHoard> IAppInteractReloadPrivate<MH> for AppMachine<MH, AppReload
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::tui::app::state::tests::{inner, music_hoard};
|
use crate::tui::app::machine::tests::{inner, music_hoard};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
@ -4,7 +4,7 @@ use crate::tui::{
|
|||||||
app::{
|
app::{
|
||||||
app::App,
|
app::App,
|
||||||
selection::ListSelection,
|
selection::ListSelection,
|
||||||
state::{AppInner, AppMachine},
|
machine::{AppInner, AppMachine},
|
||||||
AppPublic, AppState, IAppInteractSearch,
|
AppPublic, AppState, IAppInteractSearch,
|
||||||
},
|
},
|
||||||
lib::IMusicHoard,
|
lib::IMusicHoard,
|
||||||
@ -196,7 +196,7 @@ mod tests {
|
|||||||
use ratatui::widgets::ListState;
|
use ratatui::widgets::ListState;
|
||||||
|
|
||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
app::state::tests::{inner, music_hoard},
|
app::machine::tests::{inner, music_hoard},
|
||||||
testmod::COLLECTION,
|
testmod::COLLECTION,
|
||||||
};
|
};
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
pub mod app;
|
pub mod app;
|
||||||
pub mod selection;
|
pub mod selection;
|
||||||
mod state;
|
mod machine;
|
||||||
|
|
||||||
use musichoard::collection::Collection;
|
use musichoard::collection::Collection;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user