pinakes-tui: cover more API routes in the TUI crate
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Id14b6f82d3b9f3c27bee9c214a1bdedc6a6a6964
This commit is contained in:
parent
c18edc9146
commit
8129c5a6e7
8 changed files with 1866 additions and 67 deletions
|
|
@ -1,3 +1,4 @@
|
|||
pub mod admin;
|
||||
pub mod audit;
|
||||
pub mod books;
|
||||
pub mod collections;
|
||||
|
|
@ -7,6 +8,7 @@ pub mod duplicates;
|
|||
pub mod import;
|
||||
pub mod library;
|
||||
pub mod metadata_edit;
|
||||
pub mod playlists;
|
||||
pub mod queue;
|
||||
pub mod search;
|
||||
pub mod settings;
|
||||
|
|
@ -109,6 +111,8 @@ pub fn render(f: &mut Frame, state: &AppState) {
|
|||
View::Statistics => statistics::render(f, state, chunks[1]),
|
||||
View::Tasks => tasks::render(f, state, chunks[1]),
|
||||
View::Books => books::render(f, state, chunks[1]),
|
||||
View::Playlists => playlists::render(f, state, chunks[1]),
|
||||
View::Admin => admin::render(f, state, chunks[1]),
|
||||
}
|
||||
|
||||
render_status_bar(f, state, chunks[2]);
|
||||
|
|
@ -125,6 +129,8 @@ fn render_tabs(f: &mut Frame, state: &AppState, area: Rect) {
|
|||
"Queue",
|
||||
"Stats",
|
||||
"Tasks",
|
||||
"Playlists",
|
||||
"Admin",
|
||||
]
|
||||
.into_iter()
|
||||
.map(|t| Line::from(Span::styled(t, Style::default().fg(Color::White))))
|
||||
|
|
@ -144,6 +150,8 @@ fn render_tabs(f: &mut Frame, state: &AppState, area: Rect) {
|
|||
View::Queue => 6,
|
||||
View::Statistics => 7,
|
||||
View::Tasks => 8,
|
||||
View::Playlists => 9,
|
||||
View::Admin => 10,
|
||||
};
|
||||
|
||||
let tabs = Tabs::new(titles)
|
||||
|
|
@ -177,10 +185,17 @@ fn render_status_bar(f: &mut Frame, state: &AppState, area: Rect) {
|
|||
.to_string()
|
||||
},
|
||||
View::Detail => {
|
||||
" q:Quit Esc:Back o:Open e:Edit p:Page +:Tag -:Untag \
|
||||
r:Refresh ?:Help"
|
||||
" q:Quit Esc:Back o:Open e:Edit p:Page +:Tag -:Untag f:Fav \
|
||||
R:Rate c:Comment E:Enrich U:Subtitles t:Transcode r:Refresh"
|
||||
.to_string()
|
||||
},
|
||||
View::Playlists => {
|
||||
" q:Quit j/k:Nav n:New d:Delete Enter:Items S:Shuffle Esc:Back"
|
||||
.to_string()
|
||||
},
|
||||
View::Admin => " q:Quit j/k:Nav Tab:Switch tab d:Del user/device \
|
||||
w:Test webhook r:Refresh Esc:Back"
|
||||
.to_string(),
|
||||
View::Import => {
|
||||
" Enter:Import Esc:Cancel s:Scan libraries ?:Help".to_string()
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue