2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-10 13:10:54 +00:00
This commit is contained in:
dvkt 2019-12-16 21:40:49 -08:00
parent f086b61773
commit 76d3a977bd
4 changed files with 0 additions and 5 deletions

View File

View File

@ -2,7 +2,6 @@
extern crate termion;
mod fetch;
mod gopher;
mod menu;
mod types;

View File

@ -2,7 +2,6 @@ use gopher::Type;
use std::io;
use ui::{Action, Key, View};
#[derive(Debug)]
pub struct MenuView {
pub input: String, // user's inputted value
pub menu: Menu, // data
@ -10,14 +9,12 @@ pub struct MenuView {
pub scroll: usize, // scrolling offset
}
#[derive(Debug)]
pub struct Menu {
url: String, // gopher url
lines: Vec<Line>, // lines
raw: String, // raw gopher response
}
#[derive(Debug)]
pub struct Line {
name: String,
url: String,

View File

@ -8,7 +8,6 @@ use gopher::Type;
use menu::MenuView;
pub type Key = termion::event::Key;
pub type Error = io::Error;
pub struct UI {
pages: Vec<Box<dyn View>>,