mirror of
https://github.com/xvxx/phetch
synced 2024-11-10 13:10:54 +00:00
tweaks
This commit is contained in:
parent
f086b61773
commit
76d3a977bd
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
extern crate termion;
|
extern crate termion;
|
||||||
|
|
||||||
mod fetch;
|
|
||||||
mod gopher;
|
mod gopher;
|
||||||
mod menu;
|
mod menu;
|
||||||
mod types;
|
mod types;
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user