mirror of
https://github.com/tauri-apps/verso.git
synced 2026-01-31 00:55:21 +01:00
* feat(context-menu): create webview on wayland * dynamic generate menu items on html * add context_menu.html * add check mouse hit on context-menu webview * fix: context menu prompt back to verso * feat(context-menu): on linux, handle selection * fix: disble right click on context menu * organize code * adding cfg target linux * fix(linux): shift context menu to avoid overflow, best effort * prompt temp * add alert prompt * refactor: move prompt and context menu to components * remove redundant import * feat(prompt): add ok/cancel, yes/no prompt * feat(prompt): add input prompt dialog * fix: add serde to all platform's dep * refactor: organize verso html files * update gitignore * refactor: remove dialog show method depends on Window * refactor: code clean * fix: don't show context menu when prompt exist * update css * fix(prompt): handle resize when prompt exists * fix(prompt): close prompt when navigate to new url * chore: restore default home page * chore: fix linux mod path, remove unused pipeline fn * feat: handle EmbedderMsg::PromptPermission * refactor: rename components to webview and move WebView into it
135 lines
4.7 KiB
TOML
135 lines
4.7 KiB
TOML
[workspace]
|
|
members = ["verso", "versoview_messages"]
|
|
|
|
[workspace.dependencies]
|
|
ipc-channel = "0.19"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
url = { version = "2.5.2", features = ["serde"] }
|
|
|
|
[package]
|
|
name = "versoview"
|
|
version = "0.0.1"
|
|
authors = ["Wu Yu Wei"]
|
|
edition = "2021"
|
|
license = "Apache-2.0 OR MIT"
|
|
description = "An innovative web browser"
|
|
readme = "README.md"
|
|
homepage = "https://versotile.org/verso"
|
|
repository = "https://github.com/versotile-org/verso"
|
|
documentation = "https://docs.versotile.org/verso"
|
|
categories = ["web-programming"]
|
|
|
|
[package.metadata.packager]
|
|
name = "verso"
|
|
product-name = "verso"
|
|
identifier = "org.versotile.verso"
|
|
version = "0.0.1"
|
|
before-each-package-command = "python etc/package_libs.py"
|
|
resources = [
|
|
"resources",
|
|
"icons",
|
|
"target/release/build/**/libEGL.dll",
|
|
"target/release/build/**/libGLESv2.dll",
|
|
"target/release/lib",
|
|
]
|
|
icons = ["icons/icon256x256.png", "icons/icon.ico"]
|
|
|
|
[package.metadata.packager.nsis]
|
|
appdata-paths = ["$LOCALAPPDATA/$IDENTIFIER"]
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = [
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-apple-darwin",
|
|
]
|
|
|
|
[features]
|
|
default = []
|
|
packager = ["dep:cargo-packager-resource-resolver"]
|
|
flatpak = []
|
|
|
|
[build-dependencies]
|
|
cfg_aliases = "0.2"
|
|
|
|
[dependencies]
|
|
arboard = "3.4.0"
|
|
crossbeam-channel = "0.5"
|
|
env_logger = "0.11"
|
|
euclid = "0.22"
|
|
getopts = "0.2.17"
|
|
gleam = "0.15"
|
|
glutin = "0.32.0"
|
|
glutin-winit = "0.5.0"
|
|
ipc-channel = { workspace = true }
|
|
keyboard-types = "0.7"
|
|
log = "0.4"
|
|
raw-window-handle = { version = "0.6", features = ["std"] }
|
|
sparkle = "0.1.26"
|
|
thiserror = "1.0"
|
|
winit = { version = "0.30", features = ["rwh_06"] }
|
|
# Servo repo crates
|
|
base = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
bluetooth = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
bluetooth_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
canvas = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
compositing_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
constellation = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
devtools = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
embedder_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
fonts = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
layout_thread_2020 = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
media = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
net = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
net_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
profile = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
profile_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
script = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
script_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
servo_config = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
servo_geometry = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
servo_url = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
webdriver_server = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
webrender_traits = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
webgpu = { git = "https://github.com/servo/servo.git", rev = "7489e3d" }
|
|
# Servo org crates
|
|
servo-media = { git = "https://github.com/servo/media" }
|
|
servo-media-dummy = { git = "https://github.com/servo/media" }
|
|
style = { git = "https://github.com/servo/stylo", branch = "2024-11-01", features = ["servo"] }
|
|
style_traits = { git = "https://github.com/servo/stylo", branch = "2024-11-01", features = ["servo"] }
|
|
webrender = { git = "https://github.com/servo/webrender", branch = "0.65", features = ["capture"] }
|
|
webrender_api = { git = "https://github.com/servo/webrender", branch = "0.65" }
|
|
# Packager feature
|
|
cargo-packager-resource-resolver = { version = "0.1.1", features = [
|
|
"auto-detect-format",
|
|
], optional = true }
|
|
url = { workspace = true }
|
|
headers = "0.3"
|
|
versoview_messages = { path = "./versoview_messages" }
|
|
serde_json = "1.0"
|
|
serde = { workspace = true }
|
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
|
muda = "0.15"
|
|
|
|
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
|
|
objc2 = "0.5"
|
|
objc2-foundation = { version = "0.2.2", features = ["NSThread"] }
|
|
objc2-app-kit = { version = "0.2", features = [
|
|
"NSView",
|
|
"NSResponder",
|
|
"NSWindow",
|
|
] }
|
|
|
|
[[test]]
|
|
name = "general"
|
|
harness = false
|
|
|
|
[profile.release-lto]
|
|
inherits = "release"
|
|
lto = true
|
|
|
|
# Tell clippy to allow e.g. #[cfg(macos)]
|
|
[lints.clippy]
|
|
mismatched_target_os = "allow"
|