mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-04 15:47:50 +02:00
Compare commits
211 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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 | |||
| 73d8562849 | |||
| 73364a8b96 | |||
| 066058f631 | |||
| c6a5b7ae47 | |||
| d3c7ee5a61 | |||
| 719b651753 | |||
| 40ce253abf | |||
| 184f4edbbc | |||
| 8f857dc4e1 | |||
| 8cd4a39864 | |||
| 80af01181a | |||
| 42607f0dbd | |||
| 160498dae5 | |||
| 6db4320e98 | |||
| cc63614f1e | |||
| 02111b9526 | |||
| 03fab3c6ad | |||
| 6a6c9daeb2 | |||
| d95a1b382f | |||
| 24eb3398d0 | |||
| adbc333a0f | |||
| b74ccb6639 | |||
| c290049051 | |||
| 509c23ed36 | |||
| 11d98e911e | |||
| 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 @@
|
|||||||
|
---
|
||||||
|
"clipboard-manager": "patch"
|
||||||
|
---
|
||||||
|
|
||||||
|
Expose `Clipboard` struct
|
||||||
@@ -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 @@
|
|||||||
|
---
|
||||||
|
"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,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 @@
|
|||||||
|
---
|
||||||
|
"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 @@
|
|||||||
|
---
|
||||||
|
"updater": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
**Breaking change:** The `rustls-tls` feature flag is now enabled by default.
|
||||||
@@ -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.
|
||||||
@@ -2,8 +2,10 @@
|
|||||||
"tag": "beta",
|
"tag": "beta",
|
||||||
"changes": [
|
"changes": [
|
||||||
".changes/beta.md",
|
".changes/beta.md",
|
||||||
|
".changes/clipboard-expose-struct.md",
|
||||||
".changes/clipboard-html.md",
|
".changes/clipboard-html.md",
|
||||||
".changes/clipboard-manager-image.md",
|
".changes/clipboard-manager-image.md",
|
||||||
|
".changes/clipboard-refactor.md",
|
||||||
".changes/clipboard-text-command-rename.md",
|
".changes/clipboard-text-command-rename.md",
|
||||||
".changes/dialog-can-create-directories.md",
|
".changes/dialog-can-create-directories.md",
|
||||||
".changes/dialog-linux-freeze.md",
|
".changes/dialog-linux-freeze.md",
|
||||||
@@ -11,29 +13,51 @@
|
|||||||
".changes/dialog-path-return-mismatch.md",
|
".changes/dialog-path-return-mismatch.md",
|
||||||
".changes/enhance-fs-scope-type.md",
|
".changes/enhance-fs-scope-type.md",
|
||||||
".changes/enhance-http-scope.md",
|
".changes/enhance-http-scope.md",
|
||||||
|
".changes/feat-log-attachlogger.md",
|
||||||
|
".changes/feat-single-instance-semver.md",
|
||||||
|
".changes/feat-websocket-tls-connector.md",
|
||||||
".changes/file-autogen-fix.md",
|
".changes/file-autogen-fix.md",
|
||||||
".changes/fix-autolaunch-macos.md",
|
".changes/fix-autolaunch-macos.md",
|
||||||
|
".changes/fix-default-arg-value.md",
|
||||||
|
".changes/fix-fs-scope-deadlock.md",
|
||||||
".changes/fix-fs-watcher-basedir.md",
|
".changes/fix-fs-watcher-basedir.md",
|
||||||
|
".changes/fix-http-default-features.md",
|
||||||
".changes/fix-http-scope-url-match.md",
|
".changes/fix-http-scope-url-match.md",
|
||||||
".changes/fix-shutdown-timing.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-installer-args-deserialization.md",
|
||||||
".changes/fix-updater-installmode.md",
|
".changes/fix-updater-installmode.md",
|
||||||
".changes/fix-updater-powershell-flashing.md",
|
".changes/fix-updater-powershell-flashing.md",
|
||||||
".changes/fix-zbus-import.md",
|
".changes/fix-zbus-import.md",
|
||||||
".changes/global-api-script-refactor.md",
|
".changes/global-api-script-refactor.md",
|
||||||
|
".changes/global-hotkey-event.md",
|
||||||
".changes/global-shortcut-refactor.md",
|
".changes/global-shortcut-refactor.md",
|
||||||
".changes/http-unsafe-headers.md",
|
".changes/http-unsafe-headers.md",
|
||||||
".changes/http-user-agent.md",
|
".changes/http-user-agent.md",
|
||||||
".changes/msrv-1.75.md",
|
".changes/msrv-1.75.md",
|
||||||
".changes/notification-fix-dev-check.md",
|
".changes/notification-fix-dev-check.md",
|
||||||
".changes/public-with-store.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-fix-schema-command-property-name.md",
|
".changes/shell-fix-schema-command-property-name.md",
|
||||||
".changes/shell-shellexcute.md",
|
".changes/shell-shellexcute.md",
|
||||||
".changes/single-instance.macos.md",
|
".changes/single-instance.macos.md",
|
||||||
|
".changes/tauri-beta-14-dependencies.md",
|
||||||
".changes/tauri-beta-14.md",
|
".changes/tauri-beta-14.md",
|
||||||
|
".changes/tauri-beta-15.md",
|
||||||
|
".changes/tauri-beta-17.md",
|
||||||
".changes/tauri-beta-4.md",
|
".changes/tauri-beta-4.md",
|
||||||
".changes/tauri-beta-8.md",
|
".changes/tauri-beta-8.md",
|
||||||
".changes/tauri-beta-9.md",
|
".changes/tauri-beta-9.md",
|
||||||
|
".changes/updater-non-zip.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"
|
".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,8 @@
|
|||||||
|
---
|
||||||
|
"authenticator": patch
|
||||||
|
"http": patch
|
||||||
|
"updater": patch
|
||||||
|
"upload": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update dependencies to align with 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,5 @@
|
|||||||
|
---
|
||||||
|
"updater": "patch"
|
||||||
|
---
|
||||||
|
|
||||||
|
Add support for updating using non-zipped files on Windows and Linux.
|
||||||
@@ -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
|
||||||
+3
-1
@@ -5,4 +5,6 @@ build/
|
|||||||
dist-js
|
dist-js
|
||||||
api-iife.js
|
api-iife.js
|
||||||
init-iife.js
|
init-iife.js
|
||||||
init.js
|
init.js
|
||||||
|
rollup.config.js
|
||||||
|
examples/
|
||||||
+3
-1
@@ -4,6 +4,7 @@
|
|||||||
"es2021": true
|
"es2021": true
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": [
|
||||||
|
"love",
|
||||||
"prettier",
|
"prettier",
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
@@ -13,7 +14,8 @@
|
|||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": "latest",
|
"ecmaVersion": "latest",
|
||||||
"sourceType": "module"
|
"sourceType": "module",
|
||||||
|
"project": ["**/tsconfig.json"]
|
||||||
},
|
},
|
||||||
"plugins": ["@typescript-eslint"],
|
"plugins": ["@typescript-eslint"],
|
||||||
"rules": {}
|
"rules": {}
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ jobs:
|
|||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: "lts/*"
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
- name: audit
|
- name: audit
|
||||||
run: pnpm audit
|
run: pnpm audit
|
||||||
|
|||||||
@@ -132,10 +132,10 @@ jobs:
|
|||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: "lts/*"
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
|
|
||||||
- name: build api
|
- name: build api
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
|
|
||||||
- name: install webkit2gtk and libudev for [authenticator]
|
- name: install webkit2gtk and libudev for [authenticator]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
|
|
||||||
- name: install webkit2gtk and libudev for [authenticator]
|
- name: install webkit2gtk and libudev for [authenticator]
|
||||||
@@ -64,5 +64,5 @@ jobs:
|
|||||||
title: "Publish New Versions"
|
title: "Publish New Versions"
|
||||||
commit-message: "publish new versions"
|
commit-message: "publish new versions"
|
||||||
labels: "version updates"
|
labels: "version updates"
|
||||||
branch: "release"
|
branch: "ci/release-v1"
|
||||||
body: ${{ steps.covector.outputs.change }}
|
body: ${{ steps.covector.outputs.change }}
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ jobs:
|
|||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: "lts/*"
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
- name: eslint
|
- name: eslint
|
||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
@@ -66,10 +66,10 @@ jobs:
|
|||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: "lts/*"
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
- name: prettier check
|
- name: prettier check
|
||||||
run: pnpm format-check
|
run: pnpm format-check
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: "lts/*"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 7.x.x
|
version: 8.x.x
|
||||||
run_install: true
|
run_install: true
|
||||||
|
|
||||||
- name: Build packages
|
- name: Build packages
|
||||||
|
|||||||
@@ -131,31 +131,31 @@ jobs:
|
|||||||
- {
|
- {
|
||||||
target: x86_64-pc-windows-msvc,
|
target: x86_64-pc-windows-msvc,
|
||||||
os: windows-latest,
|
os: windows-latest,
|
||||||
runner: 'cargo',
|
runner: "cargo",
|
||||||
command: "test",
|
command: "test",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
target: x86_64-unknown-linux-gnu,
|
target: x86_64-unknown-linux-gnu,
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
runner: 'cargo',
|
runner: "cargo",
|
||||||
command: "test",
|
command: "test",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
target: x86_64-apple-darwin,
|
target: aarch64-apple-darwin,
|
||||||
os: macos-latest,
|
os: macos-latest,
|
||||||
runner: 'cargo',
|
runner: "cargo",
|
||||||
command: "test",
|
command: "test",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
target: aarch64-apple-ios,
|
target: aarch64-apple-ios,
|
||||||
os: macos-latest,
|
os: macos-latest,
|
||||||
runner: 'cargo',
|
runner: "cargo",
|
||||||
command: "build",
|
command: "build",
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
target: aarch64-linux-android,
|
target: aarch64-linux-android,
|
||||||
os: ubuntu-latest,
|
os: ubuntu-latest,
|
||||||
runner: 'cross',
|
runner: "cross",
|
||||||
command: "build",
|
command: "build",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+331
-794
File diff suppressed because it is too large
Load Diff
+5
-3
@@ -10,19 +10,21 @@ resolver = "2"
|
|||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
tauri = "2.0.0-beta.14"
|
tauri = "2.0.0-beta.17"
|
||||||
tauri-build = "2.0.0-beta.11"
|
tauri-build = "2.0.0-beta.13"
|
||||||
tauri-plugin = "2.0.0-beta.11"
|
tauri-plugin = "2.0.0-beta.13"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
thiserror = "1"
|
thiserror = "1"
|
||||||
url = "2"
|
url = "2"
|
||||||
schemars = "0.8"
|
schemars = "0.8"
|
||||||
|
dunce = "1"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Tauri Programme within The Commons Conservancy"]
|
authors = ["Tauri Programme within The Commons Conservancy"]
|
||||||
license = "Apache-2.0 OR MIT"
|
license = "Apache-2.0 OR MIT"
|
||||||
rust-version = "1.75"
|
rust-version = "1.75"
|
||||||
|
repository = "https://github.com/tauri-apps/plugins-workspace"
|
||||||
|
|
||||||
# default to small, optimized release binaries
|
# default to small, optimized release binaries
|
||||||
[profile.release]
|
[profile.release]
|
||||||
|
|||||||
@@ -1,5 +1,31 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[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]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|||||||
+21
-21
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "svelte-app",
|
"name": "svelte-app",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.0-beta.3",
|
"version": "2.0.0-beta.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --clearScreen false",
|
"dev": "vite --clearScreen false",
|
||||||
@@ -9,32 +9,32 @@
|
|||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6",
|
"@tauri-apps/api": "2.0.0-beta.11",
|
||||||
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.2",
|
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-biometric": "2.0.0-beta.2",
|
"@tauri-apps/plugin-biometric": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-cli": "2.0.0-beta.2",
|
"@tauri-apps/plugin-cli": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.0",
|
"@tauri-apps/plugin-clipboard-manager": "2.1.0-beta.1",
|
||||||
"@tauri-apps/plugin-dialog": "2.0.0-beta.2",
|
"@tauri-apps/plugin-dialog": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-fs": "2.0.0-beta.2",
|
"@tauri-apps/plugin-fs": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.2",
|
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-http": "2.0.0-beta.2",
|
"@tauri-apps/plugin-http": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-nfc": "2.0.0-beta.2",
|
"@tauri-apps/plugin-nfc": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-notification": "2.0.0-beta.2",
|
"@tauri-apps/plugin-notification": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-os": "2.0.0-beta.2",
|
"@tauri-apps/plugin-os": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-process": "2.0.0-beta.2",
|
"@tauri-apps/plugin-process": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-shell": "2.0.0-beta.2",
|
"@tauri-apps/plugin-shell": "2.0.0-beta.3",
|
||||||
"@tauri-apps/plugin-updater": "2.0.0-beta.2",
|
"@tauri-apps/plugin-updater": "2.0.0-beta.3",
|
||||||
"@zerodevx/svelte-json-view": "1.0.7"
|
"@zerodevx/svelte-json-view": "1.0.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-json/codicon": "^1.1.37",
|
"@iconify-json/codicon": "^1.1.37",
|
||||||
"@iconify-json/ph": "^1.1.8",
|
"@iconify-json/ph": "^1.1.8",
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||||
"@tauri-apps/cli": "2.0.0-beta.9",
|
"@tauri-apps/cli": "2.0.0-beta.15",
|
||||||
"@unocss/extractor-svelte": "^0.58.0",
|
"@unocss/extractor-svelte": "^0.59.0",
|
||||||
"internal-ip": "^8.0.0",
|
"internal-ip": "^8.0.0",
|
||||||
"svelte": "^4.2.8",
|
"svelte": "^4.2.8",
|
||||||
"unocss": "^0.58.0",
|
"unocss": "^0.59.0",
|
||||||
"vite": "^5.0.12"
|
"vite": "^5.0.13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,45 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[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]
|
## \[2.0.0-beta.4]
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "api"
|
name = "api"
|
||||||
publish = false
|
publish = false
|
||||||
version = "2.0.0-beta.4"
|
version = "2.0.0-beta.7"
|
||||||
description = "An example Tauri Application showcasing the api"
|
description = "An example Tauri Application showcasing the api"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
@@ -17,17 +17,17 @@ tauri-build = { workspace = true, features = [ "codegen", "isolation" ] }
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
tiny_http = "0.11"
|
tiny_http = "0.12"
|
||||||
log = { workspace = true }
|
log = { workspace = true }
|
||||||
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.3" }
|
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.4", features = [ "watch" ] }
|
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.7", features = [ "watch" ] }
|
||||||
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.1.0-beta.0" }
|
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.1.0-beta.2" }
|
||||||
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.4" }
|
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.7" }
|
||||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.4" }
|
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.7" }
|
||||||
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.3", features = [ "windows7-compat" ] }
|
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.5", features = [ "windows7-compat" ] }
|
||||||
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.3" }
|
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.3" }
|
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.3" }
|
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.4" }
|
||||||
|
|
||||||
[dependencies.tauri]
|
[dependencies.tauri]
|
||||||
workspace = true
|
workspace = true
|
||||||
@@ -41,14 +41,14 @@ tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.3"
|
|||||||
]
|
]
|
||||||
|
|
||||||
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
|
[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.3" }
|
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.3" }
|
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.3" }
|
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.5" }
|
||||||
|
|
||||||
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
|
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
|
||||||
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.3" }
|
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.5" }
|
||||||
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.3" }
|
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.4" }
|
||||||
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.3" }
|
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.4" }
|
||||||
|
|
||||||
[target."cfg(target_os = \"windows\")".dependencies]
|
[target."cfg(target_os = \"windows\")".dependencies]
|
||||||
window-shadows = "0.2"
|
window-shadows = "0.2"
|
||||||
|
|||||||
@@ -22,10 +22,16 @@
|
|||||||
"tray:default",
|
"tray:default",
|
||||||
"event:default",
|
"event:default",
|
||||||
"window:default",
|
"window:default",
|
||||||
|
"window:allow-minimize",
|
||||||
|
"window:allow-maximize",
|
||||||
|
"window:allow-unmaximize",
|
||||||
|
"window:allow-close",
|
||||||
|
"window:allow-start-dragging",
|
||||||
"image:default",
|
"image:default",
|
||||||
"notification:default",
|
"notification:default",
|
||||||
"os:allow-platform",
|
"os:allow-platform",
|
||||||
"dialog:allow-open",
|
"dialog:allow-open",
|
||||||
|
"dialog:allow-ask",
|
||||||
"dialog:allow-save",
|
"dialog:allow-save",
|
||||||
"dialog:allow-confirm",
|
"dialog:allow-confirm",
|
||||||
"dialog:allow-message",
|
"dialog:allow-message",
|
||||||
@@ -56,6 +62,8 @@
|
|||||||
},
|
},
|
||||||
"shell:allow-kill",
|
"shell:allow-kill",
|
||||||
"shell:allow-stdin-write",
|
"shell:allow-stdin-write",
|
||||||
|
"process:allow-exit",
|
||||||
|
"process:allow-restart",
|
||||||
"clipboard-manager:allow-read-text",
|
"clipboard-manager:allow-read-text",
|
||||||
"clipboard-manager:allow-write-text",
|
"clipboard-manager:allow-write-text",
|
||||||
"clipboard-manager:allow-read-image",
|
"clipboard-manager:allow-read-image",
|
||||||
|
|||||||
@@ -149,14 +149,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-app-meta -> This allows read access to metadata of the `$APP` folder, including file listing and statistics.",
|
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-app-meta"
|
"fs:allow-app-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-app-meta-recursive -> This allows read access to metadata of the `$APP` folder, including file listing and statistics.",
|
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-app-meta-recursive"
|
"fs:allow-app-meta-recursive"
|
||||||
@@ -191,14 +191,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appcache-meta -> This allows read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-appcache-meta -> This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appcache-meta"
|
"fs:allow-appcache-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appcache-meta-recursive -> This allows read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-appcache-meta-recursive -> This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appcache-meta-recursive"
|
"fs:allow-appcache-meta-recursive"
|
||||||
@@ -233,14 +233,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appconfig-meta -> This allows read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-appconfig-meta -> This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appconfig-meta"
|
"fs:allow-appconfig-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appconfig-meta-recursive -> This allows read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-appconfig-meta-recursive -> This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appconfig-meta-recursive"
|
"fs:allow-appconfig-meta-recursive"
|
||||||
@@ -275,14 +275,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appdata-meta -> This allows read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-appdata-meta -> This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appdata-meta"
|
"fs:allow-appdata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appdata-meta-recursive -> This allows read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-appdata-meta-recursive -> This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appdata-meta-recursive"
|
"fs:allow-appdata-meta-recursive"
|
||||||
@@ -317,14 +317,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applocaldata-meta -> This allows read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-applocaldata-meta -> This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applocaldata-meta"
|
"fs:allow-applocaldata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applocaldata-meta-recursive -> This allows read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-applocaldata-meta-recursive -> This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applocaldata-meta-recursive"
|
"fs:allow-applocaldata-meta-recursive"
|
||||||
@@ -359,14 +359,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applog-meta -> This allows read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
"description": "fs:allow-applog-meta -> This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applog-meta"
|
"fs:allow-applog-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applog-meta-recursive -> This allows read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
"description": "fs:allow-applog-meta-recursive -> This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applog-meta-recursive"
|
"fs:allow-applog-meta-recursive"
|
||||||
@@ -401,14 +401,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-audio-meta -> This allows read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
"description": "fs:allow-audio-meta -> This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-audio-meta"
|
"fs:allow-audio-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-audio-meta-recursive -> This allows read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
"description": "fs:allow-audio-meta-recursive -> This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-audio-meta-recursive"
|
"fs:allow-audio-meta-recursive"
|
||||||
@@ -443,14 +443,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-cache-meta -> This allows read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-cache-meta -> This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-cache-meta"
|
"fs:allow-cache-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-cache-meta-recursive -> This allows read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-cache-meta-recursive -> This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-cache-meta-recursive"
|
"fs:allow-cache-meta-recursive"
|
||||||
@@ -485,14 +485,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-config-meta -> This allows read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-config-meta -> This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-config-meta"
|
"fs:allow-config-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-config-meta-recursive -> This allows read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-config-meta-recursive -> This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-config-meta-recursive"
|
"fs:allow-config-meta-recursive"
|
||||||
@@ -527,14 +527,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-data-meta -> This allows read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
"description": "fs:allow-data-meta -> This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-data-meta"
|
"fs:allow-data-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-data-meta-recursive -> This allows read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
"description": "fs:allow-data-meta-recursive -> This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-data-meta-recursive"
|
"fs:allow-data-meta-recursive"
|
||||||
@@ -569,14 +569,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-desktop-meta -> This allows read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
"description": "fs:allow-desktop-meta -> This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-desktop-meta"
|
"fs:allow-desktop-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-desktop-meta-recursive -> This allows read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
"description": "fs:allow-desktop-meta-recursive -> This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-desktop-meta-recursive"
|
"fs:allow-desktop-meta-recursive"
|
||||||
@@ -611,14 +611,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-document-meta -> This allows read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
"description": "fs:allow-document-meta -> This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-document-meta"
|
"fs:allow-document-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-document-meta-recursive -> This allows read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
"description": "fs:allow-document-meta-recursive -> This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-document-meta-recursive"
|
"fs:allow-document-meta-recursive"
|
||||||
@@ -653,14 +653,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-download-meta -> This allows read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
"description": "fs:allow-download-meta -> This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-download-meta"
|
"fs:allow-download-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-download-meta-recursive -> This allows read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
"description": "fs:allow-download-meta-recursive -> This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-download-meta-recursive"
|
"fs:allow-download-meta-recursive"
|
||||||
@@ -695,14 +695,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-exe-meta -> This allows read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
"description": "fs:allow-exe-meta -> This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-exe-meta"
|
"fs:allow-exe-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-exe-meta-recursive -> This allows read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
"description": "fs:allow-exe-meta-recursive -> This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-exe-meta-recursive"
|
"fs:allow-exe-meta-recursive"
|
||||||
@@ -737,14 +737,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-font-meta -> This allows read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
"description": "fs:allow-font-meta -> This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-font-meta"
|
"fs:allow-font-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-font-meta-recursive -> This allows read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
"description": "fs:allow-font-meta-recursive -> This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-font-meta-recursive"
|
"fs:allow-font-meta-recursive"
|
||||||
@@ -779,14 +779,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-home-meta -> This allows read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
"description": "fs:allow-home-meta -> This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-home-meta"
|
"fs:allow-home-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-home-meta-recursive -> This allows read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
"description": "fs:allow-home-meta-recursive -> This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-home-meta-recursive"
|
"fs:allow-home-meta-recursive"
|
||||||
@@ -821,14 +821,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-localdata-meta -> This allows read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-localdata-meta -> This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-localdata-meta"
|
"fs:allow-localdata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-localdata-meta-recursive -> This allows read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-localdata-meta-recursive -> This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-localdata-meta-recursive"
|
"fs:allow-localdata-meta-recursive"
|
||||||
@@ -863,14 +863,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-log-meta -> This allows read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
"description": "fs:allow-log-meta -> This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-log-meta"
|
"fs:allow-log-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-log-meta-recursive -> This allows read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
"description": "fs:allow-log-meta-recursive -> This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-log-meta-recursive"
|
"fs:allow-log-meta-recursive"
|
||||||
@@ -905,14 +905,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-picture-meta -> This allows read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
"description": "fs:allow-picture-meta -> This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-picture-meta"
|
"fs:allow-picture-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-picture-meta-recursive -> This allows read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
"description": "fs:allow-picture-meta-recursive -> This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-picture-meta-recursive"
|
"fs:allow-picture-meta-recursive"
|
||||||
@@ -947,14 +947,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-public-meta -> This allows read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
"description": "fs:allow-public-meta -> This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-public-meta"
|
"fs:allow-public-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-public-meta-recursive -> This allows read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
"description": "fs:allow-public-meta-recursive -> This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-public-meta-recursive"
|
"fs:allow-public-meta-recursive"
|
||||||
@@ -989,14 +989,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-resource-meta -> This allows read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
"description": "fs:allow-resource-meta -> This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-resource-meta"
|
"fs:allow-resource-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-resource-meta-recursive -> This allows read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
"description": "fs:allow-resource-meta-recursive -> This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-resource-meta-recursive"
|
"fs:allow-resource-meta-recursive"
|
||||||
@@ -1031,14 +1031,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-runtime-meta -> This allows read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
"description": "fs:allow-runtime-meta -> This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-runtime-meta"
|
"fs:allow-runtime-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-runtime-meta-recursive -> This allows read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
"description": "fs:allow-runtime-meta-recursive -> This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-runtime-meta-recursive"
|
"fs:allow-runtime-meta-recursive"
|
||||||
@@ -1073,14 +1073,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-temp-meta -> This allows read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
"description": "fs:allow-temp-meta -> This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-temp-meta"
|
"fs:allow-temp-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-temp-meta-recursive -> This allows read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
"description": "fs:allow-temp-meta-recursive -> This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-temp-meta-recursive"
|
"fs:allow-temp-meta-recursive"
|
||||||
@@ -1115,14 +1115,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-template-meta -> This allows read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
"description": "fs:allow-template-meta -> This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-template-meta"
|
"fs:allow-template-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-template-meta-recursive -> This allows read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
"description": "fs:allow-template-meta-recursive -> This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-template-meta-recursive"
|
"fs:allow-template-meta-recursive"
|
||||||
@@ -1157,14 +1157,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-video-meta -> This allows read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
"description": "fs:allow-video-meta -> This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-video-meta"
|
"fs:allow-video-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-video-meta-recursive -> This allows read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
"description": "fs:allow-video-meta-recursive -> This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-video-meta-recursive"
|
"fs:allow-video-meta-recursive"
|
||||||
@@ -2782,14 +2782,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-app-meta -> This allows read access to metadata of the `$APP` folder, including file listing and statistics.",
|
"description": "fs:allow-app-meta -> This allows non-recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-app-meta"
|
"fs:allow-app-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-app-meta-recursive -> This allows read access to metadata of the `$APP` folder, including file listing and statistics.",
|
"description": "fs:allow-app-meta-recursive -> This allows full recursive read access to metadata of the `$APP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-app-meta-recursive"
|
"fs:allow-app-meta-recursive"
|
||||||
@@ -2824,14 +2824,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appcache-meta -> This allows read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-appcache-meta -> This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appcache-meta"
|
"fs:allow-appcache-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appcache-meta-recursive -> This allows read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-appcache-meta-recursive -> This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appcache-meta-recursive"
|
"fs:allow-appcache-meta-recursive"
|
||||||
@@ -2866,14 +2866,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appconfig-meta -> This allows read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-appconfig-meta -> This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appconfig-meta"
|
"fs:allow-appconfig-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appconfig-meta-recursive -> This allows read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-appconfig-meta-recursive -> This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appconfig-meta-recursive"
|
"fs:allow-appconfig-meta-recursive"
|
||||||
@@ -2908,14 +2908,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appdata-meta -> This allows read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-appdata-meta -> This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appdata-meta"
|
"fs:allow-appdata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-appdata-meta-recursive -> This allows read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-appdata-meta-recursive -> This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-appdata-meta-recursive"
|
"fs:allow-appdata-meta-recursive"
|
||||||
@@ -2950,14 +2950,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applocaldata-meta -> This allows read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-applocaldata-meta -> This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applocaldata-meta"
|
"fs:allow-applocaldata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applocaldata-meta-recursive -> This allows read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-applocaldata-meta-recursive -> This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applocaldata-meta-recursive"
|
"fs:allow-applocaldata-meta-recursive"
|
||||||
@@ -2992,14 +2992,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applog-meta -> This allows read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
"description": "fs:allow-applog-meta -> This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applog-meta"
|
"fs:allow-applog-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-applog-meta-recursive -> This allows read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
"description": "fs:allow-applog-meta-recursive -> This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-applog-meta-recursive"
|
"fs:allow-applog-meta-recursive"
|
||||||
@@ -3034,14 +3034,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-audio-meta -> This allows read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
"description": "fs:allow-audio-meta -> This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-audio-meta"
|
"fs:allow-audio-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-audio-meta-recursive -> This allows read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
"description": "fs:allow-audio-meta-recursive -> This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-audio-meta-recursive"
|
"fs:allow-audio-meta-recursive"
|
||||||
@@ -3076,14 +3076,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-cache-meta -> This allows read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-cache-meta -> This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-cache-meta"
|
"fs:allow-cache-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-cache-meta-recursive -> This allows read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
"description": "fs:allow-cache-meta-recursive -> This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-cache-meta-recursive"
|
"fs:allow-cache-meta-recursive"
|
||||||
@@ -3118,14 +3118,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-config-meta -> This allows read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-config-meta -> This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-config-meta"
|
"fs:allow-config-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-config-meta-recursive -> This allows read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
"description": "fs:allow-config-meta-recursive -> This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-config-meta-recursive"
|
"fs:allow-config-meta-recursive"
|
||||||
@@ -3160,14 +3160,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-data-meta -> This allows read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
"description": "fs:allow-data-meta -> This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-data-meta"
|
"fs:allow-data-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-data-meta-recursive -> This allows read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
"description": "fs:allow-data-meta-recursive -> This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-data-meta-recursive"
|
"fs:allow-data-meta-recursive"
|
||||||
@@ -3202,14 +3202,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-desktop-meta -> This allows read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
"description": "fs:allow-desktop-meta -> This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-desktop-meta"
|
"fs:allow-desktop-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-desktop-meta-recursive -> This allows read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
"description": "fs:allow-desktop-meta-recursive -> This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-desktop-meta-recursive"
|
"fs:allow-desktop-meta-recursive"
|
||||||
@@ -3244,14 +3244,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-document-meta -> This allows read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
"description": "fs:allow-document-meta -> This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-document-meta"
|
"fs:allow-document-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-document-meta-recursive -> This allows read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
"description": "fs:allow-document-meta-recursive -> This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-document-meta-recursive"
|
"fs:allow-document-meta-recursive"
|
||||||
@@ -3286,14 +3286,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-download-meta -> This allows read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
"description": "fs:allow-download-meta -> This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-download-meta"
|
"fs:allow-download-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-download-meta-recursive -> This allows read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
"description": "fs:allow-download-meta-recursive -> This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-download-meta-recursive"
|
"fs:allow-download-meta-recursive"
|
||||||
@@ -3328,14 +3328,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-exe-meta -> This allows read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
"description": "fs:allow-exe-meta -> This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-exe-meta"
|
"fs:allow-exe-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-exe-meta-recursive -> This allows read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
"description": "fs:allow-exe-meta-recursive -> This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-exe-meta-recursive"
|
"fs:allow-exe-meta-recursive"
|
||||||
@@ -3370,14 +3370,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-font-meta -> This allows read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
"description": "fs:allow-font-meta -> This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-font-meta"
|
"fs:allow-font-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-font-meta-recursive -> This allows read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
"description": "fs:allow-font-meta-recursive -> This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-font-meta-recursive"
|
"fs:allow-font-meta-recursive"
|
||||||
@@ -3412,14 +3412,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-home-meta -> This allows read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
"description": "fs:allow-home-meta -> This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-home-meta"
|
"fs:allow-home-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-home-meta-recursive -> This allows read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
"description": "fs:allow-home-meta-recursive -> This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-home-meta-recursive"
|
"fs:allow-home-meta-recursive"
|
||||||
@@ -3454,14 +3454,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-localdata-meta -> This allows read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-localdata-meta -> This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-localdata-meta"
|
"fs:allow-localdata-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-localdata-meta-recursive -> This allows read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
"description": "fs:allow-localdata-meta-recursive -> This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-localdata-meta-recursive"
|
"fs:allow-localdata-meta-recursive"
|
||||||
@@ -3496,14 +3496,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-log-meta -> This allows read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
"description": "fs:allow-log-meta -> This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-log-meta"
|
"fs:allow-log-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-log-meta-recursive -> This allows read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
"description": "fs:allow-log-meta-recursive -> This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-log-meta-recursive"
|
"fs:allow-log-meta-recursive"
|
||||||
@@ -3538,14 +3538,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-picture-meta -> This allows read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
"description": "fs:allow-picture-meta -> This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-picture-meta"
|
"fs:allow-picture-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-picture-meta-recursive -> This allows read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
"description": "fs:allow-picture-meta-recursive -> This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-picture-meta-recursive"
|
"fs:allow-picture-meta-recursive"
|
||||||
@@ -3580,14 +3580,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-public-meta -> This allows read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
"description": "fs:allow-public-meta -> This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-public-meta"
|
"fs:allow-public-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-public-meta-recursive -> This allows read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
"description": "fs:allow-public-meta-recursive -> This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-public-meta-recursive"
|
"fs:allow-public-meta-recursive"
|
||||||
@@ -3622,14 +3622,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-resource-meta -> This allows read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
"description": "fs:allow-resource-meta -> This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-resource-meta"
|
"fs:allow-resource-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-resource-meta-recursive -> This allows read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
"description": "fs:allow-resource-meta-recursive -> This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-resource-meta-recursive"
|
"fs:allow-resource-meta-recursive"
|
||||||
@@ -3664,14 +3664,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-runtime-meta -> This allows read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
"description": "fs:allow-runtime-meta -> This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-runtime-meta"
|
"fs:allow-runtime-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-runtime-meta-recursive -> This allows read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
"description": "fs:allow-runtime-meta-recursive -> This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-runtime-meta-recursive"
|
"fs:allow-runtime-meta-recursive"
|
||||||
@@ -3706,14 +3706,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-temp-meta -> This allows read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
"description": "fs:allow-temp-meta -> This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-temp-meta"
|
"fs:allow-temp-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-temp-meta-recursive -> This allows read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
"description": "fs:allow-temp-meta-recursive -> This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-temp-meta-recursive"
|
"fs:allow-temp-meta-recursive"
|
||||||
@@ -3748,14 +3748,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-template-meta -> This allows read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
"description": "fs:allow-template-meta -> This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-template-meta"
|
"fs:allow-template-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-template-meta-recursive -> This allows read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
"description": "fs:allow-template-meta-recursive -> This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-template-meta-recursive"
|
"fs:allow-template-meta-recursive"
|
||||||
@@ -3790,14 +3790,14 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-video-meta -> This allows read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
"description": "fs:allow-video-meta -> This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-video-meta"
|
"fs:allow-video-meta"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "fs:allow-video-meta-recursive -> This allows read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
"description": "fs:allow-video-meta-recursive -> This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"fs:allow-video-meta-recursive"
|
"fs:allow-video-meta-recursive"
|
||||||
@@ -5983,6 +5983,13 @@
|
|||||||
"webview:allow-set-webview-size"
|
"webview:allow-set-webview-size"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "webview:allow-set-webview-zoom -> Enables the set_webview_zoom command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"webview:allow-set-webview-zoom"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "webview:allow-webview-close -> Enables the webview_close command without any pre-configured scope.",
|
"description": "webview:allow-webview-close -> Enables the webview_close command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -6060,6 +6067,13 @@
|
|||||||
"webview:deny-set-webview-size"
|
"webview:deny-set-webview-size"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "webview:deny-set-webview-zoom -> Denies the set_webview_zoom command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"webview:deny-set-webview-zoom"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "webview:deny-webview-close -> Denies the webview_close command without any pre-configured scope.",
|
"description": "webview:deny-webview-close -> Denies the webview_close command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -6123,6 +6137,13 @@
|
|||||||
"window:allow-current-monitor"
|
"window:allow-current-monitor"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "window:allow-cursor-position -> Enables the cursor_position command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"window:allow-cursor-position"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "window:allow-destroy -> Enables the destroy command without any pre-configured scope.",
|
"description": "window:allow-destroy -> Enables the destroy command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -6473,6 +6494,13 @@
|
|||||||
"window:allow-start-dragging"
|
"window:allow-start-dragging"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "window:allow-start-resize-dragging -> Enables the start_resize_dragging command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"window:allow-start-resize-dragging"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "window:allow-theme -> Enables the theme command without any pre-configured scope.",
|
"description": "window:allow-theme -> Enables the theme command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -6543,6 +6571,13 @@
|
|||||||
"window:deny-current-monitor"
|
"window:deny-current-monitor"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "window:deny-cursor-position -> Denies the cursor_position command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"window:deny-cursor-position"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "window:deny-destroy -> Denies the destroy command without any pre-configured scope.",
|
"description": "window:deny-destroy -> Denies the destroy command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -6893,6 +6928,13 @@
|
|||||||
"window:deny-start-dragging"
|
"window:deny-start-dragging"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "window:deny-start-resize-dragging -> Denies the start_resize_dragging command without any pre-configured scope.",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"window:deny-start-resize-dragging"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"description": "window:deny-theme -> Denies the theme command without any pre-configured scope.",
|
"description": "window:deny-theme -> Denies the theme command without any pre-configured scope.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -145,10 +145,12 @@ pub fn run() {
|
|||||||
|
|
||||||
app.run(move |_app_handle, _event| {
|
app.run(move |_app_handle, _event| {
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
if let RunEvent::ExitRequested { api, .. } = &_event {
|
if let RunEvent::ExitRequested { code, api, .. } = &_event {
|
||||||
// Keep the event loop running even if all windows are closed
|
if code.is_none() {
|
||||||
// This allow us to catch system tray events when there is no window
|
// Keep the event loop running even if all windows are closed
|
||||||
api.prevent_exit();
|
// This allow us to catch system tray events when there is no window
|
||||||
|
api.prevent_exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
function register() {
|
function register() {
|
||||||
const shortcut_ = shortcut;
|
const shortcut_ = shortcut;
|
||||||
registerShortcut(shortcut_, () => {
|
registerShortcut(shortcut_, (e) => {
|
||||||
onMessage(`Shortcut ${shortcut_} triggered`);
|
onMessage(`Shortcut ${shortcut_} triggered ${e.state}`);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
shortcuts.update((shortcuts_) => [...shortcuts_, shortcut_]);
|
shortcuts.update((shortcuts_) => [...shortcuts_, shortcut_]);
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
isChecking = true;
|
isChecking = true;
|
||||||
try {
|
try {
|
||||||
const update = await check();
|
const update = await check();
|
||||||
onMessage(`Should update: ${update.response.available}`);
|
onMessage(`Should update: ${update.available}`);
|
||||||
onMessage(update.response);
|
onMessage(update);
|
||||||
|
|
||||||
newUpdate = update;
|
newUpdate = update;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
+11
-10
@@ -13,26 +13,27 @@
|
|||||||
"@rollup/plugin-node-resolve": "15.2.3",
|
"@rollup/plugin-node-resolve": "15.2.3",
|
||||||
"@rollup/plugin-terser": "0.4.4",
|
"@rollup/plugin-terser": "0.4.4",
|
||||||
"@rollup/plugin-typescript": "11.1.6",
|
"@rollup/plugin-typescript": "11.1.6",
|
||||||
"@typescript-eslint/eslint-plugin": "6.20.0",
|
"@typescript-eslint/eslint-plugin": "7.8.0",
|
||||||
"@typescript-eslint/parser": "6.20.0",
|
"@typescript-eslint/parser": "7.8.0",
|
||||||
"covector": "^0.10.2",
|
"covector": "^0.10.2",
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-config-standard-with-typescript": "43.0.1",
|
"eslint-config-love": "47.0.0",
|
||||||
"eslint-plugin-import": "2.29.1",
|
"eslint-plugin-import": "2.29.1",
|
||||||
"eslint-plugin-n": "16.6.2",
|
"eslint-plugin-n": "17.4.0",
|
||||||
"eslint-plugin-promise": "6.1.1",
|
"eslint-plugin-promise": "6.1.1",
|
||||||
"eslint-plugin-security": "2.1.0",
|
"eslint-plugin-security": "3.0.0",
|
||||||
"prettier": "3.2.2",
|
"prettier": "3.2.5",
|
||||||
"rollup": "4.9.6",
|
"rollup": "4.17.2",
|
||||||
"typescript": "5.3.3"
|
"tslib": "2.6.2",
|
||||||
|
"typescript": "5.4.5"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"semver": ">=7.5.2",
|
"semver": ">=7.5.2",
|
||||||
"optionator": ">=0.9.3"
|
"optionator": ">=0.9.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"pnpm": ">=7.33.1"
|
"pnpm": "^8.0.0"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"auditConfig": {
|
"auditConfig": {
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
## \[2.0.0-beta.3]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.4]
|
||||||
|
|
||||||
|
- [`7e2fcc5`](https://github.com/tauri-apps/plugins-workspace/commit/7e2fcc5e74df7c3c718e40f75bfb0eafc7d69d8d)([#1146](https://github.com/tauri-apps/plugins-workspace/pull/1146)) Update dependencies to align with tauri 2.0.0-beta.14.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-authenticator"
|
name = "tauri-plugin-authenticator"
|
||||||
version = "2.0.0-beta.3"
|
version = "2.0.0-beta.5"
|
||||||
description = "Use hardware security-keys in your Tauri App."
|
description = "Use hardware security-keys in your Tauri App."
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-authenticator"
|
links = "tauri-plugin-authenticator"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
@@ -26,7 +27,7 @@ thiserror = { workspace = true }
|
|||||||
authenticator = "0.3.1"
|
authenticator = "0.3.1"
|
||||||
once_cell = "1"
|
once_cell = "1"
|
||||||
sha2 = "0.10"
|
sha2 = "0.10"
|
||||||
base64 = "0.21"
|
base64 = "0.22"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
bytes = "1"
|
bytes = "1"
|
||||||
byteorder = "1"
|
byteorder = "1"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_AUTHENTICATOR__=function(t){"use strict";async function i(t,i={},a){return window.__TAURI_INTERNALS__.invoke(t,i,a)}"function"==typeof SuppressedError&&SuppressedError;return t.Authenticator=class{async init(){return await i("plugin:authenticator|init_auth")}async register(t,a){return await i("plugin:authenticator|register",{timeout:1e4,challenge:t,application:a})}async verifyRegistration(t,a,e,n){return await i("plugin:authenticator|verify_registration",{challenge:t,application:a,registerData:e,clientData:n})}async sign(t,a,e){return await i("plugin:authenticator|sign",{timeout:1e4,challenge:t,application:a,keyHandle:e})}async verifySignature(t,a,e,n,r,u){return await i("plugin:authenticator|verify_signature",{challenge:t,application:a,signData:e,clientData:n,keyHandle:r,pubkey:u})}},t}({});Object.defineProperty(window.__TAURI__,"authenticator",{value:__TAURI_PLUGIN_AUTHENTICATOR__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_AUTHENTICATOR__=function(t){"use strict";async function i(t,i={},a){return window.__TAURI_INTERNALS__.invoke(t,i,a)}"function"==typeof SuppressedError&&SuppressedError;return t.Authenticator=class{async init(){await i("plugin:authenticator|init_auth")}async register(t,a){return await i("plugin:authenticator|register",{timeout:1e4,challenge:t,application:a})}async verifyRegistration(t,a,e,n){return await i("plugin:authenticator|verify_registration",{challenge:t,application:a,registerData:e,clientData:n})}async sign(t,a,e){return await i("plugin:authenticator|sign",{timeout:1e4,challenge:t,application:a,keyHandle:e})}async verifySignature(t,a,e,n,r,u){return await i("plugin:authenticator|verify_signature",{challenge:t,application:a,signData:e,clientData:n,keyHandle:r,pubkey:u})}},t}({});Object.defineProperty(window.__TAURI__,"authenticator",{value:__TAURI_PLUGIN_AUTHENTICATOR__})}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { invoke } from "@tauri-apps/api/core";
|
|||||||
|
|
||||||
export class Authenticator {
|
export class Authenticator {
|
||||||
async init(): Promise<void> {
|
async init(): Promise<void> {
|
||||||
return await invoke("plugin:authenticator|init_auth");
|
await invoke("plugin:authenticator|init_auth");
|
||||||
}
|
}
|
||||||
|
|
||||||
async register(challenge: string, application: string): Promise<string> {
|
async register(challenge: string, application: string): Promise<string> {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-authenticator",
|
"name": "@tauri-apps/plugin-authenticator",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"description": "Use hardware security-keys in your Tauri App.",
|
"description": "Use hardware security-keys in your Tauri App.",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
## \[2.0.0-beta.4]
|
## \[2.0.0-beta.4]
|
||||||
|
|
||||||
- [`a233919`](https://github.com/tauri-apps/plugins-workspace/commit/a2339195aa940bff86d76375fd05087595bf06ce)([#1118](https://github.com/tauri-apps/plugins-workspace/pull/1118)) Fix LaunchAgent-based autostart for macOS.
|
- [`a233919`](https://github.com/tauri-apps/plugins-workspace/commit/a2339195aa940bff86d76375fd05087595bf06ce)([#1118](https://github.com/tauri-apps/plugins-workspace/pull/1118)) Fix LaunchAgent-based autostart for macOS.
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-autostart"
|
name = "tauri-plugin-autostart"
|
||||||
version = "2.0.0-beta.4"
|
version = "2.0.0-beta.5"
|
||||||
description = "Automatically launch your application at startup."
|
description = "Automatically launch your application at startup."
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-autostart"
|
links = "tauri-plugin-autostart"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-autostart",
|
"name": "@tauri-apps/plugin-autostart",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tauri Programme within The Commons Conservancy"
|
"Tauri Programme within The Commons Conservancy"
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
## \[2.0.0-beta.3]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.4]
|
||||||
|
|
||||||
|
- [`326df688`](https://github.com/tauri-apps/plugins-workspace/commit/326df6883998d416fc0837583ed972854628bb52)([#1236](https://github.com/tauri-apps/plugins-workspace/pull/1236)) Fixes command argument parsing on iOS.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-barcode-scanner"
|
name = "tauri-plugin-barcode-scanner"
|
||||||
version = "2.0.0-beta.3"
|
version = "2.0.0-beta.5"
|
||||||
description = "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS"
|
description = "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS"
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-barcode-scanner"
|
links = "tauri-plugin-barcode-scanner"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_BARCODESCANNER__=function(n){"use strict";async function e(n,e={},r){return window.__TAURI_INTERNALS__.invoke(n,e,r)}var r;return"function"==typeof SuppressedError&&SuppressedError,n.Format=void 0,(r=n.Format||(n.Format={})).QRCode="QR_CODE",r.UPC_A="UPC_A",r.UPC_E="UPC_E",r.EAN8="EAN_8",r.EAN13="EAN_13",r.Code39="CODE_39",r.Code93="CODE_93",r.Code128="CODE_128",r.Codabar="CODABAR",r.ITF="ITF",r.Aztec="AZTEC",r.DataMatrix="DATA_MATRIX",r.PDF417="PDF_417",n.cancel=async function(){return await e("plugin:barcode-scanner|cancel")},n.checkPermissions=async function(){return await e("plugin:barcode-scanner|check_permissions").then((n=>n.camera))},n.openAppSettings=async function(){return await e("plugin:barcode-scanner|open_app_settings")},n.requestPermissions=async function(){return await e("plugin:barcode-scanner|request_permissions").then((n=>n.camera))},n.scan=async function(n){return await e("plugin:barcode-scanner|scan",{...n})},n}({});Object.defineProperty(window.__TAURI__,"barcodeScanner",{value:__TAURI_PLUGIN_BARCODESCANNER__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_BARCODESCANNER__=function(n){"use strict";async function e(n,e={},a){return window.__TAURI_INTERNALS__.invoke(n,e,a)}var a;return"function"==typeof SuppressedError&&SuppressedError,n.Format=void 0,(a=n.Format||(n.Format={})).QRCode="QR_CODE",a.UPC_A="UPC_A",a.UPC_E="UPC_E",a.EAN8="EAN_8",a.EAN13="EAN_13",a.Code39="CODE_39",a.Code93="CODE_93",a.Code128="CODE_128",a.Codabar="CODABAR",a.ITF="ITF",a.Aztec="AZTEC",a.DataMatrix="DATA_MATRIX",a.PDF417="PDF_417",n.cancel=async function(){await e("plugin:barcode-scanner|cancel")},n.checkPermissions=async function(){return await e("plugin:barcode-scanner|check_permissions").then((n=>n.camera))},n.openAppSettings=async function(){await e("plugin:barcode-scanner|open_app_settings")},n.requestPermissions=async function(){return await e("plugin:barcode-scanner|request_permissions").then((n=>n.camera))},n.scan=async function(n){return await e("plugin:barcode-scanner|scan",{...n})},n}({});Object.defineProperty(window.__TAURI__,"barcodeScanner",{value:__TAURI_PLUGIN_BARCODESCANNER__})}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export async function scan(options?: ScanOptions): Promise<Scanned> {
|
|||||||
* Cancel the current scan process.
|
* Cancel the current scan process.
|
||||||
*/
|
*/
|
||||||
export async function cancel(): Promise<void> {
|
export async function cancel(): Promise<void> {
|
||||||
return await invoke("plugin:barcode-scanner|cancel");
|
await invoke("plugin:barcode-scanner|cancel");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -71,5 +71,5 @@ export async function requestPermissions(): Promise<PermissionState> {
|
|||||||
* Open application settings. Useful if permission was denied and the user must manually enable it.
|
* Open application settings. Useful if permission was denied and the user must manually enable it.
|
||||||
*/
|
*/
|
||||||
export async function openAppSettings(): Promise<void> {
|
export async function openAppSettings(): Promise<void> {
|
||||||
return await invoke("plugin:barcode-scanner|open_app_settings");
|
await invoke("plugin:barcode-scanner|open_app_settings");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import UIKit
|
|||||||
import WebKit
|
import WebKit
|
||||||
|
|
||||||
struct ScanOptions: Decodable {
|
struct ScanOptions: Decodable {
|
||||||
var formats: [SupportedFormat] = []
|
var formats: [SupportedFormat]?
|
||||||
let windowed: Bool?
|
let windowed: Bool?
|
||||||
let cameraDirection: String?
|
let cameraDirection: String?
|
||||||
}
|
}
|
||||||
@@ -241,7 +241,7 @@ class BarcodeScannerPlugin: Plugin, AVCaptureMetadataOutputObjectsDelegate {
|
|||||||
private func runScanner(_ invoke: Invoke, args: ScanOptions) {
|
private func runScanner(_ invoke: Invoke, args: ScanOptions) {
|
||||||
scanFormats = [AVMetadataObject.ObjectType]()
|
scanFormats = [AVMetadataObject.ObjectType]()
|
||||||
|
|
||||||
args.formats.forEach { format in
|
(args.formats ?? []).forEach { format in
|
||||||
scanFormats.append(format.value)
|
scanFormats.append(format.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-barcode-scanner",
|
"name": "@tauri-apps/plugin-barcode-scanner",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"description": "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS",
|
"description": "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ pub struct BarcodeScanner<R: Runtime>(PluginHandle<R>);
|
|||||||
|
|
||||||
impl<R: Runtime> BarcodeScanner<R> {}
|
impl<R: Runtime> BarcodeScanner<R> {}
|
||||||
|
|
||||||
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the barcode scanner APIs.
|
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the barcode scanner APIs.
|
||||||
pub trait BarcodeScannerExt<R: Runtime> {
|
pub trait BarcodeScannerExt<R: Runtime> {
|
||||||
fn barcode_scanner(&self) -> &BarcodeScanner<R>;
|
fn barcode_scanner(&self) -> &BarcodeScanner<R>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## \[2.0.0-beta.3]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-biometric"
|
name = "tauri-plugin-biometric"
|
||||||
version = "2.0.0-beta.3"
|
version = "2.0.0-beta.4"
|
||||||
description = "Prompt the user for biometric authentication on Android and iOS."
|
description = "Prompt the user for biometric authentication on Android and iOS."
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-biometric"
|
links = "tauri-plugin-biometric"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_BIOMETRIC__=function(e){"use strict";async function n(e,n={},r){return window.__TAURI_INTERNALS__.invoke(e,n,r)}var r;return"function"==typeof SuppressedError&&SuppressedError,e.BiometryType=void 0,(r=e.BiometryType||(e.BiometryType={}))[r.None=0]="None",r[r.TouchID=1]="TouchID",r[r.FaceID=2]="FaceID",r[r.Iris=3]="Iris",e.authenticate=async function(e,r){return n("plugin:biometric|authenticate",{reason:e,...r})},e.checkStatus=async function(){return n("plugin:biometric|status")},e}({});Object.defineProperty(window.__TAURI__,"biometric",{value:__TAURI_PLUGIN_BIOMETRIC__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_BIOMETRIC__=function(e){"use strict";async function i(e,i={},t){return window.__TAURI_INTERNALS__.invoke(e,i,t)}var t;return"function"==typeof SuppressedError&&SuppressedError,e.BiometryType=void 0,(t=e.BiometryType||(e.BiometryType={}))[t.None=0]="None",t[t.TouchID=1]="TouchID",t[t.FaceID=2]="FaceID",t[t.Iris=3]="Iris",e.authenticate=async function(e,t){await i("plugin:biometric|authenticate",{reason:e,...t})},e.checkStatus=async function(){return await i("plugin:biometric|status")},e}({});Object.defineProperty(window.__TAURI__,"biometric",{value:__TAURI_PLUGIN_BIOMETRIC__})}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export interface AuthOptions {
|
|||||||
* @returns a promise resolving to an object containing all the information about the status of the biometry.
|
* @returns a promise resolving to an object containing all the information about the status of the biometry.
|
||||||
*/
|
*/
|
||||||
export async function checkStatus(): Promise<Status> {
|
export async function checkStatus(): Promise<Status> {
|
||||||
return invoke("plugin:biometric|status");
|
return await invoke("plugin:biometric|status");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -70,7 +70,7 @@ export async function authenticate(
|
|||||||
reason: string,
|
reason: string,
|
||||||
options?: AuthOptions,
|
options?: AuthOptions,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return invoke("plugin:biometric|authenticate", {
|
await invoke("plugin:biometric|authenticate", {
|
||||||
reason,
|
reason,
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-biometric",
|
"name": "@tauri-apps/plugin-biometric",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tauri Programme within The Commons Conservancy"
|
"Tauri Programme within The Commons Conservancy"
|
||||||
@@ -23,10 +23,7 @@
|
|||||||
"README.md",
|
"README.md",
|
||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
|
||||||
"tslib": "2.6.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ impl<R: Runtime> Biometric<R> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the biometric APIs.
|
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the biometric APIs.
|
||||||
pub trait BiometricExt<R: Runtime> {
|
pub trait BiometricExt<R: Runtime> {
|
||||||
fn biometric(&self) -> &Biometric<R>;
|
fn biometric(&self) -> &Biometric<R>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## \[2.0.0-beta.3]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-cli"
|
name = "tauri-plugin-cli"
|
||||||
version = "2.0.0-beta.3"
|
version = "2.0.0-beta.4"
|
||||||
description = "Parse arguments from your Tauri application's command line interface."
|
description = "Parse arguments from your Tauri application's command line interface."
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-cli"
|
links = "tauri-plugin-cli"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-cli",
|
"name": "@tauri-apps/plugin-cli",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tauri Programme within The Commons Conservancy"
|
"Tauri Programme within The Commons Conservancy"
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[2.1.0-beta.1]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.1.0-beta.1]
|
||||||
|
|
||||||
|
- [`27b258c`](https://github.com/tauri-apps/plugins-workspace/commit/27b258cf31ae5557c99ae66537fb9196368d4d8b)([#1185](https://github.com/tauri-apps/plugins-workspace/pull/1185)) Expose `Clipboard` struct
|
||||||
|
- [`e3d41f4`](https://github.com/tauri-apps/plugins-workspace/commit/e3d41f4011bd3ea3ce281bb38bbe31d3709f8e0f)([#1191](https://github.com/tauri-apps/plugins-workspace/pull/1191)) Internally use the webview scoped resources table instead of the app one, so other webviews can't access other webviews resources.
|
||||||
|
- [`e3d41f4`](https://github.com/tauri-apps/plugins-workspace/commit/e3d41f4011bd3ea3ce281bb38bbe31d3709f8e0f)([#1191](https://github.com/tauri-apps/plugins-workspace/pull/1191)) Update for tauri 2.0.0-beta.15.
|
||||||
|
|
||||||
## \[2.1.0-beta.0]
|
## \[2.1.0-beta.0]
|
||||||
|
|
||||||
- [`9dec960`](https://github.com/tauri-apps/plugins-workspace/commit/9dec9605ed1ce19dbef697e55debddf9008ecba1)([#845](https://github.com/tauri-apps/plugins-workspace/pull/845)) Add support for `read_image` and `write_image` to the clipboard plugin (desktop).
|
- [`9dec960`](https://github.com/tauri-apps/plugins-workspace/commit/9dec9605ed1ce19dbef697e55debddf9008ecba1)([#845](https://github.com/tauri-apps/plugins-workspace/pull/845)) Add support for `read_image` and `write_image` to the clipboard plugin (desktop).
|
||||||
@@ -51,7 +61,15 @@
|
|||||||
|
|
||||||
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
\`]\(https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
|
te to alpha.11.
|
||||||
|
|
||||||
|
## \[2.0.0-alpha.0]
|
||||||
|
|
||||||
|
- [`717ae67`](https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
|
717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
|
hub.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
|
\`]\(https://github.com/tauri-apps/plugins-workspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
te to alpha.11.
|
te to alpha.11.
|
||||||
|
|
||||||
## \[2.0.0-alpha.0]
|
## \[2.0.0-alpha.0]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-clipboard-manager"
|
name = "tauri-plugin-clipboard-manager"
|
||||||
version = "2.1.0-beta.0"
|
version = "2.1.0-beta.2"
|
||||||
description = "Read and write to the system clipboard."
|
description = "Read and write to the system clipboard."
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-clipboard-manager"
|
links = "tauri-plugin-clipboard-manager"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_CLIPBOARDMANAGER__=function(e){"use strict";var r;async function t(e,r={},t){return window.__TAURI_INTERNALS__.invoke(e,r,t)}"function"==typeof SuppressedError&&SuppressedError;class n{get rid(){return function(e,r,t,n){if("a"===t&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?n:"a"===t?n.call(e):n?n.value:r.get(e)}(this,r,"f")}constructor(e){r.set(this,void 0),function(e,r,t,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?a.call(e,t):a?a.value=t:r.set(e,t)}(this,r,e,"f")}async close(){return t("plugin:resources|close",{rid:this.rid})}}r=new WeakMap;class a extends n{constructor(e){super(e)}static async new(e,r,n){return t("plugin:image|new",{rgba:i(e),width:r,height:n}).then((e=>new a(e)))}static async fromBytes(e){return t("plugin:image|from_bytes",{bytes:i(e)}).then((e=>new a(e)))}static async fromPath(e){return t("plugin:image|from_path",{path:e}).then((e=>new a(e)))}async rgba(){return t("plugin:image|rgba",{rid:this.rid}).then((e=>new Uint8Array(e)))}async size(){return t("plugin:image|size",{rid:this.rid})}}function i(e){return null==e?null:"string"==typeof e?e:e instanceof Uint8Array?Array.from(e):e instanceof ArrayBuffer?Array.from(new Uint8Array(e)):e instanceof a?e.rid:e}return e.clear=async function(){await t("plugin:clipboard-manager|clear")},e.readImage=async function(){return await t("plugin:clipboard-manager|read_image").then((e=>new a(e)))},e.readText=async function(){return(await t("plugin:clipboard-manager|read_text")).plainText.text},e.writeHtml=async function(e,r){return t("plugin:clipboard-manager|write_html",{data:{html:{html:e,altHtml:r}}})},e.writeImage=async function(e){return t("plugin:clipboard-manager|write_image",{data:{image:{image:i(e)}}})},e.writeText=async function(e,r){return t("plugin:clipboard-manager|write_text",{data:{plainText:{label:r?.label,text:e}}})},e}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_PLUGIN_CLIPBOARDMANAGER__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_CLIPBOARDMANAGER__=function(e){"use strict";var r;async function t(e,r={},t){return window.__TAURI_INTERNALS__.invoke(e,r,t)}"function"==typeof SuppressedError&&SuppressedError;class n{get rid(){return function(e,r,t,n){if("a"===t&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?n:"a"===t?n.call(e):n?n.value:r.get(e)}(this,r,"f")}constructor(e){r.set(this,void 0),function(e,r,t,n,a){if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");r.set(e,t)}(this,r,e)}async close(){return t("plugin:resources|close",{rid:this.rid})}}r=new WeakMap;class a extends n{constructor(e){super(e)}static async new(e,r,n){return t("plugin:image|new",{rgba:i(e),width:r,height:n}).then((e=>new a(e)))}static async fromBytes(e){return t("plugin:image|from_bytes",{bytes:i(e)}).then((e=>new a(e)))}static async fromPath(e){return t("plugin:image|from_path",{path:e}).then((e=>new a(e)))}async rgba(){return t("plugin:image|rgba",{rid:this.rid}).then((e=>new Uint8Array(e)))}async size(){return t("plugin:image|size",{rid:this.rid})}}function i(e){return null==e?null:"string"==typeof e?e:e instanceof Uint8Array?Array.from(e):e instanceof ArrayBuffer?Array.from(new Uint8Array(e)):e instanceof a?e.rid:e}return e.clear=async function(){await t("plugin:clipboard-manager|clear")},e.readImage=async function(){return await t("plugin:clipboard-manager|read_image").then((e=>new a(e)))},e.readText=async function(){return await t("plugin:clipboard-manager|read_text")},e.writeHtml=async function(e,r){await t("plugin:clipboard-manager|write_html",{html:e,altHtml:r})},e.writeImage=async function(e){await t("plugin:clipboard-manager|write_image",{image:i(e)})},e.writeText=async function(e,r){await t("plugin:clipboard-manager|write_text",{label:r?.label,text:e})},e}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_PLUGIN_CLIPBOARDMANAGER__})}
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { Image, transformImage } from "@tauri-apps/api/image";
|
import { Image, transformImage } from "@tauri-apps/api/image";
|
||||||
|
|
||||||
type ClipResponse = Record<"plainText", { text: string }>;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes plain text to the clipboard.
|
* Writes plain text to the clipboard.
|
||||||
* @example
|
* @example
|
||||||
@@ -30,13 +28,9 @@ async function writeText(
|
|||||||
text: string,
|
text: string,
|
||||||
opts?: { label?: string },
|
opts?: { label?: string },
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return invoke("plugin:clipboard-manager|write_text", {
|
await invoke("plugin:clipboard-manager|write_text", {
|
||||||
data: {
|
label: opts?.label,
|
||||||
plainText: {
|
text,
|
||||||
label: opts?.label,
|
|
||||||
text,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,26 +44,7 @@ async function writeText(
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
async function readText(): Promise<string> {
|
async function readText(): Promise<string> {
|
||||||
const kind: ClipResponse = await invoke("plugin:clipboard-manager|read_text");
|
return await invoke("plugin:clipboard-manager|read_text");
|
||||||
return kind.plainText.text;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the clipboard content as Uint8Array image.
|
|
||||||
* @example
|
|
||||||
* ```typescript
|
|
||||||
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
|
||||||
*
|
|
||||||
* const clipboardImage = await readImage();
|
|
||||||
* const blob = new Blob([clipboardImage.bytes], { type: 'image' })
|
|
||||||
* const url = URL.createObjectURL(blob)
|
|
||||||
* ```
|
|
||||||
* @since 2.0.0
|
|
||||||
*/
|
|
||||||
async function readImage(): Promise<Image> {
|
|
||||||
return await invoke<number>("plugin:clipboard-manager|read_image").then(
|
|
||||||
(rid) => new Image(rid),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -93,15 +68,29 @@ async function readImage(): Promise<Image> {
|
|||||||
async function writeImage(
|
async function writeImage(
|
||||||
image: string | Image | Uint8Array | ArrayBuffer | number[],
|
image: string | Image | Uint8Array | ArrayBuffer | number[],
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
return invoke("plugin:clipboard-manager|write_image", {
|
await invoke("plugin:clipboard-manager|write_image", {
|
||||||
data: {
|
image: transformImage(image),
|
||||||
image: {
|
|
||||||
image: transformImage(image),
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the clipboard content as Uint8Array image.
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
|
||||||
|
*
|
||||||
|
* const clipboardImage = await readImage();
|
||||||
|
* const blob = new Blob([clipboardImage.bytes], { type: 'image' })
|
||||||
|
* const url = URL.createObjectURL(blob)
|
||||||
|
* ```
|
||||||
|
* @since 2.0.0
|
||||||
|
*/
|
||||||
|
async function readImage(): Promise<Image> {
|
||||||
|
return await invoke<number>("plugin:clipboard-manager|read_image").then(
|
||||||
|
(rid) => new Image(rid),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* * Writes HTML or fallbacks to write provided plain text to the clipboard.
|
* * Writes HTML or fallbacks to write provided plain text to the clipboard.
|
||||||
* @example
|
* @example
|
||||||
@@ -117,13 +106,9 @@ async function writeImage(
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
async function writeHtml(html: string, altHtml?: string): Promise<void> {
|
async function writeHtml(html: string, altHtml?: string): Promise<void> {
|
||||||
return invoke("plugin:clipboard-manager|write_html", {
|
await invoke("plugin:clipboard-manager|write_html", {
|
||||||
data: {
|
html,
|
||||||
html: {
|
altHtml,
|
||||||
html,
|
|
||||||
altHtml,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +123,6 @@ async function writeHtml(html: string, altHtml?: string): Promise<void> {
|
|||||||
*/
|
*/
|
||||||
async function clear(): Promise<void> {
|
async function clear(): Promise<void> {
|
||||||
await invoke("plugin:clipboard-manager|clear");
|
await invoke("plugin:clipboard-manager|clear");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export { writeText, readText, writeHtml, clear, readImage, writeImage };
|
export { writeText, readText, writeHtml, clear, readImage, writeImage };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-clipboard-manager",
|
"name": "@tauri-apps/plugin-clipboard-manager",
|
||||||
"version": "2.1.0-beta.0",
|
"version": "2.1.0-beta.1",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tauri Programme within The Commons Conservancy"
|
"Tauri Programme within The Commons Conservancy"
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,43 +2,61 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use tauri::{command, AppHandle, Manager, ResourceId, Runtime, State};
|
use tauri::{command, image::JsImage, AppHandle, Manager, ResourceId, Runtime, State, Webview};
|
||||||
|
|
||||||
use crate::{ClipKind, Clipboard, ClipboardContents, Result};
|
use crate::{Clipboard, Result};
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
|
#[cfg(desktop)]
|
||||||
pub(crate) async fn write_text<R: Runtime>(
|
pub(crate) async fn write_text<R: Runtime>(
|
||||||
_app: AppHandle<R>,
|
_app: AppHandle<R>,
|
||||||
clipboard: State<'_, Clipboard<R>>,
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
data: ClipKind,
|
text: &str,
|
||||||
|
#[allow(unused)] label: Option<String>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
clipboard.write_text(data)
|
clipboard.write_text(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
pub(crate) async fn write_image<R: Runtime>(
|
#[cfg(not(desktop))]
|
||||||
|
pub(crate) async fn write_text<R: Runtime>(
|
||||||
_app: AppHandle<R>,
|
_app: AppHandle<R>,
|
||||||
clipboard: State<'_, Clipboard<R>>,
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
data: ClipKind,
|
text: &str,
|
||||||
|
#[allow(unused)] label: Option<&str>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
clipboard.write_image(data)
|
match label {
|
||||||
|
Some(label) => clipboard.write_text_with_label(text, label),
|
||||||
|
None => clipboard.write_text(text),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
pub(crate) async fn read_text<R: Runtime>(
|
pub(crate) async fn read_text<R: Runtime>(
|
||||||
_app: AppHandle<R>,
|
_app: AppHandle<R>,
|
||||||
clipboard: State<'_, Clipboard<R>>,
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
) -> Result<ClipboardContents> {
|
) -> Result<String> {
|
||||||
clipboard.read_text()
|
clipboard.read_text()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[command]
|
||||||
|
pub(crate) async fn write_image<R: Runtime>(
|
||||||
|
webview: Webview<R>,
|
||||||
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
|
image: JsImage,
|
||||||
|
) -> Result<()> {
|
||||||
|
let resources_table = webview.resources_table();
|
||||||
|
let image = image.into_img(&resources_table)?;
|
||||||
|
clipboard.write_image(&image)
|
||||||
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
pub(crate) async fn read_image<R: Runtime>(
|
pub(crate) async fn read_image<R: Runtime>(
|
||||||
app: AppHandle<R>,
|
webview: Webview<R>,
|
||||||
clipboard: State<'_, Clipboard<R>>,
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
) -> Result<ResourceId> {
|
) -> Result<ResourceId> {
|
||||||
let image = clipboard.read_image()?.to_owned();
|
let image = clipboard.read_image()?.to_owned();
|
||||||
let mut resources_table = app.resources_table();
|
let mut resources_table = webview.resources_table();
|
||||||
let rid = resources_table.add(image);
|
let rid = resources_table.add(image);
|
||||||
Ok(rid)
|
Ok(rid)
|
||||||
}
|
}
|
||||||
@@ -47,9 +65,10 @@ pub(crate) async fn read_image<R: Runtime>(
|
|||||||
pub(crate) async fn write_html<R: Runtime>(
|
pub(crate) async fn write_html<R: Runtime>(
|
||||||
_app: AppHandle<R>,
|
_app: AppHandle<R>,
|
||||||
clipboard: State<'_, Clipboard<R>>,
|
clipboard: State<'_, Clipboard<R>>,
|
||||||
data: ClipKind,
|
html: &str,
|
||||||
|
alt_text: Option<&str>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
clipboard.write_html(data)
|
clipboard.write_html(html, alt_text)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ use image::ImageEncoder;
|
|||||||
use serde::de::DeserializeOwned;
|
use serde::de::DeserializeOwned;
|
||||||
use tauri::{image::Image, plugin::PluginApi, AppHandle, Runtime};
|
use tauri::{image::Image, plugin::PluginApi, AppHandle, Runtime};
|
||||||
|
|
||||||
use crate::models::*;
|
|
||||||
|
|
||||||
use std::{borrow::Cow, sync::Mutex};
|
use std::{borrow::Cow, sync::Mutex};
|
||||||
|
|
||||||
pub fn init<R: Runtime, C: DeserializeOwned>(
|
pub fn init<R: Runtime, C: DeserializeOwned>(
|
||||||
@@ -29,58 +27,50 @@ pub struct Clipboard<R: Runtime> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<R: Runtime> Clipboard<R> {
|
impl<R: Runtime> Clipboard<R> {
|
||||||
pub fn write_text(&self, kind: ClipKind) -> crate::Result<()> {
|
pub fn write_text<'a, T: Into<Cow<'a, str>>>(&self, text: T) -> crate::Result<()> {
|
||||||
match kind {
|
match &self.clipboard {
|
||||||
ClipKind::PlainText { text, .. } => match &self.clipboard {
|
Ok(clipboard) => clipboard.lock().unwrap().set_text(text).map_err(Into::into),
|
||||||
Ok(clipboard) => clipboard.lock().unwrap().set_text(text).map_err(Into::into),
|
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
||||||
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
|
||||||
},
|
|
||||||
_ => Err(crate::Error::Clipboard("Invalid clip kind".to_string())),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_image(&self, kind: ClipKind) -> crate::Result<()> {
|
pub fn write_image(&self, image: &Image<'_>) -> crate::Result<()> {
|
||||||
match kind {
|
match &self.clipboard {
|
||||||
ClipKind::Image { image, .. } => match &self.clipboard {
|
Ok(clipboard) => clipboard
|
||||||
Ok(clipboard) => {
|
.lock()
|
||||||
let image = image.into_img(&self.app)?;
|
.unwrap()
|
||||||
clipboard
|
.set_image(ImageData {
|
||||||
.lock()
|
bytes: Cow::Borrowed(image.rgba()),
|
||||||
.unwrap()
|
width: image.width() as usize,
|
||||||
.set_image(ImageData {
|
height: image.height() as usize,
|
||||||
bytes: Cow::Borrowed(image.rgba()),
|
})
|
||||||
width: image.width() as usize,
|
.map_err(Into::into),
|
||||||
height: image.height() as usize,
|
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
||||||
})
|
|
||||||
.map_err(Into::into)
|
|
||||||
}
|
|
||||||
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
|
||||||
},
|
|
||||||
_ => Err(crate::Error::Clipboard("Invalid clip kind".to_string())),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_text(&self) -> crate::Result<ClipboardContents> {
|
pub fn read_text(&self) -> crate::Result<String> {
|
||||||
match &self.clipboard {
|
match &self.clipboard {
|
||||||
Ok(clipboard) => {
|
Ok(clipboard) => {
|
||||||
let text = clipboard.lock().unwrap().get_text()?;
|
let text = clipboard.lock().unwrap().get_text()?;
|
||||||
Ok(ClipboardContents::PlainText { text })
|
Ok(text)
|
||||||
}
|
}
|
||||||
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_html(&self, kind: ClipKind) -> crate::Result<()> {
|
pub fn write_html<'a, T: Into<Cow<'a, str>>>(
|
||||||
match kind {
|
&self,
|
||||||
ClipKind::Html { html, alt_html, .. } => match &self.clipboard {
|
html: T,
|
||||||
Ok(clipboard) => clipboard
|
alt_text: Option<T>,
|
||||||
.lock()
|
) -> crate::Result<()> {
|
||||||
.unwrap()
|
match &self.clipboard {
|
||||||
.set_html(html, alt_html)
|
Ok(clipboard) => clipboard
|
||||||
.map_err(Into::into),
|
.lock()
|
||||||
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
.unwrap()
|
||||||
},
|
.set_html(html, alt_text)
|
||||||
_ => Err(crate::Error::Clipboard("Invalid clip kind!".to_string())),
|
.map_err(Into::into),
|
||||||
|
Err(e) => Err(crate::Error::Clipboard(e.to_string())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ pub enum Error {
|
|||||||
PluginInvoke(#[from] tauri::plugin::mobile::PluginInvokeError),
|
PluginInvoke(#[from] tauri::plugin::mobile::PluginInvokeError),
|
||||||
#[error("{0}")]
|
#[error("{0}")]
|
||||||
Clipboard(String),
|
Clipboard(String),
|
||||||
#[cfg(desktop)]
|
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Tauri(#[from] tauri::Error),
|
Tauri(#[from] tauri::Error),
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ use tauri::{
|
|||||||
Manager, Runtime,
|
Manager, Runtime,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub use models::*;
|
|
||||||
|
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
mod desktop;
|
mod desktop;
|
||||||
#[cfg(mobile)]
|
#[cfg(mobile)]
|
||||||
@@ -25,16 +23,15 @@ mod mobile;
|
|||||||
|
|
||||||
mod commands;
|
mod commands;
|
||||||
mod error;
|
mod error;
|
||||||
mod models;
|
|
||||||
|
|
||||||
pub use error::{Error, Result};
|
pub use error::{Error, Result};
|
||||||
|
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
use desktop::Clipboard;
|
pub use desktop::Clipboard;
|
||||||
#[cfg(mobile)]
|
#[cfg(mobile)]
|
||||||
use mobile::Clipboard;
|
pub use mobile::Clipboard;
|
||||||
|
|
||||||
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the clipboard APIs.
|
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the clipboard APIs.
|
||||||
pub trait ClipboardExt<R: Runtime> {
|
pub trait ClipboardExt<R: Runtime> {
|
||||||
fn clipboard(&self) -> &Clipboard<R>;
|
fn clipboard(&self) -> &Clipboard<R>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
use serde::de::DeserializeOwned;
|
use serde::de::DeserializeOwned;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use tauri::{
|
use tauri::{
|
||||||
image::Image,
|
image::Image,
|
||||||
plugin::{PluginApi, PluginHandle},
|
plugin::{PluginApi, PluginHandle},
|
||||||
AppHandle, Runtime,
|
AppHandle, Runtime,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::models::*;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
const PLUGIN_IDENTIFIER: &str = "app.tauri.clipboard";
|
const PLUGIN_IDENTIFIER: &str = "app.tauri.clipboard";
|
||||||
@@ -33,18 +34,44 @@ pub fn init<R: Runtime, C: DeserializeOwned>(
|
|||||||
pub struct Clipboard<R: Runtime>(PluginHandle<R>);
|
pub struct Clipboard<R: Runtime>(PluginHandle<R>);
|
||||||
|
|
||||||
impl<R: Runtime> Clipboard<R> {
|
impl<R: Runtime> Clipboard<R> {
|
||||||
pub fn write_text(&self, kind: ClipKind) -> crate::Result<()> {
|
pub fn write_text<'a, T: Into<Cow<'a, str>>>(&self, text: T) -> crate::Result<()> {
|
||||||
self.0.run_mobile_plugin("write", kind).map_err(Into::into)
|
let text = text.into().to_string();
|
||||||
|
self.0
|
||||||
|
.run_mobile_plugin("write", ClipKind::PlainText { text, label: None })
|
||||||
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn write_image(&self, kind: ClipKind) -> crate::Result<()> {
|
pub fn write_text_with_label<'a, T: Into<Cow<'a, str>>>(
|
||||||
|
&self,
|
||||||
|
text: T,
|
||||||
|
label: T,
|
||||||
|
) -> crate::Result<()> {
|
||||||
|
let text = text.into().to_string();
|
||||||
|
let label = label.into().to_string();
|
||||||
|
self.0
|
||||||
|
.run_mobile_plugin(
|
||||||
|
"write",
|
||||||
|
ClipKind::PlainText {
|
||||||
|
text,
|
||||||
|
label: Some(label),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
.map_err(Into::into)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn write_image(&self, _image: &Image<'_>) -> crate::Result<()> {
|
||||||
Err(crate::Error::Clipboard(
|
Err(crate::Error::Clipboard(
|
||||||
"Unsupported on this platform".to_string(),
|
"Unsupported on this platform".to_string(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_text(&self) -> crate::Result<ClipboardContents> {
|
pub fn read_text(&self) -> crate::Result<String> {
|
||||||
self.0.run_mobile_plugin("read", ()).map_err(Into::into)
|
self.0
|
||||||
|
.run_mobile_plugin("read", ())
|
||||||
|
.map(|c| match c {
|
||||||
|
ClipboardContents::PlainText { text } => text,
|
||||||
|
})
|
||||||
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read_image(&self) -> crate::Result<Image<'_>> {
|
pub fn read_image(&self) -> crate::Result<Image<'_>> {
|
||||||
@@ -54,7 +81,11 @@ impl<R: Runtime> Clipboard<R> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Treat HTML as unsupported on mobile until tested
|
// Treat HTML as unsupported on mobile until tested
|
||||||
pub fn write_html(&self, _kind: ClipKind) -> crate::Result<()> {
|
pub fn write_html<'a, T: Into<Cow<'a, str>>>(
|
||||||
|
&self,
|
||||||
|
_html: T,
|
||||||
|
_alt_text: Option<T>,
|
||||||
|
) -> crate::Result<()> {
|
||||||
Err(crate::Error::Clipboard(
|
Err(crate::Error::Clipboard(
|
||||||
"Unsupported on this platform".to_string(),
|
"Unsupported on this platform".to_string(),
|
||||||
))
|
))
|
||||||
@@ -66,3 +97,15 @@ impl<R: Runtime> Clipboard<R> {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
|
enum ClipKind {
|
||||||
|
PlainText { label: Option<String>, text: String },
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
#[serde(rename_all = "camelCase")]
|
||||||
|
enum ClipboardContents {
|
||||||
|
PlainText { text: String },
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
|
||||||
#[cfg_attr(mobile, derive(Serialize))]
|
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
pub enum ClipKind {
|
|
||||||
PlainText {
|
|
||||||
label: Option<String>,
|
|
||||||
text: String,
|
|
||||||
},
|
|
||||||
#[cfg(desktop)]
|
|
||||||
Image {
|
|
||||||
image: tauri::image::JsImage,
|
|
||||||
},
|
|
||||||
Html {
|
|
||||||
html: String,
|
|
||||||
alt_html: Option<String>,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
|
||||||
#[serde(rename_all = "camelCase")]
|
|
||||||
pub enum ClipboardContents {
|
|
||||||
PlainText {
|
|
||||||
text: String,
|
|
||||||
},
|
|
||||||
Image {
|
|
||||||
bytes: Vec<u8>,
|
|
||||||
width: usize,
|
|
||||||
height: usize,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## \[2.0.0-beta.3]
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
- [`a04ea2f`](https://github.com/tauri-apps/plugins-workspace/commit/a04ea2f38294d5a3987578283badc8eec87a7752)([#1071](https://github.com/tauri-apps/plugins-workspace/pull/1071)) The global API script is now only added to the binary when the `withGlobalTauri` config is true.
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-deep-link"
|
name = "tauri-plugin-deep-link"
|
||||||
version = "2.0.0-beta.3"
|
version = "2.0.0-beta.4"
|
||||||
description = "Set your Tauri application as the default handler for an URL"
|
description = "Set your Tauri application as the default handler for an URL"
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-deep-link"
|
links = "tauri-plugin-deep-link"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_DEEPLINK__=function(e){"use strict";function n(e,n=!1){return window.__TAURI_INTERNALS__.transformCallback(e,n)}async function t(e,n={},t){return window.__TAURI_INTERNALS__.invoke(e,n,t)}var r;async function i(e,r,i){const _="string"==typeof i?.target?{kind:"AnyLabel",label:i.target}:i?.target??{kind:"Any"};return t("plugin:event|listen",{event:e,target:_,handler:n(r)}).then((n=>async()=>async function(e,n){await t("plugin:event|unlisten",{event:e,eventId:n})}(e,n)))}async function _(){return await t("plugin:deep-link|get_current")}return"function"==typeof SuppressedError&&SuppressedError,function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WEBVIEW_CREATED="tauri://webview-created",e.FILE_DROP="tauri://file-drop",e.FILE_DROP_HOVER="tauri://file-drop-hover",e.FILE_DROP_CANCELLED="tauri://file-drop-cancelled"}(r||(r={})),e.getCurrent=_,e.onOpenUrl=async function(e){const n=await _();return null!=n&&e(n),await i("deep-link://new-url",(n=>e(n.payload)))},e}({});Object.defineProperty(window.__TAURI__,"deepLink",{value:__TAURI_PLUGIN_DEEPLINK__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_DEEPLINK__=function(e){"use strict";function n(e,n=!1){return window.__TAURI_INTERNALS__.transformCallback(e,n)}async function r(e,n={},r){return window.__TAURI_INTERNALS__.invoke(e,n,r)}var t;async function i(e,t,i){const _=(void 0,{kind:"Any"});return r("plugin:event|listen",{event:e,target:_,handler:n(t)}).then((n=>async()=>async function(e,n){await r("plugin:event|unlisten",{event:e,eventId:n})}(e,n)))}async function _(){return await r("plugin:deep-link|get_current")}return"function"==typeof SuppressedError&&SuppressedError,function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_CREATED="tauri://window-created",e.WEBVIEW_CREATED="tauri://webview-created",e.DRAG="tauri://drag",e.DROP="tauri://drop",e.DROP_OVER="tauri://drop-over",e.DROP_CANCELLED="tauri://drag-cancelled"}(t||(t={})),e.getCurrent=_,e.onOpenUrl=async function(e){const n=await _();return null!=n&&e(n),await i("deep-link://new-url",(n=>{e(n.payload)}))},e}({});Object.defineProperty(window.__TAURI__,"deepLink",{value:__TAURI_PLUGIN_DEEPLINK__})}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ pnpm-debug.log*
|
|||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- Upgraded to `deep-link-js@2.0.0-beta.3`
|
||||||
|
|
||||||
## \[2.0.0-beta.2]
|
## \[2.0.0-beta.2]
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "deep-link-example",
|
"name": "deep-link-example",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -10,13 +10,13 @@
|
|||||||
"tauri": "tauri"
|
"tauri": "tauri"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6",
|
"@tauri-apps/api": "2.0.0-beta.11",
|
||||||
"@tauri-apps/plugin-deep-link": "2.0.0-beta.2"
|
"@tauri-apps/plugin-deep-link": "2.0.0-beta.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tauri-apps/cli": "2.0.0-beta.9",
|
"@tauri-apps/cli": "2.0.0-beta.15",
|
||||||
"internal-ip": "^8.0.0",
|
"internal-ip": "^8.0.0",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "^5.2.2",
|
||||||
"vite": "^5.0.12"
|
"vite": "^5.0.13"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { UnlistenFn, listen } from "@tauri-apps/api/event";
|
import { type UnlistenFn, listen } from "@tauri-apps/api/event";
|
||||||
|
|
||||||
export async function getCurrent(): Promise<string[] | null> {
|
export async function getCurrent(): Promise<string[] | null> {
|
||||||
return await invoke<string[] | null>("plugin:deep-link|get_current");
|
return await invoke<string[] | null>("plugin:deep-link|get_current");
|
||||||
@@ -19,7 +19,7 @@ export async function onOpenUrl(
|
|||||||
handler(current);
|
handler(current);
|
||||||
}
|
}
|
||||||
|
|
||||||
return await listen<string[]>("deep-link://new-url", (event) =>
|
return await listen<string[]>("deep-link://new-url", (event) => {
|
||||||
handler(event.payload),
|
handler(event.payload);
|
||||||
);
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-deep-link",
|
"name": "@tauri-apps/plugin-deep-link",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"description": "Set your Tauri application as the default handler for an URL",
|
"description": "Set your Tauri application as the default handler for an URL",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ mod imp {
|
|||||||
|
|
||||||
pub use imp::DeepLink;
|
pub use imp::DeepLink;
|
||||||
|
|
||||||
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the deep-link APIs.
|
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the deep-link APIs.
|
||||||
pub trait DeepLinkExt<R: Runtime> {
|
pub trait DeepLinkExt<R: Runtime> {
|
||||||
fn deep_link(&self) -> &DeepLink<R>;
|
fn deep_link(&self) -> &DeepLink<R>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,25 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## \[2.0.0-beta.3]
|
||||||
|
|
||||||
|
- [`bd1ed590`](https://github.com/tauri-apps/plugins-workspace/commit/bd1ed5903ffcce5500310dac1e59e8c67674ef1e)([#1237](https://github.com/tauri-apps/plugins-workspace/pull/1237)) Update to tauri beta.17.
|
||||||
|
|
||||||
|
## \[2.0.0-beta.6]
|
||||||
|
|
||||||
|
- [`326df688`](https://github.com/tauri-apps/plugins-workspace/commit/326df6883998d416fc0837583ed972854628bb52)([#1236](https://github.com/tauri-apps/plugins-workspace/pull/1236)) Fixes command argument parsing on iOS.
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- Upgraded to `fs@2.0.0-beta.6`
|
||||||
|
|
||||||
|
## \[2.0.0-beta.5]
|
||||||
|
|
||||||
|
- [`bb51a41`](https://github.com/tauri-apps/plugins-workspace/commit/bb51a41d67ebf989e8aedf10c4b1a7f9514d1bdf)([#1168](https://github.com/tauri-apps/plugins-workspace/pull/1168)) **Breaking Change:** All apis that return paths to the frontend will now remove the `\\?\` UNC prefix on Windows.
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
|
||||||
|
- Upgraded to `fs@2.0.0-beta.5`
|
||||||
|
|
||||||
## \[2.0.0-beta.4]
|
## \[2.0.0-beta.4]
|
||||||
|
|
||||||
- [`4cd8112`](https://github.com/tauri-apps/plugins-workspace/commit/4cd81126fdf25e1847546f8fdbd924aa4bfeabb5)([#1056](https://github.com/tauri-apps/plugins-workspace/pull/1056)) Fixed an issue where dialogs on android would return the Content URI instead of the file path
|
- [`4cd8112`](https://github.com/tauri-apps/plugins-workspace/commit/4cd81126fdf25e1847546f8fdbd924aa4bfeabb5)([#1056](https://github.com/tauri-apps/plugins-workspace/pull/1056)) Fixed an issue where dialogs on android would return the Content URI instead of the file path
|
||||||
@@ -115,3 +135,5 @@
|
|||||||
pull/371)) First v2 alpha release!
|
pull/371)) First v2 alpha release!
|
||||||
kspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
kspace/commit/717ae670978feb4492fac1f295998b93f2b9347f)([#371](https://github.com/tauri-apps/plugins-workspace/pull/371)) First v2 alpha release!
|
||||||
pull/371)) First v2 alpha release!
|
pull/371)) First v2 alpha release!
|
||||||
|
lpha release!
|
||||||
|
pull/371)) First v2 alpha release!
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-dialog"
|
name = "tauri-plugin-dialog"
|
||||||
version = "2.0.0-beta.4"
|
version = "2.0.0-beta.7"
|
||||||
description = "Native system dialogs for opening and saving files along with message dialogs on your Tauri application."
|
description = "Native system dialogs for opening and saving files along with message dialogs on your Tauri application."
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
rust-version = { workspace = true }
|
rust-version = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
links = "tauri-plugin-dialog"
|
links = "tauri-plugin-dialog"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
@@ -22,10 +23,8 @@ serde_json = { workspace = true }
|
|||||||
tauri = { workspace = true }
|
tauri = { workspace = true }
|
||||||
log = { workspace = true }
|
log = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
tauri-plugin-fs = { path = "../fs", version = "2.0.0-beta.4" }
|
dunce = { workspace = true }
|
||||||
|
tauri-plugin-fs = { path = "../fs", version = "2.0.0-beta.7" }
|
||||||
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
|
|
||||||
glib = "0.16"
|
|
||||||
|
|
||||||
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
|
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies]
|
||||||
rfd = { version = "0.14", default-features = false, features = [ "tokio", "gtk3", "common-controls-v6" ] }
|
rfd = { version = "0.14", default-features = false, features = [ "tokio", "gtk3", "common-controls-v6" ] }
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
if("__TAURI__"in window){var __TAURI_PLUGIN_DIALOG__=function(t){"use strict";async function n(t,n={},e){return window.__TAURI_INTERNALS__.invoke(t,n,e)}return"function"==typeof SuppressedError&&SuppressedError,t.ask=async function(t,e){const o="string"==typeof e?{title:e}:e;return n("plugin:dialog|ask",{message:t.toString(),title:o?.title?.toString(),kind:o?.kind,okButtonLabel:o?.okLabel?.toString()??"Yes",cancelButtonLabel:o?.cancelLabel?.toString()??"No"})},t.confirm=async function(t,e){const o="string"==typeof e?{title:e}:e;return n("plugin:dialog|confirm",{message:t.toString(),title:o?.title?.toString(),kind:o?.kind,okButtonLabel:o?.okLabel?.toString()??"Ok",cancelButtonLabel:o?.cancelLabel?.toString()??"Cancel"})},t.message=async function(t,e){const o="string"==typeof e?{title:e}:e;return n("plugin:dialog|message",{message:t.toString(),title:o?.title?.toString(),kind:o?.kind,okButtonLabel:o?.okLabel?.toString()})},t.open=async function(t={}){return"object"==typeof t&&Object.freeze(t),n("plugin:dialog|open",{options:t})},t.save=async function(t={}){return"object"==typeof t&&Object.freeze(t),n("plugin:dialog|save",{options:t})},t}({});Object.defineProperty(window.__TAURI__,"dialog",{value:__TAURI_PLUGIN_DIALOG__})}
|
if("__TAURI__"in window){var __TAURI_PLUGIN_DIALOG__=function(t){"use strict";async function n(t,n={},e){return window.__TAURI_INTERNALS__.invoke(t,n,e)}return"function"==typeof SuppressedError&&SuppressedError,t.ask=async function(t,e){const i="string"==typeof e?{title:e}:e;return await n("plugin:dialog|ask",{message:t.toString(),title:i?.title?.toString(),kind:i?.kind,okButtonLabel:i?.okLabel?.toString()??"Yes",cancelButtonLabel:i?.cancelLabel?.toString()??"No"})},t.confirm=async function(t,e){const i="string"==typeof e?{title:e}:e;return await n("plugin:dialog|confirm",{message:t.toString(),title:i?.title?.toString(),kind:i?.kind,okButtonLabel:i?.okLabel?.toString()??"Ok",cancelButtonLabel:i?.cancelLabel?.toString()??"Cancel"})},t.message=async function(t,e){const i="string"==typeof e?{title:e}:e;await n("plugin:dialog|message",{message:t.toString(),title:i?.title?.toString(),kind:i?.kind,okButtonLabel:i?.okLabel?.toString()})},t.open=async function(t={}){return"object"==typeof t&&Object.freeze(t),await n("plugin:dialog|open",{options:t})},t.save=async function(t={}){return"object"==typeof t&&Object.freeze(t),await n("plugin:dialog|save",{options:t})},t}({});Object.defineProperty(window.__TAURI__,"dialog",{value:__TAURI_PLUGIN_DIALOG__})}
|
||||||
|
|||||||
@@ -163,13 +163,14 @@ type OpenDialogReturn<T extends OpenDialogOptions> = T["directory"] extends true
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*/
|
*/
|
||||||
async function open<T extends OpenDialogOptions>(
|
async function open<T extends OpenDialogOptions>(
|
||||||
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||||
options: T = {} as T,
|
options: T = {} as T,
|
||||||
): Promise<OpenDialogReturn<T>> {
|
): Promise<OpenDialogReturn<T>> {
|
||||||
if (typeof options === "object") {
|
if (typeof options === "object") {
|
||||||
Object.freeze(options);
|
Object.freeze(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
return invoke("plugin:dialog|open", { options });
|
return await invoke("plugin:dialog|open", { options });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -201,7 +202,7 @@ async function save(options: SaveDialogOptions = {}): Promise<string | null> {
|
|||||||
Object.freeze(options);
|
Object.freeze(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
return invoke("plugin:dialog|save", { options });
|
return await invoke("plugin:dialog|save", { options });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -226,7 +227,7 @@ async function message(
|
|||||||
options?: string | MessageDialogOptions,
|
options?: string | MessageDialogOptions,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const opts = typeof options === "string" ? { title: options } : options;
|
const opts = typeof options === "string" ? { title: options } : options;
|
||||||
return invoke("plugin:dialog|message", {
|
await invoke("plugin:dialog|message", {
|
||||||
message: message.toString(),
|
message: message.toString(),
|
||||||
title: opts?.title?.toString(),
|
title: opts?.title?.toString(),
|
||||||
kind: opts?.kind,
|
kind: opts?.kind,
|
||||||
@@ -255,7 +256,7 @@ async function ask(
|
|||||||
options?: string | ConfirmDialogOptions,
|
options?: string | ConfirmDialogOptions,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
const opts = typeof options === "string" ? { title: options } : options;
|
const opts = typeof options === "string" ? { title: options } : options;
|
||||||
return invoke("plugin:dialog|ask", {
|
return await invoke("plugin:dialog|ask", {
|
||||||
message: message.toString(),
|
message: message.toString(),
|
||||||
title: opts?.title?.toString(),
|
title: opts?.title?.toString(),
|
||||||
kind: opts?.kind,
|
kind: opts?.kind,
|
||||||
@@ -285,7 +286,7 @@ async function confirm(
|
|||||||
options?: string | ConfirmDialogOptions,
|
options?: string | ConfirmDialogOptions,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
const opts = typeof options === "string" ? { title: options } : options;
|
const opts = typeof options === "string" ? { title: options } : options;
|
||||||
return invoke("plugin:dialog|confirm", {
|
return await invoke("plugin:dialog|confirm", {
|
||||||
message: message.toString(),
|
message: message.toString(),
|
||||||
title: opts?.title?.toString(),
|
title: opts?.title?.toString(),
|
||||||
kind: opts?.kind,
|
kind: opts?.kind,
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
|
|
||||||
window.alert = function (message: string) {
|
window.alert = function (message: string) {
|
||||||
invoke("plugin:dialog|message", {
|
void invoke("plugin:dialog|message", {
|
||||||
message: message.toString(),
|
message: message.toString(),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// @ts-expect-error tauri does not have sync IPC :(
|
// @ts-expect-error tauri does not have sync IPC :(
|
||||||
window.confirm = function (message: string) {
|
window.confirm = async function (message: string) {
|
||||||
return invoke("plugin:dialog|confirm", {
|
return await invoke("plugin:dialog|confirm", {
|
||||||
message: message.toString(),
|
message: message.toString(),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -19,18 +19,18 @@ enum FilePickerEvent {
|
|||||||
struct MessageDialogOptions: Decodable {
|
struct MessageDialogOptions: Decodable {
|
||||||
let title: String?
|
let title: String?
|
||||||
let message: String
|
let message: String
|
||||||
var okButtonLabel = "OK"
|
let okButtonLabel: String?
|
||||||
var cancelButtonLabel = "Cancel"
|
let cancelButtonLabel: String?
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Filter: Decodable {
|
struct Filter: Decodable {
|
||||||
var extensions: [String] = []
|
var extensions: [String]?
|
||||||
}
|
}
|
||||||
|
|
||||||
struct FilePickerOptions: Decodable {
|
struct FilePickerOptions: Decodable {
|
||||||
var multiple = false
|
var multiple: Bool?
|
||||||
var readData = false
|
var readData: Bool?
|
||||||
var filters: [Filter] = []
|
var filters: [Filter]?
|
||||||
}
|
}
|
||||||
|
|
||||||
class DialogPlugin: Plugin {
|
class DialogPlugin: Plugin {
|
||||||
@@ -47,7 +47,7 @@ class DialogPlugin: Plugin {
|
|||||||
@objc public func showFilePicker(_ invoke: Invoke) throws {
|
@objc public func showFilePicker(_ invoke: Invoke) throws {
|
||||||
let args = try invoke.parseArgs(FilePickerOptions.self)
|
let args = try invoke.parseArgs(FilePickerOptions.self)
|
||||||
|
|
||||||
let parsedTypes = parseFiltersOption(args.filters)
|
let parsedTypes = parseFiltersOption(args.filters ?? [])
|
||||||
|
|
||||||
var isMedia = true
|
var isMedia = true
|
||||||
var uniqueMimeType: Bool? = nil
|
var uniqueMimeType: Bool? = nil
|
||||||
@@ -74,7 +74,7 @@ class DialogPlugin: Plugin {
|
|||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
if #available(iOS 14, *) {
|
if #available(iOS 14, *) {
|
||||||
var configuration = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared())
|
var configuration = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared())
|
||||||
configuration.selectionLimit = args.multiple ? 0 : 1
|
configuration.selectionLimit = (args.multiple ?? false) ? 0 : 1
|
||||||
|
|
||||||
if uniqueMimeType == true {
|
if uniqueMimeType == true {
|
||||||
if mimeKind == "image" {
|
if mimeKind == "image" {
|
||||||
@@ -106,7 +106,7 @@ class DialogPlugin: Plugin {
|
|||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
let picker = UIDocumentPickerViewController(documentTypes: documentTypes, in: .import)
|
let picker = UIDocumentPickerViewController(documentTypes: documentTypes, in: .import)
|
||||||
picker.delegate = self.filePickerController
|
picker.delegate = self.filePickerController
|
||||||
picker.allowsMultipleSelection = args.multiple
|
picker.allowsMultipleSelection = args.multiple ?? false
|
||||||
picker.modalPresentationStyle = .fullScreen
|
picker.modalPresentationStyle = .fullScreen
|
||||||
self.presentViewController(picker)
|
self.presentViewController(picker)
|
||||||
}
|
}
|
||||||
@@ -120,7 +120,7 @@ class DialogPlugin: Plugin {
|
|||||||
private func parseFiltersOption(_ filters: [Filter]) -> [String] {
|
private func parseFiltersOption(_ filters: [Filter]) -> [String] {
|
||||||
var parsedTypes: [String] = []
|
var parsedTypes: [String] = []
|
||||||
for filter in filters {
|
for filter in filters {
|
||||||
for ext in filter.extensions {
|
for ext in filter.extensions ?? [] {
|
||||||
guard
|
guard
|
||||||
let utType: String = UTTypeCreatePreferredIdentifierForTag(
|
let utType: String = UTTypeCreatePreferredIdentifierForTag(
|
||||||
kUTTagClassMIMEType, ext as CFString, nil)?.takeRetainedValue() as String?
|
kUTTagClassMIMEType, ext as CFString, nil)?.takeRetainedValue() as String?
|
||||||
@@ -197,24 +197,36 @@ class DialogPlugin: Plugin {
|
|||||||
DispatchQueue.main.async { [] in
|
DispatchQueue.main.async { [] in
|
||||||
let alert = UIAlertController(
|
let alert = UIAlertController(
|
||||||
title: args.title, message: args.message, preferredStyle: UIAlertController.Style.alert)
|
title: args.title, message: args.message, preferredStyle: UIAlertController.Style.alert)
|
||||||
alert.addAction(
|
|
||||||
UIAlertAction(
|
let cancelButtonLabel = args.cancelButtonLabel ?? ""
|
||||||
title: args.cancelButtonLabel, style: UIAlertAction.Style.default,
|
if !cancelButtonLabel.isEmpty {
|
||||||
handler: { (_) -> Void in
|
alert.addAction(
|
||||||
invoke.resolve([
|
UIAlertAction(
|
||||||
"value": false,
|
title: cancelButtonLabel, style: UIAlertAction.Style.default,
|
||||||
"cancelled": false,
|
handler: { (_) -> Void in
|
||||||
])
|
Logger.error("cancel")
|
||||||
}))
|
|
||||||
alert.addAction(
|
invoke.resolve([
|
||||||
UIAlertAction(
|
"value": false,
|
||||||
title: args.okButtonLabel, style: UIAlertAction.Style.default,
|
"cancelled": false,
|
||||||
handler: { (_) -> Void in
|
])
|
||||||
invoke.resolve([
|
}))
|
||||||
"value": true,
|
}
|
||||||
"cancelled": false,
|
|
||||||
])
|
let okButtonLabel = args.okButtonLabel ?? (cancelButtonLabel.isEmpty ? "OK" : "")
|
||||||
}))
|
if !okButtonLabel.isEmpty {
|
||||||
|
alert.addAction(
|
||||||
|
UIAlertAction(
|
||||||
|
title: okButtonLabel, style: UIAlertAction.Style.default,
|
||||||
|
handler: { (_) -> Void in
|
||||||
|
Logger.error("ok")
|
||||||
|
|
||||||
|
invoke.resolve([
|
||||||
|
"value": true,
|
||||||
|
"cancelled": false,
|
||||||
|
])
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
manager.viewController?.present(alert, animated: true, completion: nil)
|
manager.viewController?.present(alert, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-dialog",
|
"name": "@tauri-apps/plugin-dialog",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Tauri Programme within The Commons Conservancy"
|
"Tauri Programme within The Commons Conservancy"
|
||||||
@@ -23,6 +23,6 @@
|
|||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.0.0-beta.6"
|
"@tauri-apps/api": "2.0.0-beta.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,7 +129,12 @@ pub(crate) async fn open<R: Runtime>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OpenResponse::Folders(folders)
|
OpenResponse::Folders(folders.map(|folders| {
|
||||||
|
folders
|
||||||
|
.iter()
|
||||||
|
.map(|p| dunce::simplified(p).to_path_buf())
|
||||||
|
.collect()
|
||||||
|
}))
|
||||||
} else {
|
} else {
|
||||||
let folder = dialog_builder.blocking_pick_folder();
|
let folder = dialog_builder.blocking_pick_folder();
|
||||||
if let Some(path) = &folder {
|
if let Some(path) = &folder {
|
||||||
@@ -137,7 +142,7 @@ pub(crate) async fn open<R: Runtime>(
|
|||||||
s.allow_directory(path, options.recursive);
|
s.allow_directory(path, options.recursive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OpenResponse::Folder(folder)
|
OpenResponse::Folder(folder.map(|p| dunce::simplified(&p).to_path_buf()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(mobile)]
|
#[cfg(mobile)]
|
||||||
@@ -154,7 +159,15 @@ pub(crate) async fn open<R: Runtime>(
|
|||||||
.allow_file(&file.path)?;
|
.allow_file(&file.path)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OpenResponse::Files(files)
|
OpenResponse::Files(files.map(|files| {
|
||||||
|
files
|
||||||
|
.into_iter()
|
||||||
|
.map(|mut f| {
|
||||||
|
f.path = dunce::simplified(&f.path).to_path_buf();
|
||||||
|
f
|
||||||
|
})
|
||||||
|
.collect()
|
||||||
|
}))
|
||||||
} else {
|
} else {
|
||||||
let file = dialog_builder.blocking_pick_file();
|
let file = dialog_builder.blocking_pick_file();
|
||||||
if let Some(file) = &file {
|
if let Some(file) = &file {
|
||||||
@@ -165,7 +178,10 @@ pub(crate) async fn open<R: Runtime>(
|
|||||||
.state::<tauri::scope::Scopes>()
|
.state::<tauri::scope::Scopes>()
|
||||||
.allow_file(&file.path)?;
|
.allow_file(&file.path)?;
|
||||||
}
|
}
|
||||||
OpenResponse::File(file)
|
OpenResponse::File(file.map(|mut f| {
|
||||||
|
f.path = dunce::simplified(&f.path).to_path_buf();
|
||||||
|
f
|
||||||
|
}))
|
||||||
};
|
};
|
||||||
Ok(res)
|
Ok(res)
|
||||||
}
|
}
|
||||||
@@ -208,7 +224,7 @@ pub(crate) async fn save<R: Runtime>(
|
|||||||
window.state::<tauri::scope::Scopes>().allow_file(p)?;
|
window.state::<tauri::scope::Scopes>().allow_file(p)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(path)
|
Ok(path.map(|p| dunce::simplified(&p).to_path_buf()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
!function(){"use strict";async function n(n,i={},o){return window.__TAURI_INTERNALS__.invoke(n,i,o)}"function"==typeof SuppressedError&&SuppressedError,window.alert=function(i){n("plugin:dialog|message",{message:i.toString()})},window.confirm=function(i){return n("plugin:dialog|confirm",{message:i.toString()})}}();
|
!function(){"use strict";async function n(n,i={},o){return window.__TAURI_INTERNALS__.invoke(n,i,o)}"function"==typeof SuppressedError&&SuppressedError,window.alert=function(i){n("plugin:dialog|message",{message:i.toString()})},window.confirm=async function(i){return await n("plugin:dialog|confirm",{message:i.toString()})}}();
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ macro_rules! blocking_fn {
|
|||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the dialog APIs.
|
/// Extensions to [`tauri::App`], [`tauri::AppHandle`], [`tauri::WebviewWindow`], [`tauri::Webview`] and [`tauri::Window`] to access the dialog APIs.
|
||||||
pub trait DialogExt<R: Runtime> {
|
pub trait DialogExt<R: Runtime> {
|
||||||
fn dialog(&self) -> &Dialog<R>;
|
fn dialog(&self) -> &Dialog<R>;
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user