mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-05-01 12:08:06 +02:00
Compare commits
289 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 267e39e250 | |||
| 6d1e6218b5 | |||
| 7c6d9fd956 | |||
| e0d415e405 | |||
| 5ca9a80f45 | |||
| b1b9a02f9e | |||
| ac8251774a | |||
| 7039c9b995 | |||
| 14f381acf8 | |||
| e414579b31 | |||
| 569defbe94 | |||
| 31e72f9a41 | |||
| 3f81555fbf | |||
| 4709c343bc | |||
| df3fc7c251 | |||
| a31ef8e67e | |||
| af6ebc8399 | |||
| dbc0c0757e | |||
| 193624b73a | |||
| 9dd1d09797 | |||
| 78abd7bdfb | |||
| d98fa3e9fa | |||
| c4fda036cc | |||
| 8461cf1d1b | |||
| 8645a02aee | |||
| 7cefa2b0bd | |||
| fe4fb7dc7a | |||
| 72db444401 | |||
| 696af68c9b | |||
| 51ba4c5330 | |||
| 9b49f0abf7 | |||
| e28115cb42 | |||
| e856adc72c | |||
| 2f0e30852a | |||
| 531123cad0 | |||
| 343b1f55af | |||
| 53c0e89860 | |||
| 2e7ef46d8b | |||
| dac8b6331c | |||
| 8502b90287 | |||
| fe10ab488f | |||
| 7659b9515d | |||
| 5673a416a8 | |||
| ee910bfcce | |||
| 331a3eaf06 | |||
| cb5ff764a6 | |||
| 0688416425 | |||
| 14f5961569 | |||
| 63afaf1dfa | |||
| abd0176cc1 | |||
| 18e478aba0 | |||
| 2643a4c331 | |||
| d198c01486 | |||
| 506ce4835b | |||
| 15dc7060e8 | |||
| 18cb861b52 | |||
| 8dea78ac7d | |||
| 61edbbec0a | |||
| 0879a87a7e | |||
| 8505a756b5 | |||
| 4e2e77580c | |||
| 8a3db790b8 | |||
| bf5a21d5b2 | |||
| 1b1d795b58 | |||
| ae0cb92438 | |||
| ea8eadce85 | |||
| be5aebdec9 | |||
| b9d29a0154 | |||
| 1a347203a5 | |||
| e80626cf81 | |||
| 2e2fc8de69 | |||
| 85f8419682 | |||
| c60123093d | |||
| 38b5d37b54 | |||
| 8b1d821a37 | |||
| bfa87da848 | |||
| c2115d8d21 | |||
| 8c6d96e645 | |||
| 7bdc32079c | |||
| 10b80391fc | |||
| 1eaf640255 | |||
| 69a1fa099c | |||
| 2cf8faa3e1 | |||
| e5f979f91a | |||
| 8df28a9875 | |||
| fe79adb5c7 | |||
| 7c59e3785b | |||
| b1c6a7885e | |||
| 2d6bfbfacf | |||
| 68cb23f9c0 | |||
| 387c2f9e0c | |||
| 78e60e6618 | |||
| a848e1870a | |||
| f4b2674fd5 | |||
| 0e3e3d4eac | |||
| e7c72c9816 | |||
| 2e2c0a1b95 | |||
| f49b391f10 | |||
| df73183f2c | |||
| bd0b015180 | |||
| 7d1f3e7a08 | |||
| 913b767c4b | |||
| 058d5dde0d | |||
| 8c9ff2a2a9 | |||
| 5106b9d0c6 | |||
| 0864c54147 | |||
| 2d941a407b | |||
| 0617e2354a | |||
| e66b196852 | |||
| 32309c90d8 | |||
| 445c1e6cb6 | |||
| 88d260d901 | |||
| a3b506f559 | |||
| 0a387ea358 | |||
| f16433be43 | |||
| eea3df56ef | |||
| 53a1a7e436 | |||
| af3b36647c | |||
| 20ef22fc3a | |||
| 4e6712ed40 | |||
| 8d6a60d4a2 | |||
| 19529b6097 | |||
| b11221a7c9 | |||
| 5a8bbe2967 | |||
| 642a195d34 | |||
| a3ca64275a | |||
| 9db40a6dc4 | |||
| 1b98b85a1f | |||
| cb1586b4d1 | |||
| aeca2d0d87 | |||
| fc62ead565 | |||
| 251852ccbc | |||
| b13d97c7c7 | |||
| f807d02c08 | |||
| 2888925973 | |||
| eac0cbff3c | |||
| 8ab2267944 | |||
| 84a2a11c4d | |||
| 04e396d036 | |||
| 5ca7a63da2 | |||
| 61e862597e | |||
| 6865299149 | |||
| ba6acafb5b | |||
| 4247434ed8 | |||
| 33e40d819d | |||
| af0ee307d4 | |||
| 96d5cabc17 | |||
| 8d6045421a | |||
| c77cbe936d | |||
| 11048fd997 | |||
| f595684ba8 | |||
| d472eebad2 | |||
| c27699ffab | |||
| d4d1633c4d | |||
| e438e0a62d | |||
| 68d77f999c | |||
| 1712f27b77 | |||
| 8dd371814a | |||
| 5c3b2f7511 | |||
| 227bf5424a | |||
| c25b7537e3 | |||
| 9e24e52164 | |||
| 444a16ca73 | |||
| cff0cdeaa8 | |||
| 57c1db41a3 | |||
| 6630e5db75 | |||
| 662c61826b | |||
| 44df7726ae | |||
| b4535af927 | |||
| 77b81af36c | |||
| 9b20f28d74 | |||
| 1e56d86b51 | |||
| 07650ca94b | |||
| d68d5cce60 | |||
| faab5f6cee | |||
| 4ecc649839 | |||
| 9f27e6e441 | |||
| 3f0917bd50 | |||
| 9048f80a4e | |||
| ac7390973b | |||
| d5f5d78830 | |||
| 1f799ae25e | |||
| fa32d1afa9 | |||
| f41d3e5e77 | |||
| 9b96996b5a | |||
| 9af4c3727c | |||
| 3d279094d4 | |||
| 6c7a4c0984 | |||
| 1c17161f2a | |||
| 6111c7f3da | |||
| 746067bb70 | |||
| 0623903f12 | |||
| 043de033b0 | |||
| 7432a399db | |||
| 305c5793ae | |||
| 4a39b74d5c | |||
| dc5a14b6ad | |||
| 2b65e0a149 | |||
| beb9095f11 | |||
| 418294b1a3 | |||
| 3febb72f28 | |||
| 90fecadb86 | |||
| 63834d9b63 | |||
| 8654caa26e | |||
| 473991371d | |||
| e98e8eac3d | |||
| 44d8f60e0d | |||
| b04bde3461 | |||
| 0190f68f1d | |||
| 5b85dd22c7 | |||
| 76832e60bf | |||
| 5b814f56e6 | |||
| 6647e6ea90 | |||
| 83148da959 | |||
| e8d7e765e7 | |||
| 76bcecf5b2 | |||
| d49aa664e9 | |||
| bd0d88243a | |||
| f001df870f | |||
| 72a6e3ba68 | |||
| 7e58dc8502 | |||
| ac495b9fb4 | |||
| dacde1629d | |||
| 700549ab02 | |||
| 811b1ec12d | |||
| 174c5e52e3 | |||
| 37d057df61 | |||
| cdb77c4b65 | |||
| e47dca954f | |||
| 94f62d2503 | |||
| ee0d314bb5 | |||
| ae8a581f9a | |||
| 67bff4559d | |||
| d272bde2bb | |||
| 919616d7d3 | |||
| b60b46a0b8 | |||
| 6d8f517148 | |||
| 949c59f8a5 | |||
| b99844706e | |||
| 92514cca47 | |||
| 81fb450c39 | |||
| c3a6dab24c | |||
| 0863f800b8 | |||
| 600ad30756 | |||
| 51f20b438e | |||
| 4fd6b58070 | |||
| c8c6d56d1b | |||
| 2ed0fd716c | |||
| 8286b06198 | |||
| 180ec441aa | |||
| 07f3a89df0 | |||
| c009cb383f | |||
| 00915af7e7 | |||
| c499238892 | |||
| ac6f08f193 | |||
| 84d8a21e55 | |||
| 280f99c5f3 | |||
| 8c10a1b0a7 | |||
| b6ffbe33da | |||
| 2f2da76aa8 | |||
| 9dba680114 | |||
| 2365c46534 | |||
| 01ede23b34 | |||
| a2503b795d | |||
| 65e6870195 | |||
| ec74b2d69a | |||
| 6845cefc82 | |||
| 2a8e168149 | |||
| efcc3df3fe | |||
| 9e440d27ae | |||
| 395ff65547 | |||
| ad3028646c | |||
| 0d0ed7b907 | |||
| 92233ea64a | |||
| 36b7296746 | |||
| d9b2331237 | |||
| 8916544034 | |||
| 3d4697b34a | |||
| 9174b808dc | |||
| a305ad3ddb | |||
| 7b9d7a1d88 | |||
| c4d2c8c693 | |||
| be2a90b7e2 | |||
| 417c85a2dd | |||
| 617cf38069 | |||
| 6ad221ed36 | |||
| 0984fc8374 | |||
| 523bcdc528 | |||
| ea63b40224 |
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"log-plugin": patch
|
||||
---
|
||||
|
||||
Update to tauri@2.0.0-alpha.16.
|
||||
@@ -1,27 +0,0 @@
|
||||
---
|
||||
"authenticator-js": patch
|
||||
"autostart-js": patch
|
||||
"barcode-scanner-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
|
||||
"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-apps/api v2.0.0-alpha.16.
|
||||
@@ -1,49 +1,57 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"authenticator-js": patch
|
||||
"autostart": patch
|
||||
"autostart-js": patch
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"cli": patch
|
||||
"cli-js": patch
|
||||
"clipboard-manager": patch
|
||||
"clipboard-manager-js": patch
|
||||
"deep-link": patch
|
||||
"dialog": patch
|
||||
"dialog-js": patch
|
||||
"fs": patch
|
||||
"fs-js": patch
|
||||
"global-shortcut": patch
|
||||
"global-shortcut-js": patch
|
||||
"http": patch
|
||||
"http-js": patch
|
||||
"localhost": patch
|
||||
"log-plugin": patch
|
||||
"log-js": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"notification-js": patch
|
||||
"os": patch
|
||||
"os-js": patch
|
||||
"persisted-scope": patch
|
||||
"positioner": patch
|
||||
"positioner-js": patch
|
||||
"process": patch
|
||||
"process-js": patch
|
||||
"shell": patch
|
||||
"shell-js": patch
|
||||
"single-instance": patch
|
||||
"sql": patch
|
||||
"sql-js": patch
|
||||
"store": patch
|
||||
"store-js": patch
|
||||
"stronghold": patch
|
||||
"stronghold-js": patch
|
||||
"updater": patch
|
||||
"updater-js": patch
|
||||
"upload": patch
|
||||
"upload-js": patch
|
||||
"websocket": patch
|
||||
"websocket-js": 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 alpha.11.
|
||||
Update to tauri beta.
|
||||
+20
-27
@@ -39,6 +39,7 @@
|
||||
"publish": false,
|
||||
"dependencies": [
|
||||
"barcode-scanner",
|
||||
"biometric",
|
||||
"log-plugin",
|
||||
"cli",
|
||||
"clipboard-manager",
|
||||
@@ -46,6 +47,7 @@
|
||||
"fs",
|
||||
"global-shortcut",
|
||||
"http",
|
||||
"nfc",
|
||||
"notification",
|
||||
"os",
|
||||
"process",
|
||||
@@ -59,6 +61,7 @@
|
||||
"publish": false,
|
||||
"dependencies": [
|
||||
"barcode-scanner-js",
|
||||
"biometric-js",
|
||||
"log-js",
|
||||
"cli-js",
|
||||
"clipboard-manager-js",
|
||||
@@ -66,6 +69,7 @@
|
||||
"fs-js",
|
||||
"global-shortcut-js",
|
||||
"http-js",
|
||||
"nfc-js",
|
||||
"notification-js",
|
||||
"os-js",
|
||||
"process-js",
|
||||
@@ -74,7 +78,6 @@
|
||||
],
|
||||
"postversion": "pnpm install --no-frozen-lockfile"
|
||||
},
|
||||
|
||||
"deep-link-example-js": {
|
||||
"path": "./plugins/deep-link/examples/app",
|
||||
"manager": "javascript",
|
||||
@@ -82,7 +85,6 @@
|
||||
"dependencies": ["deep-link-js"],
|
||||
"postversion": "pnpm install --no-frozen-lockfile"
|
||||
},
|
||||
|
||||
"authenticator": {
|
||||
"path": "./plugins/authenticator",
|
||||
"manager": "rust"
|
||||
@@ -91,7 +93,6 @@
|
||||
"path": "./plugins/authenticator",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"autostart": {
|
||||
"path": "./plugins/autostart",
|
||||
"manager": "rust"
|
||||
@@ -100,7 +101,6 @@
|
||||
"path": "./plugins/autostart",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"barcode-scanner": {
|
||||
"path": "./plugins/barcode-scanner",
|
||||
"manager": "rust"
|
||||
@@ -109,7 +109,14 @@
|
||||
"path": "./plugins/barcode-scanner",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"biometric": {
|
||||
"path": "./plugins/biometric",
|
||||
"manager": "rust"
|
||||
},
|
||||
"biometric-js": {
|
||||
"path": "./plugins/biometric",
|
||||
"manager": "javascript"
|
||||
},
|
||||
"cli": {
|
||||
"path": "./plugins/cli",
|
||||
"manager": "rust"
|
||||
@@ -118,7 +125,6 @@
|
||||
"path": "./plugins/cli",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"clipboard-manager": {
|
||||
"path": "./plugins/clipboard-manager",
|
||||
"manager": "rust"
|
||||
@@ -127,7 +133,6 @@
|
||||
"path": "./plugins/clipboard-manager",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"deep-link": {
|
||||
"path": "./plugins/deep-link",
|
||||
"manager": "rust"
|
||||
@@ -136,7 +141,6 @@
|
||||
"path": "./plugins/deep-link",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"fs": {
|
||||
"path": "./plugins/fs",
|
||||
"manager": "rust"
|
||||
@@ -145,7 +149,6 @@
|
||||
"path": "./plugins/fs",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"dialog": {
|
||||
"path": "./plugins/dialog",
|
||||
"manager": "rust",
|
||||
@@ -155,7 +158,6 @@
|
||||
"path": "./plugins/dialog",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"global-shortcut": {
|
||||
"path": "./plugins/global-shortcut",
|
||||
"manager": "rust"
|
||||
@@ -164,7 +166,6 @@
|
||||
"path": "./plugins/global-shortcut",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"http": {
|
||||
"path": "./plugins/http",
|
||||
"manager": "rust",
|
||||
@@ -174,12 +175,10 @@
|
||||
"path": "./plugins/http",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"localhost": {
|
||||
"path": "./plugins/localhost",
|
||||
"manager": "rust"
|
||||
},
|
||||
|
||||
"log-plugin": {
|
||||
"path": "./plugins/log",
|
||||
"manager": "rust"
|
||||
@@ -188,7 +187,14 @@
|
||||
"path": "./plugins/log",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"nfc": {
|
||||
"path": "./plugins/nfc",
|
||||
"manager": "rust"
|
||||
},
|
||||
"nfc-js": {
|
||||
"path": "./plugins/nfc",
|
||||
"manager": "javascript"
|
||||
},
|
||||
"notification": {
|
||||
"path": "./plugins/notification",
|
||||
"manager": "rust"
|
||||
@@ -197,7 +203,6 @@
|
||||
"path": "./plugins/notification",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"os": {
|
||||
"path": "./plugins/os",
|
||||
"manager": "rust"
|
||||
@@ -206,13 +211,11 @@
|
||||
"path": "./plugins/os",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"persisted-scope": {
|
||||
"path": "./plugins/persisted-scope",
|
||||
"manager": "rust",
|
||||
"dependencies": ["fs"]
|
||||
},
|
||||
|
||||
"positioner": {
|
||||
"path": "./plugins/positioner",
|
||||
"manager": "rust"
|
||||
@@ -221,7 +224,6 @@
|
||||
"path": "./plugins/positioner",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"process": {
|
||||
"path": "./plugins/process",
|
||||
"manager": "rust"
|
||||
@@ -230,7 +232,6 @@
|
||||
"path": "./plugins/process",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"shell": {
|
||||
"path": "./plugins/shell",
|
||||
"manager": "rust"
|
||||
@@ -239,12 +240,10 @@
|
||||
"path": "./plugins/shell",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"single-instance": {
|
||||
"path": "./plugins/single-instance",
|
||||
"manager": "rust"
|
||||
},
|
||||
|
||||
"sql": {
|
||||
"path": "./plugins/sql",
|
||||
"manager": "rust",
|
||||
@@ -274,7 +273,6 @@
|
||||
"path": "./plugins/sql",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"store": {
|
||||
"path": "./plugins/store",
|
||||
"manager": "rust"
|
||||
@@ -283,7 +281,6 @@
|
||||
"path": "./plugins/store",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"stronghold": {
|
||||
"path": "./plugins/stronghold",
|
||||
"manager": "rust"
|
||||
@@ -292,7 +289,6 @@
|
||||
"path": "./plugins/stronghold",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"updater": {
|
||||
"path": "./plugins/updater",
|
||||
"manager": "rust"
|
||||
@@ -301,7 +297,6 @@
|
||||
"path": "./plugins/updater",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"upload": {
|
||||
"path": "./plugins/upload",
|
||||
"manager": "rust"
|
||||
@@ -310,7 +305,6 @@
|
||||
"path": "./plugins/upload",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"websocket": {
|
||||
"path": "./plugins/websocket",
|
||||
"manager": "rust"
|
||||
@@ -319,7 +313,6 @@
|
||||
"path": "./plugins/websocket",
|
||||
"manager": "javascript"
|
||||
},
|
||||
|
||||
"window-state": {
|
||||
"path": "./plugins/window-state",
|
||||
"manager": "rust"
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"deep-link": major
|
||||
"deep-link-js": major
|
||||
---
|
||||
|
||||
Initial release.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"dialog": "patch"
|
||||
---
|
||||
|
||||
On non-Linux system, use `AsyncMessageDialog` instead of `MessageDialog`. [(tauri#7182)](https://github.com/tauri-apps/tauri/issues/7182)
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"dialog": patch
|
||||
"fs": patch
|
||||
"global-shortcut": patch
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": 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
|
||||
---
|
||||
|
||||
Fixes docs.rs build by enabling the `tauri/dox` feature flag.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"shell": patch
|
||||
"dialog": patch
|
||||
---
|
||||
|
||||
Fix invoke usage.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Fix permission prompt.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
Fixes update on macOS.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"window-state-js": patch
|
||||
---
|
||||
|
||||
Fix usage of no longer available `__TAURI_METADATA__` API.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"single-instance": patch
|
||||
---
|
||||
|
||||
Fix `zbus::blocking::connection::Builder` import.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"fs-js": patch
|
||||
---
|
||||
|
||||
Fix `writeBinaryFile` crashing with `command 'write_binary_file' not found`
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"global-shortcut": "patch"
|
||||
---
|
||||
|
||||
**Breaking Change**: Changed `Builder::with_handler` closure to take `&AppHandle` as the first argument and the shortcut as the second argument.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"http-js": minor
|
||||
---
|
||||
|
||||
Multipart requests are now handled in JavaScript by the `Request` JavaScript class so you just need to use a `FormData` body and not set the content-type header to `multipart/form-data`. `application/x-www-form-urlencoded` requests must be done manually.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"http": minor
|
||||
"http-js": minor
|
||||
---
|
||||
|
||||
The http plugin has been rewritten from scratch and now only exposes a `fetch` function in Javascript and Re-exports `reqwest` crate in Rust. The new `fetch` method tries to be as close and compliant to the `fetch` Web API as possible.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"http": patch
|
||||
---
|
||||
|
||||
Remove `cmd` property which breaks invoke call.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"http": patch
|
||||
---
|
||||
|
||||
Improve response performance by using the new IPC streaming data.
|
||||
@@ -2,6 +2,7 @@
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"barcode-scanner": patch
|
||||
"biometric": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"deep-link": patch
|
||||
@@ -11,6 +12,7 @@
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": patch
|
||||
"nfc": patch
|
||||
"notification": patch
|
||||
"os": patch
|
||||
"persisted-scope": patch
|
||||
@@ -27,4 +29,4 @@
|
||||
"window-state": patch
|
||||
---
|
||||
|
||||
Update MSRV to 1.70.
|
||||
Update MSRV to 1.75.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Use `window.__TAURI_INVOKE__` instead of `window.__TAURI__` in init.js, fixes usage in apps without `withGlobalTauri` enabled.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Revert [7d71ad4e5](https://github.com/tauri-apps/plugins-workspace/commit/7d71ad4e587bcf47ea34645f5b226945e487b765) which added a default sound for notifications on Windows. This introduced inconsistency with other platforms that has silent notifications by default. In the upcoming releases, we will add support for modifying the notification sound across all platforms.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"notification": patch
|
||||
---
|
||||
|
||||
Play a default sound when showing a notification on Windows.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"os-js": "patch"
|
||||
---
|
||||
|
||||
Fix `macss -> macos` typo in `OsType` type.
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
"os": minor
|
||||
"os-js": minor
|
||||
---
|
||||
|
||||
The os plugin is recieving a few changes to improve consistency and add new features:
|
||||
|
||||
- Renamed `Kind` enum to `OsType` and `kind()` function to `os_type()`.
|
||||
- Added `family()`,`exe_extension()`, and `hostname()` functions and their equivalents for JS.
|
||||
- Removed `tempdir()` function and its equivalent on JS, use `std::env::temp_dir` instead of `temp_dir` from `tauri::path::PathResolver::temp_dir` and `path.tempDir` on JS.
|
||||
- Modified `platform()` implementation to return `windows` instead of `win32` and `macos` instead of `darwin` to align with Rust's `std::env::consts::OS`
|
||||
- `EOL` const in JS has been modified into a function `eol()` fix import issues in frameworks like `next.js`
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"persisted-scope": patch
|
||||
---
|
||||
|
||||
Split up fs and asset scopes. **This will reset the asset protocol scope once!**
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"persisted-scope": patch
|
||||
---
|
||||
|
||||
Fix usage of directory patterns by removing glob asterisks at the end before allowing/forbidding them. This was causing them to be escaped, and so undesirable paths were allowed/forbidden while polluting the `.persisted-scope` file.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"positioner": patch
|
||||
---
|
||||
|
||||
Change `system-tray` feature flag to `tray-icon`.
|
||||
+5
-41
@@ -1,45 +1,9 @@
|
||||
{
|
||||
"tag": "alpha",
|
||||
"tag": "beta",
|
||||
"changes": [
|
||||
".changes/alpha.16.md",
|
||||
".changes/api-alpha.9.md",
|
||||
".changes/deep-link-initial-release.md",
|
||||
".changes/dialog-async-message-dialog.md",
|
||||
".changes/fix-docs-build.md",
|
||||
".changes/fix-invoke-usage.md",
|
||||
".changes/fix-permission-notification.md",
|
||||
".changes/fix-updater-macos.md",
|
||||
".changes/fix-window-state-api.md",
|
||||
".changes/fs-wiret-binary-file.md",
|
||||
".changes/global-shortcut-app-handle.md",
|
||||
".changes/http-multipart-refactor.md",
|
||||
".changes/http-plugin-refactor.md",
|
||||
".changes/http-remove-cmd-property.md",
|
||||
".changes/http-response.md",
|
||||
".changes/msrv-1.70.md",
|
||||
".changes/notification-init-script.md",
|
||||
".changes/notification-revert-sound.md",
|
||||
".changes/notification-sound.md",
|
||||
".changes/os-OsType.md",
|
||||
".changes/os-plugin-refactor.md",
|
||||
".changes/persisted-scope-asset.md",
|
||||
".changes/persisted-scope-glob.md",
|
||||
".changes/positioner-tray-flag.md",
|
||||
".changes/scanner-initial-release.md",
|
||||
".changes/shell-command-apis.md",
|
||||
".changes/shell-detached.md",
|
||||
".changes/stronghold-arg-name.md",
|
||||
".changes/stronghold-constructor.md",
|
||||
".changes/tauri-alpha-15.md",
|
||||
".changes/tauri-alpha.11.md",
|
||||
".changes/tauri-alpha.12.md",
|
||||
".changes/updater-nsis-admin.md",
|
||||
".changes/updater-nsis.md",
|
||||
".changes/updater-plugin-refactor.md",
|
||||
".changes/updater-string-replace.md",
|
||||
".changes/v2-alpha.md",
|
||||
".changes/websocket-fix-arg-name.md",
|
||||
".changes/window-state-decorated.md",
|
||||
".changes/window-state-promise.md"
|
||||
".changes/beta.md",
|
||||
".changes/fix-zbus-import.md",
|
||||
".changes/msrv-1.75.md",
|
||||
".changes/tauri-beta-4.md"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"barcode-scanner": major
|
||||
"barcode-scanner-js": major
|
||||
---
|
||||
|
||||
Initial release.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"shell": "patch"
|
||||
---
|
||||
|
||||
Added `Command::arg`, `Command::env` and changed `Command::new` input type.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"shell": patch
|
||||
---
|
||||
|
||||
Ensure the launched process is detached so it can out-live your tauri app and does not shutdown with it.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"stronghold-js": patch
|
||||
---
|
||||
|
||||
Change the argument name of the `Stronghold.remove` from `location` to `recordPath` to match the Stronghold command argument
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"stronghold-js": minor
|
||||
---
|
||||
|
||||
Added `Stronghold.load` and removed its constructor.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"window-state": patch
|
||||
"persisted-scope": patch
|
||||
---
|
||||
|
||||
Update to tauri@alpha.15.
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
"authenticator": patch
|
||||
"autostart": patch
|
||||
"cli": patch
|
||||
"clipboard-manager": patch
|
||||
"dialog": patch
|
||||
"fs": patch
|
||||
"global-shortcut": patch
|
||||
"http": patch
|
||||
"localhost": patch
|
||||
"log-plugin": 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
|
||||
---
|
||||
|
||||
Update to alpha.12.
|
||||
@@ -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.4.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
On Windows, fix NSIS installers requiring administrator rights failing to be launched by updater.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"updater": patch
|
||||
---
|
||||
|
||||
Implement passive mode on NSIS and automatically restart after NSIS update.
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
"updater": minor
|
||||
"updater-js": minor
|
||||
---
|
||||
|
||||
The updater plugin is recieving a few changes to improve consistency and ergonomics of the Rust and JS APIs
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"updater": "patch"
|
||||
---
|
||||
|
||||
The plugin now correctly replaces `arch`, `current_version` and `target` again.
|
||||
@@ -1,49 +0,0 @@
|
||||
---
|
||||
"authenticator": major
|
||||
"authenticator-js": major
|
||||
"autostart": major
|
||||
"autostart-js": major
|
||||
"cli": major
|
||||
"cli-js": major
|
||||
"clipboard-manager": major
|
||||
"clipboard-manager-js": major
|
||||
"dialog": major
|
||||
"dialog-js": major
|
||||
"fs": major
|
||||
"fs-js": major
|
||||
"global-shortcut": major
|
||||
"global-shortcut-js": major
|
||||
"http": major
|
||||
"http-js": major
|
||||
"localhost": major
|
||||
"log-plugin": major
|
||||
"log-js": major
|
||||
"notification": major
|
||||
"notification-js": major
|
||||
"os": major
|
||||
"os-js": major
|
||||
"persisted-scope": major
|
||||
"positioner": major
|
||||
"positioner-js": major
|
||||
"process": major
|
||||
"process-js": major
|
||||
"shell": major
|
||||
"shell-js": major
|
||||
"single-instance": major
|
||||
"sql": major
|
||||
"sql-js": major
|
||||
"store": major
|
||||
"store-js": major
|
||||
"stronghold": major
|
||||
"stronghold-js": major
|
||||
"updater": major
|
||||
"updater-js": major
|
||||
"upload": major
|
||||
"upload-js": major
|
||||
"websocket": major
|
||||
"websocket-js": major
|
||||
"window-state": major
|
||||
"window-state-js": major
|
||||
---
|
||||
|
||||
First v2 alpha release!
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"websocket": patch
|
||||
---
|
||||
|
||||
Fix argument name mismatch that caused issues when options where provided.
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"window-state": "patch"
|
||||
---
|
||||
|
||||
Correctly set decoration state if no saved state xists
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
"window-state-js": "patch"
|
||||
---
|
||||
|
||||
Correctly propagate the promise inside `saveWindowState`, `restoreState` and `restoreStateCurrent` so callers can choose to `await` them.
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
"prettier",
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:security/recommended"
|
||||
"plugin:security/recommended-legacy"
|
||||
],
|
||||
"overrides": [],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<svg class="crabnebula-logo" width="100%" height="100%" viewBox="0 0 1204 210" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xml:space="preserve" xmlns:serif="http://www.serif.com/"
|
||||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||
<style>
|
||||
.crabnebula-logo path,
|
||||
.crabnebula-logo rect {
|
||||
fill: #001e42;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.crabnebula-logo path, .crabnebula-logo rect {
|
||||
fill: #fff;
|
||||
}
|
||||
}
|
||||
html[data-color-mode="dark"] .crabnebula-logo path,
|
||||
html[data-color-mode="dark"] .crabnebula-logo rect {
|
||||
fill: #fff;
|
||||
}
|
||||
</style>
|
||||
<path d="M351.903,162.334C344.288,162.334 337.123,160.881 330.41,157.975C323.696,155.069 317.834,151.11 312.824,146.099C307.914,141.089 304.006,135.276 301.101,128.662C298.195,121.948 296.742,114.783 296.742,107.167C296.742,99.55 298.195,92.435 301.101,85.821C304.006,79.107 307.914,73.244 312.824,68.234C317.834,63.223 323.696,59.265 330.41,56.358C337.123,53.452 344.288,51.999 351.903,51.999C357.414,51.999 362.675,52.701 367.685,54.103C372.795,55.507 377.455,57.511 381.663,60.116C385.972,62.622 389.83,65.678 393.237,69.286C396.644,72.793 399.499,76.752 401.804,81.161L380.762,92.586C377.756,87.174 373.848,82.915 369.038,79.808C364.328,76.702 358.617,75.148 351.903,75.148C347.494,75.148 343.386,76 339.578,77.704C335.871,79.407 332.614,81.762 329.809,84.769C327.003,87.675 324.798,91.082 323.195,94.991C321.592,98.799 320.79,102.857 320.79,107.167C320.79,111.476 321.592,115.584 323.195,119.493C324.798,123.301 327.003,126.708 329.809,129.715C332.614,132.621 335.871,134.926 339.578,136.629C343.386,138.333 347.494,139.185 351.903,139.185C358.617,139.185 364.328,137.631 369.038,134.525C373.848,131.418 377.756,127.159 380.762,121.748L401.804,133.172C399.499,137.581 396.644,141.59 393.237,145.198C389.83,148.705 385.972,151.762 381.663,154.367C377.455,156.872 372.795,158.827 367.685,160.23C362.675,161.633 357.414,162.334 351.903,162.334Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M413.821,85.37L436.517,85.37L436.517,96.644C437.72,93.337 439.924,90.481 443.131,88.076C446.437,85.671 450.195,84.468 454.403,84.468C455.506,84.468 456.658,84.518 457.86,84.619C459.063,84.719 460.366,84.969 461.768,85.37L461.768,108.369C460.065,107.768 458.412,107.317 456.808,107.016C455.205,106.716 453.502,106.565 451.698,106.565C446.788,106.565 443.03,108.269 440.425,111.676C437.82,115.083 436.517,119.493 436.517,124.904L436.517,160.53L413.821,160.53L413.821,85.37Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M502.161,162.184C497.251,162.184 492.642,161.132 488.333,159.027C484.125,156.923 480.467,154.117 477.361,150.609C474.255,147.001 471.8,142.843 469.996,138.133C468.193,133.322 467.291,128.261 467.291,122.95C467.291,117.639 468.193,112.628 469.996,107.918C471.8,103.108 474.255,98.949 477.361,95.442C480.467,91.834 484.125,88.978 488.333,86.873C492.642,84.769 497.251,83.717 502.161,83.717C504.666,83.717 506.971,84.017 509.075,84.619C511.28,85.12 513.234,85.821 514.937,86.723C516.741,87.625 518.244,88.627 519.446,89.729C520.749,90.832 521.801,91.884 522.603,92.886L522.603,85.37L545.299,85.37L545.299,160.53L522.603,160.53L522.603,153.014C521.801,154.016 520.749,155.069 519.446,156.171C518.244,157.273 516.741,158.275 514.937,159.177C513.234,160.079 511.28,160.781 509.075,161.282C506.971,161.883 504.666,162.184 502.161,162.184ZM507.272,141.59C512.382,141.59 516.49,139.836 519.597,136.329C522.803,132.821 524.406,128.362 524.406,122.95C524.406,117.539 522.803,113.079 519.597,109.572C516.49,106.064 512.382,104.31 507.272,104.31C502.161,104.31 498.003,106.064 494.796,109.572C491.69,113.079 490.137,117.539 490.137,122.95C490.137,128.362 491.69,132.821 494.796,136.329C498.003,139.836 502.161,141.59 507.272,141.59Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M607.116,162.184C604.611,162.184 602.256,161.883 600.051,161.282C597.947,160.781 595.993,160.079 594.19,159.177C592.486,158.275 590.983,157.273 589.681,156.171C588.378,155.069 587.376,154.016 586.674,153.014L586.674,160.53L563.979,160.53L563.979,47.79L586.674,47.79L586.674,92.886C587.376,91.884 588.378,90.832 589.681,89.729C590.983,88.627 592.486,87.625 594.19,86.723C595.993,85.821 597.947,85.12 600.051,84.619C602.256,84.017 604.611,83.717 607.116,83.717C612.026,83.717 616.585,84.769 620.793,86.873C625.102,88.978 628.81,91.834 631.916,95.442C635.022,98.949 637.477,103.108 639.281,107.918C641.084,112.628 641.986,117.639 641.986,122.95C641.986,128.261 641.084,133.322 639.281,138.133C637.477,142.843 635.022,147.001 631.916,150.609C628.81,154.117 625.102,156.923 620.793,159.027C616.585,161.132 612.026,162.184 607.116,162.184ZM602.005,141.59C607.116,141.59 611.224,139.836 614.33,136.329C617.537,132.821 619.14,128.362 619.14,122.95C619.14,117.539 617.537,113.079 614.33,109.572C611.224,106.064 607.116,104.31 602.005,104.31C596.895,104.31 592.737,106.064 589.53,109.572C586.424,113.079 584.871,117.539 584.871,122.95C584.871,128.362 586.424,132.821 589.53,136.329C592.737,139.836 596.895,141.59 602.005,141.59Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M732.106,160.53L680.101,94.54L680.101,160.53L656.203,160.53L656.203,53.803L676.795,53.803L728.649,119.793L728.649,53.803L752.698,53.803L752.698,160.53L732.106,160.53Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M806.852,162.184C801.341,162.184 796.13,161.282 791.22,159.478C786.411,157.674 782.202,155.069 778.595,151.661C774.988,148.254 772.132,144.145 770.028,139.335C767.923,134.425 766.871,128.963 766.871,122.95C766.871,117.338 767.823,112.177 769.727,107.467C771.731,102.657 774.487,98.498 777.994,94.991C781.601,91.483 785.809,88.727 790.619,86.723C795.429,84.719 800.69,83.717 806.401,83.717C811.311,83.717 816.021,84.518 820.53,86.122C825.139,87.625 829.147,89.93 832.554,93.036C835.961,96.043 838.666,99.851 840.67,104.461C842.775,108.97 843.827,114.282 843.827,120.395C843.827,121.397 843.777,122.549 843.677,123.852C843.677,125.055 843.576,126.558 843.376,128.362L788.816,128.362C789.517,132.871 791.671,136.228 795.279,138.433C798.886,140.538 802.844,141.59 807.153,141.59C811.562,141.59 815.319,140.738 818.425,139.034C821.632,137.231 823.937,135.226 825.339,133.022L842.173,145.649C838.666,150.659 833.857,154.668 827.744,157.674C821.732,160.681 814.768,162.184 806.852,162.184ZM821.281,113.48C820.279,109.471 818.275,106.615 815.269,104.912C812.263,103.108 809.107,102.206 805.8,102.206C804.096,102.206 802.393,102.406 800.69,102.807C798.986,103.208 797.383,103.859 795.88,104.761C794.377,105.663 793.024,106.816 791.822,108.219C790.719,109.622 789.918,111.376 789.417,113.48L821.281,113.48Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M901.265,162.184C898.76,162.184 896.405,161.883 894.201,161.282C892.097,160.781 890.143,160.079 888.339,159.177C886.636,158.275 885.133,157.273 883.83,156.171C882.527,155.069 881.525,154.016 880.824,153.014L880.824,160.53L858.128,160.53L858.128,47.79L880.824,47.79L880.824,92.886C881.525,91.884 882.527,90.832 883.83,89.729C885.133,88.627 886.636,87.625 888.339,86.723C890.143,85.821 892.097,85.12 894.201,84.619C896.405,84.017 898.76,83.717 901.265,83.717C906.175,83.717 910.734,84.769 914.943,86.873C919.252,88.978 922.959,91.834 926.065,95.442C929.172,98.949 931.627,103.108 933.43,107.918C935.234,112.628 936.136,117.639 936.136,122.95C936.136,128.261 935.234,133.322 933.43,138.133C931.627,142.843 929.172,147.001 926.065,150.609C922.959,154.117 919.252,156.923 914.943,159.027C910.734,161.132 906.175,162.184 901.265,162.184ZM896.155,141.59C901.265,141.59 905.374,139.836 908.48,136.329C911.686,132.821 913.29,128.362 913.29,122.95C913.29,117.539 911.686,113.079 908.48,109.572C905.374,106.064 901.265,104.31 896.155,104.31C891.045,104.31 886.886,106.064 883.68,109.572C880.573,113.079 879.02,117.539 879.02,122.95C879.02,128.362 880.573,132.821 883.68,136.329C886.886,139.836 891.045,141.59 896.155,141.59Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M977.812,162.184C968.493,162.184 961.429,159.077 956.619,152.864C951.81,146.651 949.405,138.433 949.405,128.211L949.405,85.37L972.101,85.37L972.101,124.303C972.101,129.815 972.952,134.074 974.656,137.08C976.459,140.087 979.466,141.59 983.674,141.59C987.983,141.59 991.39,140.037 993.895,136.93C996.5,133.823 997.803,128.813 997.803,121.898L997.803,85.37L1020.5,85.37L1020.5,160.53L997.803,160.53L997.803,152.864C995.999,155.469 993.444,157.674 990.137,159.478C986.83,161.282 982.722,162.184 977.812,162.184Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<rect x="1039.11" y="47.79" width="22.701" height="112.74" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M1110.86,162.184C1105.95,162.184 1101.34,161.132 1097.03,159.027C1092.83,156.923 1089.17,154.117 1086.06,150.609C1082.96,147.001 1080.5,142.843 1078.7,138.133C1076.89,133.322 1075.99,128.261 1075.99,122.95C1075.99,117.639 1076.89,112.628 1078.7,107.918C1080.5,103.108 1082.96,98.949 1086.06,95.442C1089.17,91.834 1092.83,88.978 1097.03,86.873C1101.34,84.769 1105.95,83.717 1110.86,83.717C1113.37,83.717 1115.67,84.017 1117.78,84.619C1119.98,85.12 1121.94,85.821 1123.64,86.723C1125.44,87.625 1126.95,88.627 1128.15,89.729C1129.45,90.832 1130.5,91.884 1131.3,92.886L1131.3,85.37L1154,85.37L1154,160.53L1131.3,160.53L1131.3,153.014C1130.5,154.016 1129.45,155.069 1128.15,156.171C1126.95,157.273 1125.44,158.275 1123.64,159.177C1121.94,160.079 1119.98,160.781 1117.78,161.282C1115.67,161.883 1113.37,162.184 1110.86,162.184ZM1115.97,141.59C1121.08,141.59 1125.19,139.836 1128.3,136.329C1131.5,132.821 1133.11,128.362 1133.11,122.95C1133.11,117.539 1131.5,113.079 1128.3,109.572C1125.19,106.064 1121.08,104.31 1115.97,104.31C1110.86,104.31 1106.7,106.064 1103.5,109.572C1100.39,113.079 1098.84,117.539 1098.84,122.95C1098.84,128.362 1100.39,132.821 1103.5,136.329C1106.7,139.836 1110.86,141.59 1115.97,141.59Z" style="fill-rule:nonzero;stroke:black;stroke-width:0.55px;"/>
|
||||
<path d="M146.48,54.585C119.724,89.866 119.878,134.941 146.826,155.264C153.908,160.605 162.136,163.705 170.903,164.732C146.032,184.934 117.382,191.203 98.037,178.045C71.507,160 72.524,112.249 100.309,71.391C123.51,37.273 158.039,18.749 184.247,24.072C170.404,30.195 157.116,40.561 146.48,54.585ZM181.638,99.643C169.141,111.453 154.859,119.304 142.801,121.916C149.921,147.367 177.29,149.323 177.29,149.323C177.29,149.323 193.578,145.578 205.877,117.941C216.005,95.183 215.122,71.668 204.914,59.7C204.065,71.267 195.731,86.324 181.638,99.643Z" style="stroke:black;stroke-width:0.55px;"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 11 KiB |
@@ -37,3 +37,5 @@ jobs:
|
||||
- uses: rustsec/audit-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# https://github.com/tauri-apps/plugins-workspace/issues/774
|
||||
ignore: ${{ github.event_name != 'schedule' && 'RUSTSEC-2023-0071' || '' }}
|
||||
|
||||
@@ -175,7 +175,7 @@ jobs:
|
||||
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
vcpkg install openssl:x64-windows-static-md
|
||||
|
||||
- uses: dtolnay/rust-toolchain@1.70.0
|
||||
- uses: dtolnay/rust-toolchain@1.75.0
|
||||
with:
|
||||
targets: ${{ matrix.platform.target }}
|
||||
|
||||
@@ -189,12 +189,20 @@ jobs:
|
||||
|
||||
- name: install cross
|
||||
if: ${{ matrix.platform.runner == 'cross' }}
|
||||
run: cargo install cross --git https://github.com/cross-rs/cross
|
||||
run: cargo +stable install cross --git https://github.com/cross-rs/cross
|
||||
|
||||
- name: test ${{ matrix.package }}
|
||||
if: matrix.package != 'tauri-plugin-sql'
|
||||
if: matrix.package != 'tauri-plugin-sql' && matrix.package != 'tauri-plugin-http'
|
||||
run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --all-features
|
||||
|
||||
- name: test ${{ matrix.package }}
|
||||
if: matrix.package == 'tauri-plugin-http'
|
||||
run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets
|
||||
|
||||
- name: test ${{ matrix.package }} sqlite
|
||||
if: matrix.package == 'tauri-plugin-sql'
|
||||
run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --features sqlite
|
||||
|
||||
- name: test ${{ matrix.package }} mysql
|
||||
if: matrix.package == 'tauri-plugin-sql'
|
||||
run: ${{ matrix.platform.runner }} ${{ matrix.platform.command }} --package ${{ matrix.package }} --target ${{ matrix.platform.target }} --all-targets --features mysql
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
target
|
||||
node_modules
|
||||
dist
|
||||
dist-js
|
||||
dist-js
|
||||
dist
|
||||
+2
-1
@@ -8,4 +8,5 @@ Cargo.lock
|
||||
build
|
||||
api-iife.js
|
||||
init-iife.js
|
||||
intermediates/
|
||||
intermediates/
|
||||
*schema.json
|
||||
@@ -9,7 +9,11 @@ import readline from "readline";
|
||||
const header = `Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
SPDX-License-Identifier: MIT`;
|
||||
const ignoredLicense = "// Copyright 2021 Jonas Kruckenberg";
|
||||
const ignoredLicenses = [
|
||||
"// Copyright 2021 Flavio Oliveira",
|
||||
"// Copyright 2021 Jonas Kruckenberg",
|
||||
"// Copyright 2018-2023 the Deno authors.",
|
||||
];
|
||||
|
||||
const extensions = [".rs", ".js", ".ts", ".yml", ".swift", ".kt"];
|
||||
const ignore = [
|
||||
@@ -23,12 +27,13 @@ const ignore = [
|
||||
"api-iife.js",
|
||||
"init-iife.js",
|
||||
".build",
|
||||
"notify_rust",
|
||||
];
|
||||
|
||||
async function checkFile(file) {
|
||||
if (
|
||||
extensions.some((e) => file.endsWith(e)) &&
|
||||
!ignore.some((i) => file.endsWith(i))
|
||||
!ignore.some((i) => file.includes(`${path.sep}${i}`))
|
||||
) {
|
||||
const fileStream = fs.createReadStream(file);
|
||||
const rl = readline.createInterface({
|
||||
@@ -44,7 +49,7 @@ async function checkFile(file) {
|
||||
line.length === 0 ||
|
||||
line.startsWith("#!") ||
|
||||
line.startsWith("// swift-tools-version:") ||
|
||||
line === ignoredLicense
|
||||
ignoredLicenses.includes(line)
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Generated
+2390
-1505
File diff suppressed because it is too large
Load Diff
+13
-5
@@ -1,20 +1,28 @@
|
||||
[workspace]
|
||||
members = ["plugins/*", "plugins/*/tests/*", "plugins/*/examples/*/src-tauri", "examples/*/src-tauri"]
|
||||
members = [
|
||||
"plugins/*",
|
||||
"plugins/*/tests/*",
|
||||
"plugins/*/examples/*/src-tauri",
|
||||
"examples/*/src-tauri",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
[workspace.dependencies]
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = "2.0.0-alpha.16"
|
||||
tauri-build = "2.0.0-alpha.10"
|
||||
tauri = "2.0.0-beta.4"
|
||||
tauri-build = "2.0.0-beta.3"
|
||||
tauri-plugin = "2.0.0-beta.3"
|
||||
serde_json = "1"
|
||||
thiserror = "1"
|
||||
url = "2"
|
||||
schemars = "0.8"
|
||||
|
||||
[workspace.package]
|
||||
edition = "2021"
|
||||
authors = [ "Tauri Programme within The Commons Conservancy" ]
|
||||
authors = ["Tauri Programme within The Commons Conservancy"]
|
||||
license = "Apache-2.0 OR MIT"
|
||||
rust-version = "1.70"
|
||||
rust-version = "1.75"
|
||||
|
||||
# default to small, optimized release binaries
|
||||
[profile.release]
|
||||
|
||||
@@ -1,19 +1,50 @@
|
||||
## Plugins Found Here
|
||||
|
||||
| | | Win | Mac | Lin | iOS | And |
|
||||
| ------------------------------------------ | ------------------------------------------------------ | --- | --- | --- | --- | --- |
|
||||
| [authenticator](plugins/authenticator) | Interface with hardware security keys. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. | ✅ | ? | ✅ | ? | ? |
|
||||
| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| | | Win | Mac | Lin | iOS | And |
|
||||
| ----------------------------------------------- | ------------------------------------------------------ | --- | --- | --- | --- | --- |
|
||||
| [authenticator](plugins/authenticator) | Interface with hardware security keys. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [barcode-scanner](plugins/barcode-scanner) | Allows your mobile application to use the camera to scan QR codes, EAN-13 and other kinds of barcodes. | ? | ? | ? | ✅ | ✅ |
|
||||
| [biometric](plugins/biometric) | Prompt the user for biometric authentication on Android and iOS. | ? | ? | ? | ✅ | ✅ |
|
||||
| [cli](plugins/cli) | Parse arguments from your Command Line Interface | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [clipboard-manager](plugins/clipboard-manager) | Read and write to the system clipboard. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [deep-link](plugins/deep-link) | Set your Tauri application as the default handler for an URL. | ? | ? | ? | ✅ | ✅ |
|
||||
| [dialog](plugins/dialog) | Native system dialogs for opening and saving files along with message dialogs. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [fs](plugins/fs) | Access the file system. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [global-shortcut](plugins/global-shortcut) | Register global shortcuts. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [http](plugins/http) | Access the HTTP client written in Rust. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [nfc](plugins/nfc) | Read and write NFC tags on Android and iOS. | ? | ? | ? | ✅ | ✅ |
|
||||
| [notification](plugins/notification) | Send message notifications (brief auto-expiring OS window element) to your user. Can also be used with the Notification Web API. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [os](plugins/os) | Read information about the operating system. | ✅ | ✅ | ✅ | ✅ | ✅ |
|
||||
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [process](plugins/process) | This plugin provides APIs to access the current process. To spawn child processes, see the [`shell`](https://github.com/tauri-apps/tauri-plugin-shell) plugin. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [shell](plugins/shell) | Access the system shell. Allows you to spawn child processes and manage files and URLs using their default application. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. | ✅ | ? | ✅ | ? | ? |
|
||||
| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [updater](plugins/updater) | In-app updates for Tauri applications. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. | ✅ | ✅ | ✅ | ? | ? |
|
||||
| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? |
|
||||
|
||||
_This repo and all plugins require a Rust version of at least **1.70**_
|
||||
_This repo and all plugins require a Rust version of at least **1.75**_
|
||||
|
||||
## Partners
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<a href="https://crabnebula.dev" target="_blank">
|
||||
<img src=".github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).
|
||||
|
||||
@@ -1,5 +1,113 @@
|
||||
# Changelog
|
||||
|
||||
## \[2.0.0-beta.1]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-beta.1`
|
||||
- Upgraded to `biometric-js@2.0.0-beta.1`
|
||||
- Upgraded to `cli-js@2.0.0-beta.1`
|
||||
- Upgraded to `clipboard-manager-js@2.0.0-beta.1`
|
||||
- Upgraded to `dialog-js@2.0.0-beta.1`
|
||||
- Upgraded to `fs-js@2.0.0-beta.1`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-beta.1`
|
||||
- Upgraded to `http-js@2.0.0-beta.1`
|
||||
- Upgraded to `log-js@2.0.0-beta.1`
|
||||
- Upgraded to `nfc-js@2.0.0-beta.1`
|
||||
- Upgraded to `notification-js@2.0.0-beta.1`
|
||||
- Upgraded to `os-js@2.0.0-beta.1`
|
||||
- Upgraded to `process-js@2.0.0-beta.1`
|
||||
- Upgraded to `shell-js@2.0.0-beta.1`
|
||||
- Upgraded to `updater-js@2.0.0-beta.1`
|
||||
|
||||
## \[2.0.0-beta.0]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-beta.0`
|
||||
- Upgraded to `biometric-js@2.0.0-beta.0`
|
||||
- Upgraded to `cli-js@2.0.0-beta.0`
|
||||
- Upgraded to `clipboard-manager-js@2.0.0-beta.0`
|
||||
- Upgraded to `dialog-js@2.0.0-beta.0`
|
||||
- Upgraded to `fs-js@2.0.0-beta.0`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-beta.0`
|
||||
- Upgraded to `http-js@2.0.0-beta.0`
|
||||
- Upgraded to `log-js@2.0.0-beta.0`
|
||||
- Upgraded to `nfc-js@2.0.0-beta.0`
|
||||
- Upgraded to `notification-js@2.0.0-beta.0`
|
||||
- Upgraded to `os-js@2.0.0-beta.0`
|
||||
- Upgraded to `process-js@2.0.0-beta.0`
|
||||
- Upgraded to `shell-js@2.0.0-beta.0`
|
||||
- Upgraded to `updater-js@2.0.0-beta.0`
|
||||
|
||||
## \[2.0.0-alpha.9]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `fs-js@2.0.0-alpha.6`
|
||||
|
||||
## \[2.0.0-alpha.8]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `http-js@2.0.0-alpha.6`
|
||||
|
||||
## \[2.0.0-alpha.7]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-alpha.4`
|
||||
- Upgraded to `cli-js@2.0.0-alpha.5`
|
||||
- Upgraded to `clipboard-manager-js@2.0.0-alpha.5`
|
||||
- Upgraded to `dialog-js@2.0.0-alpha.5`
|
||||
- Upgraded to `fs-js@2.0.0-alpha.5`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-alpha.5`
|
||||
- Upgraded to `http-js@2.0.0-alpha.5`
|
||||
- Upgraded to `log-js@2.0.0-alpha.5`
|
||||
- Upgraded to `notification-js@2.0.0-alpha.5`
|
||||
- Upgraded to `os-js@2.0.0-alpha.6`
|
||||
- Upgraded to `process-js@2.0.0-alpha.5`
|
||||
- Upgraded to `shell-js@2.0.0-alpha.5`
|
||||
- Upgraded to `updater-js@2.0.0-alpha.5`
|
||||
- Upgraded to `biometric-js@2.0.0-alpha.0`
|
||||
- Upgraded to `nfc-js@2.0.0-alpha.0`
|
||||
|
||||
## \[2.0.0-alpha.6]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-alpha.3`
|
||||
- Upgraded to `cli-js@2.0.0-alpha.4`
|
||||
- Upgraded to `clipboard-manager-js@2.0.0-alpha.4`
|
||||
- Upgraded to `dialog-js@2.0.0-alpha.4`
|
||||
- Upgraded to `fs-js@2.0.0-alpha.4`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-alpha.4`
|
||||
- Upgraded to `http-js@2.0.0-alpha.4`
|
||||
- Upgraded to `log-js@2.0.0-alpha.4`
|
||||
- Upgraded to `notification-js@2.0.0-alpha.4`
|
||||
- Upgraded to `os-js@2.0.0-alpha.5`
|
||||
- Upgraded to `process-js@2.0.0-alpha.4`
|
||||
- Upgraded to `shell-js@2.0.0-alpha.4`
|
||||
- Upgraded to `updater-js@2.0.0-alpha.4`
|
||||
|
||||
## \[2.0.0-alpha.5]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner-js@2.0.0-alpha.2`
|
||||
- Upgraded to `cli-js@2.0.0-alpha.3`
|
||||
- Upgraded to `clipboard-manager-js@2.0.0-alpha.3`
|
||||
- Upgraded to `dialog-js@2.0.0-alpha.3`
|
||||
- Upgraded to `fs-js@2.0.0-alpha.3`
|
||||
- Upgraded to `global-shortcut-js@2.0.0-alpha.3`
|
||||
- Upgraded to `http-js@2.0.0-alpha.3`
|
||||
- Upgraded to `log-js@2.0.0-alpha.3`
|
||||
- Upgraded to `notification-js@2.0.0-alpha.3`
|
||||
- Upgraded to `os-js@2.0.0-alpha.4`
|
||||
- Upgraded to `process-js@2.0.0-alpha.3`
|
||||
- Upgraded to `shell-js@2.0.0-alpha.3`
|
||||
- Upgraded to `updater-js@2.0.0-alpha.3`
|
||||
|
||||
## \[2.0.0-alpha.4]
|
||||
|
||||
### Dependencies
|
||||
|
||||
+24
-22
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "svelte-app",
|
||||
"private": true,
|
||||
"version": "2.0.0-alpha.4",
|
||||
"version": "2.0.0-beta.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --clearScreen false",
|
||||
@@ -9,30 +9,32 @@
|
||||
"serve": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-alpha.9",
|
||||
"@tauri-apps/plugin-barcode-scanner": "2.0.0-alpha.1",
|
||||
"@tauri-apps/plugin-cli": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-dialog": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-fs": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-global-shortcut": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-http": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-notification": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-os": "2.0.0-alpha.3",
|
||||
"@tauri-apps/plugin-process": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-shell": "2.0.0-alpha.2",
|
||||
"@tauri-apps/plugin-updater": "2.0.0-alpha.2",
|
||||
"@tauri-apps/api": "2.0.0-beta.2",
|
||||
"@tauri-apps/plugin-barcode-scanner": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-biometric": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-cli": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-clipboard-manager": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-dialog": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-fs": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-global-shortcut": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-http": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-nfc": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-notification": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-os": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-process": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-shell": "2.0.0-beta.1",
|
||||
"@tauri-apps/plugin-updater": "2.0.0-beta.1",
|
||||
"@zerodevx/svelte-json-view": "1.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify-json/codicon": "^1.1.31",
|
||||
"@iconify-json/ph": "^1.1.6",
|
||||
"@sveltejs/vite-plugin-svelte": "^2.4.6",
|
||||
"@tauri-apps/cli": "2.0.0-alpha.16",
|
||||
"@unocss/extractor-svelte": "^0.56.5",
|
||||
"@iconify-json/codicon": "^1.1.37",
|
||||
"@iconify-json/ph": "^1.1.8",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||
"@tauri-apps/cli": "2.0.0-beta.3",
|
||||
"@unocss/extractor-svelte": "^0.58.0",
|
||||
"internal-ip": "^8.0.0",
|
||||
"svelte": "^4.2.2",
|
||||
"unocss": "^0.56.5",
|
||||
"vite": "^4.5.0"
|
||||
"svelte": "^4.2.8",
|
||||
"unocss": "^0.58.0",
|
||||
"vite": "^5.0.12"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,3 +4,7 @@
|
||||
|
||||
# cargo-mobile
|
||||
.cargo/
|
||||
|
||||
gen/schemas/*.json
|
||||
!gen/schemas/desktop-schema.json
|
||||
!gen/schemas/mobile-schema.json
|
||||
|
||||
@@ -1,5 +1,115 @@
|
||||
# Changelog
|
||||
|
||||
## \[2.0.0-beta.1]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.1`
|
||||
- Upgraded to `biometric@2.0.0-beta.1`
|
||||
- Upgraded to `cli@2.0.0-beta.1`
|
||||
- Upgraded to `clipboard-manager@2.0.0-beta.1`
|
||||
- Upgraded to `dialog@2.0.0-beta.1`
|
||||
- Upgraded to `fs@2.0.0-beta.1`
|
||||
- Upgraded to `global-shortcut@2.0.0-beta.1`
|
||||
- Upgraded to `http@2.0.0-beta.1`
|
||||
- Upgraded to `log-plugin@2.0.0-beta.1`
|
||||
- Upgraded to `nfc@2.0.0-beta.1`
|
||||
- Upgraded to `notification@2.0.0-beta.1`
|
||||
- Upgraded to `os@2.0.0-beta.1`
|
||||
- Upgraded to `process@2.0.0-beta.1`
|
||||
- Upgraded to `shell@2.0.0-beta.1`
|
||||
- Upgraded to `updater@2.0.0-beta.1`
|
||||
|
||||
## \[2.0.0-beta.0]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner@2.0.0-beta.0`
|
||||
- Upgraded to `biometric@2.0.0-beta.0`
|
||||
- Upgraded to `cli@2.0.0-beta.0`
|
||||
- Upgraded to `clipboard-manager@2.0.0-beta.0`
|
||||
- Upgraded to `dialog@2.0.0-beta.0`
|
||||
- Upgraded to `fs@2.0.0-beta.0`
|
||||
- Upgraded to `global-shortcut@2.0.0-beta.0`
|
||||
- Upgraded to `http@2.0.0-beta.0`
|
||||
- Upgraded to `log@2.0.0-beta.0`
|
||||
- Upgraded to `nfc@2.0.0-beta.0`
|
||||
- Upgraded to `notification@2.0.0-beta.0`
|
||||
- Upgraded to `os@2.0.0-beta.0`
|
||||
- Upgraded to `process@2.0.0-beta.0`
|
||||
- Upgraded to `shell@2.0.0-beta.0`
|
||||
- Upgraded to `updater@2.0.0-beta.0`
|
||||
|
||||
## \[2.0.0-alpha.11]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `fs@2.0.0-alpha.7`
|
||||
- Upgraded to `dialog@2.0.0-alpha.7`
|
||||
- Upgraded to `http@2.0.0-alpha.9`
|
||||
|
||||
## \[2.0.0-alpha.10]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `http@2.0.0-alpha.8`
|
||||
|
||||
## \[2.0.0-alpha.9]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner@2.0.0-alpha.4`
|
||||
- Upgraded to `cli@2.0.0-alpha.6`
|
||||
- Upgraded to `clipboard-manager@2.0.0-alpha.6`
|
||||
- Upgraded to `dialog@2.0.0-alpha.6`
|
||||
- Upgraded to `fs@2.0.0-alpha.6`
|
||||
- Upgraded to `global-shortcut@2.0.0-alpha.6`
|
||||
- Upgraded to `http@2.0.0-alpha.7`
|
||||
- Upgraded to `log-plugin@2.0.0-alpha.6`
|
||||
- Upgraded to `notification@2.0.0-alpha.7`
|
||||
- Upgraded to `os@2.0.0-alpha.6`
|
||||
- Upgraded to `process@2.0.0-alpha.6`
|
||||
- Upgraded to `shell@2.0.0-alpha.6`
|
||||
- Upgraded to `updater@2.0.0-alpha.6`
|
||||
- Upgraded to `biometric@2.0.0-alpha.0`
|
||||
- Upgraded to `nfc@2.0.0-alpha.0`
|
||||
|
||||
## \[2.0.0-alpha.8]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner@2.0.0-alpha.3`
|
||||
- Upgraded to `cli@2.0.0-alpha.5`
|
||||
- Upgraded to `clipboard-manager@2.0.0-alpha.5`
|
||||
- Upgraded to `dialog@2.0.0-alpha.5`
|
||||
- Upgraded to `fs@2.0.0-alpha.5`
|
||||
- Upgraded to `global-shortcut@2.0.0-alpha.5`
|
||||
- Upgraded to `http@2.0.0-alpha.6`
|
||||
- Upgraded to `log-plugin@2.0.0-alpha.5`
|
||||
- Upgraded to `notification@2.0.0-alpha.6`
|
||||
- Upgraded to `os@2.0.0-alpha.5`
|
||||
- Upgraded to `process@2.0.0-alpha.5`
|
||||
- Upgraded to `shell@2.0.0-alpha.5`
|
||||
- Upgraded to `updater@2.0.0-alpha.5`
|
||||
|
||||
## \[2.0.0-alpha.7]
|
||||
|
||||
### Dependencies
|
||||
|
||||
- Upgraded to `barcode-scanner@2.0.0-alpha.2`
|
||||
- Upgraded to `cli@2.0.0-alpha.4`
|
||||
- Upgraded to `clipboard-manager@2.0.0-alpha.4`
|
||||
- Upgraded to `dialog@2.0.0-alpha.4`
|
||||
- Upgraded to `fs@2.0.0-alpha.4`
|
||||
- Upgraded to `global-shortcut@2.0.0-alpha.4`
|
||||
- Upgraded to `http@2.0.0-alpha.5`
|
||||
- Upgraded to `log-plugin@2.0.0-alpha.4`
|
||||
- Upgraded to `notification@2.0.0-alpha.5`
|
||||
- Upgraded to `os@2.0.0-alpha.4`
|
||||
- Upgraded to `process@2.0.0-alpha.4`
|
||||
- Upgraded to `shell@2.0.0-alpha.4`
|
||||
- Upgraded to `updater@2.0.0-alpha.4`
|
||||
|
||||
## \[2.0.0-alpha.6]
|
||||
|
||||
### Dependencies
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
[package]
|
||||
name = "api"
|
||||
publish = false
|
||||
version = "2.0.0-alpha.6"
|
||||
version = "2.0.0-beta.1"
|
||||
description = "An example Tauri Application showcasing the api"
|
||||
edition = "2021"
|
||||
rust-version = { workspace = true }
|
||||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[lib]
|
||||
name = "api_lib"
|
||||
crate-type = [ "staticlib", "cdylib", "rlib" ]
|
||||
|
||||
[build-dependencies]
|
||||
@@ -18,15 +19,15 @@ serde_json = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
tiny_http = "0.11"
|
||||
log = { workspace = true }
|
||||
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-alpha.4" }
|
||||
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-alpha.4", features = [ "windows7-compat" ] }
|
||||
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-log = { path = "../../../plugins/log", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-fs = { path = "../../../plugins/fs", version = "2.0.0-beta.1", features = [ "watch" ] }
|
||||
tauri-plugin-clipboard-manager = { path = "../../../plugins/clipboard-manager", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-dialog = { path = "../../../plugins/dialog", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-http = { path = "../../../plugins/http", features = [ "multipart" ], version = "2.0.0-beta.1" }
|
||||
tauri-plugin-notification = { path = "../../../plugins/notification", version = "2.0.0-beta.1", features = [ "windows7-compat" ] }
|
||||
tauri-plugin-os = { path = "../../../plugins/os", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-process = { path = "../../../plugins/process", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-beta.1" }
|
||||
|
||||
[dependencies.tauri]
|
||||
workspace = true
|
||||
@@ -40,12 +41,14 @@ tauri-plugin-shell = { path = "../../../plugins/shell", version = "2.0.0-alpha.3
|
||||
]
|
||||
|
||||
[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-alpha.3" }
|
||||
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-alpha.3" }
|
||||
tauri-plugin-cli = { path = "../../../plugins/cli", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-beta.1" }
|
||||
|
||||
[target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies]
|
||||
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-alpha.1" }
|
||||
tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-nfc = { path = "../../../plugins/nfc", version = "2.0.0-beta.1" }
|
||||
tauri-plugin-biometric = { path = "../../../plugins/biometric/", version = "2.0.0-beta.1" }
|
||||
|
||||
[target."cfg(target_os = \"windows\")".dependencies]
|
||||
window-shadows = "0.2"
|
||||
|
||||
@@ -7,6 +7,7 @@ fn main() {
|
||||
if !cfg!(feature = "custom-protocol") {
|
||||
codegen = codegen.dev();
|
||||
}
|
||||
codegen.build();
|
||||
tauri_build::build();
|
||||
|
||||
tauri_build::try_build(tauri_build::Attributes::new().codegen(codegen))
|
||||
.expect("failed to run tauri_build::try_build");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "run-app-base",
|
||||
"description": "Base permissions to run the app",
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"log:default",
|
||||
{
|
||||
"identifier": "http:default",
|
||||
"allow": [
|
||||
{
|
||||
"url": "http://localhost:3003"
|
||||
}
|
||||
]
|
||||
},
|
||||
"app:default",
|
||||
"resources:default",
|
||||
"fs:default",
|
||||
"menu:default",
|
||||
"path:default",
|
||||
"tray:default",
|
||||
"event:default",
|
||||
"window:default",
|
||||
"notification:default",
|
||||
"os:allow-platform",
|
||||
"dialog:allow-open",
|
||||
"dialog:allow-save",
|
||||
"dialog:allow-confirm",
|
||||
"dialog:allow-message",
|
||||
{
|
||||
"identifier": "shell:allow-execute",
|
||||
"allow": [
|
||||
{
|
||||
"name": "sh",
|
||||
"cmd": "sh",
|
||||
"args": [
|
||||
"-c",
|
||||
{
|
||||
"validator": "\\S+"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cmd",
|
||||
"cmd": "cmd",
|
||||
"args": [
|
||||
"/C",
|
||||
{
|
||||
"validator": "\\S+"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"shell:allow-kill",
|
||||
"shell:allow-stdin-write",
|
||||
"clipboard-manager:allow-read",
|
||||
"clipboard-manager:allow-write",
|
||||
"fs:allow-rename",
|
||||
"fs:allow-mkdir",
|
||||
"fs:allow-remove",
|
||||
"fs:allow-write-text-file",
|
||||
"fs:scope-download-recursive",
|
||||
"fs:scope-resource-recursive",
|
||||
{
|
||||
"identifier": "fs:scope-appdata-recursive",
|
||||
"allow": [
|
||||
{
|
||||
"path": "$APPDATA/db/**"
|
||||
}
|
||||
],
|
||||
"deny": [
|
||||
{
|
||||
"path": "$APPDATA/db/*.stronghold"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "run-app-desktop",
|
||||
"description": "Permissions to run the app (desktop only)",
|
||||
"windows": ["main"],
|
||||
"platforms": ["linux", "macOS", "windows"],
|
||||
"permissions": [
|
||||
"cli:default",
|
||||
"updater:default",
|
||||
"global-shortcut:allow-unregister",
|
||||
"global-shortcut:allow-register",
|
||||
"global-shortcut:allow-unregister-all"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/mobile-schema.json",
|
||||
"identifier": "run-app-mobile",
|
||||
"description": "Permissions to run the app (mobile only)",
|
||||
"windows": ["main"],
|
||||
"platforms": ["android", "iOS"],
|
||||
"permissions": [
|
||||
"nfc:allow-write",
|
||||
"nfc:allow-scan",
|
||||
"biometric:allow-authenticate",
|
||||
"barcode-scanner:allow-scan",
|
||||
"barcode-scanner:allow-cancel",
|
||||
"barcode-scanner:allow-request-permissions",
|
||||
"barcode-scanner:allow-check-permissions"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="17" />
|
||||
</component>
|
||||
</project>
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleJvm" value="jbr-17" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$USER_HOME$/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.0.0-beta.0/mobile/android" />
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
<option value="$PROJECT_DIR$/buildSrc" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/barcode-scanner/android" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/biometric/android" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/clipboard-manager/android" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/dialog/android" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/nfc/android" />
|
||||
<option value="$PROJECT_DIR$/../../../../../plugins/notification/android" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="MavenRepo" />
|
||||
<option name="name" value="MavenRepo" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="Google" />
|
||||
<option name="name" value="Google" />
|
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.8.10" />
|
||||
</component>
|
||||
</project>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<application
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
@@ -16,6 +17,26 @@
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<!-- NFC PLUGIN. AUTO-GENERATED. DO NOT REMOVE. -->
|
||||
<intent-filter>
|
||||
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.nfc.action.TECH_DISCOVERED" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.nfc.action.TAG_DISCOVERED" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
|
||||
<meta-data
|
||||
android:name="android.nfc.action.TECH_DISCOVERED"
|
||||
android:resource="@xml/nfc_tech_filter" />
|
||||
<!-- NFC PLUGIN. AUTO-GENERATED. DO NOT REMOVE. -->
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
|
||||
+9
-17
@@ -1,11 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1200"
|
||||
version = "1.7">
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES"
|
||||
runPostActionsOnFailure = "NO">
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
@@ -16,7 +15,7 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "54DC6E273C78071F3BA12EF3"
|
||||
BuildableName = "api_iOS.app"
|
||||
BuildableName = "Tauri API.app"
|
||||
BlueprintName = "api_iOS"
|
||||
ReferencedContainer = "container:api.xcodeproj">
|
||||
</BuildableReference>
|
||||
@@ -27,21 +26,16 @@
|
||||
buildConfiguration = "debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "NO"
|
||||
onlyGenerateCoverageForSpecifiedTargets = "NO">
|
||||
shouldUseLaunchSchemeArgsEnv = "NO">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "54DC6E273C78071F3BA12EF3"
|
||||
BuildableName = "api_iOS.app"
|
||||
BuildableName = "Tauri API.app"
|
||||
BlueprintName = "api_iOS"
|
||||
ReferencedContainer = "container:api.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<Testables>
|
||||
</Testables>
|
||||
<CommandLineArguments>
|
||||
</CommandLineArguments>
|
||||
<EnvironmentVariables>
|
||||
<EnvironmentVariable
|
||||
key = "RUST_BACKTRACE"
|
||||
@@ -54,6 +48,8 @@
|
||||
isEnabled = "YES">
|
||||
</EnvironmentVariable>
|
||||
</EnvironmentVariables>
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "debug"
|
||||
@@ -70,13 +66,11 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "54DC6E273C78071F3BA12EF3"
|
||||
BuildableName = "api_iOS.app"
|
||||
BuildableName = "Tauri API.app"
|
||||
BlueprintName = "api_iOS"
|
||||
ReferencedContainer = "container:api.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<CommandLineArguments>
|
||||
</CommandLineArguments>
|
||||
<EnvironmentVariables>
|
||||
<EnvironmentVariable
|
||||
key = "RUST_BACKTRACE"
|
||||
@@ -101,13 +95,11 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "54DC6E273C78071F3BA12EF3"
|
||||
BuildableName = "api_iOS.app"
|
||||
BuildableName = "Tauri API.app"
|
||||
BlueprintName = "api_iOS"
|
||||
ReferencedContainer = "container:api.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<CommandLineArguments>
|
||||
</CommandLineArguments>
|
||||
<EnvironmentVariables>
|
||||
<EnvironmentVariable
|
||||
key = "RUST_BACKTRACE"
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>NFCReaderUsageDescription</key>
|
||||
<string>NFC Test</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Request camera access for barcode scanner</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
@@ -40,5 +44,7 @@
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>NSFaceIDUsageDescription</key>
|
||||
<string>Biometric Test</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
<dict>
|
||||
<key>com.apple.developer.nfc.readersession.formats</key>
|
||||
<array>
|
||||
<string>TAG</string>
|
||||
<string>NDEF</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -2,17 +2,12 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![cfg_attr(
|
||||
all(not(debug_assertions), target_os = "windows"),
|
||||
windows_subsystem = "windows"
|
||||
)]
|
||||
|
||||
mod cmd;
|
||||
#[cfg(desktop)]
|
||||
mod tray;
|
||||
|
||||
use serde::Serialize;
|
||||
use tauri::{window::WindowBuilder, App, AppHandle, RunEvent, WindowUrl};
|
||||
use tauri::{webview::WebviewWindowBuilder, App, AppHandle, Manager, RunEvent, WebviewUrl};
|
||||
|
||||
#[derive(Clone, Serialize)]
|
||||
struct Reply {
|
||||
@@ -52,12 +47,15 @@ pub fn run() {
|
||||
#[cfg(mobile)]
|
||||
{
|
||||
app.handle().plugin(tauri_plugin_barcode_scanner::init())?;
|
||||
app.handle().plugin(tauri_plugin_nfc::init())?;
|
||||
app.handle().plugin(tauri_plugin_biometric::init())?;
|
||||
}
|
||||
|
||||
let mut window_builder = WindowBuilder::new(app, "main", WindowUrl::default());
|
||||
let mut webview_window_builder =
|
||||
WebviewWindowBuilder::new(app, "main", WebviewUrl::default());
|
||||
#[cfg(desktop)]
|
||||
{
|
||||
window_builder = window_builder
|
||||
webview_window_builder = webview_window_builder
|
||||
.user_agent(&format!("Tauri API - {}", std::env::consts::OS))
|
||||
.title("Tauri API Validation")
|
||||
.inner_size(1000., 800.)
|
||||
@@ -67,7 +65,7 @@ pub fn run() {
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
window_builder = window_builder
|
||||
webview_window_builder = webview_window_builder
|
||||
.transparent(true)
|
||||
.shadow(true)
|
||||
.decorations(false);
|
||||
@@ -75,15 +73,14 @@ pub fn run() {
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
window_builder = window_builder.transparent(true);
|
||||
webview_window_builder = webview_window_builder.transparent(true);
|
||||
}
|
||||
|
||||
let window = window_builder.build().unwrap();
|
||||
let webview = webview_window_builder.build().unwrap();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
window.open_devtools();
|
||||
webview.open_devtools();
|
||||
|
||||
#[cfg(desktop)]
|
||||
std::thread::spawn(|| {
|
||||
let server = match tiny_http::Server::http("localhost:3003") {
|
||||
Ok(s) => s,
|
||||
@@ -110,15 +107,15 @@ pub fn run() {
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.on_page_load(|window, _| {
|
||||
let window_ = window.clone();
|
||||
window.listen("js-event", move |event| {
|
||||
.on_page_load(|webview, _| {
|
||||
let webview_ = webview.clone();
|
||||
webview.listen("js-event", move |event| {
|
||||
println!("got js-event with message '{:?}'", event.payload());
|
||||
let reply = Reply {
|
||||
data: "something else".to_string(),
|
||||
};
|
||||
|
||||
window_
|
||||
webview_
|
||||
.emit("rust-event", Some(reply))
|
||||
.expect("failed to emit");
|
||||
});
|
||||
|
||||
@@ -6,6 +6,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
#[cfg(desktop)]
|
||||
api::run();
|
||||
api_lib::run();
|
||||
}
|
||||
|
||||
@@ -6,19 +6,20 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use tauri::{
|
||||
menu::{Menu, MenuItem},
|
||||
tray::{ClickType, TrayIconBuilder},
|
||||
Manager, Runtime, WindowBuilder, WindowUrl,
|
||||
Manager, Runtime, WebviewUrl, WebviewWindowBuilder,
|
||||
};
|
||||
|
||||
pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
|
||||
let toggle_i = MenuItem::with_id(app, "toggle", "Toggle", true, None);
|
||||
let new_window_i = MenuItem::with_id(app, "new-window", "New window", true, None);
|
||||
let icon_i_1 = MenuItem::with_id(app, "icon-1", "Icon 1", true, None);
|
||||
let icon_i_2 = MenuItem::with_id(app, "icon-2", "Icon 2", true, None);
|
||||
let toggle_i = MenuItem::with_id(app, "toggle", "Toggle", true, None::<&str>)?;
|
||||
let new_window_i = MenuItem::with_id(app, "new-window", "New window", true, None::<&str>)?;
|
||||
let icon_i_1 = MenuItem::with_id(app, "icon-1", "Icon 1", true, None::<&str>)?;
|
||||
let icon_i_2 = MenuItem::with_id(app, "icon-2", "Icon 2", true, None::<&str>)?;
|
||||
#[cfg(target_os = "macos")]
|
||||
let set_title_i = MenuItem::with_id(app, "set-title", "Set Title", true, None);
|
||||
let switch_i = MenuItem::with_id(app, "switch-menu", "Switch Menu", true, None);
|
||||
let quit_i = MenuItem::with_id(app, "quit", "Quit", true, None);
|
||||
let remove_tray_i = MenuItem::with_id(app, "remove-tray", "Remove Tray icon", true, None);
|
||||
let set_title_i = MenuItem::with_id(app, "set-title", "Set Title", true, None::<&str>)?;
|
||||
let switch_i = MenuItem::with_id(app, "switch-menu", "Switch Menu", true, None::<&str>)?;
|
||||
let quit_i = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?;
|
||||
let remove_tray_i =
|
||||
MenuItem::with_id(app, "remove-tray", "Remove Tray icon", true, None::<&str>)?;
|
||||
let menu1 = Menu::with_items(
|
||||
app,
|
||||
&[
|
||||
@@ -53,7 +54,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
|
||||
app.remove_tray_by_id("tray-1");
|
||||
}
|
||||
"toggle" => {
|
||||
if let Some(window) = app.get_window("main") {
|
||||
if let Some(window) = app.get_webview_window("main") {
|
||||
let new_title = if window.is_visible().unwrap_or_default() {
|
||||
let _ = window.hide();
|
||||
"Show"
|
||||
@@ -66,7 +67,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
|
||||
}
|
||||
}
|
||||
"new-window" => {
|
||||
let _ = WindowBuilder::new(app, "new", WindowUrl::App("index.html".into()))
|
||||
let _ = WebviewWindowBuilder::new(app, "new", WebviewUrl::App("index.html".into()))
|
||||
.title("Tauri")
|
||||
.build();
|
||||
}
|
||||
@@ -104,7 +105,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
|
||||
.on_tray_icon_event(|tray, event| {
|
||||
if event.click_type == ClickType::Left {
|
||||
let app = tray.app_handle();
|
||||
if let Some(window) = app.get_window("main") {
|
||||
if let Some(window) = app.get_webview_window("main") {
|
||||
let _ = window.show();
|
||||
let _ = window.set_focus();
|
||||
}
|
||||
|
||||
@@ -1,15 +1,40 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
|
||||
"productName": "Tauri API",
|
||||
"version": "2.0.0",
|
||||
"identifier": "com.tauri.api",
|
||||
"build": {
|
||||
"distDir": "../dist",
|
||||
"devPath": "http://localhost:5173",
|
||||
"devUrl": "http://localhost:5173",
|
||||
"frontendDist": "../dist",
|
||||
"beforeDevCommand": "yarn dev",
|
||||
"beforeBuildCommand": "yarn build",
|
||||
"withGlobalTauri": true
|
||||
"beforeBuildCommand": "yarn build"
|
||||
},
|
||||
"package": {
|
||||
"productName": "Tauri API",
|
||||
"version": "2.0.0"
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
"macOSPrivateApi": true,
|
||||
"security": {
|
||||
"pattern": {
|
||||
"use": "isolation",
|
||||
"options": {
|
||||
"dir": "../isolation-dist/"
|
||||
}
|
||||
},
|
||||
"csp": {
|
||||
"default-src": "'self' customprotocol: asset:",
|
||||
"connect-src": "ipc: http://ipc.localhost",
|
||||
"font-src": ["https://fonts.gstatic.com"],
|
||||
"img-src": "'self' asset: http://asset.localhost blob: data:",
|
||||
"style-src": "'unsafe-inline' 'self' http://fonts.googleapis.com"
|
||||
},
|
||||
"freezePrototype": true,
|
||||
"assetProtocol": {
|
||||
"enable": true,
|
||||
"scope": {
|
||||
"allow": ["$APPDATA/db/**", "$RESOURCE/**"],
|
||||
"deny": ["$APPDATA/db/*.stronghold"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"cli": {
|
||||
@@ -47,95 +72,33 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"fs": {
|
||||
"scope": {
|
||||
"allow": ["$APPDATA/db/**", "$DOWNLOAD/**", "$RESOURCE/**"],
|
||||
"deny": ["$APPDATA/db/*.stronghold"]
|
||||
}
|
||||
},
|
||||
"shell": {
|
||||
"open": true,
|
||||
"scope": [
|
||||
{
|
||||
"name": "sh",
|
||||
"cmd": "sh",
|
||||
"args": [
|
||||
"-c",
|
||||
{
|
||||
"validator": "\\S+"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "cmd",
|
||||
"cmd": "cmd",
|
||||
"args": [
|
||||
"/C",
|
||||
{
|
||||
"validator": "\\S+"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"http": {
|
||||
"scope": ["http://localhost:3003"]
|
||||
"open": true
|
||||
},
|
||||
"updater": {
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK",
|
||||
"endpoints": [
|
||||
"https://tauri-update-server.vercel.app/update/{{target}}/{{current_version}}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tauri": {
|
||||
"pattern": {
|
||||
"use": "isolation",
|
||||
"options": {
|
||||
"dir": "../isolation-dist/"
|
||||
}
|
||||
},
|
||||
"macOSPrivateApi": true,
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"identifier": "com.tauri.api",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"windows": {
|
||||
"wix": {
|
||||
"language": {
|
||||
"en-US": {},
|
||||
"pt-BR": {
|
||||
"localePath": "locales/pt-BR.wxl"
|
||||
}
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
],
|
||||
"windows": {
|
||||
"wix": {
|
||||
"language": {
|
||||
"en-US": {},
|
||||
"pt-BR": {
|
||||
"localePath": "locales/pt-BR.wxl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"updater": {
|
||||
"active": true,
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK"
|
||||
}
|
||||
},
|
||||
"windows": [],
|
||||
"security": {
|
||||
"csp": {
|
||||
"default-src": "'self' customprotocol: asset:",
|
||||
"connect-src": "ipc: http://ipc.localhost",
|
||||
"font-src": ["https://fonts.gstatic.com"],
|
||||
"img-src": "'self' asset: http://asset.localhost blob: data:",
|
||||
"style-src": "'unsafe-inline' 'self' http://fonts.googleapis.com"
|
||||
},
|
||||
"freezePrototype": true,
|
||||
"assetProtocol": {
|
||||
"enable": true,
|
||||
"scope": {
|
||||
"allow": ["$APPDATA/db/**", "$RESOURCE/**"],
|
||||
"deny": ["$APPDATA/db/*.stronghold"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+28
-10
@@ -2,6 +2,7 @@
|
||||
import { writable } from "svelte/store";
|
||||
import { open } from "@tauri-apps/plugin-shell";
|
||||
import { getCurrent } from "@tauri-apps/api/window";
|
||||
import { getCurrent as getCurrentWebview } from "@tauri-apps/api/webview";
|
||||
import * as os from "@tauri-apps/plugin-os";
|
||||
|
||||
import Welcome from "./views/Welcome.svelte";
|
||||
@@ -17,9 +18,11 @@
|
||||
import Clipboard from "./views/Clipboard.svelte";
|
||||
import WebRTC from "./views/WebRTC.svelte";
|
||||
import Scanner from "./views/Scanner.svelte";
|
||||
import Biometric from "./views/Biometric.svelte";
|
||||
|
||||
import { onMount } from "svelte";
|
||||
import { onMount, tick } from "svelte";
|
||||
import { ask } from "@tauri-apps/plugin-dialog";
|
||||
import Nfc from "./views/Nfc.svelte";
|
||||
|
||||
const appWindow = getCurrent();
|
||||
|
||||
@@ -33,7 +36,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
appWindow.onFileDropEvent((event) => {
|
||||
getCurrentWebview().onFileDropEvent((event) => {
|
||||
onMessage(`File drop: ${JSON.stringify(event.payload)}`);
|
||||
});
|
||||
|
||||
@@ -72,7 +75,7 @@
|
||||
component: Http,
|
||||
icon: "i-ph-globe-hemisphere-west",
|
||||
},
|
||||
!isMobile && {
|
||||
{
|
||||
label: "Notifications",
|
||||
component: Notifications,
|
||||
icon: "i-codicon-bell-dot",
|
||||
@@ -92,7 +95,7 @@
|
||||
component: Updater,
|
||||
icon: "i-codicon-cloud-download",
|
||||
},
|
||||
!isMobile && {
|
||||
{
|
||||
label: "Clipboard",
|
||||
component: Clipboard,
|
||||
icon: "i-codicon-clippy",
|
||||
@@ -107,6 +110,16 @@
|
||||
component: Scanner,
|
||||
icon: "i-ph-scan",
|
||||
},
|
||||
isMobile && {
|
||||
label: "NFC",
|
||||
component: Nfc,
|
||||
icon: "i-ph-nfc",
|
||||
},
|
||||
isMobile && {
|
||||
label: "Biometric",
|
||||
component: Biometric,
|
||||
icon: "i-ph-scan",
|
||||
},
|
||||
];
|
||||
|
||||
let selected = views[0];
|
||||
@@ -166,30 +179,35 @@
|
||||
|
||||
// Console
|
||||
let messages = writable([]);
|
||||
function onMessage(value) {
|
||||
let consoleTextEl;
|
||||
async function onMessage(value) {
|
||||
messages.update((r) => [
|
||||
...r,
|
||||
{
|
||||
html:
|
||||
`<pre><strong class="text-accent dark:text-darkAccent">[${new Date().toLocaleTimeString()}]:</strong> ` +
|
||||
(typeof value === "string" ? value : JSON.stringify(value, null, 1)) +
|
||||
"</pre>",
|
||||
},
|
||||
...r,
|
||||
]);
|
||||
await tick();
|
||||
if (consoleTextEl) consoleTextEl.scrollTop = consoleTextEl.scrollHeight;
|
||||
}
|
||||
|
||||
// this function is renders HTML without sanitizing it so it's insecure
|
||||
// we only use it with our own input data
|
||||
function insecureRenderHtml(html) {
|
||||
async function insecureRenderHtml(html) {
|
||||
messages.update((r) => [
|
||||
...r,
|
||||
{
|
||||
html:
|
||||
`<pre><strong class="text-accent dark:text-darkAccent">[${new Date().toLocaleTimeString()}]:</strong> ` +
|
||||
html +
|
||||
"</pre>",
|
||||
},
|
||||
...r,
|
||||
]);
|
||||
await tick();
|
||||
if (consoleTextEl) consoleTextEl.scrollTop = consoleTextEl.scrollHeight;
|
||||
}
|
||||
|
||||
function clear() {
|
||||
@@ -221,7 +239,7 @@
|
||||
|
||||
let isWindows;
|
||||
onMount(async () => {
|
||||
isWindows = (await os.platform()) === "win32";
|
||||
isWindows = (await os.platform()) === "windows";
|
||||
});
|
||||
|
||||
// mobile
|
||||
@@ -474,7 +492,7 @@
|
||||
<div class="i-codicon-clear-all" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-2 overflow-y-auto all:font-mono code-block all:text-xs">
|
||||
<div bind:this={consoleTextEl} class="px-2 overflow-y-auto all:font-mono code-block all:text-xs select-text mr-2">
|
||||
{#each $messages as r}
|
||||
{@html r.html}
|
||||
{/each}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<script>
|
||||
import { authenticate } from "@tauri-apps/plugin-biometric";
|
||||
|
||||
export let onMessage;
|
||||
let allowDeviceCredential = true;
|
||||
|
||||
function auth() {
|
||||
authenticate("Tauri API wants to show it is awesome :)", {
|
||||
allowDeviceCredential,
|
||||
cancelTitle: "Cancel request",
|
||||
fallbackTitle: "Trying the fallback option",
|
||||
title: "Tauri API Auth",
|
||||
subtitle: "Please authenticate :)",
|
||||
confirmationRequired: false,
|
||||
maxAttemps: 1,
|
||||
})
|
||||
.then(onMessage)
|
||||
.catch(onMessage);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<input
|
||||
type="checkbox"
|
||||
id="dllowDeviceCredential"
|
||||
bind:checked={allowDeviceCredential}
|
||||
/>
|
||||
<label for="allowDeviceCredentiale">Allow device credential</label>
|
||||
</div>
|
||||
<button class="btn" id="cli-matches" on:click={auth}> Authenticate </button>
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { getCurrent } from "@tauri-apps/api/window";
|
||||
import { invoke } from "@tauri-apps/api/primitives";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { onMount, onDestroy } from "svelte";
|
||||
|
||||
const appWindow = getCurrent();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { open, save, confirm } from "@tauri-apps/plugin-dialog";
|
||||
import { readBinaryFile } from "@tauri-apps/plugin-fs";
|
||||
import { open, save, confirm, message } from "@tauri-apps/plugin-dialog";
|
||||
import { readFile } from "@tauri-apps/plugin-fs";
|
||||
|
||||
export let onMessage;
|
||||
export let insecureRenderHtml;
|
||||
@@ -22,6 +22,16 @@
|
||||
}
|
||||
|
||||
async function prompt() {
|
||||
confirm("Do you want to do something?")
|
||||
.then((res) =>
|
||||
onMessage(
|
||||
res ? "Yes" : "No"
|
||||
)
|
||||
)
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
async function promptCustom() {
|
||||
confirm("Is Tauri awesome?", {
|
||||
okLabel: "Absolutely",
|
||||
cancelLabel: "Totally",
|
||||
@@ -34,6 +44,10 @@
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
async function msg() {
|
||||
await message("Tauri is awesome!");
|
||||
}
|
||||
|
||||
function openDialog() {
|
||||
open({
|
||||
title: "My wonderful open dialog",
|
||||
@@ -55,7 +69,7 @@
|
||||
} else {
|
||||
var pathToRead = typeof res === "string" ? res : res.path;
|
||||
var isFile = pathToRead.match(/\S+\.\S+$/g);
|
||||
readBinaryFile(pathToRead)
|
||||
readFile(pathToRead)
|
||||
.then(function (response) {
|
||||
if (isFile) {
|
||||
if (
|
||||
@@ -130,3 +144,5 @@
|
||||
>Open save dialog</button
|
||||
>
|
||||
<button class="btn" id="prompt-dialog" on:click={prompt}>Prompt</button>
|
||||
<button class="btn" id="custom-prompt-dialog" on:click={promptCustom}>Prompt (custom)</button>
|
||||
<button class="btn" id="message-dialog" on:click={msg}>Message</button>
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
<script>
|
||||
import {
|
||||
readBinaryFile,
|
||||
writeTextFile,
|
||||
readDir,
|
||||
Dir,
|
||||
} from "@tauri-apps/plugin-fs";
|
||||
import { convertFileSrc } from "@tauri-apps/api/primitives";
|
||||
import * as fs from "@tauri-apps/plugin-fs";
|
||||
import { convertFileSrc } from "@tauri-apps/api/core";
|
||||
|
||||
export let onMessage;
|
||||
export let insecureRenderHtml;
|
||||
|
||||
let pathToRead = "";
|
||||
let path = "";
|
||||
let img;
|
||||
let file;
|
||||
let renameTo;
|
||||
let watchPath = "";
|
||||
let watchDebounceDelay = 0;
|
||||
let watchRecursive = false;
|
||||
let unwatchFn;
|
||||
let unwatchPath = "";
|
||||
|
||||
function getDir() {
|
||||
const dirSelect = document.getElementById("dir");
|
||||
@@ -30,56 +32,158 @@
|
||||
reader.readAsDataURL(blob);
|
||||
}
|
||||
|
||||
const DirOptions = Object.keys(Dir)
|
||||
const DirOptions = Object.keys(fs.BaseDirectory)
|
||||
.filter((key) => isNaN(parseInt(key)))
|
||||
.map((dir) => [dir, Dir[dir]]);
|
||||
.map((dir) => [dir, fs.BaseDirectory[dir]]);
|
||||
|
||||
function open() {
|
||||
fs.open(path, {
|
||||
baseDir: getDir(),
|
||||
read: true,
|
||||
write: true,
|
||||
create: true,
|
||||
})
|
||||
.then((f) => {
|
||||
file = f;
|
||||
onMessage(`Opened ${path}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function mkdir() {
|
||||
fs.mkdir(path, { baseDir: getDir() })
|
||||
.then(() => {
|
||||
onMessage(`Created dir ${path}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function remove() {
|
||||
fs.remove(path, { baseDir: getDir() })
|
||||
.then(() => {
|
||||
onMessage(`Removed ${path}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function rename() {
|
||||
fs.rename(path, renameTo, {
|
||||
oldPathBaseDir: getDir(),
|
||||
newPathBaseDir: getDir(),
|
||||
})
|
||||
.then(() => {
|
||||
onMessage(`Renamed ${path} to ${renameTo}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function truncate() {
|
||||
file
|
||||
.truncate(0)
|
||||
.then(() => {
|
||||
onMessage(`Truncated file`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function stat() {
|
||||
file
|
||||
.stat()
|
||||
.then((stat) => {
|
||||
onMessage(`File stat ${JSON.stringify(stat)}`);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function read() {
|
||||
const isFile = pathToRead.match(/\S+\.\S+$/g);
|
||||
const opts = {
|
||||
dir: getDir(),
|
||||
baseDir: getDir(),
|
||||
};
|
||||
const promise = isFile
|
||||
? readBinaryFile(pathToRead, opts)
|
||||
: readDir(pathToRead, opts);
|
||||
promise
|
||||
.then(function (response) {
|
||||
if (isFile) {
|
||||
if (pathToRead.includes(".png") || pathToRead.includes(".jpg")) {
|
||||
arrayBufferToBase64(new Uint8Array(response), function (base64) {
|
||||
const src = "data:image/png;base64," + base64;
|
||||
insecureRenderHtml('<img src="' + src + '"></img>');
|
||||
});
|
||||
} else {
|
||||
const value = String.fromCharCode.apply(null, response);
|
||||
insecureRenderHtml(
|
||||
'<textarea id="file-response"></textarea><button id="file-save">Save</button>'
|
||||
);
|
||||
setTimeout(() => {
|
||||
const fileInput = document.getElementById("file-response");
|
||||
fileInput.value = value;
|
||||
document
|
||||
.getElementById("file-save")
|
||||
.addEventListener("click", function () {
|
||||
writeTextFile(pathToRead, fileInput.value, {
|
||||
dir: getDir(),
|
||||
}).catch(onMessage);
|
||||
fs.stat(path, opts)
|
||||
.then((stat) => {
|
||||
const isFile = stat.isFile;
|
||||
|
||||
const promise = isFile
|
||||
? fs.readFile(path, opts)
|
||||
: fs.readDir(path, opts);
|
||||
promise
|
||||
.then(function (response) {
|
||||
if (isFile) {
|
||||
if (path.includes(".png") || path.includes(".jpg")) {
|
||||
arrayBufferToBase64(
|
||||
new Uint8Array(response),
|
||||
function (base64) {
|
||||
const src = "data:image/png;base64," + base64;
|
||||
insecureRenderHtml('<img src="' + src + '"></img>');
|
||||
}
|
||||
);
|
||||
} else {
|
||||
const value = String.fromCharCode.apply(null, response);
|
||||
insecureRenderHtml(
|
||||
'<textarea id="file-response"></textarea><button id="file-save">Save</button>'
|
||||
);
|
||||
setTimeout(() => {
|
||||
const fileInput = document.getElementById("file-response");
|
||||
fileInput.value = value;
|
||||
document
|
||||
.getElementById("file-save")
|
||||
.addEventListener("click", function () {
|
||||
fs.writeTextFile(path, fileInput.value, {
|
||||
dir: getDir(),
|
||||
}).catch(onMessage);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
} else {
|
||||
onMessage(response);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
onMessage(response);
|
||||
}
|
||||
})
|
||||
.catch(onMessage);
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
|
||||
function setSrc() {
|
||||
img.src = convertFileSrc(pathToRead);
|
||||
img.src = convertFileSrc(path);
|
||||
}
|
||||
|
||||
function watch() {
|
||||
unwatch();
|
||||
if (watchPath) {
|
||||
onMessage(`Watching ${watchPath} for changes`);
|
||||
let options = {
|
||||
recursive: watchRecursive,
|
||||
delayMs: parseInt(watchDebounceDelay),
|
||||
};
|
||||
if (options.delayMs === 0) {
|
||||
fs.watchImmediate(watchPath, onMessage, options)
|
||||
.then((fn) => {
|
||||
unwatchFn = fn;
|
||||
unwatchPath = watchPath;
|
||||
})
|
||||
.catch(onMessage);
|
||||
} else {
|
||||
fs.watch(watchPath, onMessage, options)
|
||||
.then((fn) => {
|
||||
unwatchFn = fn;
|
||||
unwatchPath = watchPath;
|
||||
})
|
||||
.catch(onMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function unwatch() {
|
||||
if (unwatchFn) {
|
||||
onMessage(`Stopped watching ${unwatchPath} for changes`);
|
||||
unwatchFn();
|
||||
}
|
||||
unwatchFn = undefined;
|
||||
unwatchPath = undefined;
|
||||
}
|
||||
</script>
|
||||
|
||||
<form class="flex flex-col" on:submit|preventDefault={read}>
|
||||
<div class="flex flex-col">
|
||||
<div class="flex gap-1">
|
||||
<select class="input" id="dir">
|
||||
<option value="">None</option>
|
||||
@@ -89,17 +193,56 @@
|
||||
</select>
|
||||
<input
|
||||
class="input grow"
|
||||
id="path-to-read"
|
||||
placeholder="Type the path to read..."
|
||||
bind:value={pathToRead}
|
||||
bind:value={path}
|
||||
/>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<button class="btn" id="read">Read</button>
|
||||
<button class="btn" on:click={open}>Open</button>
|
||||
<button class="btn" on:click={read}>Read</button>
|
||||
<button class="btn" on:click={mkdir}>Mkdir</button>
|
||||
<button class="btn" on:click={remove}>Remove</button>
|
||||
<div class="flex flex-row">
|
||||
<button class="btn" on:click={rename}>Rename</button>
|
||||
<input class="input" bind:value={renameTo} placeholder="To" />
|
||||
</div>
|
||||
<button class="btn" type="button" on:click={setSrc}>Use as img src</button>
|
||||
</div>
|
||||
</form>
|
||||
{#if file}
|
||||
<div>
|
||||
<button class="btn" on:click={truncate}>Truncate</button>
|
||||
<button class="btn" on:click={stat}>Stat</button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h3>Watch</h3>
|
||||
|
||||
<input
|
||||
class="input grow"
|
||||
placeholder="Type the path to watch..."
|
||||
bind:value={watchPath}
|
||||
/>
|
||||
<br />
|
||||
<div>
|
||||
<label for="watch-debounce-delay">Debounce delay in milliseconds (`0` disables the debouncer)</label>
|
||||
<input
|
||||
class="input"
|
||||
id="watch-debounce-delay"
|
||||
bind:value={watchDebounceDelay}
|
||||
/>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<input type="checkbox" id="watch-recursive" bind:checked={watchRecursive} />
|
||||
<label for="watch-recursive">Recursive</label>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<button class="btn" on:click={watch}>Watch</button>
|
||||
<button class="btn" on:click={unwatch}>Unwatch</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
import { write, scan, textRecord, uriRecord } from "@tauri-apps/plugin-nfc";
|
||||
import * as os from "@tauri-apps/plugin-os";
|
||||
|
||||
export let onMessage;
|
||||
const decoder = new TextDecoder();
|
||||
|
||||
let kind = "tag";
|
||||
let writeToNfc = false;
|
||||
let text = "";
|
||||
let uri = "";
|
||||
|
||||
let scheme = "";
|
||||
let host = "";
|
||||
let pathPrefix = "";
|
||||
let mimeType = "";
|
||||
|
||||
let isAndroid;
|
||||
onMount(async () => {
|
||||
isAndroid = (await os.platform()) === "android";
|
||||
});
|
||||
|
||||
async function _readNfc() {
|
||||
onMessage(`NFC scanning ${kind}`);
|
||||
|
||||
const tagResponse = await scan(
|
||||
{
|
||||
type: kind,
|
||||
uri: {
|
||||
scheme: scheme || null,
|
||||
host: host || null,
|
||||
pathPrefix: pathPrefix || null,
|
||||
},
|
||||
mimeType: mimeType || null,
|
||||
},
|
||||
{
|
||||
keepSessionAlive: writeToNfc,
|
||||
message: "Hold your iPhone near an NFC tag",
|
||||
successMessage: "Tag successfully read",
|
||||
}
|
||||
);
|
||||
|
||||
onMessage({
|
||||
id: decoder.decode(new Uint8Array(tagResponse.id)),
|
||||
kind: tagResponse.kind,
|
||||
records: tagResponse.records.map((record) => ({
|
||||
id: decoder.decode(new Uint8Array(record.id)),
|
||||
kind: decoder.decode(new Uint8Array(record.kind)),
|
||||
payload: decoder.decode(new Uint8Array(record.payload)),
|
||||
tnf: record.tnf,
|
||||
})),
|
||||
});
|
||||
|
||||
if (writeToNfc) {
|
||||
const records = [];
|
||||
if (text) {
|
||||
records.push(textRecord(text, "tauriTextId"));
|
||||
}
|
||||
if (uri) {
|
||||
records.push(uriRecord(uri, "tauriUriId"));
|
||||
}
|
||||
await write(records, {
|
||||
successMessage: "Data written to tag",
|
||||
});
|
||||
onMessage("Wrote to tag");
|
||||
}
|
||||
}
|
||||
|
||||
function readNfc() {
|
||||
_readNfc().catch(onMessage);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<div class="flex gap-2 children:grow items-center">
|
||||
<div>
|
||||
<input type="checkbox" id="nfc-write" bind:checked={writeToNfc} />
|
||||
<label for="nfc-write">Write data</label>
|
||||
</div>
|
||||
|
||||
<select class="input" id="request-method" bind:value={kind}>
|
||||
<option value="tag">TAG</option>
|
||||
<option value="ndef">NDEF</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{#if isAndroid}
|
||||
<div class="flex flex-col gap-2 children:grow">
|
||||
<p>Filters</p>
|
||||
<div class="flex gap-2">
|
||||
<input
|
||||
class="input"
|
||||
placeholder="Scheme"
|
||||
style="width: 33%"
|
||||
bind:value={scheme}
|
||||
/>
|
||||
<input
|
||||
class="input"
|
||||
placeholder="Host"
|
||||
style="width: 33%"
|
||||
bind:value={host}
|
||||
/>
|
||||
<input
|
||||
class="input"
|
||||
placeholder="Path prefix"
|
||||
style="width: 33%"
|
||||
bind:value={pathPrefix}
|
||||
/>
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<input class="input" placeholder="Mime type" bind:value={mimeType} />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="flex flex-col gap-2 children:grow">
|
||||
<p>Write Records</p>
|
||||
<div class="flex">
|
||||
<input class="input" placeholder="Text record" bind:value={text} />
|
||||
<input class="input" placeholder="URI record" bind:value={uri} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn" on:click={readNfc}>Scan</button>
|
||||
</div>
|
||||
@@ -29,6 +29,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<button class="btn" id="notification" on:click={_sendNotification}>
|
||||
<button class="btn" id="notification" on:click={sendNotification}>
|
||||
Send test notification
|
||||
</button>
|
||||
|
||||
@@ -11,8 +11,8 @@ import process from "process";
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(async () => {
|
||||
const host =
|
||||
process.env.TAURI_PLATFORM === "android" ||
|
||||
process.env.TAURI_PLATFORM === "ios"
|
||||
process.env.TAURI_ENV_PLATFORM === "android" ||
|
||||
process.env.TAURI_ENV_PLATFORM === "ios"
|
||||
? await internalIpV4()
|
||||
: "localhost";
|
||||
return {
|
||||
|
||||
+19
-12
@@ -12,20 +12,20 @@
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-node-resolve": "15.2.3",
|
||||
"@rollup/plugin-terser": "0.4.4",
|
||||
"@rollup/plugin-typescript": "11.1.5",
|
||||
"@typescript-eslint/eslint-plugin": "6.8.0",
|
||||
"@typescript-eslint/parser": "6.8.0",
|
||||
"@rollup/plugin-typescript": "11.1.6",
|
||||
"@typescript-eslint/eslint-plugin": "6.20.0",
|
||||
"@typescript-eslint/parser": "6.20.0",
|
||||
"covector": "^0.10.2",
|
||||
"eslint": "8.51.0",
|
||||
"eslint-config-prettier": "9.0.0",
|
||||
"eslint-config-standard-with-typescript": "39.1.1",
|
||||
"eslint-plugin-import": "2.28.1",
|
||||
"eslint-plugin-n": "16.2.0",
|
||||
"eslint": "8.56.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"eslint-config-standard-with-typescript": "43.0.1",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-n": "16.6.2",
|
||||
"eslint-plugin-promise": "6.1.1",
|
||||
"eslint-plugin-security": "1.7.1",
|
||||
"prettier": "3.0.3",
|
||||
"rollup": "4.1.4",
|
||||
"typescript": "5.2.2"
|
||||
"eslint-plugin-security": "2.1.0",
|
||||
"prettier": "3.2.2",
|
||||
"rollup": "4.9.6",
|
||||
"typescript": "5.3.3"
|
||||
},
|
||||
"resolutions": {
|
||||
"semver": ">=7.5.2",
|
||||
@@ -33,5 +33,12 @@
|
||||
},
|
||||
"engines": {
|
||||
"pnpm": ">=7.33.1"
|
||||
},
|
||||
"pnpm": {
|
||||
"auditConfig": {
|
||||
"ignoreCves": [
|
||||
"CVE-2023-46115"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,28 @@
|
||||
# Changelog
|
||||
|
||||
## \[2.0.0-beta.1]
|
||||
|
||||
- [`569defb`](https://github.com/tauri-apps/plugins-workspace/commit/569defbe9492e38938554bb7bdc1be9151456d21) Update to tauri beta.4.
|
||||
|
||||
## \[2.0.0-beta.0]
|
||||
|
||||
- [`d198c01`](https://github.com/tauri-apps/plugins-workspace/commit/d198c014863ee260cb0de88a14b7fc4356ef7474)([#862](https://github.com/tauri-apps/plugins-workspace/pull/862)) Update to tauri beta.
|
||||
|
||||
## \[2.0.0-alpha.5]
|
||||
|
||||
- [`387c2f9`](https://github.com/tauri-apps/plugins-workspace/commit/387c2f9e0ce4c75c07ffa3fd76391a25b58f5daf)([#802](https://github.com/tauri-apps/plugins-workspace/pull/802)) Update to @tauri-apps/api v2.0.0-alpha.13.
|
||||
|
||||
## \[2.0.0-alpha.4]
|
||||
|
||||
- [`387c2f9`](https://github.com/tauri-apps/plugins-workspace/commit/387c2f9e0ce4c75c07ffa3fd76391a25b58f5daf)([#802](https://github.com/tauri-apps/plugins-workspace/pull/802)) Update to @tauri-apps/api v2.0.0-alpha.12.
|
||||
|
||||
## \[2.0.0-alpha.3]
|
||||
|
||||
- [`e438e0a`](https://github.com/tauri-apps/plugins-workspace/commit/e438e0a62d4b430a5159f05f13ecd397dd891a0d)([#676](https://github.com/tauri-apps/plugins-workspace/pull/676)) Update to @tauri-apps/api v2.0.0-alpha.11.
|
||||
|
||||
## \[2.0.0-alpha.2]
|
||||
|
||||
- [`5c13736`](https://github.com/tauri-apps/plugins-workspace/commit/5c137365c60790e8d4037d449e8237aa3fffdab0)([#673](https://github.com/tauri-apps/plugins-workspace/pull/673)) Update to @tauri-apps/api v2.0.0-alpha.16.
|
||||
- [`5c13736`](https://github.com/tauri-apps/plugins-workspace/commit/5c137365c60790e8d4037d449e8237aa3fffdab0)([#673](https://github.com/tauri-apps/plugins-workspace/pull/673)) Update to @tauri-apps/api v2.0.0-alpha.9.
|
||||
|
||||
## \[2.0.0-alpha.2]
|
||||
|
||||
@@ -20,3 +40,5 @@
|
||||
## \[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!
|
||||
ae67\`]\(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!
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
[package]
|
||||
name = "tauri-plugin-authenticator"
|
||||
version = "2.0.0-alpha.3"
|
||||
version = "2.0.0-beta.1"
|
||||
description = "Use hardware security-keys in your Tauri App."
|
||||
authors = { workspace = true }
|
||||
license = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
rust-version = { workspace = true }
|
||||
links = "tauri-plugin-authenticator"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = [ "tauri/dox" ]
|
||||
rustc-args = [ "--cfg", "docsrs" ]
|
||||
rustdoc-args = [ "--cfg", "docsrs" ]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-plugin = { workspace = true, features = [ "build" ] }
|
||||
|
||||
[dependencies]
|
||||
serde = { workspace = true }
|
||||
@@ -22,8 +27,10 @@ authenticator = "0.3.1"
|
||||
once_cell = "1"
|
||||
sha2 = "0.10"
|
||||
base64 = "0.21"
|
||||
u2f = "0.2"
|
||||
chrono = ">= 0.4.0, <0.4.30"
|
||||
chrono = "0.4"
|
||||
bytes = "1"
|
||||
byteorder = "1"
|
||||
openssl = "0.10"
|
||||
|
||||
[dev-dependencies]
|
||||
rand = "0.8"
|
||||
|
||||
@@ -6,22 +6,22 @@ Use hardware security-keys in your Tauri App.
|
||||
|
||||
## Install
|
||||
|
||||
_This plugin requires a Rust version of at least **1.70**_
|
||||
_This plugin requires a Rust version of at least **1.75**_
|
||||
|
||||
There are three general methods of installation that we can recommend.
|
||||
|
||||
1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
|
||||
1. Use crates.io and npm (easiest and requires you to trust that our publishing pipeline worked)
|
||||
2. Pull sources directly from Github using git tags / revision hashes (most secure)
|
||||
3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use)
|
||||
3. Git submodule install this repo in your tauri project and then use the file protocol to ingest the source (most secure, but inconvenient to use)
|
||||
|
||||
Install the Core plugin by adding the following to your `Cargo.toml` file:
|
||||
Install the authenticator plugin by adding the following lines to your `Cargo.toml` file:
|
||||
|
||||
`src-tauri/Cargo.toml`
|
||||
|
||||
```toml
|
||||
# you can add the dependencies on the `[dependencies]` section if you do not target mobile
|
||||
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
|
||||
tauri-plugin-authenticator = "2.0.0-alpha"
|
||||
tauri-plugin-authenticator = "2.0.0-beta"
|
||||
# alternatively with Git:
|
||||
tauri-plugin-authenticator = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
```
|
||||
@@ -50,7 +50,7 @@ yarn add https://github.com/tauri-apps/tauri-plugin-authenticator#v2
|
||||
|
||||
## Usage
|
||||
|
||||
First you need to register the core plugin with Tauri:
|
||||
First, you need to register the authenticator plugin with Tauri:
|
||||
|
||||
`src-tauri/src/main.rs`
|
||||
|
||||
@@ -67,7 +67,7 @@ fn main() {
|
||||
}
|
||||
```
|
||||
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
Afterwards, all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import { Authenticator } from "@tauri-apps/plugin-authenticator";
|
||||
@@ -88,7 +88,7 @@ const domain = "https://tauri.app";
|
||||
const json = await auth.register(challenge, domain);
|
||||
const registerResult = JSON.parse(json);
|
||||
|
||||
// verify te registration was successfull
|
||||
// verify the registration was successful
|
||||
const r2 = await auth.verifyRegistration(
|
||||
challenge,
|
||||
app,
|
||||
@@ -120,6 +120,22 @@ if (counter && counter > 0) {
|
||||
|
||||
PRs accepted. Please make sure to read the Contributing Guide before making a pull request.
|
||||
|
||||
## Partners
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" valign="middle">
|
||||
<a href="https://crabnebula.dev" target="_blank">
|
||||
<img src="https://github.com/tauri-apps/plugins-workspace/raw/v2/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).
|
||||
|
||||
## License
|
||||
|
||||
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
const COMMANDS: &[&str] = &[
|
||||
"init_auth",
|
||||
"register",
|
||||
"verify_registration",
|
||||
"sign",
|
||||
"verify_signature",
|
||||
];
|
||||
|
||||
fn main() {
|
||||
tauri_plugin::Builder::new(COMMANDS).build();
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import { invoke } from "@tauri-apps/api/primitives";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
|
||||
export class Authenticator {
|
||||
async init(): Promise<void> {
|
||||
|
||||
@@ -1,33 +1,29 @@
|
||||
{
|
||||
"name": "@tauri-apps/plugin-authenticator",
|
||||
"version": "2.0.0-alpha.2",
|
||||
"version": "2.0.0-beta.1",
|
||||
"description": "Use hardware security-keys in your Tauri App.",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
"Tauri Programme within The Commons Conservancy"
|
||||
],
|
||||
"type": "module",
|
||||
"browser": "dist-js/index.min.js",
|
||||
"module": "dist-js/index.mjs",
|
||||
"types": "dist-js/index.d.ts",
|
||||
"types": "./dist-js/index.d.ts",
|
||||
"main": "./dist-js/index.cjs",
|
||||
"module": "./dist-js/index.js",
|
||||
"exports": {
|
||||
"import": "./dist-js/index.mjs",
|
||||
"types": "./dist-js/index.d.ts",
|
||||
"browser": "./dist-js/index.min.js"
|
||||
"import": "./dist-js/index.js",
|
||||
"require": "./dist-js/index.cjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c"
|
||||
},
|
||||
"files": [
|
||||
"dist-js",
|
||||
"!dist-js/**/*.map",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"devDependencies": {
|
||||
"tslib": "2.6.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.0-alpha.9"
|
||||
"@tauri-apps/api": "2.0.0-beta.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-init-auth"
|
||||
description = "Enables the init_auth command without any pre-configured scope."
|
||||
commands.allow = ["init_auth"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-init-auth"
|
||||
description = "Denies the init_auth command without any pre-configured scope."
|
||||
commands.deny = ["init_auth"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-register"
|
||||
description = "Enables the register command without any pre-configured scope."
|
||||
commands.allow = ["register"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-register"
|
||||
description = "Denies the register command without any pre-configured scope."
|
||||
commands.deny = ["register"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-sign"
|
||||
description = "Enables the sign command without any pre-configured scope."
|
||||
commands.allow = ["sign"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-sign"
|
||||
description = "Denies the sign command without any pre-configured scope."
|
||||
commands.deny = ["sign"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-verify-registration"
|
||||
description = "Enables the verify_registration command without any pre-configured scope."
|
||||
commands.allow = ["verify_registration"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-verify-registration"
|
||||
description = "Denies the verify_registration command without any pre-configured scope."
|
||||
commands.deny = ["verify_registration"]
|
||||
@@ -0,0 +1,13 @@
|
||||
# Automatically generated - DO NOT EDIT!
|
||||
|
||||
"$schema" = "../../schemas/schema.json"
|
||||
|
||||
[[permission]]
|
||||
identifier = "allow-verify-signature"
|
||||
description = "Enables the verify_signature command without any pre-configured scope."
|
||||
commands.allow = ["verify_signature"]
|
||||
|
||||
[[permission]]
|
||||
identifier = "deny-verify-signature"
|
||||
description = "Denies the verify_signature command without any pre-configured scope."
|
||||
commands.deny = ["verify_signature"]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user