Skip to content

Commit fb56cd7

Browse files
committed
close #30, close #28, some gui and bug fixes
1 parent c6b4b57 commit fb56cd7

File tree

5 files changed

+146
-112
lines changed

5 files changed

+146
-112
lines changed

Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mitm_proxy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
confy = "0.5.1"
1010

1111
eframe = "0.20.0"
12-
egui_extras = "0.20.0"
12+
egui_extras = "0.20"
1313
serde = { version = "1", features = ["derive"] }
1414
proxyapi = {path = "../proxyapi"}
1515
tokio = { version = "1", features = ["full"] }

mitm_proxy/src/main.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ use eframe::{
99
run_native, App,
1010
};
1111

12-
static X: f32 = 980.;
13-
static Y: f32 = 960.0;
14-
static PADDING: f32 = 20.;
12+
const X: f32 = 980.;
13+
const Y: f32 = 960.0;
14+
const PADDING: f32 = 20.;
15+
const FONT_SIZE: f32 = 17.;
1516

1617
// fn fetch_requests(){
1718
// ProxyAPI::new().fetch();
@@ -26,8 +27,10 @@ impl App for MitmProxy {
2627
self.render_top_panel(ctx, frame);
2728

2829
CentralPanel::default().show(ctx, |ui| {
29-
self.render_columns(ui);
30+
self.render_columns(frame, ctx, ui);
3031
});
32+
33+
self.render_bottom_panel(ctx, frame);
3134
}
3235
}
3336

@@ -57,5 +60,5 @@ fn main() {
5760
"Man In The Middle Proxy",
5861
native_options,
5962
Box::new(|cc| Box::new(MitmProxy::new(cc))),
60-
)
63+
);
6164
}

0 commit comments

Comments
 (0)