Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand VersoView to include more APIs #275

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6581f91
Add `execute_script` to IPC APIs
Legend-Master Feb 7, 2025
1efbc4c
Allow intercepting network requests
Legend-Master Feb 7, 2025
30c4ad6
Merge branch 'main' of https://github.com/versotile-org/verso into ex…
Legend-Master Feb 11, 2025
a53184b
Expose some of the windowing functions
Legend-Master Feb 11, 2025
4734191
Add support for setting initial size and pos
Legend-Master Feb 11, 2025
c34169c
Verso should be maximized by default
Legend-Master Feb 11, 2025
4806807
Allow setting userscripts directory in settings
Legend-Master Feb 11, 2025
fd4955e
Support more windowing getters
Legend-Master Feb 12, 2025
b999914
Expose resources_directory
Legend-Master Feb 12, 2025
5903ccc
Allow setting devtools port
Legend-Master Feb 12, 2025
0157264
Allow exit the app
Legend-Master Feb 12, 2025
e037c5e
Remove left over debug print
Legend-Master Feb 12, 2025
1d4edb9
Add start dragging
Legend-Master Feb 12, 2025
4341298
Only set min size if we have the control panel
Legend-Master Feb 12, 2025
2a5b669
Add close requested support
Legend-Master Feb 13, 2025
f83a41c
Add get_scale_factor
Legend-Master Feb 13, 2025
2b2a589
Remove left over dbg!
Legend-Master Feb 13, 2025
94016cf
Fix an old error message
Legend-Master Feb 13, 2025
b975966
Typo
Legend-Master Feb 13, 2025
7646465
Merge remote-tracking branch 'upstream/main' into expand-versoview
Legend-Master Feb 13, 2025
0bf7cbf
Merge remote-tracking branch 'upstream/main' into expand-versoview
Legend-Master Feb 13, 2025
387a8e6
Migrate to use AllowOrDeny
Legend-Master Feb 13, 2025
39fe519
Merge remote-tracking branch 'upstream/main' into expand-versoview
Legend-Master Feb 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ ipc-channel = "0.19"
bincode = "1"
url = { version = "2.5.2", features = ["serde"] }
log = "0.4"
headers = "0.4"
http = "1"
uuid = { version = "1", features = ["v4", "serde"] }
dpi = { version = "0.1", features = ["serde"] }

[package]
name = "versoview"
Expand Down Expand Up @@ -108,12 +112,14 @@ cargo-packager-resource-resolver = { version = "0.1.1", features = [
"auto-detect-format",
], optional = true }
url = { workspace = true }
headers = "0.4"
headers = { workspace = true }
http = { workspace = true }
versoview_messages = { path = "./versoview_messages" }
serde = { workspace = true }
serde_json = "1.0"
bincode = { workspace = true }
mime = "0.3"
uuid = { workspace = true }

[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
muda = "0.15"
Expand Down
4 changes: 3 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ fn parse_cli_args() -> Result<CliArgs, getopts::Fail> {
// set min inner size
// should be at least able to show the whole control panel
// FIXME: url input has weird behavior that will expand lager when having long text
window_attributes = window_attributes.with_min_inner_size(dpi::LogicalSize::new(480, 72));
if !no_panel {
window_attributes = window_attributes.with_min_inner_size(dpi::LogicalSize::new(480, 72));
}

let width = matches.opt_get::<u32>("width").unwrap_or_else(|e| {
log::error!("Failed to parse width command line argument: {e}");
Expand Down
Loading