Compare commits

..

10 Commits

Author SHA1 Message Date
github-actions[bot] 5cbd593e76 publish new versions (#1772)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2024-09-15 11:55:38 -03:00
renovate[bot] f7600b5fff chore(deps): update dependency @tauri-apps/cli to v2.0.0-rc.14 (#1786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-15 11:37:09 -03:00
Lucas Fernandes Nogueira fb85e5dd76 chore(deps): update tauri to 2.0.0-rc.12 (#1785) 2024-09-15 11:36:23 -03:00
Lucas Fernandes Nogueira 6f3f66794a feat(deep-link): add on_open_url Rust API (#1780) 2024-09-14 21:35:31 -03:00
FabianLars 79d6e19c4b chore: Add changefile for #1777 2024-09-14 18:34:45 +02:00
Cole Shirley aebd4f6185 fix(barcode-scanner): Fix mixed up imports (internal) (#1777)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2024-09-14 18:20:21 +02:00
Lucas Fernandes Nogueira 341a5320c3 fix(clipboard): Android warnings and build on SDK under 28 (#1771) 2024-09-13 12:03:10 -03:00
Lucas Fernandes Nogueira cc03ccf5e0 fix(fs): app scopes not properly enabling paths (#1774) 2024-09-13 09:57:46 -03:00
Lucas Nogueira 009299ebec chore(prettier): ignore mobile build artifacts 2024-09-13 09:10:01 -03:00
Tony 204e5aacad fix(window-state)!: saving minimized state (#1743)
* Fix saving minimized state again

* Add change file

* Fix saving minimized size

* Add change file

* Fix missing .md

* Remove window-shadows
2024-09-13 06:29:38 +03:00
111 changed files with 5006 additions and 7896 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"deep-link": patch
---
Added `DeepLink::on_open_url` function to match the JavaScript API implementation,
which wraps the `deep-link://new-url` event and also send the current deep link if there's any.
+5
View File
@@ -0,0 +1,5 @@
---
"barcode-scanner-js": patch
---
Fixed an issue which caused checkPermission and requestPermission to be mixed up.
+6
View File
@@ -0,0 +1,6 @@
---
"clipboard-manager": patch
"clipboard-manager-js": patch
---
Fix warnings and clear implementation on Android below SDK 28.
+5
View File
@@ -0,0 +1,5 @@
---
"fs": patch
---
Fix `scope-app`, `scope-app-recursive` and `scope-index` not properly enabling the application paths.
@@ -0,0 +1,5 @@
---
"window-state": patch
---
Fix can't restore a minimized window's size and position properly
+8 -1
View File
@@ -7,16 +7,21 @@
".changes/consolidate-permission-state.md",
".changes/deep-link-event.md",
".changes/deep-link-get-current-desktop.md",
".changes/deep-link-on-new-url.md",
".changes/deep-link-register-all.md",
".changes/dialog-asset-scope.md",
".changes/dialog-file-response-non-exhaustive.md",
".changes/dialog-return-path.md",
".changes/fix-barcodae-scanner-imports.md",
".changes/fix-clipboard-warnings-sdk.md",
".changes/fix-deep-link-config.md",
".changes/fix-fs-app-scopes.md",
".changes/fix-fs-write-file-android.md",
".changes/fix-http-plugin-abort.md",
".changes/fix-ios-file-dialog-default-mode.md",
".changes/fix-linux-updater-permission-error.md",
".changes/fix-restore-minimized-window-position.md",
".changes/fix-restore-minimized-window-state.md",
".changes/fs-dialog-file-path-methods.md",
".changes/fs-dialog-file-path-traits.md",
".changes/fs-dialog-non-exhaustive-error.md",
@@ -44,8 +49,10 @@
".changes/swift-build-older-versions.md",
".changes/tauri-rc-8.md",
".changes/update-fs-api-docs.md",
".changes/update-tauri-rc-12.md",
".changes/update-tauri-rc-3.md",
".changes/updater-js-headers-download-crate.md",
".changes/updater-js-headers-download.md"
".changes/updater-js-headers-download.md",
".changes/window-state-physical-size.md"
]
}
+5
View File
@@ -0,0 +1,5 @@
---
"notification": patch
---
Update to tauri 2.0.0-rc.12.
+5
View File
@@ -0,0 +1,5 @@
---
"window-state": patch:breaking
---
Window's size is now stored in physical size instead of logical size
+5 -1
View File
@@ -19,4 +19,8 @@ plugins/*/examples/*/src-tauri/gen/
api-iife.js
init-iife.js
CHANGELOG.md
*schema.json
*schema.json
# mobile build
**/ios/.build
**/.tauri
Generated
+45 -92
View File
@@ -212,7 +212,7 @@ checksum = "10f00e1f6e58a40e807377c75c6a7f97bf9044fab57816f2414e6f5f4499d7b8"
[[package]]
name = "api"
version = "2.0.0-rc.6"
version = "2.0.0-rc.7"
dependencies = [
"log",
"serde",
@@ -235,8 +235,8 @@ dependencies = [
"tauri-plugin-shell",
"tauri-plugin-store",
"tauri-plugin-updater",
"tauri-plugin-window-state",
"tiny_http",
"window-shadows",
]
[[package]]
@@ -1025,22 +1025,6 @@ dependencies = [
"error-code",
]
[[package]]
name = "cocoa"
version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c"
dependencies = [
"bitflags 1.3.2",
"block",
"cocoa-foundation 0.1.2",
"core-foundation 0.9.4",
"core-graphics 0.23.2",
"foreign-types 0.5.0",
"libc",
"objc",
]
[[package]]
name = "cocoa"
version = "0.26.0"
@@ -1049,7 +1033,7 @@ checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2"
dependencies = [
"bitflags 2.6.0",
"block",
"cocoa-foundation 0.2.0",
"cocoa-foundation",
"core-foundation 0.10.0",
"core-graphics 0.24.0",
"foreign-types 0.5.0",
@@ -1057,20 +1041,6 @@ dependencies = [
"objc",
]
[[package]]
name = "cocoa-foundation"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"
dependencies = [
"bitflags 1.3.2",
"block",
"core-foundation 0.9.4",
"core-graphics-types 0.1.3",
"libc",
"objc",
]
[[package]]
name = "cocoa-foundation"
version = "0.2.0"
@@ -3659,7 +3629,7 @@ version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba8ac4080fb1e097c2c22acae467e46e4da72d941f02e82b67a87a2a89fa38b1"
dependencies = [
"cocoa 0.26.0",
"cocoa",
"crossbeam-channel",
"dpi",
"gtk",
@@ -3700,7 +3670,7 @@ dependencies = [
"log",
"ndk-sys",
"num_enum",
"raw-window-handle 0.6.2",
"raw-window-handle",
"thiserror",
]
@@ -4824,12 +4794,6 @@ dependencies = [
"rand_core 0.5.1",
]
[[package]]
name = "raw-window-handle"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9"
[[package]]
name = "raw-window-handle"
version = "0.6.2"
@@ -5024,7 +4988,7 @@ dependencies = [
"objc",
"objc-foundation",
"objc_id",
"raw-window-handle 0.6.2",
"raw-window-handle",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
@@ -5711,7 +5675,7 @@ dependencies = [
"objc2",
"objc2-foundation",
"objc2-quartz-core",
"raw-window-handle 0.6.2",
"raw-window-handle",
"redox_syscall",
"wasm-bindgen",
"web-sys",
@@ -6229,7 +6193,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a93f2c6b8fdaeb7f417bda89b5bc767999745c3052969664ae1fa65892deb7e"
dependencies = [
"bitflags 2.6.0",
"cocoa 0.26.0",
"cocoa",
"core-foundation 0.10.0",
"core-graphics 0.24.0",
"crossbeam-channel",
@@ -6250,7 +6214,7 @@ dependencies = [
"objc",
"once_cell",
"parking_lot",
"raw-window-handle 0.6.2",
"raw-window-handle",
"scopeguard",
"tao-macros",
"unicode-segmentation",
@@ -6297,13 +6261,13 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
[[package]]
name = "tauri"
version = "2.0.0-rc.11"
version = "2.0.0-rc.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f60dc86a0513f775a6515d79cf2a54ce38f2fa7225e0c5b9d5ae8241e599afa"
checksum = "65e5d4a319f11ae72c77d0f4dbd9703ab6b401eb91d1ca88d89c33d13d4ea20c"
dependencies = [
"anyhow",
"bytes",
"cocoa 0.26.0",
"cocoa",
"dirs 5.0.1",
"dunce",
"embed_plist",
@@ -6322,7 +6286,8 @@ dependencies = [
"muda",
"objc",
"percent-encoding",
"raw-window-handle 0.6.2",
"plist",
"raw-window-handle",
"reqwest",
"serde",
"serde_json",
@@ -6350,9 +6315,9 @@ dependencies = [
[[package]]
name = "tauri-build"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d6fc774b19bedadd547b0310fbdbfadbc7546978eccd6d3e389be7cabc437a"
checksum = "148441d64674b2885c1ba5baf3ae61662bb8753859ffcfb541962cbc6b847f39"
dependencies = [
"anyhow",
"cargo_toml",
@@ -6374,9 +6339,9 @@ dependencies = [
[[package]]
name = "tauri-codegen"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d14af7a85713898cb8a6be3ece89eb1c39392d8756dd1cc0309ebd6fdc966eb3"
checksum = "72a15c3f9282c82871c69ddb65d02ae552738bbac848c8adcab521bf14d8b9e6"
dependencies = [
"base64 0.22.1",
"brotli",
@@ -6401,9 +6366,9 @@ dependencies = [
[[package]]
name = "tauri-macros"
version = "2.0.0-rc.9"
version = "2.0.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9f698301cd7297a7876bb81181a830d40d401461eb14fdaf7ae189b1b56ef76"
checksum = "f12d1aa317bec56f78388cf6012d788876d838595a48f95cbd7835642db356a0"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -6415,9 +6380,9 @@ dependencies = [
[[package]]
name = "tauri-plugin"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad2b0b4fe684059a1b700c1a0d7d51698c05b2257ca64eca2a730d7be2e47c6a"
checksum = "d82a2adea16b8a71b7a5ad23f720bb13f8d2830b820cc1c266512314ba99bf67"
dependencies = [
"anyhow",
"glob",
@@ -6483,7 +6448,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-clipboard-manager"
version = "2.0.0-rc.3"
version = "2.0.0-rc.4"
dependencies = [
"arboard",
"image 0.24.9",
@@ -6497,7 +6462,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-deep-link"
version = "2.0.0-rc.5"
version = "2.0.0-rc.6"
dependencies = [
"dunce",
"log",
@@ -6515,10 +6480,10 @@ dependencies = [
[[package]]
name = "tauri-plugin-dialog"
version = "2.0.0-rc.6"
version = "2.0.0-rc.7"
dependencies = [
"log",
"raw-window-handle 0.6.2",
"raw-window-handle",
"rfd",
"serde",
"serde_json",
@@ -6531,7 +6496,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-fs"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
dependencies = [
"anyhow",
"dunce",
@@ -6591,7 +6556,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-http"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
dependencies = [
"data-url",
"http",
@@ -6628,7 +6593,7 @@ version = "2.0.0-rc.2"
dependencies = [
"android_logger",
"byte-unit",
"cocoa 0.26.0",
"cocoa",
"fern",
"log",
"objc",
@@ -6657,7 +6622,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-notification"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
dependencies = [
"color-backtrace",
"ctor",
@@ -6695,7 +6660,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-persisted-scope"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
dependencies = [
"aho-corasick",
"bincode",
@@ -6749,7 +6714,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-single-instance"
version = "2.0.0-rc.3"
version = "2.0.0-rc.4"
dependencies = [
"log",
"semver",
@@ -6876,7 +6841,7 @@ dependencies = [
[[package]]
name = "tauri-plugin-window-state"
version = "2.0.0-rc.3"
version = "2.0.0-rc.4"
dependencies = [
"bitflags 2.6.0",
"log",
@@ -6889,15 +6854,15 @@ dependencies = [
[[package]]
name = "tauri-runtime"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a0758dce4f9e08ebeee877d84de0062859495507e1d16f647f97b29f881b43d"
checksum = "389f78c8e8e6eff3897d8d9581087943b5976ea96a0ab5036be691f28c2b0df0"
dependencies = [
"dpi",
"gtk",
"http",
"jni",
"raw-window-handle 0.6.2",
"raw-window-handle",
"serde",
"serde_json",
"tauri-utils",
@@ -6908,17 +6873,17 @@ dependencies = [
[[package]]
name = "tauri-runtime-wry"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78dd7f77e769630da5d91a55e4f102a84ff9c5a99c71e1b5c916a18b5ccafc16"
checksum = "466c418aef2ddc7d31173a5b00bfae3df9b58ed66644339f3ca55008bfc54f25"
dependencies = [
"cocoa 0.26.0",
"cocoa",
"gtk",
"http",
"jni",
"log",
"percent-encoding",
"raw-window-handle 0.6.2",
"raw-window-handle",
"softbuffer",
"tao",
"tauri-runtime",
@@ -6932,9 +6897,9 @@ dependencies = [
[[package]]
name = "tauri-utils"
version = "2.0.0-rc.10"
version = "2.0.0-rc.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba92ad9cdf7658fefa29a7218dda0acead9400c021bbf9c3f88e98f5e3b9bbab"
checksum = "3019641087c9039b57ebfca95fa42a93c07056845b7d8d57c8966061bcee83b4"
dependencies = [
"aes-gcm",
"brotli",
@@ -7995,18 +7960,6 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "window-shadows"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67ff424735b1ac21293b0492b069394b0a189c8a463fb015a16dea7c2e221c08"
dependencies = [
"cocoa 0.25.0",
"objc",
"raw-window-handle 0.5.2",
"windows-sys 0.48.0",
]
[[package]]
name = "window-vibrancy"
version = "0.5.2"
@@ -8016,7 +7969,7 @@ dependencies = [
"objc2",
"objc2-app-kit",
"objc2-foundation",
"raw-window-handle 0.6.2",
"raw-window-handle",
"windows-sys 0.59.0",
"windows-version",
]
@@ -8469,7 +8422,7 @@ checksum = "f4d715cf5fe88e9647f3d17b207b6d060d4a88e7171d4ccb2d2c657dd1d44728"
dependencies = [
"base64 0.22.1",
"block",
"cocoa 0.26.0",
"cocoa",
"core-graphics 0.24.0",
"crossbeam-channel",
"dpi",
@@ -8487,7 +8440,7 @@ dependencies = [
"objc_id",
"once_cell",
"percent-encoding",
"raw-window-handle 0.6.2",
"raw-window-handle",
"sha2",
"soup3",
"tao-macros",
+4 -4
View File
@@ -11,10 +11,10 @@ resolver = "2"
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
log = "0.4"
tauri = { version = "2.0.0-rc.11", default-features = false }
tauri-build = "2.0.0-rc.10"
tauri-plugin = "2.0.0-rc.10"
tauri-utils = "2.0.0-rc.10"
tauri = { version = "2.0.0-rc.12", default-features = false }
tauri-build = "2.0.0-rc.11"
tauri-plugin = "2.0.0-rc.11"
tauri-utils = "2.0.0-rc.11"
serde_json = "1"
thiserror = "1"
url = "2"
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## \[2.0.0-rc.4]
### Dependencies
- Upgraded to `barcode-scanner-js@2.0.0-rc.2`
- Upgraded to `clipboard-manager-js@2.0.0-rc.2`
## \[2.0.0-rc.3]
### Dependencies
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "svelte-app",
"private": true,
"version": "2.0.0-rc.3",
"version": "2.0.0-rc.4",
"type": "module",
"scripts": {
"dev": "vite --clearScreen false",
@@ -10,10 +10,10 @@
},
"dependencies": {
"@tauri-apps/api": "2.0.0-rc.4",
"@tauri-apps/plugin-barcode-scanner": "2.0.0-rc.1",
"@tauri-apps/plugin-barcode-scanner": "2.0.0-rc.2",
"@tauri-apps/plugin-biometric": "2.0.0-rc.1",
"@tauri-apps/plugin-cli": "2.0.0-rc.1",
"@tauri-apps/plugin-clipboard-manager": "2.0.0-rc.1",
"@tauri-apps/plugin-clipboard-manager": "2.0.0-rc.2",
"@tauri-apps/plugin-dialog": "2.0.0-rc.1",
"@tauri-apps/plugin-fs": "2.0.0-rc.2",
"@tauri-apps/plugin-global-shortcut": "2.0.0-rc.1",
@@ -31,7 +31,7 @@
"@iconify-json/codicon": "^1.1.37",
"@iconify-json/ph": "^1.1.8",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tauri-apps/cli": "2.0.0-rc.13",
"@tauri-apps/cli": "2.0.0-rc.14",
"@unocss/extractor-svelte": "^0.62.0",
"svelte": "^4.2.19",
"unocss": "^0.62.0",
+10
View File
@@ -1,5 +1,15 @@
# Changelog
## \[2.0.0-rc.7]
### Dependencies
- Upgraded to `clipboard-manager@2.0.0-rc.4`
- Upgraded to `fs@2.0.0-rc.5`
- Upgraded to `notification@2.0.0-rc.5`
- Upgraded to `dialog@2.0.0-rc.7`
- Upgraded to `http@2.0.0-rc.5`
## \[2.0.0-rc.6]
### Dependencies
+7 -9
View File
@@ -1,7 +1,7 @@
[package]
name = "api"
publish = false
version = "2.0.0-rc.6"
version = "2.0.0-rc.7"
description = "An example Tauri Application showcasing the api"
edition = "2021"
rust-version = { workspace = true }
@@ -20,15 +20,15 @@ serde = { workspace = true }
tiny_http = "0.12"
log = { workspace = true }
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-rc.2" }
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-rc.4", features = [
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-rc.5", features = [
"watch",
] }
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-rc.3" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-rc.6" }
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-rc.4" }
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-rc.7" }
tauri-plugin-http = { path = "../../../plugins/http", features = [
"multipart",
], version = "2.0.0-rc.4" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-rc.4", features = [
], version = "2.0.0-rc.5" }
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-rc.5", features = [
"windows7-compat",
] }
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-rc.1" }
@@ -53,14 +53,12 @@ features = [
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-rc.1" }
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-rc.2" }
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-rc.3" }
tauri-plugin-window-state = { path = "../../../plugins/window-state", version = "2.0.0-rc.3" }
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-rc.4" }
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-rc.3" }
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-rc.3" }
[target."cfg(target_os = \"windows\")".dependencies]
window-shadows = "0.2"
[features]
prod = ["tauri/custom-protocol"]
File diff suppressed because it is too large Load Diff
@@ -150,42 +150,42 @@
]
},
{
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",
"type": "string",
"enum": [
"fs:allow-app-meta"
]
},
{
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the application folders, including file listing and statistics.",
"type": "string",
"enum": [
"fs:allow-app-meta-recursive"
]
},
{
"description": "fs:allow-app-read -> This allows non-recursive read access to the `$APP` folder.",
"description": "fs:allow-app-read -> This allows non-recursive read access to the application folders.",
"type": "string",
"enum": [
"fs:allow-app-read"
]
},
{
"description": "fs:allow-app-read-recursive -> This allows full recursive read access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-read-recursive -> This allows full recursive read access to the complete application folders, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-read-recursive"
]
},
{
"description": "fs:allow-app-write -> This allows non-recursive write access to the `$APP` folder.",
"description": "fs:allow-app-write -> This allows non-recursive write access to the application folders.",
"type": "string",
"enum": [
"fs:allow-app-write"
]
},
{
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete application folders, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-write-recursive"
@@ -1606,28 +1606,28 @@
]
},
{
"description": "fs:scope-app -> This scope permits access to all files and list content of top level directories in the `$APP`folder.",
"description": "fs:scope-app -> This scope permits access to all files and list content of top level directories in the application folders.",
"type": "string",
"enum": [
"fs:scope-app"
]
},
{
"description": "fs:scope-app-index -> This scope permits to list all files and folders in the `$APP`folder.",
"description": "fs:scope-app-index -> This scope permits to list all files and folders in the application directories.",
"type": "string",
"enum": [
"fs:scope-app-index"
]
},
{
"description": "fs:scope-app-recursive -> This scope permits recursive access to the complete `$APP` folder, including sub directories and files.",
"description": "fs:scope-app-recursive -> This scope permits recursive access to the complete application folders, including sub directories and files.",
"type": "string",
"enum": [
"fs:scope-app-recursive"
]
},
{
"description": "fs:scope-appcache -> This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder.",
"description": "fs:scope-appcache -> This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",
"type": "string",
"enum": [
"fs:scope-appcache"
@@ -1648,7 +1648,7 @@
]
},
{
"description": "fs:scope-appconfig -> This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder.",
"description": "fs:scope-appconfig -> This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",
"type": "string",
"enum": [
"fs:scope-appconfig"
@@ -1669,7 +1669,7 @@
]
},
{
"description": "fs:scope-appdata -> This scope permits access to all files and list content of top level directories in the `$APPDATA`folder.",
"description": "fs:scope-appdata -> This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",
"type": "string",
"enum": [
"fs:scope-appdata"
@@ -1690,7 +1690,7 @@
]
},
{
"description": "fs:scope-applocaldata -> This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder.",
"description": "fs:scope-applocaldata -> This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",
"type": "string",
"enum": [
"fs:scope-applocaldata"
@@ -1711,7 +1711,7 @@
]
},
{
"description": "fs:scope-applog -> This scope permits access to all files and list content of top level directories in the `$APPLOG`folder.",
"description": "fs:scope-applog -> This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",
"type": "string",
"enum": [
"fs:scope-applog"
@@ -1732,7 +1732,7 @@
]
},
{
"description": "fs:scope-audio -> This scope permits access to all files and list content of top level directories in the `$AUDIO`folder.",
"description": "fs:scope-audio -> This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",
"type": "string",
"enum": [
"fs:scope-audio"
@@ -1753,7 +1753,7 @@
]
},
{
"description": "fs:scope-cache -> This scope permits access to all files and list content of top level directories in the `$CACHE`folder.",
"description": "fs:scope-cache -> This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",
"type": "string",
"enum": [
"fs:scope-cache"
@@ -1774,7 +1774,7 @@
]
},
{
"description": "fs:scope-config -> This scope permits access to all files and list content of top level directories in the `$CONFIG`folder.",
"description": "fs:scope-config -> This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",
"type": "string",
"enum": [
"fs:scope-config"
@@ -1795,7 +1795,7 @@
]
},
{
"description": "fs:scope-data -> This scope permits access to all files and list content of top level directories in the `$DATA`folder.",
"description": "fs:scope-data -> This scope permits access to all files and list content of top level directories in the `$DATA` folder.",
"type": "string",
"enum": [
"fs:scope-data"
@@ -1816,7 +1816,7 @@
]
},
{
"description": "fs:scope-desktop -> This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder.",
"description": "fs:scope-desktop -> This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",
"type": "string",
"enum": [
"fs:scope-desktop"
@@ -1837,7 +1837,7 @@
]
},
{
"description": "fs:scope-document -> This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder.",
"description": "fs:scope-document -> This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",
"type": "string",
"enum": [
"fs:scope-document"
@@ -1858,7 +1858,7 @@
]
},
{
"description": "fs:scope-download -> This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder.",
"description": "fs:scope-download -> This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",
"type": "string",
"enum": [
"fs:scope-download"
@@ -1879,7 +1879,7 @@
]
},
{
"description": "fs:scope-exe -> This scope permits access to all files and list content of top level directories in the `$EXE`folder.",
"description": "fs:scope-exe -> This scope permits access to all files and list content of top level directories in the `$EXE` folder.",
"type": "string",
"enum": [
"fs:scope-exe"
@@ -1900,7 +1900,7 @@
]
},
{
"description": "fs:scope-font -> This scope permits access to all files and list content of top level directories in the `$FONT`folder.",
"description": "fs:scope-font -> This scope permits access to all files and list content of top level directories in the `$FONT` folder.",
"type": "string",
"enum": [
"fs:scope-font"
@@ -1921,7 +1921,7 @@
]
},
{
"description": "fs:scope-home -> This scope permits access to all files and list content of top level directories in the `$HOME`folder.",
"description": "fs:scope-home -> This scope permits access to all files and list content of top level directories in the `$HOME` folder.",
"type": "string",
"enum": [
"fs:scope-home"
@@ -1942,7 +1942,7 @@
]
},
{
"description": "fs:scope-localdata -> This scope permits access to all files and list content of top level directories in the `$LOCALDATA`folder.",
"description": "fs:scope-localdata -> This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",
"type": "string",
"enum": [
"fs:scope-localdata"
@@ -1963,7 +1963,7 @@
]
},
{
"description": "fs:scope-log -> This scope permits access to all files and list content of top level directories in the `$LOG`folder.",
"description": "fs:scope-log -> This scope permits access to all files and list content of top level directories in the `$LOG` folder.",
"type": "string",
"enum": [
"fs:scope-log"
@@ -1984,7 +1984,7 @@
]
},
{
"description": "fs:scope-picture -> This scope permits access to all files and list content of top level directories in the `$PICTURE`folder.",
"description": "fs:scope-picture -> This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",
"type": "string",
"enum": [
"fs:scope-picture"
@@ -2005,7 +2005,7 @@
]
},
{
"description": "fs:scope-public -> This scope permits access to all files and list content of top level directories in the `$PUBLIC`folder.",
"description": "fs:scope-public -> This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",
"type": "string",
"enum": [
"fs:scope-public"
@@ -2026,7 +2026,7 @@
]
},
{
"description": "fs:scope-resource -> This scope permits access to all files and list content of top level directories in the `$RESOURCE`folder.",
"description": "fs:scope-resource -> This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",
"type": "string",
"enum": [
"fs:scope-resource"
@@ -2047,7 +2047,7 @@
]
},
{
"description": "fs:scope-runtime -> This scope permits access to all files and list content of top level directories in the `$RUNTIME`folder.",
"description": "fs:scope-runtime -> This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",
"type": "string",
"enum": [
"fs:scope-runtime"
@@ -2068,7 +2068,7 @@
]
},
{
"description": "fs:scope-temp -> This scope permits access to all files and list content of top level directories in the `$TEMP`folder.",
"description": "fs:scope-temp -> This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",
"type": "string",
"enum": [
"fs:scope-temp"
@@ -2089,7 +2089,7 @@
]
},
{
"description": "fs:scope-template -> This scope permits access to all files and list content of top level directories in the `$TEMPLATE`folder.",
"description": "fs:scope-template -> This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",
"type": "string",
"enum": [
"fs:scope-template"
@@ -2110,7 +2110,7 @@
]
},
{
"description": "fs:scope-video -> This scope permits access to all files and list content of top level directories in the `$VIDEO`folder.",
"description": "fs:scope-video -> This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",
"type": "string",
"enum": [
"fs:scope-video"
@@ -2427,7 +2427,7 @@
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
@@ -2462,7 +2462,7 @@
]
},
"cmd": {
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",
"type": "string"
},
"name": {
@@ -4746,42 +4746,42 @@
]
},
{
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",
"type": "string",
"enum": [
"fs:allow-app-meta"
]
},
{
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the application folders, including file listing and statistics.",
"type": "string",
"enum": [
"fs:allow-app-meta-recursive"
]
},
{
"description": "fs:allow-app-read -> This allows non-recursive read access to the `$APP` folder.",
"description": "fs:allow-app-read -> This allows non-recursive read access to the application folders.",
"type": "string",
"enum": [
"fs:allow-app-read"
]
},
{
"description": "fs:allow-app-read-recursive -> This allows full recursive read access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-read-recursive -> This allows full recursive read access to the complete application folders, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-read-recursive"
]
},
{
"description": "fs:allow-app-write -> This allows non-recursive write access to the `$APP` folder.",
"description": "fs:allow-app-write -> This allows non-recursive write access to the application folders.",
"type": "string",
"enum": [
"fs:allow-app-write"
]
},
{
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete `$APP` folder, files and subdirectories.",
"description": "fs:allow-app-write-recursive -> This allows full recursive write access to the complete application folders, files and subdirectories.",
"type": "string",
"enum": [
"fs:allow-app-write-recursive"
@@ -6209,28 +6209,28 @@
]
},
{
"description": "fs:scope-app -> This scope permits access to all files and list content of top level directories in the `$APP`folder.",
"description": "fs:scope-app -> This scope permits access to all files and list content of top level directories in the application folders.",
"type": "string",
"enum": [
"fs:scope-app"
]
},
{
"description": "fs:scope-app-index -> This scope permits to list all files and folders in the `$APP`folder.",
"description": "fs:scope-app-index -> This scope permits to list all files and folders in the application directories.",
"type": "string",
"enum": [
"fs:scope-app-index"
]
},
{
"description": "fs:scope-app-recursive -> This scope permits recursive access to the complete `$APP` folder, including sub directories and files.",
"description": "fs:scope-app-recursive -> This scope permits recursive access to the complete application folders, including sub directories and files.",
"type": "string",
"enum": [
"fs:scope-app-recursive"
]
},
{
"description": "fs:scope-appcache -> This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder.",
"description": "fs:scope-appcache -> This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",
"type": "string",
"enum": [
"fs:scope-appcache"
@@ -6251,7 +6251,7 @@
]
},
{
"description": "fs:scope-appconfig -> This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder.",
"description": "fs:scope-appconfig -> This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",
"type": "string",
"enum": [
"fs:scope-appconfig"
@@ -6272,7 +6272,7 @@
]
},
{
"description": "fs:scope-appdata -> This scope permits access to all files and list content of top level directories in the `$APPDATA`folder.",
"description": "fs:scope-appdata -> This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",
"type": "string",
"enum": [
"fs:scope-appdata"
@@ -6293,7 +6293,7 @@
]
},
{
"description": "fs:scope-applocaldata -> This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder.",
"description": "fs:scope-applocaldata -> This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",
"type": "string",
"enum": [
"fs:scope-applocaldata"
@@ -6314,7 +6314,7 @@
]
},
{
"description": "fs:scope-applog -> This scope permits access to all files and list content of top level directories in the `$APPLOG`folder.",
"description": "fs:scope-applog -> This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",
"type": "string",
"enum": [
"fs:scope-applog"
@@ -6335,7 +6335,7 @@
]
},
{
"description": "fs:scope-audio -> This scope permits access to all files and list content of top level directories in the `$AUDIO`folder.",
"description": "fs:scope-audio -> This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",
"type": "string",
"enum": [
"fs:scope-audio"
@@ -6356,7 +6356,7 @@
]
},
{
"description": "fs:scope-cache -> This scope permits access to all files and list content of top level directories in the `$CACHE`folder.",
"description": "fs:scope-cache -> This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",
"type": "string",
"enum": [
"fs:scope-cache"
@@ -6377,7 +6377,7 @@
]
},
{
"description": "fs:scope-config -> This scope permits access to all files and list content of top level directories in the `$CONFIG`folder.",
"description": "fs:scope-config -> This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",
"type": "string",
"enum": [
"fs:scope-config"
@@ -6398,7 +6398,7 @@
]
},
{
"description": "fs:scope-data -> This scope permits access to all files and list content of top level directories in the `$DATA`folder.",
"description": "fs:scope-data -> This scope permits access to all files and list content of top level directories in the `$DATA` folder.",
"type": "string",
"enum": [
"fs:scope-data"
@@ -6419,7 +6419,7 @@
]
},
{
"description": "fs:scope-desktop -> This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder.",
"description": "fs:scope-desktop -> This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",
"type": "string",
"enum": [
"fs:scope-desktop"
@@ -6440,7 +6440,7 @@
]
},
{
"description": "fs:scope-document -> This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder.",
"description": "fs:scope-document -> This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",
"type": "string",
"enum": [
"fs:scope-document"
@@ -6461,7 +6461,7 @@
]
},
{
"description": "fs:scope-download -> This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder.",
"description": "fs:scope-download -> This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",
"type": "string",
"enum": [
"fs:scope-download"
@@ -6482,7 +6482,7 @@
]
},
{
"description": "fs:scope-exe -> This scope permits access to all files and list content of top level directories in the `$EXE`folder.",
"description": "fs:scope-exe -> This scope permits access to all files and list content of top level directories in the `$EXE` folder.",
"type": "string",
"enum": [
"fs:scope-exe"
@@ -6503,7 +6503,7 @@
]
},
{
"description": "fs:scope-font -> This scope permits access to all files and list content of top level directories in the `$FONT`folder.",
"description": "fs:scope-font -> This scope permits access to all files and list content of top level directories in the `$FONT` folder.",
"type": "string",
"enum": [
"fs:scope-font"
@@ -6524,7 +6524,7 @@
]
},
{
"description": "fs:scope-home -> This scope permits access to all files and list content of top level directories in the `$HOME`folder.",
"description": "fs:scope-home -> This scope permits access to all files and list content of top level directories in the `$HOME` folder.",
"type": "string",
"enum": [
"fs:scope-home"
@@ -6545,7 +6545,7 @@
]
},
{
"description": "fs:scope-localdata -> This scope permits access to all files and list content of top level directories in the `$LOCALDATA`folder.",
"description": "fs:scope-localdata -> This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",
"type": "string",
"enum": [
"fs:scope-localdata"
@@ -6566,7 +6566,7 @@
]
},
{
"description": "fs:scope-log -> This scope permits access to all files and list content of top level directories in the `$LOG`folder.",
"description": "fs:scope-log -> This scope permits access to all files and list content of top level directories in the `$LOG` folder.",
"type": "string",
"enum": [
"fs:scope-log"
@@ -6587,7 +6587,7 @@
]
},
{
"description": "fs:scope-picture -> This scope permits access to all files and list content of top level directories in the `$PICTURE`folder.",
"description": "fs:scope-picture -> This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",
"type": "string",
"enum": [
"fs:scope-picture"
@@ -6608,7 +6608,7 @@
]
},
{
"description": "fs:scope-public -> This scope permits access to all files and list content of top level directories in the `$PUBLIC`folder.",
"description": "fs:scope-public -> This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",
"type": "string",
"enum": [
"fs:scope-public"
@@ -6629,7 +6629,7 @@
]
},
{
"description": "fs:scope-resource -> This scope permits access to all files and list content of top level directories in the `$RESOURCE`folder.",
"description": "fs:scope-resource -> This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",
"type": "string",
"enum": [
"fs:scope-resource"
@@ -6650,7 +6650,7 @@
]
},
{
"description": "fs:scope-runtime -> This scope permits access to all files and list content of top level directories in the `$RUNTIME`folder.",
"description": "fs:scope-runtime -> This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",
"type": "string",
"enum": [
"fs:scope-runtime"
@@ -6671,7 +6671,7 @@
]
},
{
"description": "fs:scope-temp -> This scope permits access to all files and list content of top level directories in the `$TEMP`folder.",
"description": "fs:scope-temp -> This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",
"type": "string",
"enum": [
"fs:scope-temp"
@@ -6692,7 +6692,7 @@
]
},
{
"description": "fs:scope-template -> This scope permits access to all files and list content of top level directories in the `$TEMPLATE`folder.",
"description": "fs:scope-template -> This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",
"type": "string",
"enum": [
"fs:scope-template"
@@ -6713,7 +6713,7 @@
]
},
{
"description": "fs:scope-video -> This scope permits access to all files and list content of top level directories in the `$VIDEO`folder.",
"description": "fs:scope-video -> This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",
"type": "string",
"enum": [
"fs:scope-video"
+3 -2
View File
@@ -45,6 +45,8 @@ pub fn run() {
app.handle().plugin(tauri_plugin_cli::init())?;
app.handle()
.plugin(tauri_plugin_global_shortcut::Builder::new().build())?;
app.handle()
.plugin(tauri_plugin_window_state::Builder::new().build())?;
app.handle()
.plugin(tauri_plugin_updater::Builder::new().build())?;
}
@@ -63,8 +65,7 @@ pub fn run() {
.user_agent(&format!("Tauri API - {}", std::env::consts::OS))
.title("Tauri API Validation")
.inner_size(1000., 800.)
.min_inner_size(600., 400.)
.content_protected(true);
.min_inner_size(600., 400.);
}
#[cfg(target_os = "windows")]
+1 -1
View File
@@ -1,5 +1,5 @@
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "Tauri API",
"version": "2.0.0",
"identifier": "com.tauri.api",
+28 -29
View File
@@ -1,59 +1,59 @@
<script>
import * as clipboard from "@tauri-apps/plugin-clipboard-manager";
import { open } from "@tauri-apps/plugin-dialog";
import { arrayBufferToBase64 } from "../lib/utils";
import { readFile } from "@tauri-apps/plugin-fs";
import * as clipboard from '@tauri-apps/plugin-clipboard-manager'
import { open } from '@tauri-apps/plugin-dialog'
import { arrayBufferToBase64 } from '../lib/utils'
import { readFile } from '@tauri-apps/plugin-fs'
export let onMessage;
export let insecureRenderHtml;
let text = "clipboard message";
export let onMessage
export let insecureRenderHtml
let text = 'clipboard message'
function writeText() {
clipboard
.writeText(text)
.then(() => {
onMessage("Wrote to the clipboard");
onMessage('Wrote to the clipboard')
})
.catch(onMessage);
.catch(onMessage)
}
async function writeImage() {
try {
const res = await open({
title: "Image to write to clipboard",
const path = await open({
title: 'Image to write to clipboard',
filters: [
{
name: "Clipboard IMG",
extensions: ["png", "jpg", "jpeg"],
},
],
});
const bytes = await readFile(res.path);
await clipboard.writeImage(bytes);
onMessage("wrote image");
name: 'Clipboard IMG',
extensions: ['png', 'jpg', 'jpeg']
}
]
})
const bytes = await readFile(path)
await clipboard.writeImage(bytes)
onMessage('wrote image')
} catch (e) {
onMessage(e);
onMessage(e)
}
}
async function read() {
try {
const image = await clipboard.readImage();
const image = await clipboard.readImage()
arrayBufferToBase64(await image.rgba(), function (base64) {
const src = "data:image/png;base64," + base64;
insecureRenderHtml('<img src="' + src + '"></img>');
});
return;
const src = 'data:image/png;base64,' + base64
insecureRenderHtml('<img src="' + src + '"></img>')
})
return
} catch (_) {}
clipboard
.readText()
.then((contents) => {
onMessage(`Clipboard contents: ${contents}`);
onMessage(`Clipboard contents: ${contents}`)
})
.catch((e) => {
onMessage(e);
});
onMessage(e)
})
}
</script>
@@ -65,6 +65,5 @@
/>
<button class="btn" type="button" on:click={writeText}>Write</button>
<button class="btn" type="button" on:click={writeImage}>Pick Image</button>
<button class="btn" type="button" on:click={read}>Read</button>
</div>
@@ -295,53 +295,39 @@
"type": "string",
"oneOf": [
{
"description": "allow-disable -> Enables the disable command without any pre-configured scope.",
"description": "Enables the disable command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-disable"
]
"const": "allow-disable"
},
{
"description": "deny-disable -> Denies the disable command without any pre-configured scope.",
"description": "Denies the disable command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-disable"
]
"const": "deny-disable"
},
{
"description": "allow-enable -> Enables the enable command without any pre-configured scope.",
"description": "Enables the enable command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-enable"
]
"const": "allow-enable"
},
{
"description": "deny-enable -> Denies the enable command without any pre-configured scope.",
"description": "Denies the enable command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-enable"
]
"const": "deny-enable"
},
{
"description": "allow-is-enabled -> Enables the is_enabled command without any pre-configured scope.",
"description": "Enables the is_enabled command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-is-enabled"
]
"const": "allow-is-enabled"
},
{
"description": "deny-is-enabled -> Denies the is_enabled command without any pre-configured scope.",
"description": "Denies the is_enabled command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-is-enabled"
]
"const": "deny-is-enabled"
},
{
"description": "default -> This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",
"description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## \[2.0.0-rc.2]
- [`79d6e19c`](https://github.com/tauri-apps/plugins-workspace/commit/79d6e19c4b38bae0cab29eb88df379e2237d9aac) ([#1777](https://github.com/tauri-apps/plugins-workspace/pull/1777)) Fixed an issue which caused checkPermission and requestPermission to be mixed up.
## \[2.0.0-rc.4]
- [`713c54ef`](https://github.com/tauri-apps/plugins-workspace/commit/713c54ef8365d36afd84585dcabed2fbb751223d) ([#1749](https://github.com/tauri-apps/plugins-workspace/pull/1749) by [@olivierlemasle](https://github.com/tauri-apps/plugins-workspace/../../olivierlemasle)) Remove unused Android dependencies.
+2 -2
View File
@@ -4,8 +4,8 @@
import {
invoke,
requestPermissions as checkPermissions_,
checkPermissions as requestPermissions_
requestPermissions as requestPermissions_,
checkPermissions as checkPermissions_
} from '@tauri-apps/api/core'
export type { PermissionState } from '@tauri-apps/api/core'
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-barcode-scanner",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS",
"license": "MIT or APACHE-2.0",
"authors": [
@@ -295,95 +295,69 @@
"type": "string",
"oneOf": [
{
"description": "allow-cancel -> Enables the cancel command without any pre-configured scope.",
"description": "Enables the cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-cancel"
]
"const": "allow-cancel"
},
{
"description": "deny-cancel -> Denies the cancel command without any pre-configured scope.",
"description": "Denies the cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-cancel"
]
"const": "deny-cancel"
},
{
"description": "allow-check-permissions -> Enables the check_permissions command without any pre-configured scope.",
"description": "Enables the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-check-permissions"
]
"const": "allow-check-permissions"
},
{
"description": "deny-check-permissions -> Denies the check_permissions command without any pre-configured scope.",
"description": "Denies the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-check-permissions"
]
"const": "deny-check-permissions"
},
{
"description": "allow-open-app-settings -> Enables the open_app_settings command without any pre-configured scope.",
"description": "Enables the open_app_settings command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-open-app-settings"
]
"const": "allow-open-app-settings"
},
{
"description": "deny-open-app-settings -> Denies the open_app_settings command without any pre-configured scope.",
"description": "Denies the open_app_settings command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-open-app-settings"
]
"const": "deny-open-app-settings"
},
{
"description": "allow-request-permissions -> Enables the request_permissions command without any pre-configured scope.",
"description": "Enables the request_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-request-permissions"
]
"const": "allow-request-permissions"
},
{
"description": "deny-request-permissions -> Denies the request_permissions command without any pre-configured scope.",
"description": "Denies the request_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-request-permissions"
]
"const": "deny-request-permissions"
},
{
"description": "allow-scan -> Enables the scan command without any pre-configured scope.",
"description": "Enables the scan command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-scan"
]
"const": "allow-scan"
},
{
"description": "deny-scan -> Denies the scan command without any pre-configured scope.",
"description": "Denies the scan command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-scan"
]
"const": "deny-scan"
},
{
"description": "allow-vibrate -> Enables the vibrate command without any pre-configured scope.",
"description": "Enables the vibrate command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-vibrate"
]
"const": "allow-vibrate"
},
{
"description": "deny-vibrate -> Denies the vibrate command without any pre-configured scope.",
"description": "Denies the vibrate command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-vibrate"
]
"const": "deny-vibrate"
},
{
"description": "default -> This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n",
"description": "This permission set configures which\nbarcode scanning features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all barcode related features.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
@@ -295,39 +295,29 @@
"type": "string",
"oneOf": [
{
"description": "allow-authenticate -> Enables the authenticate command without any pre-configured scope.",
"description": "Enables the authenticate command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-authenticate"
]
"const": "allow-authenticate"
},
{
"description": "deny-authenticate -> Denies the authenticate command without any pre-configured scope.",
"description": "Denies the authenticate command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-authenticate"
]
"const": "deny-authenticate"
},
{
"description": "allow-status -> Enables the status command without any pre-configured scope.",
"description": "Enables the status command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-status"
]
"const": "allow-status"
},
{
"description": "deny-status -> Denies the status command without any pre-configured scope.",
"description": "Denies the status command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-status"
]
"const": "deny-status"
},
{
"description": "default -> This permission set configures which\nbiometric features are by default exposed.\n\n#### Granted Permissions\n\nIt allows acccess to all biometric commands.\n\n",
"description": "This permission set configures which\nbiometric features are by default exposed.\n\n#### Granted Permissions\n\nIt allows acccess to all biometric commands.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+6 -12
View File
@@ -295,25 +295,19 @@
"type": "string",
"oneOf": [
{
"description": "allow-cli-matches -> Enables the cli_matches command without any pre-configured scope.",
"description": "Enables the cli_matches command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-cli-matches"
]
"const": "allow-cli-matches"
},
{
"description": "deny-cli-matches -> Denies the cli_matches command without any pre-configured scope.",
"description": "Denies the cli_matches command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-cli-matches"
]
"const": "deny-cli-matches"
},
{
"description": "default -> Allows reading the CLI matches",
"description": "Allows reading the CLI matches",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## \[2.0.0-rc.2]
- [`341a5320`](https://github.com/tauri-apps/plugins-workspace/commit/341a5320c33d3c7b041abf7eb0ab7ad8009e6c3f) ([#1771](https://github.com/tauri-apps/plugins-workspace/pull/1771)) Fix warnings and clear implementation on Android below SDK 28.
## \[2.0.0-rc.1]
- [`e2e97db5`](https://github.com/tauri-apps/plugins-workspace/commit/e2e97db51983267f5be84d4f6f0278d58834d1f5) ([#1701](https://github.com/tauri-apps/plugins-workspace/pull/1701) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Update to tauri 2.0.0-rc.8
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-clipboard-manager"
version = "2.0.0-rc.3"
version = "2.0.0-rc.4"
description = "Read and write to the system clipboard."
edition = { workspace = true }
authors = { workspace = true }
@@ -4,12 +4,12 @@
package app.tauri.clipboard
import android.R.attr.value
import android.app.Activity
import android.content.ClipData
import android.content.ClipDescription
import android.content.ClipboardManager
import android.content.Context
import android.os.Build
import app.tauri.annotation.Command
import app.tauri.annotation.InvokeArg
import app.tauri.annotation.TauriPlugin
@@ -59,6 +59,9 @@ internal class ReadClipDataSerializer @JvmOverloads constructor(t: Class<ReadCli
jgen.writeEndObject()
}
else -> {
throw Exception("unimplemented ReadClipData")
}
}
jgen.writeEndObject()
@@ -93,7 +96,7 @@ class ClipboardPlugin(private val activity: Activity) : Plugin(activity) {
is WriteOptions.PlainText -> {
ClipData.newPlainText(args.label, args.text)
} else -> {
invoke.reject("Invalid write options provided")
invoke.reject("unimplemented WriteOptions")
return
}
@@ -128,7 +131,11 @@ class ClipboardPlugin(private val activity: Activity) : Plugin(activity) {
@Command
fun clear(invoke: Invoke) {
if (manager.hasPrimaryClip()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
manager.clearPrimaryClip()
} else {
manager.setPrimaryClip(ClipData.newPlainText("", ""))
}
}
invoke.resolve()
}
@@ -114,6 +114,11 @@ async function writeHtml(html: string, altHtml?: string): Promise<void> {
/**
* Clears the clipboard.
*
* #### Platform-specific
*
* - **Android:** Only supported on SDK 28+. For older releases we write an empty string to the clipboard instead.
*
* @example
* ```typescript
* import { clear } from '@tauri-apps/plugin-clipboard-manager';
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@tauri-apps/plugin-clipboard-manager",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"license": "MIT or APACHE-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
@@ -295,95 +295,69 @@
"type": "string",
"oneOf": [
{
"description": "allow-clear -> Enables the clear command without any pre-configured scope.",
"description": "Enables the clear command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-clear"
]
"const": "allow-clear"
},
{
"description": "deny-clear -> Denies the clear command without any pre-configured scope.",
"description": "Denies the clear command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-clear"
]
"const": "deny-clear"
},
{
"description": "allow-read-image -> Enables the read_image command without any pre-configured scope.",
"description": "Enables the read_image command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-read-image"
]
"const": "allow-read-image"
},
{
"description": "deny-read-image -> Denies the read_image command without any pre-configured scope.",
"description": "Denies the read_image command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-read-image"
]
"const": "deny-read-image"
},
{
"description": "allow-read-text -> Enables the read_text command without any pre-configured scope.",
"description": "Enables the read_text command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-read-text"
]
"const": "allow-read-text"
},
{
"description": "deny-read-text -> Denies the read_text command without any pre-configured scope.",
"description": "Denies the read_text command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-read-text"
]
"const": "deny-read-text"
},
{
"description": "allow-write-html -> Enables the write_html command without any pre-configured scope.",
"description": "Enables the write_html command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-write-html"
]
"const": "allow-write-html"
},
{
"description": "deny-write-html -> Denies the write_html command without any pre-configured scope.",
"description": "Denies the write_html command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-write-html"
]
"const": "deny-write-html"
},
{
"description": "allow-write-image -> Enables the write_image command without any pre-configured scope.",
"description": "Enables the write_image command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-write-image"
]
"const": "allow-write-image"
},
{
"description": "deny-write-image -> Denies the write_image command without any pre-configured scope.",
"description": "Denies the write_image command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-write-image"
]
"const": "deny-write-image"
},
{
"description": "allow-write-text -> Enables the write_text command without any pre-configured scope.",
"description": "Enables the write_text command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-write-text"
]
"const": "allow-write-text"
},
{
"description": "deny-write-text -> Denies the write_text command without any pre-configured scope.",
"description": "Denies the write_text command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-write-text"
]
"const": "deny-write-text"
},
{
"description": "default -> No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n",
"description": "No features are enabled by default, as we believe\nthe clipboard can be inherently dangerous and it is \napplication specific if read and/or write access is needed.\n\nClipboard interaction needs to be explicitly enabled.\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+5
View File
@@ -1,5 +1,10 @@
# Changelog
## \[2.0.0-rc.6]
- [`6f3f6679`](https://github.com/tauri-apps/plugins-workspace/commit/6f3f66794a87ef9d1c16667c425d5ad7091a9c2f) ([#1780](https://github.com/tauri-apps/plugins-workspace/pull/1780)) Added `DeepLink::on_open_url` function to match the JavaScript API implementation,
which wraps the `deep-link://new-url` event and also send the current deep link if there's any.
## \[2.0.0-rc.5]
- [`984110a9`](https://github.com/tauri-apps/plugins-workspace/commit/984110a978774712bad4d746ed06134d54debcd0) ([#1770](https://github.com/tauri-apps/plugins-workspace/pull/1770) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Emit the `deep-link://new-url` event on Linux and Windows when the app is executed with a deep link CLI argument,
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-deep-link"
version = "2.0.0-rc.5"
version = "2.0.0-rc.6"
description = "Set your Tauri application as the default handler for an URL"
authors = { workspace = true }
license = { workspace = true }
+1 -1
View File
@@ -14,7 +14,7 @@
"@tauri-apps/plugin-deep-link": "2.0.0-rc.2"
},
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.13",
"@tauri-apps/cli": "2.0.0-rc.14",
"typescript": "^5.2.2",
"vite": "^5.0.13"
}
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use tauri::Listener;
use tauri_plugin_deep_link::DeepLinkExt;
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]
@@ -33,16 +33,14 @@ pub fn run() {
// ensure deep links are registered on the system
// this is useful because AppImages requires additional setup to be available in the system
// and calling register() makes the deep links immediately available - without any user input
#[cfg(target_os = "linux")]
{
use tauri_plugin_deep_link::DeepLinkExt;
// additionally, we manually register on Windows on debug builds for development
#[cfg(any(target_os = "linux", all(debug_assertions, windows)))]
app.deep_link().register_all()?;
app.deep_link().register_all()?;
}
app.listen("deep-link://new-url", |url| {
dbg!(url);
app.deep_link().on_open_url(|event| {
dbg!(event.urls());
});
Ok(())
})
.invoke_handler(tauri::generate_handler![greet])
@@ -295,67 +295,49 @@
"type": "string",
"oneOf": [
{
"description": "allow-get-current -> Enables the get_current command without any pre-configured scope.",
"description": "Enables the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-get-current"
]
"const": "allow-get-current"
},
{
"description": "deny-get-current -> Denies the get_current command without any pre-configured scope.",
"description": "Denies the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-get-current"
]
"const": "deny-get-current"
},
{
"description": "allow-is-registered -> Enables the is_registered command without any pre-configured scope.",
"description": "Enables the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-is-registered"
]
"const": "allow-is-registered"
},
{
"description": "deny-is-registered -> Denies the is_registered command without any pre-configured scope.",
"description": "Denies the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-is-registered"
]
"const": "deny-is-registered"
},
{
"description": "allow-register -> Enables the register command without any pre-configured scope.",
"description": "Enables the register command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-register"
]
"const": "allow-register"
},
{
"description": "deny-register -> Denies the register command without any pre-configured scope.",
"description": "Denies the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-register"
]
"const": "deny-register"
},
{
"description": "allow-unregister -> Enables the unregister command without any pre-configured scope.",
"description": "Enables the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-unregister"
]
"const": "allow-unregister"
},
{
"description": "deny-unregister -> Denies the unregister command without any pre-configured scope.",
"description": "Denies the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-unregister"
]
"const": "deny-unregister"
},
{
"description": "default -> Allows reading the opened deep link via the get_current command",
"description": "Allows reading the opened deep link via the get_current command",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+62 -6
View File
@@ -2,9 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use std::sync::Arc;
use tauri::{
plugin::{Builder, PluginApi, TauriPlugin},
AppHandle, Manager, Runtime,
AppHandle, EventId, Listener, Manager, Runtime,
};
mod commands;
@@ -57,7 +59,10 @@ fn init_deep_link<R: Runtime>(
},
)?;
return Ok(DeepLink(handle));
return Ok(DeepLink {
app: app.clone(),
plugin_handle: handle,
});
}
#[cfg(target_os = "ios")]
@@ -83,10 +88,9 @@ fn init_deep_link<R: Runtime>(
#[cfg(target_os = "android")]
mod imp {
use tauri::{plugin::PluginHandle, Runtime};
use tauri::{ipc::Channel, plugin::PluginHandle, AppHandle, Runtime};
use serde::{Deserialize, Serialize};
use tauri::ipc::Channel;
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
@@ -101,7 +105,10 @@ mod imp {
}
/// Access to the deep-link APIs.
pub struct DeepLink<R: Runtime>(pub(crate) PluginHandle<R>);
pub struct DeepLink<R: Runtime> {
pub(crate) app: AppHandle<R>,
pub(crate) plugin_handle: PluginHandle<R>,
}
impl<R: Runtime> DeepLink<R> {
/// Get the current URLs that triggered the deep link. Use this on app load to check whether your app was started via a deep link.
@@ -112,7 +119,7 @@ mod imp {
/// Note that you must manually check the arguments when registering deep link schemes dynamically with [`Self::register`].
/// Additionally, the deep link might have been provided as a CLI argument so you should check if its format matches what you expect.
pub fn get_current(&self) -> crate::Result<Option<Vec<url::Url>>> {
self.0
self.plugin_handle
.run_mobile_plugin::<GetCurrentResponse>("getCurrent", ())
.map(|v| v.url.map(|url| vec![url]))
.map_err(Into::into)
@@ -437,6 +444,7 @@ mod imp {
}
pub use imp::DeepLink;
use url::Url;
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the deep-link APIs.
pub trait DeepLinkExt<R: Runtime> {
@@ -449,6 +457,54 @@ impl<R: Runtime, T: Manager<R>> crate::DeepLinkExt<R> for T {
}
}
/// Event that is triggered when the app was requested to open a new URL.
///
/// Typed [`tauri::Event`].
pub struct OpenUrlEvent {
id: EventId,
urls: Vec<Url>,
}
impl OpenUrlEvent {
/// The event ID which can be used to stop listening to the event via [`tauri::Listener::unlisten`].
pub fn id(&self) -> EventId {
self.id
}
/// The event URLs.
pub fn urls(self) -> Vec<Url> {
self.urls
}
}
impl<R: Runtime> DeepLink<R> {
/// Handle a new deep link being triggered to open the app.
///
/// To avoid race conditions, if the app was started with a deep link,
/// the closure gets immediately called with the deep link URL.
pub fn on_open_url<F: Fn(OpenUrlEvent) + Send + Sync + 'static>(&self, f: F) -> EventId {
let f = Arc::new(f);
let f_ = f.clone();
let event_id = self.app.listen("deep-link://new-url", move |event| {
if let Ok(urls) = serde_json::from_str(event.payload()) {
f(OpenUrlEvent {
id: event.id(),
urls,
})
}
});
if let Ok(Some(current)) = self.get_current() {
f_(OpenUrlEvent {
id: event_id,
urls: current,
})
}
event_id
}
}
/// Initializes the plugin.
pub fn init<R: Runtime>() -> TauriPlugin<R, Option<config::Config>> {
Builder::new("deep-link")
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## \[2.0.0-rc.7]
### Dependencies
- Upgraded to `fs@2.0.0-rc.5`
## \[2.0.0-rc.6]
- [`2b898f07`](https://github.com/tauri-apps/plugins-workspace/commit/2b898f078688c57309ca17962bf02e665c406514) ([#1769](https://github.com/tauri-apps/plugins-workspace/pull/1769) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Update Tauri scopes (asset protocol) when using the `open()` command to select directories.
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-dialog"
version = "2.0.0-rc.6"
version = "2.0.0-rc.7"
description = "Native system dialogs for opening and saving files along with message dialogs on your Tauri application."
edition = { workspace = true }
authors = { workspace = true }
@@ -27,7 +27,7 @@ tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
url = { workspace = true }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.4" }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.5" }
[target.'cfg(target_os = "ios")'.dependencies]
tauri = { workspace = true, features = ["wry"] }
+22 -44
View File
@@ -295,81 +295,59 @@
"type": "string",
"oneOf": [
{
"description": "allow-ask -> Enables the ask command without any pre-configured scope.",
"description": "Enables the ask command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-ask"
]
"const": "allow-ask"
},
{
"description": "deny-ask -> Denies the ask command without any pre-configured scope.",
"description": "Denies the ask command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-ask"
]
"const": "deny-ask"
},
{
"description": "allow-confirm -> Enables the confirm command without any pre-configured scope.",
"description": "Enables the confirm command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-confirm"
]
"const": "allow-confirm"
},
{
"description": "deny-confirm -> Denies the confirm command without any pre-configured scope.",
"description": "Denies the confirm command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-confirm"
]
"const": "deny-confirm"
},
{
"description": "allow-message -> Enables the message command without any pre-configured scope.",
"description": "Enables the message command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-message"
]
"const": "allow-message"
},
{
"description": "deny-message -> Denies the message command without any pre-configured scope.",
"description": "Denies the message command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-message"
]
"const": "deny-message"
},
{
"description": "allow-open -> Enables the open command without any pre-configured scope.",
"description": "Enables the open command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-open"
]
"const": "allow-open"
},
{
"description": "deny-open -> Denies the open command without any pre-configured scope.",
"description": "Denies the open command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-open"
]
"const": "deny-open"
},
{
"description": "allow-save -> Enables the save command without any pre-configured scope.",
"description": "Enables the save command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-save"
]
"const": "allow-save"
},
{
"description": "deny-save -> Denies the save command without any pre-configured scope.",
"description": "Denies the save command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-save"
]
"const": "deny-save"
},
{
"description": "default -> This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",
"description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## \[2.0.0-rc.5]
- [`cc03ccf5`](https://github.com/tauri-apps/plugins-workspace/commit/cc03ccf5e0e4be8bbf50bbdebe957c84be7f779b) ([#1774](https://github.com/tauri-apps/plugins-workspace/pull/1774)) Fix `scope-app`, `scope-app-recursive` and `scope-index` not properly enabling the application paths.
## \[2.0.0-rc.4]
- [`9291e4d2`](https://github.com/tauri-apps/plugins-workspace/commit/9291e4d2caa31c883c71e55f2193bd8754d72f03) ([#1640](https://github.com/tauri-apps/plugins-workspace/pull/1640) by [@SRutile](https://github.com/tauri-apps/plugins-workspace/../../SRutile)) Support any UTF-8 character in the writeFile API.
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-fs"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
description = "Access the file system."
authors = { workspace = true }
license = { workspace = true }
+1 -2
View File
@@ -52,7 +52,6 @@ const BASE_DIR_VARS: &[&str] = &[
"TEMPLATE",
"VIDEO",
"RESOURCE",
"APP",
"LOG",
"TEMP",
"APPCONFIG",
@@ -118,7 +117,7 @@ path = "${upper}/**"
[[permission]]
identifier = "scope-{lower}"
description = "This scope permits access to all files and list content of top level directories in the `${upper}`folder."
description = "This scope permits access to all files and list content of top level directories in the `${upper}` folder."
[[permission.scope.allow]]
path = "${upper}"
+1 -1
View File
@@ -270,7 +270,7 @@ class FileHandle extends Resource {
* @example
* ```typescript
* import { open, BaseDirectory } from "@tauri-apps/plugin-fs"
* // if "$APP/foo/bar.txt" contains the text "hello world":
* // if "$APPCONFIG/foo/bar.txt" contains the text "hello world":
* const file = await open("foo/bar.txt", { baseDir: BaseDirectory.AppConfig });
* const buf = new Uint8Array(100);
* const numberOfBytesRead = await file.read(buf); // 11 bytes
+114
View File
@@ -0,0 +1,114 @@
"$schema" = "schemas/schema.json"
# Scopes Section
# This section contains scopes, which define file level access
[[permission]]
identifier = "scope-app-recursive"
description = "This scope permits recursive access to the complete application folders, including sub directories and files."
[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPCONFIG/**"
[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPDATA/**"
[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA/**"
[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPCACHE/**"
[[permission.scope.allow]]
path = "$APPLOG"
[[permission.scope.allow]]
path = "$APPLOG/**"
[[permission]]
identifier = "scope-app"
description = "This scope permits access to all files and list content of top level directories in the application folders."
[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPCONFIG/*"
[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPDATA/*"
[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA/*"
[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPCACHE/*"
[[permission.scope.allow]]
path = "$APPLOG"
[[permission.scope.allow]]
path = "$APPLOG/*"
[[permission]]
identifier = "scope-app-index"
description = "This scope permits to list all files and folders in the application directories."
[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPLOG"
# Sets Section
# This section combines the scope elements with enablement of commands
[[set]]
identifier = "allow-app-read-recursive"
description = "This allows full recursive read access to the complete application folders, files and subdirectories."
permissions = ["read-all", "scope-app-recursive"]
[[set]]
identifier = "allow-app-write-recursive"
description = "This allows full recursive write access to the complete application folders, files and subdirectories."
permissions = ["write-all", "scope-app-recursive"]
[[set]]
identifier = "allow-app-read"
description = "This allows non-recursive read access to the application folders."
permissions = ["read-all", "scope-app"]
[[set]]
identifier = "allow-app-write"
description = "This allows non-recursive write access to the application folders."
permissions = ["write-all", "scope-app"]
[[set]]
identifier = "allow-app-meta-recursive"
description = "This allows full recursive read access to metadata of the application folders, including file listing and statistics."
permissions = ["read-meta", "scope-app-recursive"]
[[set]]
identifier = "allow-app-meta"
description = "This allows non-recursive read access to metadata of the application folders, including file listing and statistics."
permissions = ["read-meta", "scope-app-index"]
@@ -1,82 +0,0 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
# Scopes Section
# This section contains scopes, which define file level access
[[permission]]
identifier = "scope-app-recursive"
description = "This scope permits recursive access to the complete `$APP` folder, including sub directories and files."
[[permission.scope.allow]]
path = "$APP"
[[permission.scope.allow]]
path = "$APP/**"
[[permission]]
identifier = "scope-app"
description = "This scope permits access to all files and list content of top level directories in the `$APP`folder."
[[permission.scope.allow]]
path = "$APP"
[[permission.scope.allow]]
path = "$APP/*"
[[permission]]
identifier = "scope-app-index"
description = "This scope permits to list all files and folders in the `$APP`folder."
[[permission.scope.allow]]
path = "$APP"
# Sets Section
# This section combines the scope elements with enablement of commands
[[set]]
identifier = "allow-app-read-recursive"
description = "This allows full recursive read access to the complete `$APP` folder, files and subdirectories."
permissions = [
"read-all",
"scope-app-recursive"
]
[[set]]
identifier = "allow-app-write-recursive"
description = "This allows full recursive write access to the complete `$APP` folder, files and subdirectories."
permissions = [
"write-all",
"scope-app-recursive"
]
[[set]]
identifier = "allow-app-read"
description = "This allows non-recursive read access to the `$APP` folder."
permissions = [
"read-all",
"scope-app"
]
[[set]]
identifier = "allow-app-write"
description = "This allows non-recursive write access to the `$APP` folder."
permissions = [
"write-all",
"scope-app"
]
[[set]]
identifier = "allow-app-meta-recursive"
description = "This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics."
permissions = [
"read-meta",
"scope-app-recursive"
]
[[set]]
identifier = "allow-app-meta"
description = "This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics."
permissions = [
"read-meta",
"scope-app-index"
]
@@ -16,7 +16,7 @@ path = "$APPCACHE/**"
[[permission]]
identifier = "scope-appcache"
description = "This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder."
[[permission.scope.allow]]
path = "$APPCACHE"
@@ -16,7 +16,7 @@ path = "$APPCONFIG/**"
[[permission]]
identifier = "scope-appconfig"
description = "This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder."
description = "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder."
[[permission.scope.allow]]
path = "$APPCONFIG"
@@ -16,7 +16,7 @@ path = "$APPDATA/**"
[[permission]]
identifier = "scope-appdata"
description = "This scope permits access to all files and list content of top level directories in the `$APPDATA`folder."
description = "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder."
[[permission.scope.allow]]
path = "$APPDATA"
@@ -16,7 +16,7 @@ path = "$APPLOCALDATA/**"
[[permission]]
identifier = "scope-applocaldata"
description = "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder."
description = "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder."
[[permission.scope.allow]]
path = "$APPLOCALDATA"
@@ -16,7 +16,7 @@ path = "$APPLOG/**"
[[permission]]
identifier = "scope-applog"
description = "This scope permits access to all files and list content of top level directories in the `$APPLOG`folder."
description = "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder."
[[permission.scope.allow]]
path = "$APPLOG"
@@ -16,7 +16,7 @@ path = "$AUDIO/**"
[[permission]]
identifier = "scope-audio"
description = "This scope permits access to all files and list content of top level directories in the `$AUDIO`folder."
description = "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder."
[[permission.scope.allow]]
path = "$AUDIO"
@@ -16,7 +16,7 @@ path = "$CACHE/**"
[[permission]]
identifier = "scope-cache"
description = "This scope permits access to all files and list content of top level directories in the `$CACHE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$CACHE` folder."
[[permission.scope.allow]]
path = "$CACHE"
@@ -16,7 +16,7 @@ path = "$CONFIG/**"
[[permission]]
identifier = "scope-config"
description = "This scope permits access to all files and list content of top level directories in the `$CONFIG`folder."
description = "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder."
[[permission.scope.allow]]
path = "$CONFIG"
@@ -16,7 +16,7 @@ path = "$DATA/**"
[[permission]]
identifier = "scope-data"
description = "This scope permits access to all files and list content of top level directories in the `$DATA`folder."
description = "This scope permits access to all files and list content of top level directories in the `$DATA` folder."
[[permission.scope.allow]]
path = "$DATA"
@@ -16,7 +16,7 @@ path = "$DESKTOP/**"
[[permission]]
identifier = "scope-desktop"
description = "This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder."
description = "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder."
[[permission.scope.allow]]
path = "$DESKTOP"
@@ -16,7 +16,7 @@ path = "$DOCUMENT/**"
[[permission]]
identifier = "scope-document"
description = "This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder."
description = "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder."
[[permission.scope.allow]]
path = "$DOCUMENT"
@@ -16,7 +16,7 @@ path = "$DOWNLOAD/**"
[[permission]]
identifier = "scope-download"
description = "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder."
description = "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder."
[[permission.scope.allow]]
path = "$DOWNLOAD"
@@ -16,7 +16,7 @@ path = "$EXE/**"
[[permission]]
identifier = "scope-exe"
description = "This scope permits access to all files and list content of top level directories in the `$EXE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$EXE` folder."
[[permission.scope.allow]]
path = "$EXE"
@@ -16,7 +16,7 @@ path = "$FONT/**"
[[permission]]
identifier = "scope-font"
description = "This scope permits access to all files and list content of top level directories in the `$FONT`folder."
description = "This scope permits access to all files and list content of top level directories in the `$FONT` folder."
[[permission.scope.allow]]
path = "$FONT"
@@ -16,7 +16,7 @@ path = "$HOME/**"
[[permission]]
identifier = "scope-home"
description = "This scope permits access to all files and list content of top level directories in the `$HOME`folder."
description = "This scope permits access to all files and list content of top level directories in the `$HOME` folder."
[[permission.scope.allow]]
path = "$HOME"
@@ -16,7 +16,7 @@ path = "$LOCALDATA/**"
[[permission]]
identifier = "scope-localdata"
description = "This scope permits access to all files and list content of top level directories in the `$LOCALDATA`folder."
description = "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder."
[[permission.scope.allow]]
path = "$LOCALDATA"
@@ -16,7 +16,7 @@ path = "$LOG/**"
[[permission]]
identifier = "scope-log"
description = "This scope permits access to all files and list content of top level directories in the `$LOG`folder."
description = "This scope permits access to all files and list content of top level directories in the `$LOG` folder."
[[permission.scope.allow]]
path = "$LOG"
@@ -16,7 +16,7 @@ path = "$PICTURE/**"
[[permission]]
identifier = "scope-picture"
description = "This scope permits access to all files and list content of top level directories in the `$PICTURE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder."
[[permission.scope.allow]]
path = "$PICTURE"
@@ -16,7 +16,7 @@ path = "$PUBLIC/**"
[[permission]]
identifier = "scope-public"
description = "This scope permits access to all files and list content of top level directories in the `$PUBLIC`folder."
description = "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder."
[[permission.scope.allow]]
path = "$PUBLIC"
@@ -16,7 +16,7 @@ path = "$RESOURCE/**"
[[permission]]
identifier = "scope-resource"
description = "This scope permits access to all files and list content of top level directories in the `$RESOURCE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder."
[[permission.scope.allow]]
path = "$RESOURCE"
@@ -16,7 +16,7 @@ path = "$RUNTIME/**"
[[permission]]
identifier = "scope-runtime"
description = "This scope permits access to all files and list content of top level directories in the `$RUNTIME`folder."
description = "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder."
[[permission.scope.allow]]
path = "$RUNTIME"
@@ -16,7 +16,7 @@ path = "$TEMP/**"
[[permission]]
identifier = "scope-temp"
description = "This scope permits access to all files and list content of top level directories in the `$TEMP`folder."
description = "This scope permits access to all files and list content of top level directories in the `$TEMP` folder."
[[permission.scope.allow]]
path = "$TEMP"
@@ -16,7 +16,7 @@ path = "$TEMPLATE/**"
[[permission]]
identifier = "scope-template"
description = "This scope permits access to all files and list content of top level directories in the `$TEMPLATE`folder."
description = "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder."
[[permission.scope.allow]]
path = "$TEMPLATE"
@@ -16,7 +16,7 @@ path = "$VIDEO/**"
[[permission]]
identifier = "scope-video"
description = "This scope permits access to all files and list content of top level directories in the `$VIDEO`folder."
description = "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder."
[[permission.scope.allow]]
path = "$VIDEO"
@@ -47,7 +47,7 @@ On Windows the webview data folder access is denied.
</td>
<td>
This allows full recursive read access to the complete `$APP` folder, files and subdirectories.
This allows full recursive read access to the complete application folders, files and subdirectories.
</td>
</tr>
@@ -60,7 +60,7 @@ This allows full recursive read access to the complete `$APP` folder, files and
</td>
<td>
This allows full recursive write access to the complete `$APP` folder, files and subdirectories.
This allows full recursive write access to the complete application folders, files and subdirectories.
</td>
</tr>
@@ -73,7 +73,7 @@ This allows full recursive write access to the complete `$APP` folder, files and
</td>
<td>
This allows non-recursive read access to the `$APP` folder.
This allows non-recursive read access to the application folders.
</td>
</tr>
@@ -86,7 +86,7 @@ This allows non-recursive read access to the `$APP` folder.
</td>
<td>
This allows non-recursive write access to the `$APP` folder.
This allows non-recursive write access to the application folders.
</td>
</tr>
@@ -99,7 +99,7 @@ This allows non-recursive write access to the `$APP` folder.
</td>
<td>
This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics.
This allows full recursive read access to metadata of the application folders, including file listing and statistics.
</td>
</tr>
@@ -112,7 +112,7 @@ This allows full recursive read access to metadata of the `$APP` folder, includi
</td>
<td>
This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics.
This allows non-recursive read access to metadata of the application folders, including file listing and statistics.
</td>
</tr>
@@ -125,7 +125,7 @@ This allows non-recursive read access to metadata of the `$APP` folder, includin
</td>
<td>
This scope permits recursive access to the complete `$APP` folder, including sub directories and files.
This scope permits recursive access to the complete application folders, including sub directories and files.
</td>
</tr>
@@ -138,7 +138,7 @@ This scope permits recursive access to the complete `$APP` folder, including sub
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APP`folder.
This scope permits access to all files and list content of top level directories in the application folders.
</td>
</tr>
@@ -151,7 +151,7 @@ This scope permits access to all files and list content of top level directories
</td>
<td>
This scope permits to list all files and folders in the `$APP`folder.
This scope permits to list all files and folders in the application directories.
</td>
</tr>
@@ -255,7 +255,7 @@ This scope permits recursive access to the complete `$APPCACHE` folder, includin
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APPCACHE`folder.
This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.
</td>
</tr>
@@ -372,7 +372,7 @@ This scope permits recursive access to the complete `$APPCONFIG` folder, includi
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APPCONFIG`folder.
This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.
</td>
</tr>
@@ -489,7 +489,7 @@ This scope permits recursive access to the complete `$APPDATA` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APPDATA`folder.
This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.
</td>
</tr>
@@ -606,7 +606,7 @@ This scope permits recursive access to the complete `$APPLOCALDATA` folder, incl
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA`folder.
This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.
</td>
</tr>
@@ -723,7 +723,7 @@ This scope permits recursive access to the complete `$APPLOG` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$APPLOG`folder.
This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.
</td>
</tr>
@@ -840,7 +840,7 @@ This scope permits recursive access to the complete `$AUDIO` folder, including s
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$AUDIO`folder.
This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.
</td>
</tr>
@@ -957,7 +957,7 @@ This scope permits recursive access to the complete `$CACHE` folder, including s
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$CACHE`folder.
This scope permits access to all files and list content of top level directories in the `$CACHE` folder.
</td>
</tr>
@@ -1074,7 +1074,7 @@ This scope permits recursive access to the complete `$CONFIG` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$CONFIG`folder.
This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.
</td>
</tr>
@@ -1191,7 +1191,7 @@ This scope permits recursive access to the complete `$DATA` folder, including su
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$DATA`folder.
This scope permits access to all files and list content of top level directories in the `$DATA` folder.
</td>
</tr>
@@ -1308,7 +1308,7 @@ This scope permits recursive access to the complete `$DESKTOP` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$DESKTOP`folder.
This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.
</td>
</tr>
@@ -1425,7 +1425,7 @@ This scope permits recursive access to the complete `$DOCUMENT` folder, includin
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$DOCUMENT`folder.
This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.
</td>
</tr>
@@ -1542,7 +1542,7 @@ This scope permits recursive access to the complete `$DOWNLOAD` folder, includin
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$DOWNLOAD`folder.
This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.
</td>
</tr>
@@ -1659,7 +1659,7 @@ This scope permits recursive access to the complete `$EXE` folder, including sub
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$EXE`folder.
This scope permits access to all files and list content of top level directories in the `$EXE` folder.
</td>
</tr>
@@ -1776,7 +1776,7 @@ This scope permits recursive access to the complete `$FONT` folder, including su
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$FONT`folder.
This scope permits access to all files and list content of top level directories in the `$FONT` folder.
</td>
</tr>
@@ -1893,7 +1893,7 @@ This scope permits recursive access to the complete `$HOME` folder, including su
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$HOME`folder.
This scope permits access to all files and list content of top level directories in the `$HOME` folder.
</td>
</tr>
@@ -2010,7 +2010,7 @@ This scope permits recursive access to the complete `$LOCALDATA` folder, includi
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$LOCALDATA`folder.
This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.
</td>
</tr>
@@ -2127,7 +2127,7 @@ This scope permits recursive access to the complete `$LOG` folder, including sub
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$LOG`folder.
This scope permits access to all files and list content of top level directories in the `$LOG` folder.
</td>
</tr>
@@ -2244,7 +2244,7 @@ This scope permits recursive access to the complete `$PICTURE` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$PICTURE`folder.
This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.
</td>
</tr>
@@ -2361,7 +2361,7 @@ This scope permits recursive access to the complete `$PUBLIC` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$PUBLIC`folder.
This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.
</td>
</tr>
@@ -2478,7 +2478,7 @@ This scope permits recursive access to the complete `$RESOURCE` folder, includin
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$RESOURCE`folder.
This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.
</td>
</tr>
@@ -2595,7 +2595,7 @@ This scope permits recursive access to the complete `$RUNTIME` folder, including
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$RUNTIME`folder.
This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.
</td>
</tr>
@@ -2712,7 +2712,7 @@ This scope permits recursive access to the complete `$TEMP` folder, including su
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$TEMP`folder.
This scope permits access to all files and list content of top level directories in the `$TEMP` folder.
</td>
</tr>
@@ -2829,7 +2829,7 @@ This scope permits recursive access to the complete `$TEMPLATE` folder, includin
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$TEMPLATE`folder.
This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.
</td>
</tr>
@@ -2946,7 +2946,7 @@ This scope permits recursive access to the complete `$VIDEO` folder, including s
</td>
<td>
This scope permits access to all files and list content of top level directories in the `$VIDEO`folder.
This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.
</td>
</tr>
@@ -5,19 +5,4 @@ identifier = "create-app-specific-dirs"
description = """
This permissions allows to create the application specific directories.
"""
commands.allow = ["mkdir"]
[[permission.scope.allow]]
path = "$APPCONFIG"
[[permission.scope.allow]]
path = "$APPDATA"
[[permission.scope.allow]]
path = "$APPLOCALDATA"
[[permission.scope.allow]]
path = "$APPCACHE"
[[permission.scope.allow]]
path = "$APPLOG"
commands.allow = ["mkdir", "scope-app-index"]
@@ -13,19 +13,5 @@ commands.allow = [
"read_text_file_lines",
"read_text_file_lines_next",
"exists",
"scope-app-recursive",
]
[[permission.scope.allow]]
path = "$APPCONFIG/**"
[[permission.scope.allow]]
path = "$APPDATA/**"
[[permission.scope.allow]]
path = "$APPLOCALDATA/**"
[[permission.scope.allow]]
path = "$APPCACHE/**"
[[permission.scope.allow]]
path = "$APPLOG/**"
File diff suppressed because it is too large Load Diff
@@ -295,88 +295,64 @@
"type": "string",
"oneOf": [
{
"description": "allow-check-permissions -> Enables the check_permissions command without any pre-configured scope.",
"description": "Enables the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-check-permissions"
]
"const": "allow-check-permissions"
},
{
"description": "deny-check-permissions -> Denies the check_permissions command without any pre-configured scope.",
"description": "Denies the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-check-permissions"
]
"const": "deny-check-permissions"
},
{
"description": "allow-clear-permissions -> Enables the clear_permissions command without any pre-configured scope.",
"description": "Enables the clear_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-clear-permissions"
]
"const": "allow-clear-permissions"
},
{
"description": "deny-clear-permissions -> Denies the clear_permissions command without any pre-configured scope.",
"description": "Denies the clear_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-clear-permissions"
]
"const": "deny-clear-permissions"
},
{
"description": "allow-clear-positions -> Enables the clear_positions command without any pre-configured scope.",
"description": "Enables the clear_positions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-clear-positions"
]
"const": "allow-clear-positions"
},
{
"description": "deny-clear-positions -> Denies the clear_positions command without any pre-configured scope.",
"description": "Denies the clear_positions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-clear-positions"
]
"const": "deny-clear-positions"
},
{
"description": "allow-clear-watch -> Enables the clear_watch command without any pre-configured scope.",
"description": "Enables the clear_watch command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-clear-watch"
]
"const": "allow-clear-watch"
},
{
"description": "deny-clear-watch -> Denies the clear_watch command without any pre-configured scope.",
"description": "Denies the clear_watch command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-clear-watch"
]
"const": "deny-clear-watch"
},
{
"description": "allow-get-current-position -> Enables the get_current_position command without any pre-configured scope.",
"description": "Enables the get_current_position command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-get-current-position"
]
"const": "allow-get-current-position"
},
{
"description": "deny-get-current-position -> Denies the get_current_position command without any pre-configured scope.",
"description": "Denies the get_current_position command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-get-current-position"
]
"const": "deny-get-current-position"
},
{
"description": "allow-watch-position -> Enables the watch_position command without any pre-configured scope.",
"description": "Enables the watch_position command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-watch-position"
]
"const": "allow-watch-position"
},
{
"description": "deny-watch-position -> Denies the watch_position command without any pre-configured scope.",
"description": "Denies the watch_position command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-watch-position"
]
"const": "deny-watch-position"
}
]
}
@@ -295,81 +295,59 @@
"type": "string",
"oneOf": [
{
"description": "allow-is-registered -> Enables the is_registered command without any pre-configured scope.",
"description": "Enables the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-is-registered"
]
"const": "allow-is-registered"
},
{
"description": "deny-is-registered -> Denies the is_registered command without any pre-configured scope.",
"description": "Denies the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-is-registered"
]
"const": "deny-is-registered"
},
{
"description": "allow-register -> Enables the register command without any pre-configured scope.",
"description": "Enables the register command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-register"
]
"const": "allow-register"
},
{
"description": "deny-register -> Denies the register command without any pre-configured scope.",
"description": "Denies the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-register"
]
"const": "deny-register"
},
{
"description": "allow-register-all -> Enables the register_all command without any pre-configured scope.",
"description": "Enables the register_all command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-register-all"
]
"const": "allow-register-all"
},
{
"description": "deny-register-all -> Denies the register_all command without any pre-configured scope.",
"description": "Denies the register_all command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-register-all"
]
"const": "deny-register-all"
},
{
"description": "allow-unregister -> Enables the unregister command without any pre-configured scope.",
"description": "Enables the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-unregister"
]
"const": "allow-unregister"
},
{
"description": "deny-unregister -> Denies the unregister command without any pre-configured scope.",
"description": "Denies the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-unregister"
]
"const": "deny-unregister"
},
{
"description": "allow-unregister-all -> Enables the unregister_all command without any pre-configured scope.",
"description": "Enables the unregister_all command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-unregister-all"
]
"const": "allow-unregister-all"
},
{
"description": "deny-unregister-all -> Denies the unregister_all command without any pre-configured scope.",
"description": "Denies the unregister_all command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-unregister-all"
]
"const": "deny-unregister-all"
},
{
"description": "default -> No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",
"description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+16 -32
View File
@@ -295,60 +295,44 @@
"type": "string",
"oneOf": [
{
"description": "allow-impact-feedback -> Enables the impact_feedback command without any pre-configured scope.",
"description": "Enables the impact_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-impact-feedback"
]
"const": "allow-impact-feedback"
},
{
"description": "deny-impact-feedback -> Denies the impact_feedback command without any pre-configured scope.",
"description": "Denies the impact_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-impact-feedback"
]
"const": "deny-impact-feedback"
},
{
"description": "allow-notification-feedback -> Enables the notification_feedback command without any pre-configured scope.",
"description": "Enables the notification_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-notification-feedback"
]
"const": "allow-notification-feedback"
},
{
"description": "deny-notification-feedback -> Denies the notification_feedback command without any pre-configured scope.",
"description": "Denies the notification_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-notification-feedback"
]
"const": "deny-notification-feedback"
},
{
"description": "allow-selection-feedback -> Enables the selection_feedback command without any pre-configured scope.",
"description": "Enables the selection_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-selection-feedback"
]
"const": "allow-selection-feedback"
},
{
"description": "deny-selection-feedback -> Denies the selection_feedback command without any pre-configured scope.",
"description": "Denies the selection_feedback command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-selection-feedback"
]
"const": "deny-selection-feedback"
},
{
"description": "allow-vibrate -> Enables the vibrate command without any pre-configured scope.",
"description": "Enables the vibrate command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-vibrate"
]
"const": "allow-vibrate"
},
{
"description": "deny-vibrate -> Denies the vibrate command without any pre-configured scope.",
"description": "Denies the vibrate command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-vibrate"
]
"const": "deny-vibrate"
}
]
}
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## \[2.0.0-rc.5]
### Dependencies
- Upgraded to `fs@2.0.0-rc.5`
## \[2.0.0-rc.4]
### Dependencies
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-http"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
description = "Access an HTTP client written in Rust."
edition = { workspace = true }
authors = { workspace = true }
@@ -27,7 +27,7 @@ serde_json = { workspace = true }
tauri = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1", features = ["sync", "macros"] }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.4" }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.5" }
urlpattern = "0.3"
regex = "1"
http = "1"
+18 -36
View File
@@ -295,67 +295,49 @@
"type": "string",
"oneOf": [
{
"description": "allow-fetch -> Enables the fetch command without any pre-configured scope.",
"description": "Enables the fetch command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-fetch"
]
"const": "allow-fetch"
},
{
"description": "deny-fetch -> Denies the fetch command without any pre-configured scope.",
"description": "Denies the fetch command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-fetch"
]
"const": "deny-fetch"
},
{
"description": "allow-fetch-cancel -> Enables the fetch_cancel command without any pre-configured scope.",
"description": "Enables the fetch_cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-fetch-cancel"
]
"const": "allow-fetch-cancel"
},
{
"description": "deny-fetch-cancel -> Denies the fetch_cancel command without any pre-configured scope.",
"description": "Denies the fetch_cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-fetch-cancel"
]
"const": "deny-fetch-cancel"
},
{
"description": "allow-fetch-read-body -> Enables the fetch_read_body command without any pre-configured scope.",
"description": "Enables the fetch_read_body command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-fetch-read-body"
]
"const": "allow-fetch-read-body"
},
{
"description": "deny-fetch-read-body -> Denies the fetch_read_body command without any pre-configured scope.",
"description": "Denies the fetch_read_body command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-fetch-read-body"
]
"const": "deny-fetch-read-body"
},
{
"description": "allow-fetch-send -> Enables the fetch_send command without any pre-configured scope.",
"description": "Enables the fetch_send command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-fetch-send"
]
"const": "allow-fetch-send"
},
{
"description": "deny-fetch-send -> Denies the fetch_send command without any pre-configured scope.",
"description": "Denies the fetch_send command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-fetch-send"
]
"const": "deny-fetch-send"
},
{
"description": "default -> This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",
"description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+6 -12
View File
@@ -295,25 +295,19 @@
"type": "string",
"oneOf": [
{
"description": "allow-log -> Enables the log command without any pre-configured scope.",
"description": "Enables the log command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-log"
]
"const": "allow-log"
},
{
"description": "deny-log -> Denies the log command without any pre-configured scope.",
"description": "Denies the log command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-log"
]
"const": "deny-log"
},
{
"description": "default -> Allows the log command",
"description": "Allows the log command",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+14 -28
View File
@@ -295,53 +295,39 @@
"type": "string",
"oneOf": [
{
"description": "allow-is-available -> Enables the is_available command without any pre-configured scope.",
"description": "Enables the is_available command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-is-available"
]
"const": "allow-is-available"
},
{
"description": "deny-is-available -> Denies the is_available command without any pre-configured scope.",
"description": "Denies the is_available command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-is-available"
]
"const": "deny-is-available"
},
{
"description": "allow-scan -> Enables the scan command without any pre-configured scope.",
"description": "Enables the scan command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-scan"
]
"const": "allow-scan"
},
{
"description": "deny-scan -> Denies the scan command without any pre-configured scope.",
"description": "Denies the scan command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-scan"
]
"const": "deny-scan"
},
{
"description": "allow-write -> Enables the write command without any pre-configured scope.",
"description": "Enables the write command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-write"
]
"const": "allow-write"
},
{
"description": "deny-write -> Denies the write command without any pre-configured scope.",
"description": "Denies the write command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-write"
]
"const": "deny-write"
},
{
"description": "default -> This permission set configures what kind of\noperations are available from the nfc plugin.\n\n#### Granted Permissions\n\nChecking if the NFC functionality is available\nand scanning nearby tags is allowed.\nWriting to tags needs to be manually enabled.\n\n",
"description": "This permission set configures what kind of\noperations are available from the nfc plugin.\n\n#### Granted Permissions\n\nChecking if the NFC functionality is available\nand scanning nearby tags is allowed.\nWriting to tags needs to be manually enabled.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## \[2.0.0-rc.5]
- [`fb85e5dd`](https://github.com/tauri-apps/plugins-workspace/commit/fb85e5dd76688f3ae836890160f9bde843b70167) ([#1785](https://github.com/tauri-apps/plugins-workspace/pull/1785)) Update to tauri 2.0.0-rc.12.
## \[2.0.0-rc.4]
- [`3d301c65`](https://github.com/tauri-apps/plugins-workspace/commit/3d301c654e6f5e7f343e0e0cbb57648002e98f04) ([#1737](https://github.com/tauri-apps/plugins-workspace/pull/1737) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) The notification body is now optional on iOS to match the other platforms.
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-notification"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
description = "Send desktop and mobile notifications on your Tauri application."
edition = { workspace = true }
authors = { workspace = true }
@@ -295,235 +295,169 @@
"type": "string",
"oneOf": [
{
"description": "allow-batch -> Enables the batch command without any pre-configured scope.",
"description": "Enables the batch command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-batch"
]
"const": "allow-batch"
},
{
"description": "deny-batch -> Denies the batch command without any pre-configured scope.",
"description": "Denies the batch command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-batch"
]
"const": "deny-batch"
},
{
"description": "allow-cancel -> Enables the cancel command without any pre-configured scope.",
"description": "Enables the cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-cancel"
]
"const": "allow-cancel"
},
{
"description": "deny-cancel -> Denies the cancel command without any pre-configured scope.",
"description": "Denies the cancel command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-cancel"
]
"const": "deny-cancel"
},
{
"description": "allow-check-permissions -> Enables the check_permissions command without any pre-configured scope.",
"description": "Enables the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-check-permissions"
]
"const": "allow-check-permissions"
},
{
"description": "deny-check-permissions -> Denies the check_permissions command without any pre-configured scope.",
"description": "Denies the check_permissions command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-check-permissions"
]
"const": "deny-check-permissions"
},
{
"description": "allow-create-channel -> Enables the create_channel command without any pre-configured scope.",
"description": "Enables the create_channel command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-create-channel"
]
"const": "allow-create-channel"
},
{
"description": "deny-create-channel -> Denies the create_channel command without any pre-configured scope.",
"description": "Denies the create_channel command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-create-channel"
]
"const": "deny-create-channel"
},
{
"description": "allow-delete-channel -> Enables the delete_channel command without any pre-configured scope.",
"description": "Enables the delete_channel command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-delete-channel"
]
"const": "allow-delete-channel"
},
{
"description": "deny-delete-channel -> Denies the delete_channel command without any pre-configured scope.",
"description": "Denies the delete_channel command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-delete-channel"
]
"const": "deny-delete-channel"
},
{
"description": "allow-get-active -> Enables the get_active command without any pre-configured scope.",
"description": "Enables the get_active command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-get-active"
]
"const": "allow-get-active"
},
{
"description": "deny-get-active -> Denies the get_active command without any pre-configured scope.",
"description": "Denies the get_active command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-get-active"
]
"const": "deny-get-active"
},
{
"description": "allow-get-pending -> Enables the get_pending command without any pre-configured scope.",
"description": "Enables the get_pending command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-get-pending"
]
"const": "allow-get-pending"
},
{
"description": "deny-get-pending -> Denies the get_pending command without any pre-configured scope.",
"description": "Denies the get_pending command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-get-pending"
]
"const": "deny-get-pending"
},
{
"description": "allow-is-permission-granted -> Enables the is_permission_granted command without any pre-configured scope.",
"description": "Enables the is_permission_granted command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-is-permission-granted"
]
"const": "allow-is-permission-granted"
},
{
"description": "deny-is-permission-granted -> Denies the is_permission_granted command without any pre-configured scope.",
"description": "Denies the is_permission_granted command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-is-permission-granted"
]
"const": "deny-is-permission-granted"
},
{
"description": "allow-list-channels -> Enables the list_channels command without any pre-configured scope.",
"description": "Enables the list_channels command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-list-channels"
]
"const": "allow-list-channels"
},
{
"description": "deny-list-channels -> Denies the list_channels command without any pre-configured scope.",
"description": "Denies the list_channels command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-list-channels"
]
"const": "deny-list-channels"
},
{
"description": "allow-notify -> Enables the notify command without any pre-configured scope.",
"description": "Enables the notify command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-notify"
]
"const": "allow-notify"
},
{
"description": "deny-notify -> Denies the notify command without any pre-configured scope.",
"description": "Denies the notify command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-notify"
]
"const": "deny-notify"
},
{
"description": "allow-permission-state -> Enables the permission_state command without any pre-configured scope.",
"description": "Enables the permission_state command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-permission-state"
]
"const": "allow-permission-state"
},
{
"description": "deny-permission-state -> Denies the permission_state command without any pre-configured scope.",
"description": "Denies the permission_state command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-permission-state"
]
"const": "deny-permission-state"
},
{
"description": "allow-register-action-types -> Enables the register_action_types command without any pre-configured scope.",
"description": "Enables the register_action_types command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-register-action-types"
]
"const": "allow-register-action-types"
},
{
"description": "deny-register-action-types -> Denies the register_action_types command without any pre-configured scope.",
"description": "Denies the register_action_types command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-register-action-types"
]
"const": "deny-register-action-types"
},
{
"description": "allow-register-listener -> Enables the register_listener command without any pre-configured scope.",
"description": "Enables the register_listener command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-register-listener"
]
"const": "allow-register-listener"
},
{
"description": "deny-register-listener -> Denies the register_listener command without any pre-configured scope.",
"description": "Denies the register_listener command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-register-listener"
]
"const": "deny-register-listener"
},
{
"description": "allow-remove-active -> Enables the remove_active command without any pre-configured scope.",
"description": "Enables the remove_active command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-remove-active"
]
"const": "allow-remove-active"
},
{
"description": "deny-remove-active -> Denies the remove_active command without any pre-configured scope.",
"description": "Denies the remove_active command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-remove-active"
]
"const": "deny-remove-active"
},
{
"description": "allow-request-permission -> Enables the request_permission command without any pre-configured scope.",
"description": "Enables the request_permission command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-request-permission"
]
"const": "allow-request-permission"
},
{
"description": "deny-request-permission -> Denies the request_permission command without any pre-configured scope.",
"description": "Denies the request_permission command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-request-permission"
]
"const": "deny-request-permission"
},
{
"description": "allow-show -> Enables the show command without any pre-configured scope.",
"description": "Enables the show command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-show"
]
"const": "allow-show"
},
{
"description": "deny-show -> Denies the show command without any pre-configured scope.",
"description": "Denies the show command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-show"
]
"const": "deny-show"
},
{
"description": "default -> This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",
"description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+1 -1
View File
@@ -15,7 +15,7 @@ pub(crate) async fn is_permission_granted<R: Runtime>(
match state {
PermissionState::Granted => Ok(Some(true)),
PermissionState::Denied => Ok(Some(false)),
PermissionState::Unknown | PermissionState::PromptWithRationale => Ok(None),
PermissionState::Prompt | PermissionState::PromptWithRationale => Ok(None),
}
}
+34 -68
View File
@@ -295,123 +295,89 @@
"type": "string",
"oneOf": [
{
"description": "allow-arch -> Enables the arch command without any pre-configured scope.",
"description": "Enables the arch command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-arch"
]
"const": "allow-arch"
},
{
"description": "deny-arch -> Denies the arch command without any pre-configured scope.",
"description": "Denies the arch command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-arch"
]
"const": "deny-arch"
},
{
"description": "allow-exe-extension -> Enables the exe_extension command without any pre-configured scope.",
"description": "Enables the exe_extension command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-exe-extension"
]
"const": "allow-exe-extension"
},
{
"description": "deny-exe-extension -> Denies the exe_extension command without any pre-configured scope.",
"description": "Denies the exe_extension command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-exe-extension"
]
"const": "deny-exe-extension"
},
{
"description": "allow-family -> Enables the family command without any pre-configured scope.",
"description": "Enables the family command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-family"
]
"const": "allow-family"
},
{
"description": "deny-family -> Denies the family command without any pre-configured scope.",
"description": "Denies the family command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-family"
]
"const": "deny-family"
},
{
"description": "allow-hostname -> Enables the hostname command without any pre-configured scope.",
"description": "Enables the hostname command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-hostname"
]
"const": "allow-hostname"
},
{
"description": "deny-hostname -> Denies the hostname command without any pre-configured scope.",
"description": "Denies the hostname command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-hostname"
]
"const": "deny-hostname"
},
{
"description": "allow-locale -> Enables the locale command without any pre-configured scope.",
"description": "Enables the locale command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-locale"
]
"const": "allow-locale"
},
{
"description": "deny-locale -> Denies the locale command without any pre-configured scope.",
"description": "Denies the locale command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-locale"
]
"const": "deny-locale"
},
{
"description": "allow-os-type -> Enables the os_type command without any pre-configured scope.",
"description": "Enables the os_type command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-os-type"
]
"const": "allow-os-type"
},
{
"description": "deny-os-type -> Denies the os_type command without any pre-configured scope.",
"description": "Denies the os_type command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-os-type"
]
"const": "deny-os-type"
},
{
"description": "allow-platform -> Enables the platform command without any pre-configured scope.",
"description": "Enables the platform command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-platform"
]
"const": "allow-platform"
},
{
"description": "deny-platform -> Denies the platform command without any pre-configured scope.",
"description": "Denies the platform command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-platform"
]
"const": "deny-platform"
},
{
"description": "allow-version -> Enables the version command without any pre-configured scope.",
"description": "Enables the version command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-version"
]
"const": "allow-version"
},
{
"description": "deny-version -> Denies the version command without any pre-configured scope.",
"description": "Denies the version command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-version"
]
"const": "deny-version"
},
{
"description": "default -> This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",
"description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## \[2.0.0-rc.5]
### Dependencies
- Upgraded to `fs@2.0.0-rc.5`
## \[2.0.0-rc.4]
### Dependencies
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-persisted-scope"
version = "2.0.0-rc.4"
version = "2.0.0-rc.5"
description = "Save filesystem and asset scopes and restore them when the app is reopened."
authors = { workspace = true }
license = { workspace = true }
@@ -20,7 +20,7 @@ log = { workspace = true }
thiserror = { workspace = true }
aho-corasick = "1"
bincode = "1"
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.4" }
tauri-plugin-fs = { path = "../fs", version = "2.0.0-rc.5" }
[features]
protocol-asset = ["tauri/protocol-asset"]
@@ -295,25 +295,19 @@
"type": "string",
"oneOf": [
{
"description": "allow-move-window -> Enables the move_window command without any pre-configured scope.",
"description": "Enables the move_window command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-move-window"
]
"const": "allow-move-window"
},
{
"description": "deny-move-window -> Denies the move_window command without any pre-configured scope.",
"description": "Denies the move_window command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-move-window"
]
"const": "deny-move-window"
},
{
"description": "default -> Allows the move_window command",
"description": "Allows the move_window command",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+10 -20
View File
@@ -295,39 +295,29 @@
"type": "string",
"oneOf": [
{
"description": "allow-exit -> Enables the exit command without any pre-configured scope.",
"description": "Enables the exit command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-exit"
]
"const": "allow-exit"
},
{
"description": "deny-exit -> Denies the exit command without any pre-configured scope.",
"description": "Denies the exit command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-exit"
]
"const": "deny-exit"
},
{
"description": "allow-restart -> Enables the restart command without any pre-configured scope.",
"description": "Enables the restart command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-restart"
]
"const": "allow-restart"
},
{
"description": "deny-restart -> Denies the restart command without any pre-configured scope.",
"description": "Denies the restart command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-restart"
]
"const": "deny-restart"
},
{
"description": "default -> This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+22 -44
View File
@@ -295,81 +295,59 @@
"type": "string",
"oneOf": [
{
"description": "allow-execute -> Enables the execute command without any pre-configured scope.",
"description": "Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-execute"
]
"const": "allow-execute"
},
{
"description": "deny-execute -> Denies the execute command without any pre-configured scope.",
"description": "Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-execute"
]
"const": "deny-execute"
},
{
"description": "allow-kill -> Enables the kill command without any pre-configured scope.",
"description": "Enables the kill command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-kill"
]
"const": "allow-kill"
},
{
"description": "deny-kill -> Denies the kill command without any pre-configured scope.",
"description": "Denies the kill command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-kill"
]
"const": "deny-kill"
},
{
"description": "allow-open -> Enables the open command without any pre-configured scope.",
"description": "Enables the open command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-open"
]
"const": "allow-open"
},
{
"description": "deny-open -> Denies the open command without any pre-configured scope.",
"description": "Denies the open command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-open"
]
"const": "deny-open"
},
{
"description": "allow-spawn -> Enables the spawn command without any pre-configured scope.",
"description": "Enables the spawn command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-spawn"
]
"const": "allow-spawn"
},
{
"description": "deny-spawn -> Denies the spawn command without any pre-configured scope.",
"description": "Denies the spawn command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-spawn"
]
"const": "deny-spawn"
},
{
"description": "allow-stdin-write -> Enables the stdin_write command without any pre-configured scope.",
"description": "Enables the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-stdin-write"
]
"const": "allow-stdin-write"
},
{
"description": "deny-stdin-write -> Denies the stdin_write command without any pre-configured scope.",
"description": "Denies the stdin_write command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-stdin-write"
]
"const": "deny-stdin-write"
},
{
"description": "default -> This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct Entry {
/// It can start with a variable that resolves to a system base directory.
/// The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`,
/// `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`,
/// `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`,
/// `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`,
/// `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.
// use default just so the schema doesn't flag it as required
#[serde(rename = "cmd")]
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## \[2.0.0-rc.4]
### Dependencies
- Upgraded to `deep-link@2.0.0-rc.6`
## \[2.0.0-rc.3]
- [`b2269333`](https://github.com/tauri-apps/plugins-workspace/commit/b2269333e39afe32629a11763a8e25d0b12b132b) ([#1766](https://github.com/tauri-apps/plugins-workspace/pull/1766) by [@Legend-Master](https://github.com/tauri-apps/plugins-workspace/../../Legend-Master)) Put deep link integration behined a feature
+2 -2
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-single-instance"
version = "2.0.0-rc.3"
version = "2.0.0-rc.4"
description = "Ensure a single instance of your tauri app is running."
authors = { workspace = true }
license = { workspace = true }
@@ -19,7 +19,7 @@ serde_json = { workspace = true }
tauri = { workspace = true }
log = { workspace = true }
thiserror = { workspace = true }
tauri-plugin-deep-link = { path = "../deep-link", version = "2.0.0-rc.5", optional = true }
tauri-plugin-deep-link = { path = "../deep-link", version = "2.0.0-rc.6", optional = true }
semver = { version = "1", optional = true }
[target."cfg(target_os = \"windows\")".dependencies.windows-sys]
@@ -9,6 +9,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.13"
"@tauri-apps/cli": "2.0.0-rc.14"
}
}
+18 -36
View File
@@ -295,67 +295,49 @@
"type": "string",
"oneOf": [
{
"description": "allow-close -> Enables the close command without any pre-configured scope.",
"description": "Enables the close command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-close"
]
"const": "allow-close"
},
{
"description": "deny-close -> Denies the close command without any pre-configured scope.",
"description": "Denies the close command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-close"
]
"const": "deny-close"
},
{
"description": "allow-execute -> Enables the execute command without any pre-configured scope.",
"description": "Enables the execute command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-execute"
]
"const": "allow-execute"
},
{
"description": "deny-execute -> Denies the execute command without any pre-configured scope.",
"description": "Denies the execute command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-execute"
]
"const": "deny-execute"
},
{
"description": "allow-load -> Enables the load command without any pre-configured scope.",
"description": "Enables the load command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-load"
]
"const": "allow-load"
},
{
"description": "deny-load -> Denies the load command without any pre-configured scope.",
"description": "Denies the load command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-load"
]
"const": "deny-load"
},
{
"description": "allow-select -> Enables the select command without any pre-configured scope.",
"description": "Enables the select command without any pre-configured scope.",
"type": "string",
"enum": [
"allow-select"
]
"const": "allow-select"
},
{
"description": "deny-select -> Denies the select command without any pre-configured scope.",
"description": "Denies the select command without any pre-configured scope.",
"type": "string",
"enum": [
"deny-select"
]
"const": "deny-select"
},
{
"description": "default -> # Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
"description": "# Tauri SQL Default Permissions\n\nThis permission set configures what kind of\ndatabase operations are available from the sql plugin.\n\n### Granted Permissions\n\nAll reading related operations are enabled.\nAlso allows to load or close a connection.\n\n",
"type": "string",
"enum": [
"default"
]
"const": "default"
}
]
}
@@ -8,7 +8,7 @@
"tauri": "tauri"
},
"devDependencies": {
"@tauri-apps/cli": "2.0.0-rc.13",
"@tauri-apps/cli": "2.0.0-rc.14",
"vite": "^5.0.12",
"typescript": "^5.3.3"
}

Some files were not shown because too many files have changed in this diff Show More