also looking at this
feat: call custom window on tray icon event
#13
43 files
+5245
-1
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -15,12 +15,53 @@ | ||
| 15 | 15 | "typescript": "^5.8.3", |
| 16 | 16 | }, |
| 17 | 17 | }, |
| 18 | "examples/tray-with-custom-tray-menu-window": { | |
| 19 | "name": "custom-tray-windows-project", | |
| 20 | "version": "0.0.0", | |
| 21 | "dependencies": { | |
| 22 | "@tauri-apps/plugin-positioner": "^2.2.0", | |
| 23 | "vue": "^3.5.13", | |
| 24 | }, | |
| 25 | "devDependencies": { | |
| 26 | "@stacksjs/vite-plugin-tauri": "workspace:*", | |
| 27 | "@vitejs/plugin-vue": "^5.2.3", | |
| 28 | "typescript": "^5.8.3", | |
| 29 | "vite": "^6.2.6", | |
| 30 | }, | |
| 31 | }, | |
| 32 | "examples/tray-with-simple-menu": { | |
| 33 | "name": "vite-project", | |
| 34 | "version": "0.0.0", | |
| 35 | "dependencies": { | |
| 36 | "vue": "^3.5.13", | |
| 37 | }, | |
| 38 | "devDependencies": { | |
| 39 | "@stacksjs/vite-plugin-tauri": "workspace:*", | |
| 40 | "@vitejs/plugin-vue": "^5.2.3", | |
| 41 | "typescript": "^5.8.3", | |
| 42 | "vite": "^6.2.6", | |
| 43 | }, | |
| 44 | }, | |
| 45 | "examples/tray-with-submenus": { | |
| 46 | "name": "submenu-tray", | |
| 47 | "version": "0.0.0", | |
| 48 | "dependencies": { | |
| 49 | "vue": "^3.5.13", | |
| 50 | }, | |
| 51 | "devDependencies": { | |
| 52 | "@stacksjs/vite-plugin-tauri": "workspace:*", | |
| 53 | "@vitejs/plugin-vue": "^5.2.3", | |
| 54 | "typescript": "^5.8.3", | |
| 55 | "vite": "^6.2.6", | |
| 56 | }, | |
| 57 | }, | |
| 18 | 58 | "packages/vite-plugin-tauri": { |
| 19 | 59 | "name": "@stacksjs/vite-plugin-tauri", |
| 20 | "version": "0.1.0", | |
| 60 | "version": "0.2.2", | |
| 21 | 61 | "dependencies": { |
| 22 | 62 | "@tauri-apps/api": "^2.4.1", |
| 23 | 63 | "@tauri-apps/cli": "^2.4.1", |
| 64 | "@tauri-apps/plugin-positioner": "^2.2.0", | |
| 24 | 65 | "bunfig": "^0.8.2", |
| 25 | 66 | }, |
| 26 | 67 | "devDependencies": { |
| @@ -539,6 +580,8 @@ | ||
| 539 | 580 | |
| 540 | 581 | "@tauri-apps/cli-win32-x64-msvc": ["@tauri-apps/cli-win32-x64-msvc@2.4.1", "", { "os": "win32", "cpu": "x64" }, "sha512-60a4Ov7Jrwqz2hzDltlS7301dhSAmM9dxo+IRBD3xz7yobKrgaHXYpWvnRomYItHcDd51VaKc9292H8/eE/gsw=="], |
| 541 | 582 | |
| 583 | "@tauri-apps/plugin-positioner": ["@tauri-apps/plugin-positioner@2.2.0", "", { "dependencies": { "@tauri-apps/api": "^2.0.0" } }, "sha512-3JIWqV4U1US4nmM4PGmAHODq0ltkJ91MyANR033elKSSpX3AqKnVQnLz76xThBFHjChJrZwsXASpc2Inpu+cTg=="], | |
| 584 | ||
| 542 | 585 | "@tybys/wasm-util": ["@tybys/wasm-util@0.9.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw=="], |
| 543 | 586 | |
| 544 | 587 | "@types/bun": ["@types/bun@1.2.9", "", { "dependencies": { "bun-types": "1.2.9" } }, "sha512-epShhLGQYc4Bv/aceHbmBhOz1XgUnuTZgcxjxk+WXwNyDXavv5QHD1QEFV0FwbTSQtNq6g4ZcV6y0vZakTjswg=="], |
| @@ -875,6 +918,8 @@ | ||
| 875 | 918 | |
| 876 | 919 | "csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], |
| 877 | 920 | |
| 921 | "custom-tray-windows-project": ["custom-tray-windows-project@workspace:examples/tray-with-custom-tray-menu-window"], | |
| 922 | ||
| 878 | 923 | "data-view-buffer": ["data-view-buffer@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ=="], |
| 879 | 924 | |
| 880 | 925 | "data-view-byte-length": ["data-view-byte-length@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ=="], |
| @@ -1683,6 +1728,8 @@ | ||
| 1683 | 1728 | |
| 1684 | 1729 | "strip-json-comments": ["strip-json-comments@3.1.1", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="], |
| 1685 | 1730 | |
| 1731 | "submenu-tray": ["submenu-tray@workspace:examples/tray-with-submenus"], | |
| 1732 | ||
| 1686 | 1733 | "superjson": ["superjson@2.2.2", "", { "dependencies": { "copy-anything": "^3.0.2" } }, "sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q=="], |
| 1687 | 1734 | |
| 1688 | 1735 | "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], |
| @@ -1803,6 +1850,8 @@ | ||
| 1803 | 1850 | |
| 1804 | 1851 | "vite-plugin-pwa": ["vite-plugin-pwa@1.0.0", "", { "dependencies": { "debug": "^4.3.6", "pretty-bytes": "^6.1.1", "tinyglobby": "^0.2.10", "workbox-build": "^7.3.0", "workbox-window": "^7.3.0" }, "peerDependencies": { "@vite-pwa/assets-generator": "^1.0.0", "vite": "^3.1.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "optionalPeers": ["@vite-pwa/assets-generator"] }, "sha512-X77jo0AOd5OcxmWj3WnVti8n7Kw2tBgV1c8MCXFclrSlDV23ePzv2eTDIALXI2Qo6nJ5pZJeZAuX0AawvRfoeA=="], |
| 1805 | 1852 | |
| 1853 | "vite-project": ["vite-project@workspace:examples/tray-with-simple-menu"], | |
| 1854 | ||
| 1806 | 1855 | "vitepress": ["vitepress@1.6.3", "", { "dependencies": { "@docsearch/css": "3.8.2", "@docsearch/js": "3.8.2", "@iconify-json/simple-icons": "^1.2.21", "@shikijs/core": "^2.1.0", "@shikijs/transformers": "^2.1.0", "@shikijs/types": "^2.1.0", "@types/markdown-it": "^14.1.2", "@vitejs/plugin-vue": "^5.2.1", "@vue/devtools-api": "^7.7.0", "@vue/shared": "^3.5.13", "@vueuse/core": "^12.4.0", "@vueuse/integrations": "^12.4.0", "focus-trap": "^7.6.4", "mark.js": "8.11.1", "minisearch": "^7.1.1", "shiki": "^2.1.0", "vite": "^5.4.14", "vue": "^3.5.13" }, "peerDependencies": { "markdown-it-mathjax3": "^4", "postcss": "^8" }, "optionalPeers": ["markdown-it-mathjax3", "postcss"], "bin": { "vitepress": "bin/vitepress.js" } }, "sha512-fCkfdOk8yRZT8GD9BFqusW3+GggWYZ/rYncOfmgcDtP3ualNHCAg+Robxp2/6xfH1WwPHtGpPwv7mbA3qomtBw=="], |
| 1807 | 1856 | |
| 1808 | 1857 | "vue": ["vue@3.5.13", "", { "dependencies": { "@vue/compiler-dom": "3.5.13", "@vue/compiler-sfc": "3.5.13", "@vue/runtime-dom": "3.5.13", "@vue/server-renderer": "3.5.13", "@vue/shared": "3.5.13" }, "peerDependencies": { "typescript": "*" }, "optionalPeers": ["typescript"] }, "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ=="], |
| @@ -185,6 +185,9 @@ export function tauri(config?: TauriConfig): PluginOption { | ||
| 185 | 185 | 'core:webview:allow-create-webview-window', |
| 186 | 186 | 'core:window:allow-hide', |
| 187 | 187 | 'core:window:allow-create', |
| 188 | 'positioner:default', | |
| 189 | 'core:window:allow-show', | |
| 190 | 'core:webview:allow-webview-show', | |
| 188 | 191 | ], |
| 189 | 192 | }, |
| 190 | 193 | ], |
| @@ -270,6 +273,9 @@ export function tauri(config?: TauriConfig): PluginOption { | ||
| 270 | 273 | 'core:webview:allow-create-webview-window', |
| 271 | 274 | 'core:window:allow-hide', |
| 272 | 275 | 'core:window:allow-create', |
| 276 | 'positioner:default', | |
| 277 | 'core:window:allow-show', | |
| 278 | 'core:webview:allow-webview-show', | |
| 273 | 279 | ], |
| 274 | 280 | }, |
| 275 | 281 | ], |