File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::{
66} ;
77use tui:: Terminal ;
88pub struct AppBar < ' a > {
9- pub ( crate ) data : Vec < ( & ' a str , u64 ) > ,
9+ pub ( super ) data : Vec < ( & ' a str , u64 ) > ,
1010 last_tick : Instant ,
1111}
1212use super :: render:: ui;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use crate::state::{MyBackend, IFEXIT};
66use std:: io;
77use tui:: widgets:: ListState ;
88use tui:: Terminal ;
9- pub ( crate ) enum InputMode {
9+ pub ( super ) enum InputMode {
1010 Normal ,
1111 Editing ,
1212 Select ,
@@ -22,7 +22,7 @@ pub struct AppSub {
2222 // settings , include coresetting and subscribe setting
2323 pub settings_input : Vec < String > ,
2424 /// Current input mode
25- pub ( crate ) input_mode : InputMode ,
25+ pub ( super ) input_mode : InputMode ,
2626 // History of recorded subs
2727 // subs's names
2828 pub subs : Vec < Vec < String > > ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use tui::{
1010} ;
1111use unicode_width:: UnicodeWidthStr ;
1212
13- pub ( crate ) fn ui < B : Backend > ( f : & mut Frame < B > , app : & mut AppSub ) {
13+ pub ( super ) fn ui < B : Backend > ( f : & mut Frame < B > , app : & mut AppSub ) {
1414 let chunks = Layout :: default ( )
1515 . direction ( Direction :: Vertical )
1616 . margin ( 2 )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use super::{Page, IFEXIT};
55use crossterm:: event:: { self , Event , KeyCode } ;
66use std:: { env, io, process:: Command } ;
77use tui:: widgets:: ListState ;
8- pub ( crate ) async fn subscribe_state ( app : & mut AppSub ) -> io:: Result < IFEXIT > {
8+ pub ( super ) async fn subscribe_state ( app : & mut AppSub ) -> io:: Result < IFEXIT > {
99 if let Event :: Key ( key) = event:: read ( ) ? {
1010 match app. input_mode {
1111 InputMode :: Normal => match key. code {
You can’t perform that action at this time.
0 commit comments