mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-14 14:27:48 +02:00
Compare commits
316 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0678af3a6c | |||
| 1d8662e71a | |||
| 5661cce795 | |||
| b665c9cbce | |||
| bd4544dbd7 | |||
| 381aed09a6 | |||
| c9ed72d846 | |||
| 7327602f15 | |||
| b0518206cd | |||
| 69e4c2e56f | |||
| 7581576a24 | |||
| 430bd6f4f3 | |||
| ec05513d89 | |||
| 5ac7a70694 | |||
| aff47992b3 | |||
| cfb3d74d9f | |||
| eeb37c7e10 | |||
| 584c4849bf | |||
| cb0a788d17 | |||
| db45dfaab3 | |||
| 43224c5d5c | |||
| f3749e4de8 | |||
| 9d7ae45b0e | |||
| 200f61c99d | |||
| 36121a2268 | |||
| bc834d4e77 | |||
| de8295301e | |||
| 0e18aaa02a | |||
| 6b6b6fc2e4 | |||
| b3e04cf95e | |||
| 01a8ba72b8 | |||
| e1d06b93b7 | |||
| d92a6f4439 | |||
| 54ec85bf50 | |||
| b25ce0d81b | |||
| 806404e96e | |||
| f0fb25a9b7 | |||
| 068b9a22f3 | |||
| 732244cb6d | |||
| 290616d8e3 | |||
| bd07784cce | |||
| dc47e99cb2 | |||
| 9fc73e06ea | |||
| a940ef6250 | |||
| 224108818d | |||
| 0bbda536c7 | |||
| e18ed3dc96 | |||
| 6b06dd0c8f | |||
| cd57dcdf04 | |||
| 58330f9ec1 | |||
| 463f5971eb | |||
| c8b78034a4 | |||
| 989bee8192 | |||
| fe0256c8c9 | |||
| 7685e30462 | |||
| 0d4d029011 | |||
| ecda84f8d5 | |||
| 021d23bef3 | |||
| eb1679b997 | |||
| 5c1b7917e4 | |||
| 6af3216fab | |||
| fa54f3cc9a | |||
| 56dde76889 | |||
| 89a7754bdf | |||
| 52a48dd80a | |||
| 1829c2806a | |||
| 723b9f7fa8 | |||
| 62b0d739bc | |||
| c776916f14 | |||
| d9de5b19d1 | |||
| b4efa58d5d | |||
| aea748ced7 | |||
| 8fecaba3f0 | |||
| f255343b54 | |||
| e045223660 | |||
| e94b089e51 | |||
| 6ea07297f4 | |||
| bd1ed5903f | |||
| 1fa4d30eab | |||
| f39586bcb4 | |||
| 5e20d7d339 | |||
| dbc1d9374d | |||
| 44e47fe98b | |||
| 04ebd0282e | |||
| f853774154 | |||
| e9977eb2f8 | |||
| 555cb07bfe | |||
| 1f16c64d67 | |||
| 9c7eb35967 | |||
| a9132161df | |||
| edf9a4f29d | |||
| 21387ac199 | |||
| 45f02f1ba8 | |||
| f976ab7cd4 | |||
| cbd930166c | |||
| a305b05cff | |||
| 3e5da59abc | |||
| 326df68839 | |||
| faa89850d0 | |||
| 8aacc312cf | |||
| 95986f1c4d | |||
| b115fd22e0 | |||
| cdd3aafdc6 | |||
| 961a13860e | |||
| 01e534a1c9 | |||
| 9f70233ebb | |||
| 78a4097d09 | |||
| 35373956ea | |||
| bf285d471d | |||
| 9f545c65ad | |||
| 37dbd4c38d | |||
| 2b53546ce5 | |||
| 293f363c0d | |||
| e3d41f4011 | |||
| 8638740223 | |||
| bb51a41d67 | |||
| 6698774f3f | |||
| c079d8c81b | |||
| 3db3b204b4 | |||
| cc29f7dbdb | |||
| 81c31b4114 | |||
| d3b9a60e31 | |||
| 2cb80325a0 | |||
| 4b3bc1ee13 | |||
| 5dcfdec03b | |||
| f79f2b79b3 | |||
| ce7750451d | |||
| 56406214a0 | |||
| 4c8ccf6767 | |||
| 1d85ae72b4 | |||
| 4aed0a48a2 | |||
| fa8ccec4f6 | |||
| 278755f1f5 | |||
| d229dd6661 | |||
| 86723a5372 | |||
| ed46dca74f | |||
| 5c97db96bd | |||
| 4210cf316a | |||
| 57e979adaf | |||
| 4a5ab18a22 | |||
| 1f9e7ab4a0 | |||
| 9144521b90 | |||
| 2b0cd3d882 | |||
| c967307706 | |||
| 27b258cf31 | |||
| 3dca7ff5ea | |||
| e39ea8ddf8 | |||
| 7768f245f9 | |||
| fe05b872aa | |||
| df1516da14 | |||
| 4aeee08cde | |||
| 69ee862fb7 | |||
| a70172dd93 | |||
| 37466eb87e | |||
| 500ff10fbd | |||
| 8d7689f6f9 | |||
| b0daeed1e8 | |||
| dbdd60a591 | |||
| 7e2fcc5e74 | |||
| dbe0277824 | |||
| ddb5ca188f | |||
| 7fc29c326b | |||
| cf832fe106 | |||
| 0e9541fe89 | |||
| f9bcc1c21d | |||
| 773b498392 | |||
| 3e620c6951 | |||
| a32e3200de | |||
| 815a7073bc | |||
| 772f2bc349 | |||
| 73d8562849 | |||
| 73364a8b96 | |||
| 066058f631 | |||
| c013fa52cd | |||
| 57d01bf82e | |||
| 7be37b1909 | |||
| dabac0eedf | |||
| c6a5b7ae47 | |||
| a2339195aa | |||
| 4cd81126fd | |||
| fc3667db6a | |||
| f39d362add | |||
| fe4ad4dd5c | |||
| 9c2fb9306e | |||
| d3c7ee5a61 | |||
| 719b651753 | |||
| 40ce253abf | |||
| 184f4edbbc | |||
| 8f857dc4e1 | |||
| bb836b2440 | |||
| 70136b1fe8 | |||
| 8cd4a39864 | |||
| 80af01181a | |||
| 62ce5df52c | |||
| 42607f0dbd | |||
| a04ea2f382 | |||
| 9dec9605ed | |||
| 160498dae5 | |||
| 6db4320e98 | |||
| cc63614f1e | |||
| 02111b9526 | |||
| 03fab3c6ad | |||
| 7b9fa6607b | |||
| 6a6c9daeb2 | |||
| cb96aa0627 | |||
| 1d7dc86ec3 | |||
| 35ea5956d0 | |||
| 14c858391d | |||
| a3b5396113 | |||
| 040004a6b9 | |||
| 69d45a06a6 | |||
| d95a1b382f | |||
| 24eb3398d0 | |||
| adbc333a0f | |||
| c873e4d6c7 | |||
| 4e37316af0 | |||
| b74ccb6639 | |||
| c290049051 | |||
| 509c23ed36 | |||
| 11d98e911e | |||
| 753c7be0a6 | |||
| bff722451d | |||
| 62dafda652 | |||
| 30295ecc8e | |||
| ea294c776a | |||
| 19aa220411 | |||
| 85c4b8b67a | |||
| ed682dd96e | |||
| c3c55d5b4e | |||
| 0d3b6b8aca | |||
| 67df245eee | |||
| 382fc3a7bf | |||
| 7c59242905 | |||
| da76481ad3 | |||
| 25aecc0074 | |||
| 58176114f9 | |||
| 4cc2e50d16 | |||
| e096f63bda | |||
| 01211ff075 | |||
| 9299c919c7 | |||
| c7f92ddf2f | |||
| 1adb912547 | |||
| 67405aed06 | |||
| 8cb4e3d14d | |||
| 056a458d30 | |||
| 9ca77efff2 | |||
| 70d99086de | |||
| 035a4824d6 | |||
| cd7549f22e | |||
| 38aedb45e3 | |||
| 32a5f92c8f | |||
| cf00900298 | |||
| 83f9899f78 | |||
| c5e8cd31ec | |||
| 0cdbde386f | |||
| 2985957afc | |||
| fe09260483 | |||
| 775f7b88ed | |||
| 39108ceacb | |||
| c00b00a93c | |||
| d2ea535a16 | |||
| eec61a8a6d | |||
| 7701cf4107 | |||
| 539b566fad | |||
| 3ffa47c0e8 | |||
| df5a6483c2 | |||
| 27d610387c | |||
| 71d755f5f5 | |||
| 7c442019e1 | |||
| 9b99416965 | |||
| 7de603ebff | |||
| 35d821cbf1 | |||
| 563ca73de0 | |||
| 27eb8c74af | |||
| 4aa61dcc9e | |||
| e6b6748085 | |||
| 90fef3ae2d | |||
| cc352416e5 | |||
| 5e73de50e7 | |||
| 46dfb75d92 | |||
| 3af968ce8f | |||
| 4f8df2f86b | |||
| 65ea3d9adf | |||
| 776ff9c97e | |||
| 5c883bdd33 | |||
| af2892f6a1 | |||
| a5792e220a | |||
| eef088dde4 | |||
| 8d00fc08f0 | |||
| c7336bc330 | |||
| 84208e0a53 | |||
| 2a28c81da6 | |||
| 56750d31e6 | |||
| 899c6262f8 | |||
| 6a19feca1d | |||
| ad5ec05e26 | |||
| b67dc85936 | |||
| b01da63d55 | |||
| aabb440159 | |||
| e1eb82fe92 | |||
| a18d442765 | |||
| c98545b3ae | |||
| 3df9bc73f8 | |||
| 9b2e9ab6c9 | |||
| e7b022d62e | |||
| 4195240f36 | |||
| a67f7cb7c8 | |||
| 3f7c4ddc96 | |||
| 12900556a0 | |||
| 4899ae007a | |||
| 3db81b4fe3 | |||
| bd4bf06e6c | |||
| f780e87ee3 | |||
| 537053d317 | |||
| 4f9e58d751 | |||
| e9a0803d95 |
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http-js": "patch"
|
||||
---
|
||||
|
||||
Include headers created by browser if not declared by user, which fixes missing headers like `Content-Type` when using `FormData`.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"clipboard-manager": "patch"
|
||||
---
|
||||
|
||||
Expose `Clipboard` struct
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"clipboard-manager": "minor"
|
||||
"clipboard-manager-js": "minor"
|
||||
---
|
||||
|
||||
Add support for `read_image` and `write_image` to the clipboard plugin (desktop).
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"clipboard-manager": "patch"
|
||||
---
|
||||
|
||||
Fix reading and writing text on Android and iOS.
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"clipboard-manager": "patch"
|
||||
---
|
||||
|
||||
Refactored the clipboard Rust APIs for more clarity and consistency:
|
||||
|
||||
- Changed `Clipboard::write_text` to take a string type instead of an enum.
|
||||
- Changed `Clipboard::read_text` to return a string type instead of an enum.
|
||||
- Changed `Clipboard::write_html` to take 2 string arguments instead of an enum.
|
||||
- Changed `Clipboard::write_image` to take a reference to a `tauri::Image` instead of an enum.
|
||||
- Removed `ClipKind` and `ClipboardContents` enums.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"clipboard-manager": patch
|
||||
---
|
||||
|
||||
The `write` and `read` commands are now called `write_text` and `read_text` so the permission name was changed.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"deep-link": patch
|
||||
"deep-link-js": patch
|
||||
---
|
||||
|
||||
Added desktop support.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
dialog: patch
|
||||
---
|
||||
|
||||
Fixed an issue where the dialog apis panicked when they were called with no application windows open.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"dialog": "patch"
|
||||
---
|
||||
|
||||
Fill file `len` and `modified_at` fields of `FileResponse` when using the open dialog.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"dialog": "patch"
|
||||
---
|
||||
|
||||
Fixed an issue where dialogs on android would return the Content URI instead of the file path
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Enhance the scope type to also allow a plain string representing the path to allow or deny.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"shell": patch
|
||||
---
|
||||
|
||||
When the "raw" encoding option is specified for a shell process, all bytes from the child's output streams are passed to the data handlers.
|
||||
This makes it possible to read output from programs that write unencoded byte streams to stdout (like ffmpeg)
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"log-js": patch
|
||||
---
|
||||
|
||||
Added `attachLogger` helper function to register a function that should be called for each log entry.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"single-instance": patch
|
||||
---
|
||||
|
||||
Added the `semver` feature flag to make the single instance mechanism only trigger for semver compatible versions.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"websocket": patch
|
||||
---
|
||||
|
||||
**Breaking change:** Enable rustls by default and added a method to configure the TLS Connector for tungstenite.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
authenticator: patch
|
||||
---
|
||||
|
||||
Pin winapi-utils to 0.1.6 to fix compilation error in dependencies.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"autostart": patch
|
||||
---
|
||||
|
||||
Fix LaunchAgent-based autostart for macOS.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
deep-link: patch
|
||||
---
|
||||
|
||||
Fixed an issue that caused the `deep-link` plugin to generate incorrect `.desktop` files on Linux.
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"notification": patch
|
||||
"barcode-scanner": patch
|
||||
"dialog": patch
|
||||
---
|
||||
|
||||
Fixes command argument parsing on iOS.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Fixes an issue that caused the app to freeze when the `dialog`, `fs`, and `persisted-scope` plugins were used together.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Fixes `watch` and `watchImmediate` which previously ignored the `baseDir` parameter.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": patch
|
||||
---
|
||||
|
||||
**Breaking change:** Removed the `default-tls` feature flag. The `rustls-tls`, `http2`, `macos-system-configuration`, and `charset` feature flags are now enabled by default.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": patch
|
||||
---
|
||||
|
||||
Fixes scope not allowing subpaths, query parameters and hash when those values are empty.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
Add a `on_before_exit` hook for cleanup before spawning the updater on Windows, defaults to `app.cleanup_before_exit` when used through `UpdaterExt`
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
**Breaking change:** The `rustls-tls` feature flag is now enabled by default.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
Fix deserialization of `windows > installerArgs` config field.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
On Windows, fallback to `passive` install mode when not defined in config.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
Fix Windows powershell window flashing on update
|
||||
@@ -0,0 +1,32 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"deep-link": patch
|
||||
"dialog": patch
|
||||
"fs": patch
|
||||
"global-shortcut": patch
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"os": patch
|
||||
"persisted-scope": patch
|
||||
"positioner": patch
|
||||
"process": patch
|
||||
"shell": patch
|
||||
"single-instance": patch
|
||||
"sql": patch
|
||||
"store": patch
|
||||
"stronghold": patch
|
||||
"updater": patch
|
||||
"upload": patch
|
||||
"websocket": patch
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"global-shortcut": "patch"
|
||||
"global-shortcut-js": "patch"
|
||||
---
|
||||
|
||||
Refactored APIs to introduce new pressed and released events:
|
||||
|
||||
- Added `ShortcutEvent` and `ShortcutState` types in Rust.
|
||||
- Changed the handler function passed to `GlobalShortcut::on_shortcut`, `GlobalShortcut::on_all_shortcuts` and `Builder::with_handler` to take a 3rd argument of type `ShortcutEvent`.
|
||||
- Added `ShortcutEvent` interface in JS.
|
||||
- Changed `ShortcutHandler` type alias (which affects the JS `register` and `registerAll` APIs) to take `ShortcutEvent` instead of a string.
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
"global-shortcut": "patch"
|
||||
---
|
||||
|
||||
**Breaking change** Refactored the plugin Rust APIs for better DX and flexibility:
|
||||
|
||||
- Changed `Builder::with_handler` to be a method instead of a static method, it will also be triggered for any and all shortcuts even if the shortcut is registered through JS.
|
||||
- Added `Builder::with_shortcut` and `Builder::with_shortcuts` to register shortcuts on the plugin builder.
|
||||
- Added `on_shortcut` and `on_all_shortcuts` to register shortcuts with a handler.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": "patch"
|
||||
---
|
||||
|
||||
Enable cookies store feature flag by default.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": "patch"
|
||||
---
|
||||
|
||||
Set the request origin to the current webview url.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
http: patch
|
||||
---
|
||||
|
||||
Fixed an issue with the http plugin when it was used with tauri v2 beta.19.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"http": patch
|
||||
---
|
||||
|
||||
Add `unsafe-headers` cargo feature flag to allow using [forbidden headers](https://fetch.spec.whatwg.org/#terminology-headers).
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"positioner": "patch"
|
||||
"window-state": "patch"
|
||||
---
|
||||
|
||||
Implement `WindowExt` for `WebviewWindow`.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Fix development mode check to set the app ID on macOS.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Fix development mode function name check to set the app ID on macOS.
|
||||
+67
-1
@@ -2,19 +2,85 @@
|
||||
"tag": "beta",
|
||||
"changes": [
|
||||
".changes/beta.md",
|
||||
".changes/browser-headers.md",
|
||||
".changes/clipboard-expose-struct.md",
|
||||
".changes/clipboard-html.md",
|
||||
".changes/clipboard-manager-image.md",
|
||||
".changes/clipboard-mobile.md",
|
||||
".changes/clipboard-refactor.md",
|
||||
".changes/clipboard-text-command-rename.md",
|
||||
".changes/deep-link-desktop.md",
|
||||
".changes/dialog-can-create-directories.md",
|
||||
".changes/dialog-linux-freeze.md",
|
||||
".changes/dialog-main-thread.md",
|
||||
".changes/dialog-metadata.md",
|
||||
".changes/dialog-path-return-mismatch.md",
|
||||
".changes/enhance-fs-scope-type.md",
|
||||
".changes/enhance-http-scope.md",
|
||||
".changes/enhance-shell-raw-out.md",
|
||||
".changes/feat-log-attachlogger.md",
|
||||
".changes/feat-single-instance-semver.md",
|
||||
".changes/feat-websocket-tls-connector.md",
|
||||
".changes/file-autogen-fix.md",
|
||||
".changes/fix-authenticator-windows-compile.md",
|
||||
".changes/fix-autolaunch-macos.md",
|
||||
".changes/fix-deep-link-linux.md",
|
||||
".changes/fix-default-arg-value.md",
|
||||
".changes/fix-fs-scope-deadlock.md",
|
||||
".changes/fix-fs-watcher-basedir.md",
|
||||
".changes/fix-http-default-features.md",
|
||||
".changes/fix-http-scope-url-match.md",
|
||||
".changes/fix-shutdown-timing.md",
|
||||
".changes/fix-updater-cleanup.md",
|
||||
".changes/fix-updater-default-features.md",
|
||||
".changes/fix-updater-installer-args-deserialization.md",
|
||||
".changes/fix-updater-installmode.md",
|
||||
".changes/fix-updater-powershell-flashing.md",
|
||||
".changes/fix-zbus-import.md",
|
||||
".changes/global-api-script-refactor.md",
|
||||
".changes/global-hotkey-event.md",
|
||||
".changes/global-shortcut-refactor.md",
|
||||
".changes/http-cookies.md",
|
||||
".changes/http-origin.md",
|
||||
".changes/http-tauri-beta-19.md",
|
||||
".changes/http-unsafe-headers.md",
|
||||
".changes/http-user-agent.md",
|
||||
".changes/impl-ext-for-webview-windows.md",
|
||||
".changes/msrv-1.75.md",
|
||||
".changes/notification-fix-dev-check.md",
|
||||
".changes/notification-fix-dev-name.md",
|
||||
".changes/public-with-store.md",
|
||||
".changes/remove-unc-path-prefix.md",
|
||||
".changes/reqwest-0.12.md",
|
||||
".changes/restore-default-window-state.md",
|
||||
".changes/scoped-resources-table.md",
|
||||
".changes/shell-command-execute-extra-new-lines.md",
|
||||
".changes/shell-command-execute-speed.md",
|
||||
".changes/shell-command-lost-events.md",
|
||||
".changes/shell-execute-return.md",
|
||||
".changes/shell-execute.md",
|
||||
".changes/shell-fix-schema-command-property-name.md",
|
||||
".changes/shell-shellexcute.md",
|
||||
".changes/single-instance.macos.md",
|
||||
".changes/sql-column-order.md",
|
||||
".changes/target-sdk-34.md",
|
||||
".changes/tauri-beta-14-dependencies.md",
|
||||
".changes/tauri-beta-14.md",
|
||||
".changes/tauri-beta-15.md",
|
||||
".changes/tauri-beta-17.md",
|
||||
".changes/tauri-beta-20.md",
|
||||
".changes/tauri-beta-4.md",
|
||||
".changes/tauri-beta-8.md",
|
||||
".changes/tauri-beta-9.md"
|
||||
".changes/tauri-beta-9.md",
|
||||
".changes/updater-download-install-js-binding.md",
|
||||
".changes/updater-non-zip.md",
|
||||
".changes/updater-nsis-shortcuts.md",
|
||||
".changes/updater-zip-no-default-features.md",
|
||||
".changes/upload-returnval.md",
|
||||
".changes/watcher-debouncer-rename.md",
|
||||
".changes/window-state-custom-filename.md",
|
||||
".changes/window-state-default-filename.md",
|
||||
".changes/window-state-js-binding.md",
|
||||
".changes/window-state-json.md"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
dialog: patch
|
||||
fs: patch
|
||||
store: patch
|
||||
---
|
||||
|
||||
**Breaking Change:** All apis that return paths to the frontend will now remove the `\\?\` UNC prefix on Windows.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"upload": patch
|
||||
---
|
||||
|
||||
**Breaking change**: Removed http3 feature and added http2 feature.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
Fix `restore_window` doesn't work with `skip_initial_state` when no previous cache was found
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"fs": "patch"
|
||||
"http": "patch"
|
||||
"updater": "patch"
|
||||
"clipboard-manager": "patch"
|
||||
---
|
||||
|
||||
Internally use the webview scoped resources table instead of the app one, so other webviews can't access other webviews resources.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shell-js": "patch"
|
||||
---
|
||||
|
||||
Fix `Command.execute` API including extra new lines.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
"shell-js": "patch"
|
||||
---
|
||||
|
||||
Improve the speed of the JS `Command.execute` API
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
---
|
||||
|
||||
Fix the JS `Command` API losing events for `stdout`.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
---
|
||||
|
||||
Fix a regression introduce in the last release where The JS API `Command.execute()` returned malformed response.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
---
|
||||
|
||||
Run `Command.execute()` JS api, asynchronously in the Rust side to avoid blocking main thread and causing the webview to freeze.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
---
|
||||
|
||||
Change shell's schema property name `command` to `cmd`.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"single-instance": patch
|
||||
---
|
||||
|
||||
Added implementation for MacOS.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"sql": patch
|
||||
---
|
||||
|
||||
Preserve column order from SELECT query with indexmap
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"clipboard-manager": patch
|
||||
"deep-link": patch
|
||||
"dialog": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"shell": patch
|
||||
"store": patch
|
||||
---
|
||||
|
||||
Updated Android target SDK to 34.
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"http": patch
|
||||
"updater": patch
|
||||
"upload": patch
|
||||
---
|
||||
|
||||
Update dependencies to align with tauri 2.0.0-beta.14.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Update for tauri 2.0.0-beta.14.
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"fs": patch
|
||||
"http": patch
|
||||
"updater": patch
|
||||
"clipboard-manager": patch
|
||||
---
|
||||
|
||||
Update for tauri 2.0.0-beta.15.
|
||||
@@ -0,0 +1,57 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"deep-link": patch
|
||||
"dialog": patch
|
||||
"fs": patch
|
||||
"global-shortcut": patch
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"os": patch
|
||||
"persisted-scope": patch
|
||||
"positioner": patch
|
||||
"process": patch
|
||||
"shell": patch
|
||||
"single-instance": patch
|
||||
"sql": patch
|
||||
"store": patch
|
||||
"stronghold": patch
|
||||
"updater": patch
|
||||
"upload": patch
|
||||
"websocket": patch
|
||||
"window-state": patch
|
||||
"authenticator-js": patch
|
||||
"autostart-js": patch
|
||||
"barcode-scanner-js": patch
|
||||
"biometric-js": patch
|
||||
"cli-js": patch
|
||||
"clipboard-manager-js": patch
|
||||
"deep-link-js": patch
|
||||
"dialog-js": patch
|
||||
"fs-js": patch
|
||||
"global-shortcut-js": patch
|
||||
"http-js": patch
|
||||
"log-js": patch
|
||||
"nfc-js": patch
|
||||
"notification-js": patch
|
||||
"os-js": patch
|
||||
"positioner-js": patch
|
||||
"process-js": patch
|
||||
"shell-js": patch
|
||||
"sql-js": patch
|
||||
"store-js": patch
|
||||
"stronghold-js": patch
|
||||
"updater-js": patch
|
||||
"upload-js": patch
|
||||
"websocket-js": patch
|
||||
"window-state-js": patch
|
||||
---
|
||||
|
||||
Update to tauri beta.17.
|
||||
@@ -0,0 +1,57 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"deep-link": patch
|
||||
"dialog": patch
|
||||
"fs": patch
|
||||
"global-shortcut": patch
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"os": patch
|
||||
"persisted-scope": patch
|
||||
"positioner": patch
|
||||
"process": patch
|
||||
"shell": patch
|
||||
"single-instance": patch
|
||||
"sql": patch
|
||||
"store": patch
|
||||
"stronghold": patch
|
||||
"updater": patch
|
||||
"upload": patch
|
||||
"websocket": patch
|
||||
"window-state": patch
|
||||
"authenticator-js": patch
|
||||
"autostart-js": patch
|
||||
"barcode-scanner-js": patch
|
||||
"biometric-js": patch
|
||||
"cli-js": patch
|
||||
"clipboard-manager-js": patch
|
||||
"deep-link-js": patch
|
||||
"dialog-js": patch
|
||||
"fs-js": patch
|
||||
"global-shortcut-js": patch
|
||||
"http-js": patch
|
||||
"log-js": patch
|
||||
"nfc-js": patch
|
||||
"notification-js": patch
|
||||
"os-js": patch
|
||||
"positioner-js": patch
|
||||
"process-js": patch
|
||||
"shell-js": patch
|
||||
"sql-js": patch
|
||||
"store-js": patch
|
||||
"stronghold-js": patch
|
||||
"updater-js": patch
|
||||
"upload-js": patch
|
||||
"websocket-js": patch
|
||||
"window-state-js": patch
|
||||
---
|
||||
|
||||
Update to tauri beta.20.
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
"updater-js": "patch"
|
||||
---
|
||||
|
||||
Add `Update.download` and `Update.install` functions to the JavaScript API
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
Add support for updating using non-zipped files on Windows and Linux.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
Fix NSIS updater creating new shortcuts on update.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
Disable zip crate default features
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"upload": patch
|
||||
"upload-js": patch
|
||||
---
|
||||
|
||||
Return the upload response as a string and error out if the status code is not within 200-299.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fs": patch
|
||||
---
|
||||
|
||||
Fixes `RenameMode::From` and `RenameMode::To` never getting converted to `RenameMode::Both` when using `watch` with a debounce on Windows
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"window-state": "patch"
|
||||
"window-state-js": "patch"
|
||||
---
|
||||
|
||||
Add `Builder::with_filename` to support using a custom filename. Also add `AppHandleExt::file_name` and a similar function in JS, to retrieve it later.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"window-state": "patch"
|
||||
---
|
||||
|
||||
**Breaking change**: Renamed `STATE_FILENAME` const to `DEFAULT_FILENAME`.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
Fix `restore_window` and `filename` js binding missing permission
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
**Breaking change**: Changed the format of the state file from bincode to json. Also changed the filename to from `.window-state` to `.window-state.json`.
|
||||
+3
-1
@@ -5,4 +5,6 @@ build/
|
||||
dist-js
|
||||
api-iife.js
|
||||
init-iife.js
|
||||
init.js
|
||||
init.js
|
||||
rollup.config.js
|
||||
examples/
|
||||
+2
-1
@@ -13,7 +13,8 @@
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
"sourceType": "module",
|
||||
"project": ["**/tsconfig.json"]
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"rules": {}
|
||||
|
||||
@@ -33,20 +33,20 @@ jobs:
|
||||
audit-js:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: pnpm/action-setup@v2
|
||||
node-version: "lts/*"
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
- name: audit
|
||||
run: pnpm audit
|
||||
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
audit-rust:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: rustsec/audit-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
outputs:
|
||||
packages: ${{ steps.filter.outputs.changes }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@@ -121,21 +121,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: pnpm/action-setup@v2
|
||||
node-version: "lts/*"
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
|
||||
- name: build api
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # required for use of git history
|
||||
- name: covector status
|
||||
|
||||
@@ -19,18 +19,18 @@ jobs:
|
||||
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # required for use of git history
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
|
||||
- name: install webkit2gtk and libudev for [authenticator]
|
||||
@@ -71,5 +71,5 @@ jobs:
|
||||
title: "Publish New Versions (v2)"
|
||||
commit-message: "publish new versions"
|
||||
labels: "version updates"
|
||||
branch: "release-v2"
|
||||
branch: "ci/release-v2"
|
||||
body: ${{ steps.covector.outputs.change }}
|
||||
|
||||
@@ -19,18 +19,18 @@ jobs:
|
||||
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # required for use of git history
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
|
||||
- name: install webkit2gtk and libudev for [authenticator]
|
||||
@@ -64,5 +64,5 @@ jobs:
|
||||
title: "Publish New Versions"
|
||||
commit-message: "publish new versions"
|
||||
labels: "version updates"
|
||||
branch: "release"
|
||||
branch: "ci/release-v1"
|
||||
body: ${{ steps.covector.outputs.change }}
|
||||
|
||||
@@ -30,20 +30,18 @@ jobs:
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: install stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: install Linux dependencies
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev libfuse2
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev libfuse2
|
||||
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
|
||||
@@ -36,40 +36,40 @@ jobs:
|
||||
eslint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: pnpm/action-setup@v2
|
||||
node-version: "lts/*"
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
- name: eslint
|
||||
run: pnpm lint
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: pnpm/action-setup@v2
|
||||
node-version: "lts/*"
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
- name: prettier check
|
||||
run: pnpm format-check
|
||||
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
outputs:
|
||||
packages: ${{ steps.filter.outputs.changes }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@@ -127,7 +127,7 @@ jobs:
|
||||
package: ${{ fromJSON(needs.changes.outputs.packages) }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: install webkit2gtk and libudev for [authenticator]
|
||||
run: |
|
||||
@@ -161,7 +161,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install rustfmt with nightly toolchain
|
||||
uses: dtolnay/rust-toolchain@nightly
|
||||
|
||||
@@ -19,26 +19,26 @@ jobs:
|
||||
sync-to-mirrors:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Fetch git tags
|
||||
run: git fetch origin 'refs/tags/*:refs/tags/*'
|
||||
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: "lts/*"
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 7.x.x
|
||||
version: 9.x.x
|
||||
run_install: true
|
||||
|
||||
- name: Build packages
|
||||
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
outputs:
|
||||
packages: ${{ steps.filter.outputs.changes }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
@@ -46,78 +46,131 @@ jobs:
|
||||
filters: |
|
||||
tauri-plugin-authenticator:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/authenticator/**
|
||||
tauri-plugin-autostart:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/autostart/**
|
||||
tauri-plugin-cli:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/cli/**
|
||||
tauri-plugin-clipboard-manager:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/clipboard-manager/**
|
||||
tauri-plugin-deep-link:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/deep-link/**
|
||||
tauri-plugin-dialog:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/dialog/**
|
||||
- plugins/fs/**
|
||||
tauri-plugin-fs:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/fs/**
|
||||
tauri-plugin-global-shortcut:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/global-shortcut/**
|
||||
tauri-plugin-http:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/http/**
|
||||
- plugins/fs/**
|
||||
tauri-plugin-localhost:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/localhost/**
|
||||
tauri-plugin-log:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/log/**
|
||||
tauri-plugin-notification:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/notification/**
|
||||
tauri-plugin-os:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/os/**
|
||||
tauri-plugin-persisted-scope:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/persisted-scope/**
|
||||
- plugins/fs/**
|
||||
tauri-plugin-positioner:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/positioner/**
|
||||
tauri-plugin-process:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/process/**
|
||||
tauri-plugin-shell:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/shell/**
|
||||
tauri-plugin-single-instance:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/single-instance/**
|
||||
tauri-plugin-sql:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/sql/**
|
||||
tauri-plugin-store:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/store/**
|
||||
tauri-plugin-stronghold:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/stronghold/**
|
||||
tauri-plugin-updater:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/updater/**
|
||||
tauri-plugin-upload:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/upload/**
|
||||
tauri-plugin-websocket:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/websocket/**
|
||||
tauri-plugin-window-state:
|
||||
- .github/workflows/test-rust.yml
|
||||
- Cargo.toml
|
||||
- Cargo.lock
|
||||
- plugins/window-state/**
|
||||
|
||||
test:
|
||||
@@ -131,38 +184,38 @@ jobs:
|
||||
- {
|
||||
target: x86_64-pc-windows-msvc,
|
||||
os: windows-latest,
|
||||
runner: 'cargo',
|
||||
runner: "cargo",
|
||||
command: "test",
|
||||
}
|
||||
- {
|
||||
target: x86_64-unknown-linux-gnu,
|
||||
os: ubuntu-latest,
|
||||
runner: 'cargo',
|
||||
runner: "cargo",
|
||||
command: "test",
|
||||
}
|
||||
- {
|
||||
target: x86_64-apple-darwin,
|
||||
target: aarch64-apple-darwin,
|
||||
os: macos-latest,
|
||||
runner: 'cargo',
|
||||
runner: "cargo",
|
||||
command: "test",
|
||||
}
|
||||
- {
|
||||
target: aarch64-apple-ios,
|
||||
os: macos-latest,
|
||||
runner: 'cargo',
|
||||
runner: "cargo",
|
||||
command: "build",
|
||||
}
|
||||
- {
|
||||
target: aarch64-linux-android,
|
||||
os: ubuntu-latest,
|
||||
runner: 'cross',
|
||||
runner: "cross",
|
||||
command: "build",
|
||||
}
|
||||
|
||||
runs-on: ${{ matrix.platform.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: install webkit2gtk and libudev for [authenticator]
|
||||
if: contains(matrix.platform.target, 'unknown-linux')
|
||||
|
||||
Generated
+1130
-1518
File diff suppressed because it is too large
Load Diff
+6
-3
@@ -10,19 +10,22 @@ resolver = "2"
|
||||
[workspace.dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = "2.0.0-beta.9"
|
||||
tauri-build = "2.0.0-beta.7"
|
||||
tauri-plugin = "2.0.0-beta.7"
|
||||
tauri = "2.0.0-beta.20"
|
||||
tauri-build = "2.0.0-beta.16"
|
||||
tauri-plugin = "2.0.0-beta.16"
|
||||
tauri-utils = "2.0.0-beta.16"
|
||||
serde_json = "1"
|
||||
thiserror = "1"
|
||||
url = "2"
|
||||
schemars = "0.8"
|
||||
dunce = "1"
|
||||
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
authors = ["Tauri Programme within The Commons Conservancy"]
|
||||
license = "Apache-2.0 OR MIT"
|
||||
rust-version = "1.75"
|
||||
repository = "https://github.com/tauri-apps/plugins-workspace"
|
||||
|
||||
# default to small, optimized release binaries
|
||||
[profile.release]
|
||||
|
||||
@@ -1,5 +1,63 @@
|
||||
# Changelog
|
||||
|
||||
## \[2.0.0-beta.7]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `http-js@2.0.0-beta.4`
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-beta.4`
|
||||
- Upgraded to `biometric-js@2.0.0-beta.4`
|
||||
- Upgraded to `cli-js@2.0.0-beta.4`
|
||||
- Upgraded to `clipboard-manager-js@2.1.0-beta.2`
|
||||
- Upgraded to `dialog-js@2.0.0-beta.4`
|
||||
- Upgraded to `fs-js@2.0.0-beta.4`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-beta.4`
|
||||
- Upgraded to `log-js@2.0.0-beta.5`
|
||||
- Upgraded to `nfc-js@2.0.0-beta.4`
|
||||
- Upgraded to `notification-js@2.0.0-beta.4`
|
||||
- Upgraded to `os-js@2.0.0-beta.4`
|
||||
- Upgraded to `process-js@2.0.0-beta.4`
|
||||
- Upgraded to `shell-js@2.0.0-beta.5`
|
||||
- Upgraded to `updater-js@2.0.0-beta.4`
|
||||
|
||||
## \[2.0.0-beta.6]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `shell-js@2.0.0-beta.4`
|
||||
|
||||
## \[2.0.0-beta.5]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `global-shortcut-js@2.0.0-beta.3`
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-beta.3`
|
||||
- Upgraded to `biometric-js@2.0.0-beta.3`
|
||||
- Upgraded to `cli-js@2.0.0-beta.3`
|
||||
- Upgraded to `clipboard-manager-js@2.1.0-beta.1`
|
||||
- Upgraded to `dialog-js@2.0.0-beta.3`
|
||||
- Upgraded to `fs-js@2.0.0-beta.3`
|
||||
- Upgraded to `http-js@2.0.0-beta.3`
|
||||
- Upgraded to `log-js@2.0.0-beta.4`
|
||||
- Upgraded to `nfc-js@2.0.0-beta.3`
|
||||
- Upgraded to `notification-js@2.0.0-beta.3`
|
||||
- Upgraded to `os-js@2.0.0-beta.3`
|
||||
- Upgraded to `process-js@2.0.0-beta.3`
|
||||
- Upgraded to `shell-js@2.0.0-beta.3`
|
||||
- Upgraded to `updater-js@2.0.0-beta.3`
|
||||
|
||||
## \[2.0.0-beta.4]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `log-js@2.0.0-beta.3`
|
||||
|
||||
## \[2.0.0-beta.3]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `clipboard-manager-js@2.1.0-beta.0`
|
||||
|
||||
## \[2.0.0-beta.2]
|
||||
|
||||
### Dependencies
|
||||
|
||||
+22
-22
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "svelte-app",
|
||||
"private": true,
|
||||
"version": "2.0.0-beta.2",
|
||||
"version": "2.0.0-beta.7",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --clearScreen false",
|
||||
@@ -9,32 +9,32 @@
|
||||
"serve": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-biometric": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-cli": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-clipboard-manager": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-dialog": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-fs": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-http": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-nfc": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-notification": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-os": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-process": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-shell": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-updater": "2.0.0-beta.2",
|
||||
"@zerodevx/svelte-json-view": "1.0.7"
|
||||
"@tauri-apps/api": "2.0.0-beta.12",
|
||||
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-biometric": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-cli": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.2",
|
||||
"@tauri-apps/plugin-dialog": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-fs": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-http": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-nfc": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-notification": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-os": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-process": "2.0.0-beta.4",
|
||||
"@tauri-apps/plugin-shell": "2.0.0-beta.5",
|
||||
"@tauri-apps/plugin-updater": "2.0.0-beta.4",
|
||||
"@zerodevx/svelte-json-view": "1.0.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@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-beta.7",
|
||||
"@unocss/extractor-svelte": "^0.58.0",
|
||||
"internal-ip": "^8.0.0",
|
||||
"@tauri-apps/cli": "2.0.0-beta.18",
|
||||
"@unocss/extractor-svelte": "^0.60.0",
|
||||
"internal-ip": "7.0.0",
|
||||
"svelte": "^4.2.8",
|
||||
"unocss": "^0.58.0",
|
||||
"vite": "^5.0.12"
|
||||
"unocss": "^0.60.0",
|
||||
"vite": "^5.0.13"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,99 @@
|
||||
# Changelog
|
||||
|
||||
## \[2.0.0-beta.9]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `clipboard-manager@2.1.0-beta.3`
|
||||
- Upgraded to `dialog@2.0.0-beta.8`
|
||||
- Upgraded to `http@2.0.0-beta.8`
|
||||
- Upgraded to `notification@2.0.0-beta.6`
|
||||
- Upgraded to `shell@2.0.0-beta.6`
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.6`
|
||||
- Upgraded to `biometric@2.0.0-beta.5`
|
||||
- Upgraded to `nfc@2.0.0-beta.5`
|
||||
- Upgraded to `cli@2.0.0-beta.5`
|
||||
- Upgraded to `fs@2.0.0-beta.8`
|
||||
- Upgraded to `global-shortcut@2.0.0-beta.5`
|
||||
- Upgraded to `log-plugin@2.0.0-beta.5`
|
||||
- Upgraded to `os@2.0.0-beta.5`
|
||||
- Upgraded to `process@2.0.0-beta.5`
|
||||
- Upgraded to `updater@2.0.0-beta.6`
|
||||
|
||||
## \[2.0.0-beta.8]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `shell@2.0.0-beta.5`
|
||||
|
||||
## \[2.0.0-beta.7]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `clipboard-manager@2.1.0-beta.2`
|
||||
- Upgraded to `global-shortcut@2.0.0-beta.4`
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.5`
|
||||
- Upgraded to `biometric@2.0.0-beta.4`
|
||||
- Upgraded to `cli@2.0.0-beta.4`
|
||||
- Upgraded to `dialog@2.0.0-beta.7`
|
||||
- Upgraded to `fs@2.0.0-beta.7`
|
||||
- Upgraded to `http@2.0.0-beta.7`
|
||||
- Upgraded to `log-plugin@2.0.0-beta.4`
|
||||
- Upgraded to `nfc@2.0.0-beta.4`
|
||||
- Upgraded to `notification@2.0.0-beta.5`
|
||||
- Upgraded to `os@2.0.0-beta.4`
|
||||
- Upgraded to `process@2.0.0-beta.4`
|
||||
- Upgraded to `shell@2.0.0-beta.4`
|
||||
- Upgraded to `updater@2.0.0-beta.5`
|
||||
|
||||
## \[2.0.0-beta.6]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `notification@2.0.0-beta.4`
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.4`
|
||||
- Upgraded to `dialog@2.0.0-beta.6`
|
||||
- Upgraded to `fs@2.0.0-beta.6`
|
||||
- Upgraded to `http@2.0.0-beta.6`
|
||||
|
||||
## \[2.0.0-beta.5]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `clipboard-manager@2.1.0-beta.1`
|
||||
- Upgraded to `http@2.0.0-beta.5`
|
||||
- Upgraded to `updater@2.0.0-beta.4`
|
||||
- Upgraded to `dialog@2.0.0-beta.5`
|
||||
- Upgraded to `fs@2.0.0-beta.5`
|
||||
|
||||
## \[2.0.0-beta.4]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `dialog@2.0.0-beta.4`
|
||||
- Upgraded to `fs@2.0.0-beta.4`
|
||||
- Upgraded to `http@2.0.0-beta.4`
|
||||
|
||||
## \[2.0.0-beta.3]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `clipboard-manager@2.1.0-beta.0`
|
||||
- Upgraded to `dialog@2.0.0-beta.3`
|
||||
- Upgraded to `fs@2.0.0-beta.3`
|
||||
- Upgraded to `http@2.0.0-beta.3`
|
||||
- Upgraded to `updater@2.0.0-beta.3`
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.3`
|
||||
- Upgraded to `biometric@2.0.0-beta.3`
|
||||
- Upgraded to `cli@2.0.0-beta.3`
|
||||
- Upgraded to `global-shortcut@2.0.0-beta.3`
|
||||
- Upgraded to `log-plugin@2.0.0-beta.3`
|
||||
- Upgraded to `nfc@2.0.0-beta.3`
|
||||
- Upgraded to `notification@2.0.0-beta.3`
|
||||
- Upgraded to `os@2.0.0-beta.3`
|
||||
- Upgraded to `process@2.0.0-beta.3`
|
||||
- Upgraded to `shell@2.0.0-beta.3`
|
||||
|
||||
## \[2.0.0-beta.2]
|
||||
|
||||
### Dependencies
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "api"
|
||||
publish = false
|
||||
version = "2.0.0-beta.2"
|
||||
version = "2.0.0-beta.9"
|
||||
description = "An example Tauri Application showcasing the api"
|
||||
edition = "2021"
|
||||
rust-version = { workspace = true }
|
||||
@@ -17,17 +17,17 @@ tauri-build = { workspace = true, features = [ "codegen", "isolation" ] }
|
||||
[dependencies]
|
||||
serde_json = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
tiny_http = "0.11"
|
||||
tiny_http = "0.12"
|
||||
log = { workspace = true }
|
||||
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.2", features = [ "watch" ] }
|
||||
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.2" }
|
||||
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.2", features = [ "windows7-compat" ] }
|
||||
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.8", features = [ "watch" ] }
|
||||
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.1.0-beta.3" }
|
||||
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.8" }
|
||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.8" }
|
||||
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.6", features = [ "windows7-compat" ] }
|
||||
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.6" }
|
||||
|
||||
[dependencies.tauri]
|
||||
workspace = true
|
||||
@@ -41,14 +41,14 @@ tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.2"
|
||||
]
|
||||
|
||||
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
|
||||
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.6" }
|
||||
|
||||
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
|
||||
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.2" }
|
||||
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.6" }
|
||||
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.5" }
|
||||
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.5" }
|
||||
|
||||
[target."cfg(target_os = \"windows\")".dependencies]
|
||||
window-shadows = "0.2"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
"https://tauri.app",
|
||||
{
|
||||
"url": "http://localhost:3003"
|
||||
}
|
||||
@@ -21,9 +22,16 @@
|
||||
"tray:default",
|
||||
"event:default",
|
||||
"window:default",
|
||||
"window:allow-minimize",
|
||||
"window:allow-maximize",
|
||||
"window:allow-unmaximize",
|
||||
"window:allow-close",
|
||||
"window:allow-start-dragging",
|
||||
"image:default",
|
||||
"notification:default",
|
||||
"os:allow-platform",
|
||||
"dialog:allow-open",
|
||||
"dialog:allow-ask",
|
||||
"dialog:allow-save",
|
||||
"dialog:allow-confirm",
|
||||
"dialog:allow-message",
|
||||
@@ -54,8 +62,12 @@
|
||||
},
|
||||
"shell:allow-kill",
|
||||
"shell:allow-stdin-write",
|
||||
"clipboard-manager:allow-read",
|
||||
"clipboard-manager:allow-write",
|
||||
"process:allow-exit",
|
||||
"process:allow-restart",
|
||||
"clipboard-manager:allow-read-text",
|
||||
"clipboard-manager:allow-write-text",
|
||||
"clipboard-manager:allow-read-image",
|
||||
"clipboard-manager:allow-write-image",
|
||||
"fs:allow-rename",
|
||||
"fs:allow-mkdir",
|
||||
"fs:allow-remove",
|
||||
@@ -69,11 +81,7 @@
|
||||
"path": "$APPDATA/db/**"
|
||||
}
|
||||
],
|
||||
"deny": [
|
||||
{
|
||||
"path": "$APPDATA/db/*.stronghold"
|
||||
}
|
||||
]
|
||||
"deny": ["$APPDATA/db/*.stronghold"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
compileSdk = 34
|
||||
namespace = "com.tauri.api"
|
||||
defaultConfig {
|
||||
manifestPlaceholders["usesCleartextTraffic"] = "false"
|
||||
applicationId = "com.tauri.api"
|
||||
minSdk = 24
|
||||
targetSdk = 33
|
||||
targetSdk = 34
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -11,6 +11,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "A list of capabilities.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Capability"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "A list of capabilities.",
|
||||
"type": "object",
|
||||
@@ -34,8 +41,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"identifier",
|
||||
"permissions",
|
||||
"windows"
|
||||
"permissions"
|
||||
],
|
||||
"properties": {
|
||||
"identifier": {
|
||||
@@ -86,14 +92,10 @@
|
||||
},
|
||||
"platforms": {
|
||||
"description": "Target platforms this capability applies. By default all platforms are affected by this capability.",
|
||||
"default": [
|
||||
"linux",
|
||||
"macOS",
|
||||
"windows",
|
||||
"android",
|
||||
"iOS"
|
||||
"type": [
|
||||
"array",
|
||||
"null"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Target"
|
||||
}
|
||||
@@ -108,7 +110,7 @@
|
||||
],
|
||||
"properties": {
|
||||
"urls": {
|
||||
"description": "Remote domains this capability refers to. Can use glob patterns.",
|
||||
"description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n# Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
@@ -182,7 +184,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-app-write-recursive -> This allows full recusrive 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 `$APP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-app-write-recursive"
|
||||
@@ -224,7 +226,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appcache-write-recursive -> This allows full recusrive write access to the complete `$APPCACHE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appcache-write-recursive -> This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appcache-write-recursive"
|
||||
@@ -266,7 +268,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appconfig-write-recursive -> This allows full recusrive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appconfig-write-recursive -> This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appconfig-write-recursive"
|
||||
@@ -308,7 +310,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appdata-write-recursive -> This allows full recusrive write access to the complete `$APPDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appdata-write-recursive -> This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appdata-write-recursive"
|
||||
@@ -350,7 +352,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-applocaldata-write-recursive -> This allows full recusrive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-applocaldata-write-recursive -> This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-applocaldata-write-recursive"
|
||||
@@ -392,7 +394,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-applog-write-recursive -> This allows full recusrive write access to the complete `$APPLOG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-applog-write-recursive -> This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-applog-write-recursive"
|
||||
@@ -434,7 +436,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-audio-write-recursive -> This allows full recusrive write access to the complete `$AUDIO` folder, files and subdirectories.",
|
||||
"description": "fs:allow-audio-write-recursive -> This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-audio-write-recursive"
|
||||
@@ -476,7 +478,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-cache-write-recursive -> This allows full recusrive write access to the complete `$CACHE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-cache-write-recursive -> This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-cache-write-recursive"
|
||||
@@ -518,7 +520,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-config-write-recursive -> This allows full recusrive write access to the complete `$CONFIG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-config-write-recursive -> This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-config-write-recursive"
|
||||
@@ -560,7 +562,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-data-write-recursive -> This allows full recusrive write access to the complete `$DATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-data-write-recursive -> This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-data-write-recursive"
|
||||
@@ -602,7 +604,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-desktop-write-recursive -> This allows full recusrive write access to the complete `$DESKTOP` folder, files and subdirectories.",
|
||||
"description": "fs:allow-desktop-write-recursive -> This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-desktop-write-recursive"
|
||||
@@ -644,7 +646,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-document-write-recursive -> This allows full recusrive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
|
||||
"description": "fs:allow-document-write-recursive -> This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-document-write-recursive"
|
||||
@@ -686,7 +688,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-download-write-recursive -> This allows full recusrive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
|
||||
"description": "fs:allow-download-write-recursive -> This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-download-write-recursive"
|
||||
@@ -728,7 +730,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-exe-write-recursive -> This allows full recusrive write access to the complete `$EXE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-exe-write-recursive -> This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-exe-write-recursive"
|
||||
@@ -770,7 +772,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-font-write-recursive -> This allows full recusrive write access to the complete `$FONT` folder, files and subdirectories.",
|
||||
"description": "fs:allow-font-write-recursive -> This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-font-write-recursive"
|
||||
@@ -812,7 +814,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-home-write-recursive -> This allows full recusrive write access to the complete `$HOME` folder, files and subdirectories.",
|
||||
"description": "fs:allow-home-write-recursive -> This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-home-write-recursive"
|
||||
@@ -854,7 +856,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-localdata-write-recursive -> This allows full recusrive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-localdata-write-recursive -> This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-localdata-write-recursive"
|
||||
@@ -896,7 +898,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-log-write-recursive -> This allows full recusrive write access to the complete `$LOG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-log-write-recursive -> This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-log-write-recursive"
|
||||
@@ -938,7 +940,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-picture-write-recursive -> This allows full recusrive write access to the complete `$PICTURE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-picture-write-recursive -> This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-picture-write-recursive"
|
||||
@@ -980,7 +982,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-public-write-recursive -> This allows full recusrive write access to the complete `$PUBLIC` folder, files and subdirectories.",
|
||||
"description": "fs:allow-public-write-recursive -> This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-public-write-recursive"
|
||||
@@ -1022,7 +1024,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-resource-write-recursive -> This allows full recusrive write access to the complete `$RESOURCE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-resource-write-recursive -> This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-resource-write-recursive"
|
||||
@@ -1064,7 +1066,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-runtime-write-recursive -> This allows full recusrive write access to the complete `$RUNTIME` folder, files and subdirectories.",
|
||||
"description": "fs:allow-runtime-write-recursive -> This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-runtime-write-recursive"
|
||||
@@ -1106,7 +1108,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-temp-write-recursive -> This allows full recusrive write access to the complete `$TEMP` folder, files and subdirectories.",
|
||||
"description": "fs:allow-temp-write-recursive -> This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-temp-write-recursive"
|
||||
@@ -1148,7 +1150,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-template-write-recursive -> This allows full recusrive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-template-write-recursive -> This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-template-write-recursive"
|
||||
@@ -1190,7 +1192,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-video-write-recursive -> This allows full recusrive write access to the complete `$VIDEO` folder, files and subdirectories.",
|
||||
"description": "fs:allow-video-write-recursive -> This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-video-write-recursive"
|
||||
@@ -2131,30 +2133,50 @@
|
||||
},
|
||||
"allow": {
|
||||
"items": {
|
||||
"title": "Entry",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"properties": {
|
||||
"path": {
|
||||
"title": "FsScopeEntry",
|
||||
"description": "FS scope entry.",
|
||||
"anyOf": [
|
||||
{
|
||||
"description": "FS scope path.",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"properties": {
|
||||
"path": {
|
||||
"description": "FS scope path.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"deny": {
|
||||
"items": {
|
||||
"title": "Entry",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"properties": {
|
||||
"path": {
|
||||
"title": "FsScopeEntry",
|
||||
"description": "FS scope entry.",
|
||||
"anyOf": [
|
||||
{
|
||||
"description": "FS scope path.",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"properties": {
|
||||
"path": {
|
||||
"description": "FS scope path.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2234,8 +2256,8 @@
|
||||
},
|
||||
"allow": {
|
||||
"items": {
|
||||
"title": "ScopeEntry",
|
||||
"description": "HTTP scope entry object definition.",
|
||||
"title": "HttpScopeEntry",
|
||||
"description": "HTTP scope entry.",
|
||||
"anyOf": [
|
||||
{
|
||||
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
|
||||
@@ -2258,8 +2280,8 @@
|
||||
},
|
||||
"deny": {
|
||||
"items": {
|
||||
"title": "ScopeEntry",
|
||||
"description": "HTTP scope entry object definition.",
|
||||
"title": "HttpScopeEntry",
|
||||
"description": "HTTP scope entry.",
|
||||
"anyOf": [
|
||||
{
|
||||
"description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",
|
||||
@@ -2290,6 +2312,12 @@
|
||||
"properties": {
|
||||
"identifier": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"shell:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2355,7 +2383,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"args",
|
||||
"command",
|
||||
"cmd",
|
||||
"name",
|
||||
"sidecar"
|
||||
],
|
||||
@@ -2368,7 +2396,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"command": {
|
||||
"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`.",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2390,7 +2418,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"args",
|
||||
"command",
|
||||
"cmd",
|
||||
"name",
|
||||
"sidecar"
|
||||
],
|
||||
@@ -2403,7 +2431,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"command": {
|
||||
"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`.",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2503,6 +2531,12 @@
|
||||
"app:deny-version"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"barcode-scanner:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "barcode-scanner:allow-cancel -> Enables the cancel command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2587,6 +2621,12 @@
|
||||
"barcode-scanner:deny-vibrate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"biometric:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "biometric:allow-authenticate -> Enables the authenticate command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -2616,31 +2656,99 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:allow-read -> Enables the read command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:allow-read"
|
||||
"clipboard-manager:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:allow-write -> Enables the write command without any pre-configured scope.",
|
||||
"description": "clipboard-manager:allow-clear -> Enables the clear command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:allow-write"
|
||||
"clipboard-manager:allow-clear"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-read -> Denies the read command without any pre-configured scope.",
|
||||
"description": "clipboard-manager:allow-read-image -> Enables the read_image command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-read"
|
||||
"clipboard-manager:allow-read-image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-write -> Denies the write command without any pre-configured scope.",
|
||||
"description": "clipboard-manager:allow-read-text -> Enables the read_text command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-write"
|
||||
"clipboard-manager:allow-read-text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:allow-write-html -> Enables the write_html command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:allow-write-html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:allow-write-image -> Enables the write_image command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:allow-write-image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:allow-write-text -> Enables the write_text command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:allow-write-text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-clear -> Denies the clear command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-clear"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-read-image -> Denies the read_image command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-read-image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-read-text -> Denies the read_text command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-read-text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-write-html -> Denies the write_html command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-write-html"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-write-image -> Denies the write_image command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-write-image"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "clipboard-manager:deny-write-text -> Denies the write_text command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"clipboard-manager:deny-write-text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"dialog:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -2812,7 +2920,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-app-write-recursive -> This allows full recusrive 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 `$APP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-app-write-recursive"
|
||||
@@ -2854,7 +2962,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appcache-write-recursive -> This allows full recusrive write access to the complete `$APPCACHE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appcache-write-recursive -> This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appcache-write-recursive"
|
||||
@@ -2896,7 +3004,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appconfig-write-recursive -> This allows full recusrive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appconfig-write-recursive -> This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appconfig-write-recursive"
|
||||
@@ -2938,7 +3046,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-appdata-write-recursive -> This allows full recusrive write access to the complete `$APPDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-appdata-write-recursive -> This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-appdata-write-recursive"
|
||||
@@ -2980,7 +3088,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-applocaldata-write-recursive -> This allows full recusrive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-applocaldata-write-recursive -> This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-applocaldata-write-recursive"
|
||||
@@ -3022,7 +3130,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-applog-write-recursive -> This allows full recusrive write access to the complete `$APPLOG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-applog-write-recursive -> This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-applog-write-recursive"
|
||||
@@ -3064,7 +3172,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-audio-write-recursive -> This allows full recusrive write access to the complete `$AUDIO` folder, files and subdirectories.",
|
||||
"description": "fs:allow-audio-write-recursive -> This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-audio-write-recursive"
|
||||
@@ -3106,7 +3214,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-cache-write-recursive -> This allows full recusrive write access to the complete `$CACHE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-cache-write-recursive -> This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-cache-write-recursive"
|
||||
@@ -3148,7 +3256,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-config-write-recursive -> This allows full recusrive write access to the complete `$CONFIG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-config-write-recursive -> This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-config-write-recursive"
|
||||
@@ -3190,7 +3298,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-data-write-recursive -> This allows full recusrive write access to the complete `$DATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-data-write-recursive -> This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-data-write-recursive"
|
||||
@@ -3232,7 +3340,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-desktop-write-recursive -> This allows full recusrive write access to the complete `$DESKTOP` folder, files and subdirectories.",
|
||||
"description": "fs:allow-desktop-write-recursive -> This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-desktop-write-recursive"
|
||||
@@ -3274,7 +3382,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-document-write-recursive -> This allows full recusrive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
|
||||
"description": "fs:allow-document-write-recursive -> This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-document-write-recursive"
|
||||
@@ -3316,7 +3424,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-download-write-recursive -> This allows full recusrive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
|
||||
"description": "fs:allow-download-write-recursive -> This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-download-write-recursive"
|
||||
@@ -3358,7 +3466,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-exe-write-recursive -> This allows full recusrive write access to the complete `$EXE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-exe-write-recursive -> This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-exe-write-recursive"
|
||||
@@ -3400,7 +3508,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-font-write-recursive -> This allows full recusrive write access to the complete `$FONT` folder, files and subdirectories.",
|
||||
"description": "fs:allow-font-write-recursive -> This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-font-write-recursive"
|
||||
@@ -3442,7 +3550,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-home-write-recursive -> This allows full recusrive write access to the complete `$HOME` folder, files and subdirectories.",
|
||||
"description": "fs:allow-home-write-recursive -> This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-home-write-recursive"
|
||||
@@ -3484,7 +3592,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-localdata-write-recursive -> This allows full recusrive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
|
||||
"description": "fs:allow-localdata-write-recursive -> This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-localdata-write-recursive"
|
||||
@@ -3526,7 +3634,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-log-write-recursive -> This allows full recusrive write access to the complete `$LOG` folder, files and subdirectories.",
|
||||
"description": "fs:allow-log-write-recursive -> This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-log-write-recursive"
|
||||
@@ -3568,7 +3676,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-picture-write-recursive -> This allows full recusrive write access to the complete `$PICTURE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-picture-write-recursive -> This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-picture-write-recursive"
|
||||
@@ -3610,7 +3718,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-public-write-recursive -> This allows full recusrive write access to the complete `$PUBLIC` folder, files and subdirectories.",
|
||||
"description": "fs:allow-public-write-recursive -> This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-public-write-recursive"
|
||||
@@ -3652,7 +3760,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-resource-write-recursive -> This allows full recusrive write access to the complete `$RESOURCE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-resource-write-recursive -> This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-resource-write-recursive"
|
||||
@@ -3694,7 +3802,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-runtime-write-recursive -> This allows full recusrive write access to the complete `$RUNTIME` folder, files and subdirectories.",
|
||||
"description": "fs:allow-runtime-write-recursive -> This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-runtime-write-recursive"
|
||||
@@ -3736,7 +3844,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-temp-write-recursive -> This allows full recusrive write access to the complete `$TEMP` folder, files and subdirectories.",
|
||||
"description": "fs:allow-temp-write-recursive -> This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-temp-write-recursive"
|
||||
@@ -3778,7 +3886,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-template-write-recursive -> This allows full recusrive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
|
||||
"description": "fs:allow-template-write-recursive -> This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-template-write-recursive"
|
||||
@@ -3820,7 +3928,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fs:allow-video-write-recursive -> This allows full recusrive write access to the complete `$VIDEO` folder, files and subdirectories.",
|
||||
"description": "fs:allow-video-write-recursive -> This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fs:allow-video-write-recursive"
|
||||
@@ -4827,6 +4935,83 @@
|
||||
"http:deny-fetch-send"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:default -> Default permissions for the plugin.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:allow-from-bytes -> Enables the from_bytes command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:allow-from-bytes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:allow-from-path -> Enables the from_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:allow-from-path"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:allow-new -> Enables the new command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:allow-new"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:allow-rgba -> Enables the rgba command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:allow-rgba"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:allow-size -> Enables the size command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:allow-size"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:deny-from-bytes -> Denies the from_bytes command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:deny-from-bytes"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:deny-from-path -> Denies the from_path command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:deny-from-path"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:deny-new -> Denies the new command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:deny-new"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:deny-rgba -> Denies the rgba command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:deny-rgba"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "image:deny-size -> Denies the size command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image:deny-size"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "log:default -> Allows the log command",
|
||||
"type": "string",
|
||||
@@ -5163,6 +5348,12 @@
|
||||
"menu:deny-text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"nfc:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "nfc:allow-is-available -> Enables the is_available command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5254,6 +5445,12 @@
|
||||
"notification:deny-request-permission"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"os:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "os:allow-arch -> Enables the arch command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5485,6 +5682,12 @@
|
||||
"path:deny-resolve-directory"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"process:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "process:allow-exit -> Enables the exit command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5534,6 +5737,12 @@
|
||||
"resources:deny-close"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"shell:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "shell:allow-execute -> Enables the execute command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5597,6 +5806,13 @@
|
||||
"tray:default"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:allow-get-by-id -> Enables the get_by_id command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"tray:allow-get-by-id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:allow-new -> Enables the new command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5604,6 +5820,13 @@
|
||||
"tray:allow-new"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:allow-remove-by-id -> Enables the remove_by_id command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"tray:allow-remove-by-id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:allow-set-icon -> Enables the set_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5660,6 +5883,13 @@
|
||||
"tray:allow-set-visible"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:deny-get-by-id -> Denies the get_by_id command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"tray:deny-get-by-id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:deny-new -> Denies the new command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
@@ -5667,6 +5897,13 @@
|
||||
"tray:deny-new"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:deny-remove-by-id -> Denies the remove_by_id command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"tray:deny-remove-by-id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "tray:deny-set-icon -> Denies the set_icon command without any pre-configured scope.",
|
||||
"type": "string",
|
||||
|
||||
@@ -145,10 +145,12 @@ pub fn run() {
|
||||
|
||||
app.run(move |_app_handle, _event| {
|
||||
#[cfg(desktop)]
|
||||
if let RunEvent::ExitRequested { api, .. } = &_event {
|
||||
// Keep the event loop running even if all windows are closed
|
||||
// This allow us to catch system tray events when there is no window
|
||||
api.prevent_exit();
|
||||
if let RunEvent::ExitRequested { code, api, .. } = &_event {
|
||||
if code.is_none() {
|
||||
// Keep the event loop running even if all windows are closed
|
||||
// This allow us to catch system tray events when there is no window
|
||||
api.prevent_exit();
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -80,9 +80,10 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
|
||||
i @ "icon-1" | i @ "icon-2" => {
|
||||
if let Some(tray) = app.tray_by_id("tray-1") {
|
||||
let _ = tray.set_icon(Some(if i == "icon-1" {
|
||||
tauri::Image::from_ico_bytes(include_bytes!("../icons/icon.ico")).unwrap()
|
||||
tauri::image::Image::from_bytes(include_bytes!("../icons/icon.ico"))
|
||||
.unwrap()
|
||||
} else {
|
||||
tauri::Image::from_png_bytes(include_bytes!(
|
||||
tauri::image::Image::from_bytes(include_bytes!(
|
||||
"../icons/tray_icon_with_transparency.png"
|
||||
))
|
||||
.unwrap()
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"build": {
|
||||
"devUrl": "http://localhost:5173",
|
||||
"frontendDist": "../dist",
|
||||
"beforeDevCommand": "yarn dev",
|
||||
"beforeBuildCommand": "yarn build"
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
"beforeBuildCommand": "pnpm build"
|
||||
},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
getCurrentWebview().onFileDropEvent((event) => {
|
||||
getCurrentWebview().onDragDropEvent((event) => {
|
||||
onMessage(`File drop: ${JSON.stringify(event.payload)}`);
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
export function arrayBufferToBase64(buffer, callback) {
|
||||
const blob = new Blob([buffer], {
|
||||
type: "application/octet-binary",
|
||||
});
|
||||
const reader = new FileReader();
|
||||
reader.onload = function (evt) {
|
||||
const dataurl = evt.target.result;
|
||||
callback(dataurl.substr(dataurl.indexOf(",") + 1));
|
||||
};
|
||||
reader.readAsDataURL(blob);
|
||||
}
|
||||
@@ -1,23 +1,59 @@
|
||||
<script>
|
||||
import { writeText, readText } from "@tauri-apps/plugin-clipboard-manager";
|
||||
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";
|
||||
|
||||
function write() {
|
||||
writeText(text)
|
||||
function writeText() {
|
||||
clipboard
|
||||
.writeText(text)
|
||||
.then(() => {
|
||||
onMessage("Wrote to the clipboard");
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function read() {
|
||||
readText()
|
||||
async function writeImage() {
|
||||
try {
|
||||
const res = 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");
|
||||
} catch (e) {
|
||||
onMessage(e);
|
||||
}
|
||||
}
|
||||
|
||||
async function read() {
|
||||
try {
|
||||
const image = await clipboard.readImage();
|
||||
arrayBufferToBase64(await image.rgba(), function (base64) {
|
||||
const src = "data:image/png;base64," + base64;
|
||||
insecureRenderHtml('<img src="' + src + '"></img>');
|
||||
});
|
||||
return;
|
||||
} catch (_) {}
|
||||
|
||||
clipboard
|
||||
.readText()
|
||||
.then((contents) => {
|
||||
onMessage(`Clipboard contents: ${contents}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
.catch((e) => {
|
||||
onMessage(e);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -27,6 +63,8 @@
|
||||
placeholder="Text to write to the clipboard"
|
||||
bind:value={text}
|
||||
/>
|
||||
<button class="btn" type="button" on:click={write}>Write</button>
|
||||
<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>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script>
|
||||
import * as fs from "@tauri-apps/plugin-fs";
|
||||
import { convertFileSrc } from "@tauri-apps/api/core";
|
||||
import { arrayBufferToBase64 } from "../lib/utils";
|
||||
|
||||
export let onMessage;
|
||||
export let insecureRenderHtml;
|
||||
@@ -20,18 +21,6 @@
|
||||
return dirSelect.value ? parseInt(dir.value) : null;
|
||||
}
|
||||
|
||||
function arrayBufferToBase64(buffer, callback) {
|
||||
const blob = new Blob([buffer], {
|
||||
type: "application/octet-binary",
|
||||
});
|
||||
const reader = new FileReader();
|
||||
reader.onload = function (evt) {
|
||||
const dataurl = evt.target.result;
|
||||
callback(dataurl.substr(dataurl.indexOf(",") + 1));
|
||||
};
|
||||
reader.readAsDataURL(blob);
|
||||
}
|
||||
|
||||
const DirOptions = Object.keys(fs.BaseDirectory)
|
||||
.filter((key) => isNaN(parseInt(key)))
|
||||
.map((dir) => [dir, fs.BaseDirectory[dir]]);
|
||||
@@ -215,7 +204,7 @@
|
||||
<button class="btn" on:click={stat}>Stat</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
<h3>Watch</h3>
|
||||
|
||||
<input
|
||||
@@ -225,7 +214,9 @@
|
||||
/>
|
||||
<br />
|
||||
<div>
|
||||
<label for="watch-debounce-delay">Debounce delay in milliseconds (`0` disables the debouncer)</label>
|
||||
<label for="watch-debounce-delay"
|
||||
>Debounce delay in milliseconds (`0` disables the debouncer)</label
|
||||
>
|
||||
<input
|
||||
class="input"
|
||||
id="watch-debounce-delay"
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
function register() {
|
||||
const shortcut_ = shortcut;
|
||||
registerShortcut(shortcut_, () => {
|
||||
onMessage(`Shortcut ${shortcut_} triggered`);
|
||||
registerShortcut(shortcut_, (e) => {
|
||||
onMessage(`Shortcut ${shortcut_} triggered ${e.state}`);
|
||||
})
|
||||
.then(() => {
|
||||
shortcuts.update((shortcuts_) => [...shortcuts_, shortcut_]);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user