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; extern crate termion;
mod fetch;
mod gopher; mod gopher;
mod menu; mod menu;
mod types; mod types;

View File

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

View File

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