├── .gitignore ├── README.md ├── index.html ├── package.json ├── pnpm-lock.yaml ├── src-tauri ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── build.rs ├── capabilities │ └── main.json ├── gen │ └── schemas │ │ ├── acl-manifests.json │ │ ├── capabilities.json │ │ ├── desktop-schema.json │ │ └── macOS-schema.json ├── icons │ ├── 128x128.png │ ├── 128x128@2x.png │ ├── 32x32.png │ ├── Square107x107Logo.png │ ├── Square142x142Logo.png │ ├── Square150x150Logo.png │ ├── Square284x284Logo.png │ ├── Square30x30Logo.png │ ├── Square310x310Logo.png │ ├── Square44x44Logo.png │ ├── Square71x71Logo.png │ ├── Square89x89Logo.png │ ├── StoreLogo.png │ ├── icon.icns │ ├── icon.ico │ └── icon.png ├── src │ ├── main.rs │ ├── shader.wgsl │ ├── utils.rs │ └── webgpu.rs └── tauri.conf.json ├── src ├── assets │ ├── tauri.svg │ ├── typescript.svg │ └── vite.svg ├── main.ts └── styles.css ├── tsconfig.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tauri (v2) + wgpu + nokhwa demo 2 | 3 | I needed an alternate way to efficiently render image buffers to my UI for [Helmer](https://www.helmer.app). Since Tauri's IPC and Websockets would be too slow, I decided to try something else. 4 | 5 | One approach is to create WebGPU textures from the buffers and draw them directly to a native window. Luckily Tauri exposes that to us! This repo is a quick attempt to try it out, using the webcam as a source for the image buffers. It works quite well on Windows and Mac. 6 | 7 | Interestingly, Tauri can also do multiple "surfaces" in the same window (as of v2). These could be Webviews or just regular things you'd chuck into a native window, allowing us a lot of room to play. Here's a Webview UI being rendered over a WebGPU texture in the same window. 8 | 9 | Screenshot 2024-07-13 at 10 01 57 AM 10 | 11 | And Tauri can comfortably orchestrate interop between the two via events — nice! 12 | 13 | ## Development Guide 14 | 15 | 1. [Tauri prerequisites](https://beta.tauri.app/start/prerequisites/) 16 | 2. Run `pnpm install` to get deps 17 | 3. Run `pnpm run tauri dev` to build in dev mode 18 | 19 | ## Notes 20 | 21 | 1. On macOS, the formats reported by nokhwa (camera crate) don't match what's reported 22 | 2. Decoding of frames is done on cpu and is quite slow. 23 | 3. Demo app can be architected a lot better. 24 | 25 | All easy fixes, but out of scope for my purposes. Feel free to PR them and I'll be happy to merge + credit you. 26 | 27 | ## References 28 | 29 | 1. [Introduction to WebGPU](https://www.youtube.com/watch?v=oIur9NATg-I) 30 | 2. [wgpu: Rust library for WebGPU](https://wgpu.rs) 31 | 3. [Learn wgpu](https://sotrh.github.io/learn-wgpu/) 32 | 4. [Learn wgpu: video playlist by chris biscardi](https://www.youtube.com/playlist?list=PLWtPciJ1UMuBs_3G-jFrMJnM5ZMKgl37H) 33 | 5. [Tauri and wgpu demo by FabianLars](https://github.com/FabianLars/tauri-v2-wgpu) 34 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Tauri App 8 | 9 | 18 | 19 | 20 | 21 |
25 |
26 |

Welcome to Tauri!

27 | 28 |
29 | 30 | 35 | 36 | 37 | 42 | 43 | 44 | 49 | 50 |
51 | 52 |

Click on the Tauri logo to learn more about the framework

53 | 54 |
55 | 56 | 57 |
58 | 59 |

60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "beta-desktop", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "tsc && vite build", 9 | "preview": "vite preview", 10 | "tauri": "tauri" 11 | }, 12 | "devDependencies": { 13 | "@tauri-apps/cli": "2.0.0-rc.16", 14 | "typescript": "^5.3.3", 15 | "vite": "^4.5.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- 1 | lockfileVersion: '9.0' 2 | 3 | settings: 4 | autoInstallPeers: true 5 | excludeLinksFromLockfile: false 6 | 7 | importers: 8 | 9 | .: 10 | devDependencies: 11 | '@tauri-apps/cli': 12 | specifier: 2.0.0-rc.16 13 | version: 2.0.0-rc.16 14 | typescript: 15 | specifier: ^5.3.3 16 | version: 5.3.3 17 | vite: 18 | specifier: ^4.5.1 19 | version: 4.5.1 20 | 21 | packages: 22 | 23 | '@esbuild/android-arm64@0.18.20': 24 | resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} 25 | engines: {node: '>=12'} 26 | cpu: [arm64] 27 | os: [android] 28 | 29 | '@esbuild/android-arm@0.18.20': 30 | resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} 31 | engines: {node: '>=12'} 32 | cpu: [arm] 33 | os: [android] 34 | 35 | '@esbuild/android-x64@0.18.20': 36 | resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} 37 | engines: {node: '>=12'} 38 | cpu: [x64] 39 | os: [android] 40 | 41 | '@esbuild/darwin-arm64@0.18.20': 42 | resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} 43 | engines: {node: '>=12'} 44 | cpu: [arm64] 45 | os: [darwin] 46 | 47 | '@esbuild/darwin-x64@0.18.20': 48 | resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} 49 | engines: {node: '>=12'} 50 | cpu: [x64] 51 | os: [darwin] 52 | 53 | '@esbuild/freebsd-arm64@0.18.20': 54 | resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} 55 | engines: {node: '>=12'} 56 | cpu: [arm64] 57 | os: [freebsd] 58 | 59 | '@esbuild/freebsd-x64@0.18.20': 60 | resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} 61 | engines: {node: '>=12'} 62 | cpu: [x64] 63 | os: [freebsd] 64 | 65 | '@esbuild/linux-arm64@0.18.20': 66 | resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} 67 | engines: {node: '>=12'} 68 | cpu: [arm64] 69 | os: [linux] 70 | 71 | '@esbuild/linux-arm@0.18.20': 72 | resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} 73 | engines: {node: '>=12'} 74 | cpu: [arm] 75 | os: [linux] 76 | 77 | '@esbuild/linux-ia32@0.18.20': 78 | resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} 79 | engines: {node: '>=12'} 80 | cpu: [ia32] 81 | os: [linux] 82 | 83 | '@esbuild/linux-loong64@0.18.20': 84 | resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} 85 | engines: {node: '>=12'} 86 | cpu: [loong64] 87 | os: [linux] 88 | 89 | '@esbuild/linux-mips64el@0.18.20': 90 | resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} 91 | engines: {node: '>=12'} 92 | cpu: [mips64el] 93 | os: [linux] 94 | 95 | '@esbuild/linux-ppc64@0.18.20': 96 | resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} 97 | engines: {node: '>=12'} 98 | cpu: [ppc64] 99 | os: [linux] 100 | 101 | '@esbuild/linux-riscv64@0.18.20': 102 | resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} 103 | engines: {node: '>=12'} 104 | cpu: [riscv64] 105 | os: [linux] 106 | 107 | '@esbuild/linux-s390x@0.18.20': 108 | resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} 109 | engines: {node: '>=12'} 110 | cpu: [s390x] 111 | os: [linux] 112 | 113 | '@esbuild/linux-x64@0.18.20': 114 | resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} 115 | engines: {node: '>=12'} 116 | cpu: [x64] 117 | os: [linux] 118 | 119 | '@esbuild/netbsd-x64@0.18.20': 120 | resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} 121 | engines: {node: '>=12'} 122 | cpu: [x64] 123 | os: [netbsd] 124 | 125 | '@esbuild/openbsd-x64@0.18.20': 126 | resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} 127 | engines: {node: '>=12'} 128 | cpu: [x64] 129 | os: [openbsd] 130 | 131 | '@esbuild/sunos-x64@0.18.20': 132 | resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} 133 | engines: {node: '>=12'} 134 | cpu: [x64] 135 | os: [sunos] 136 | 137 | '@esbuild/win32-arm64@0.18.20': 138 | resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} 139 | engines: {node: '>=12'} 140 | cpu: [arm64] 141 | os: [win32] 142 | 143 | '@esbuild/win32-ia32@0.18.20': 144 | resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} 145 | engines: {node: '>=12'} 146 | cpu: [ia32] 147 | os: [win32] 148 | 149 | '@esbuild/win32-x64@0.18.20': 150 | resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} 151 | engines: {node: '>=12'} 152 | cpu: [x64] 153 | os: [win32] 154 | 155 | '@tauri-apps/cli-darwin-arm64@2.0.0-rc.16': 156 | resolution: {integrity: sha512-lISZU4gG0c9PbY7h/j/gW7nJLxZEygNBrYEET6zN8R99Znf5rSO+CfjenaMcJUUj6yTAd8gzdakRpLqNSAWegA==} 157 | engines: {node: '>= 10'} 158 | cpu: [arm64] 159 | os: [darwin] 160 | 161 | '@tauri-apps/cli-darwin-x64@2.0.0-rc.16': 162 | resolution: {integrity: sha512-D9uxPCxpyYcTSQulJGFX3POAKPOJd8WcWHFH8x6YVM1cIx6EWRXIE1sZnPUOjFr7qCg+bSdYdr8/BFHcZGcApQ==} 163 | engines: {node: '>= 10'} 164 | cpu: [x64] 165 | os: [darwin] 166 | 167 | '@tauri-apps/cli-linux-arm-gnueabihf@2.0.0-rc.16': 168 | resolution: {integrity: sha512-WsVdKm4D1I1XV8I9yRnmOINZRwwWfh6xcLV3m19+B9g6TohK8RkRxWfxvs3TLQlWOLQ6lo8BzS9rzXB+KtjDpg==} 169 | engines: {node: '>= 10'} 170 | cpu: [arm] 171 | os: [linux] 172 | 173 | '@tauri-apps/cli-linux-arm64-gnu@2.0.0-rc.16': 174 | resolution: {integrity: sha512-2jpZDagNs6rrqposHJihHBayttgOl5aB2+bYiVEC6ye+haiFtmYmpdaPOaVIw+YVQs6lepf5PVrisCoU9DmYsg==} 175 | engines: {node: '>= 10'} 176 | cpu: [arm64] 177 | os: [linux] 178 | 179 | '@tauri-apps/cli-linux-arm64-musl@2.0.0-rc.16': 180 | resolution: {integrity: sha512-SNEDcB+sWOls/B0a+UpUHVa/oegvlXXKYWsTxuXtgWIr5VbWG7rXLZ3fZpLLP3SpRVGTGTnABcyqshFbWSqqKQ==} 181 | engines: {node: '>= 10'} 182 | cpu: [arm64] 183 | os: [linux] 184 | 185 | '@tauri-apps/cli-linux-x64-gnu@2.0.0-rc.16': 186 | resolution: {integrity: sha512-Zsq29MM1ooeH1+chQBa7ffDFnzAZebBBFdsvs4e05tS1H8gn4oKE+PSMn9p/okzVXykEk9ri2/n7BG1XFeifMA==} 187 | engines: {node: '>= 10'} 188 | cpu: [x64] 189 | os: [linux] 190 | 191 | '@tauri-apps/cli-linux-x64-musl@2.0.0-rc.16': 192 | resolution: {integrity: sha512-g+pwSuis2YMxhJJ/pJYwp/Nps5CWvlv/5MV5UfDvClkCkeAyzIqVX+HbBLPcs5S0CePUQNeP0j4d4jBWUqZZQg==} 193 | engines: {node: '>= 10'} 194 | cpu: [x64] 195 | os: [linux] 196 | 197 | '@tauri-apps/cli-win32-arm64-msvc@2.0.0-rc.16': 198 | resolution: {integrity: sha512-PpPqdMTwJSDAK4KnNjvh77ShSkY+7pih1f6e50EtXar8bjC17e3XcEqFhDNne5mxEVTLYhibs6p1JLPad0ZjRA==} 199 | engines: {node: '>= 10'} 200 | cpu: [arm64] 201 | os: [win32] 202 | 203 | '@tauri-apps/cli-win32-ia32-msvc@2.0.0-rc.16': 204 | resolution: {integrity: sha512-io2yIcEcG7YLP+9n13NbilB93SjcB7jIl8GbURC4XZT4/4t9D1PWHpJr5hySVsGRLCz5e8NzwC5RlnenNzmpPQ==} 205 | engines: {node: '>= 10'} 206 | cpu: [ia32] 207 | os: [win32] 208 | 209 | '@tauri-apps/cli-win32-x64-msvc@2.0.0-rc.16': 210 | resolution: {integrity: sha512-Rfkmxe3k+cBVA/kVYt8O25QrQqWKJlH9AiH7Q3C6xBzzG9PCSRMBszCp+JhBF8jhVlwNmOBv6UG+lm85kspwGg==} 211 | engines: {node: '>= 10'} 212 | cpu: [x64] 213 | os: [win32] 214 | 215 | '@tauri-apps/cli@2.0.0-rc.16': 216 | resolution: {integrity: sha512-wdjZg/M3dcxiqgWG6VRnABpX0dYxRww93t0d1MYoZxFDrnyoUz5kYwFQ0v4J9u0qenEgskjoypvon7V/Nj9qrg==} 217 | engines: {node: '>= 10'} 218 | hasBin: true 219 | 220 | esbuild@0.18.20: 221 | resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} 222 | engines: {node: '>=12'} 223 | hasBin: true 224 | 225 | fsevents@2.3.3: 226 | resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} 227 | engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} 228 | os: [darwin] 229 | 230 | nanoid@3.3.7: 231 | resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} 232 | engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} 233 | hasBin: true 234 | 235 | picocolors@1.0.0: 236 | resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} 237 | 238 | postcss@8.4.32: 239 | resolution: {integrity: sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==} 240 | engines: {node: ^10 || ^12 || >=14} 241 | 242 | rollup@3.29.4: 243 | resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==} 244 | engines: {node: '>=14.18.0', npm: '>=8.0.0'} 245 | hasBin: true 246 | 247 | source-map-js@1.0.2: 248 | resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==} 249 | engines: {node: '>=0.10.0'} 250 | 251 | typescript@5.3.3: 252 | resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} 253 | engines: {node: '>=14.17'} 254 | hasBin: true 255 | 256 | vite@4.5.1: 257 | resolution: {integrity: sha512-AXXFaAJ8yebyqzoNB9fu2pHoo/nWX+xZlaRwoeYUxEqBO+Zj4msE5G+BhGBll9lYEKv9Hfks52PAF2X7qDYXQA==} 258 | engines: {node: ^14.18.0 || >=16.0.0} 259 | hasBin: true 260 | peerDependencies: 261 | '@types/node': '>= 14' 262 | less: '*' 263 | lightningcss: ^1.21.0 264 | sass: '*' 265 | stylus: '*' 266 | sugarss: '*' 267 | terser: ^5.4.0 268 | peerDependenciesMeta: 269 | '@types/node': 270 | optional: true 271 | less: 272 | optional: true 273 | lightningcss: 274 | optional: true 275 | sass: 276 | optional: true 277 | stylus: 278 | optional: true 279 | sugarss: 280 | optional: true 281 | terser: 282 | optional: true 283 | 284 | snapshots: 285 | 286 | '@esbuild/android-arm64@0.18.20': 287 | optional: true 288 | 289 | '@esbuild/android-arm@0.18.20': 290 | optional: true 291 | 292 | '@esbuild/android-x64@0.18.20': 293 | optional: true 294 | 295 | '@esbuild/darwin-arm64@0.18.20': 296 | optional: true 297 | 298 | '@esbuild/darwin-x64@0.18.20': 299 | optional: true 300 | 301 | '@esbuild/freebsd-arm64@0.18.20': 302 | optional: true 303 | 304 | '@esbuild/freebsd-x64@0.18.20': 305 | optional: true 306 | 307 | '@esbuild/linux-arm64@0.18.20': 308 | optional: true 309 | 310 | '@esbuild/linux-arm@0.18.20': 311 | optional: true 312 | 313 | '@esbuild/linux-ia32@0.18.20': 314 | optional: true 315 | 316 | '@esbuild/linux-loong64@0.18.20': 317 | optional: true 318 | 319 | '@esbuild/linux-mips64el@0.18.20': 320 | optional: true 321 | 322 | '@esbuild/linux-ppc64@0.18.20': 323 | optional: true 324 | 325 | '@esbuild/linux-riscv64@0.18.20': 326 | optional: true 327 | 328 | '@esbuild/linux-s390x@0.18.20': 329 | optional: true 330 | 331 | '@esbuild/linux-x64@0.18.20': 332 | optional: true 333 | 334 | '@esbuild/netbsd-x64@0.18.20': 335 | optional: true 336 | 337 | '@esbuild/openbsd-x64@0.18.20': 338 | optional: true 339 | 340 | '@esbuild/sunos-x64@0.18.20': 341 | optional: true 342 | 343 | '@esbuild/win32-arm64@0.18.20': 344 | optional: true 345 | 346 | '@esbuild/win32-ia32@0.18.20': 347 | optional: true 348 | 349 | '@esbuild/win32-x64@0.18.20': 350 | optional: true 351 | 352 | '@tauri-apps/cli-darwin-arm64@2.0.0-rc.16': 353 | optional: true 354 | 355 | '@tauri-apps/cli-darwin-x64@2.0.0-rc.16': 356 | optional: true 357 | 358 | '@tauri-apps/cli-linux-arm-gnueabihf@2.0.0-rc.16': 359 | optional: true 360 | 361 | '@tauri-apps/cli-linux-arm64-gnu@2.0.0-rc.16': 362 | optional: true 363 | 364 | '@tauri-apps/cli-linux-arm64-musl@2.0.0-rc.16': 365 | optional: true 366 | 367 | '@tauri-apps/cli-linux-x64-gnu@2.0.0-rc.16': 368 | optional: true 369 | 370 | '@tauri-apps/cli-linux-x64-musl@2.0.0-rc.16': 371 | optional: true 372 | 373 | '@tauri-apps/cli-win32-arm64-msvc@2.0.0-rc.16': 374 | optional: true 375 | 376 | '@tauri-apps/cli-win32-ia32-msvc@2.0.0-rc.16': 377 | optional: true 378 | 379 | '@tauri-apps/cli-win32-x64-msvc@2.0.0-rc.16': 380 | optional: true 381 | 382 | '@tauri-apps/cli@2.0.0-rc.16': 383 | optionalDependencies: 384 | '@tauri-apps/cli-darwin-arm64': 2.0.0-rc.16 385 | '@tauri-apps/cli-darwin-x64': 2.0.0-rc.16 386 | '@tauri-apps/cli-linux-arm-gnueabihf': 2.0.0-rc.16 387 | '@tauri-apps/cli-linux-arm64-gnu': 2.0.0-rc.16 388 | '@tauri-apps/cli-linux-arm64-musl': 2.0.0-rc.16 389 | '@tauri-apps/cli-linux-x64-gnu': 2.0.0-rc.16 390 | '@tauri-apps/cli-linux-x64-musl': 2.0.0-rc.16 391 | '@tauri-apps/cli-win32-arm64-msvc': 2.0.0-rc.16 392 | '@tauri-apps/cli-win32-ia32-msvc': 2.0.0-rc.16 393 | '@tauri-apps/cli-win32-x64-msvc': 2.0.0-rc.16 394 | 395 | esbuild@0.18.20: 396 | optionalDependencies: 397 | '@esbuild/android-arm': 0.18.20 398 | '@esbuild/android-arm64': 0.18.20 399 | '@esbuild/android-x64': 0.18.20 400 | '@esbuild/darwin-arm64': 0.18.20 401 | '@esbuild/darwin-x64': 0.18.20 402 | '@esbuild/freebsd-arm64': 0.18.20 403 | '@esbuild/freebsd-x64': 0.18.20 404 | '@esbuild/linux-arm': 0.18.20 405 | '@esbuild/linux-arm64': 0.18.20 406 | '@esbuild/linux-ia32': 0.18.20 407 | '@esbuild/linux-loong64': 0.18.20 408 | '@esbuild/linux-mips64el': 0.18.20 409 | '@esbuild/linux-ppc64': 0.18.20 410 | '@esbuild/linux-riscv64': 0.18.20 411 | '@esbuild/linux-s390x': 0.18.20 412 | '@esbuild/linux-x64': 0.18.20 413 | '@esbuild/netbsd-x64': 0.18.20 414 | '@esbuild/openbsd-x64': 0.18.20 415 | '@esbuild/sunos-x64': 0.18.20 416 | '@esbuild/win32-arm64': 0.18.20 417 | '@esbuild/win32-ia32': 0.18.20 418 | '@esbuild/win32-x64': 0.18.20 419 | 420 | fsevents@2.3.3: 421 | optional: true 422 | 423 | nanoid@3.3.7: {} 424 | 425 | picocolors@1.0.0: {} 426 | 427 | postcss@8.4.32: 428 | dependencies: 429 | nanoid: 3.3.7 430 | picocolors: 1.0.0 431 | source-map-js: 1.0.2 432 | 433 | rollup@3.29.4: 434 | optionalDependencies: 435 | fsevents: 2.3.3 436 | 437 | source-map-js@1.0.2: {} 438 | 439 | typescript@5.3.3: {} 440 | 441 | vite@4.5.1: 442 | dependencies: 443 | esbuild: 0.18.20 444 | postcss: 8.4.32 445 | rollup: 3.29.4 446 | optionalDependencies: 447 | fsevents: 2.3.3 448 | -------------------------------------------------------------------------------- /src-tauri/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by Cargo 2 | # will have compiled files and executables 3 | /target/ 4 | 5 | -------------------------------------------------------------------------------- /src-tauri/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "beta-desktop" 3 | version = "0.0.0" 4 | description = "A Tauri App" 5 | authors = ["you"] 6 | license = "" 7 | repository = "" 8 | edition = "2021" 9 | 10 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 11 | 12 | [build-dependencies] 13 | tauri-build = { version = "2.0.0-rc.13", features = [] } 14 | 15 | [dependencies] 16 | tauri = { version = "2.0.0-rc.16", features = ["macos-private-api"] } 17 | nokhwa = { git = "https://github.com/helmerapp/nokhwa", branch = "0.10", features = ["input-native"] } 18 | serde_json = "1.0" 19 | wgpu = "0.20" 20 | rayon = "1.10.0" 21 | 22 | [features] 23 | # this feature is used for production builds or when `devPath` points to the filesystem 24 | # DO NOT REMOVE!! 25 | custom-protocol = ["tauri/custom-protocol"] 26 | -------------------------------------------------------------------------------- /src-tauri/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | tauri_build::build() 3 | } 4 | -------------------------------------------------------------------------------- /src-tauri/capabilities/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "../gen/schemas/desktop-schema.json", 3 | "identifier": "desktop-capability", 4 | "description": "Capabilities for all windows", 5 | "windows": ["*"], 6 | "permissions": [ 7 | "core:app:default", 8 | "core:menu:default", 9 | "core:tray:default", 10 | "core:path:default", 11 | "core:event:default", 12 | "core:window:default", 13 | "core:resources:default", 14 | "core:event:allow-emit", 15 | "core:event:allow-listen", 16 | "core:window:allow-start-dragging" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /src-tauri/gen/schemas/acl-manifests.json: -------------------------------------------------------------------------------- 1 | {"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null}} -------------------------------------------------------------------------------- /src-tauri/gen/schemas/capabilities.json: -------------------------------------------------------------------------------- 1 | {"desktop-capability":{"identifier":"desktop-capability","description":"Capabilities for all windows","local":true,"windows":["*"],"permissions":["core:app:default","core:menu:default","core:tray:default","core:path:default","core:event:default","core:window:default","core:resources:default","core:event:allow-emit","core:event:allow-listen","core:window:allow-start-dragging"]}} -------------------------------------------------------------------------------- /src-tauri/gen/schemas/desktop-schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json-schema.org/draft-07/schema#", 3 | "title": "CapabilityFile", 4 | "description": "Capability formats accepted in a capability file.", 5 | "anyOf": [ 6 | { 7 | "description": "A single capability.", 8 | "allOf": [ 9 | { 10 | "$ref": "#/definitions/Capability" 11 | } 12 | ] 13 | }, 14 | { 15 | "description": "A list of capabilities.", 16 | "type": "array", 17 | "items": { 18 | "$ref": "#/definitions/Capability" 19 | } 20 | }, 21 | { 22 | "description": "A list of capabilities.", 23 | "type": "object", 24 | "required": [ 25 | "capabilities" 26 | ], 27 | "properties": { 28 | "capabilities": { 29 | "description": "The list of capabilities.", 30 | "type": "array", 31 | "items": { 32 | "$ref": "#/definitions/Capability" 33 | } 34 | } 35 | } 36 | } 37 | ], 38 | "definitions": { 39 | "Capability": { 40 | "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, \"platforms\": [\"macOS\",\"windows\"] } ```", 41 | "type": "object", 42 | "required": [ 43 | "identifier", 44 | "permissions" 45 | ], 46 | "properties": { 47 | "identifier": { 48 | "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`", 49 | "type": "string" 50 | }, 51 | "description": { 52 | "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.", 53 | "default": "", 54 | "type": "string" 55 | }, 56 | "remote": { 57 | "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```", 58 | "anyOf": [ 59 | { 60 | "$ref": "#/definitions/CapabilityRemote" 61 | }, 62 | { 63 | "type": "null" 64 | } 65 | ] 66 | }, 67 | "local": { 68 | "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.", 69 | "default": true, 70 | "type": "boolean" 71 | }, 72 | "windows": { 73 | "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`", 74 | "type": "array", 75 | "items": { 76 | "type": "string" 77 | } 78 | }, 79 | "webviews": { 80 | "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`", 81 | "type": "array", 82 | "items": { 83 | "type": "string" 84 | } 85 | }, 86 | "permissions": { 87 | "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ```", 88 | "type": "array", 89 | "items": { 90 | "$ref": "#/definitions/PermissionEntry" 91 | }, 92 | "uniqueItems": true 93 | }, 94 | "platforms": { 95 | "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`", 96 | "type": [ 97 | "array", 98 | "null" 99 | ], 100 | "items": { 101 | "$ref": "#/definitions/Target" 102 | } 103 | } 104 | } 105 | }, 106 | "CapabilityRemote": { 107 | "description": "Configuration for remote URLs that are associated with the capability.", 108 | "type": "object", 109 | "required": [ 110 | "urls" 111 | ], 112 | "properties": { 113 | "urls": { 114 | "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api", 115 | "type": "array", 116 | "items": { 117 | "type": "string" 118 | } 119 | } 120 | } 121 | }, 122 | "PermissionEntry": { 123 | "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.", 124 | "anyOf": [ 125 | { 126 | "description": "Reference a permission or permission set by identifier.", 127 | "allOf": [ 128 | { 129 | "$ref": "#/definitions/Identifier" 130 | } 131 | ] 132 | }, 133 | { 134 | "description": "Reference a permission or permission set by identifier and extends its scope.", 135 | "type": "object", 136 | "allOf": [ 137 | { 138 | "properties": { 139 | "identifier": { 140 | "description": "Identifier of the permission or permission set.", 141 | "allOf": [ 142 | { 143 | "$ref": "#/definitions/Identifier" 144 | } 145 | ] 146 | }, 147 | "allow": { 148 | "description": "Data that defines what is allowed by the scope.", 149 | "type": [ 150 | "array", 151 | "null" 152 | ], 153 | "items": { 154 | "$ref": "#/definitions/Value" 155 | } 156 | }, 157 | "deny": { 158 | "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.", 159 | "type": [ 160 | "array", 161 | "null" 162 | ], 163 | "items": { 164 | "$ref": "#/definitions/Value" 165 | } 166 | } 167 | } 168 | } 169 | ], 170 | "required": [ 171 | "identifier" 172 | ] 173 | } 174 | ] 175 | }, 176 | "Identifier": { 177 | "description": "Permission identifier", 178 | "oneOf": [ 179 | { 180 | "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n", 181 | "type": "string", 182 | "const": "core:default" 183 | }, 184 | { 185 | "description": "Default permissions for the plugin.", 186 | "type": "string", 187 | "const": "core:app:default" 188 | }, 189 | { 190 | "description": "Enables the app_hide command without any pre-configured scope.", 191 | "type": "string", 192 | "const": "core:app:allow-app-hide" 193 | }, 194 | { 195 | "description": "Enables the app_show command without any pre-configured scope.", 196 | "type": "string", 197 | "const": "core:app:allow-app-show" 198 | }, 199 | { 200 | "description": "Enables the default_window_icon command without any pre-configured scope.", 201 | "type": "string", 202 | "const": "core:app:allow-default-window-icon" 203 | }, 204 | { 205 | "description": "Enables the name command without any pre-configured scope.", 206 | "type": "string", 207 | "const": "core:app:allow-name" 208 | }, 209 | { 210 | "description": "Enables the set_app_theme command without any pre-configured scope.", 211 | "type": "string", 212 | "const": "core:app:allow-set-app-theme" 213 | }, 214 | { 215 | "description": "Enables the tauri_version command without any pre-configured scope.", 216 | "type": "string", 217 | "const": "core:app:allow-tauri-version" 218 | }, 219 | { 220 | "description": "Enables the version command without any pre-configured scope.", 221 | "type": "string", 222 | "const": "core:app:allow-version" 223 | }, 224 | { 225 | "description": "Denies the app_hide command without any pre-configured scope.", 226 | "type": "string", 227 | "const": "core:app:deny-app-hide" 228 | }, 229 | { 230 | "description": "Denies the app_show command without any pre-configured scope.", 231 | "type": "string", 232 | "const": "core:app:deny-app-show" 233 | }, 234 | { 235 | "description": "Denies the default_window_icon command without any pre-configured scope.", 236 | "type": "string", 237 | "const": "core:app:deny-default-window-icon" 238 | }, 239 | { 240 | "description": "Denies the name command without any pre-configured scope.", 241 | "type": "string", 242 | "const": "core:app:deny-name" 243 | }, 244 | { 245 | "description": "Denies the set_app_theme command without any pre-configured scope.", 246 | "type": "string", 247 | "const": "core:app:deny-set-app-theme" 248 | }, 249 | { 250 | "description": "Denies the tauri_version command without any pre-configured scope.", 251 | "type": "string", 252 | "const": "core:app:deny-tauri-version" 253 | }, 254 | { 255 | "description": "Denies the version command without any pre-configured scope.", 256 | "type": "string", 257 | "const": "core:app:deny-version" 258 | }, 259 | { 260 | "description": "Default permissions for the plugin.", 261 | "type": "string", 262 | "const": "core:event:default" 263 | }, 264 | { 265 | "description": "Enables the emit command without any pre-configured scope.", 266 | "type": "string", 267 | "const": "core:event:allow-emit" 268 | }, 269 | { 270 | "description": "Enables the emit_to command without any pre-configured scope.", 271 | "type": "string", 272 | "const": "core:event:allow-emit-to" 273 | }, 274 | { 275 | "description": "Enables the listen command without any pre-configured scope.", 276 | "type": "string", 277 | "const": "core:event:allow-listen" 278 | }, 279 | { 280 | "description": "Enables the unlisten command without any pre-configured scope.", 281 | "type": "string", 282 | "const": "core:event:allow-unlisten" 283 | }, 284 | { 285 | "description": "Denies the emit command without any pre-configured scope.", 286 | "type": "string", 287 | "const": "core:event:deny-emit" 288 | }, 289 | { 290 | "description": "Denies the emit_to command without any pre-configured scope.", 291 | "type": "string", 292 | "const": "core:event:deny-emit-to" 293 | }, 294 | { 295 | "description": "Denies the listen command without any pre-configured scope.", 296 | "type": "string", 297 | "const": "core:event:deny-listen" 298 | }, 299 | { 300 | "description": "Denies the unlisten command without any pre-configured scope.", 301 | "type": "string", 302 | "const": "core:event:deny-unlisten" 303 | }, 304 | { 305 | "description": "Default permissions for the plugin.", 306 | "type": "string", 307 | "const": "core:image:default" 308 | }, 309 | { 310 | "description": "Enables the from_bytes command without any pre-configured scope.", 311 | "type": "string", 312 | "const": "core:image:allow-from-bytes" 313 | }, 314 | { 315 | "description": "Enables the from_path command without any pre-configured scope.", 316 | "type": "string", 317 | "const": "core:image:allow-from-path" 318 | }, 319 | { 320 | "description": "Enables the new command without any pre-configured scope.", 321 | "type": "string", 322 | "const": "core:image:allow-new" 323 | }, 324 | { 325 | "description": "Enables the rgba command without any pre-configured scope.", 326 | "type": "string", 327 | "const": "core:image:allow-rgba" 328 | }, 329 | { 330 | "description": "Enables the size command without any pre-configured scope.", 331 | "type": "string", 332 | "const": "core:image:allow-size" 333 | }, 334 | { 335 | "description": "Denies the from_bytes command without any pre-configured scope.", 336 | "type": "string", 337 | "const": "core:image:deny-from-bytes" 338 | }, 339 | { 340 | "description": "Denies the from_path command without any pre-configured scope.", 341 | "type": "string", 342 | "const": "core:image:deny-from-path" 343 | }, 344 | { 345 | "description": "Denies the new command without any pre-configured scope.", 346 | "type": "string", 347 | "const": "core:image:deny-new" 348 | }, 349 | { 350 | "description": "Denies the rgba command without any pre-configured scope.", 351 | "type": "string", 352 | "const": "core:image:deny-rgba" 353 | }, 354 | { 355 | "description": "Denies the size command without any pre-configured scope.", 356 | "type": "string", 357 | "const": "core:image:deny-size" 358 | }, 359 | { 360 | "description": "Default permissions for the plugin.", 361 | "type": "string", 362 | "const": "core:menu:default" 363 | }, 364 | { 365 | "description": "Enables the append command without any pre-configured scope.", 366 | "type": "string", 367 | "const": "core:menu:allow-append" 368 | }, 369 | { 370 | "description": "Enables the create_default command without any pre-configured scope.", 371 | "type": "string", 372 | "const": "core:menu:allow-create-default" 373 | }, 374 | { 375 | "description": "Enables the get command without any pre-configured scope.", 376 | "type": "string", 377 | "const": "core:menu:allow-get" 378 | }, 379 | { 380 | "description": "Enables the insert command without any pre-configured scope.", 381 | "type": "string", 382 | "const": "core:menu:allow-insert" 383 | }, 384 | { 385 | "description": "Enables the is_checked command without any pre-configured scope.", 386 | "type": "string", 387 | "const": "core:menu:allow-is-checked" 388 | }, 389 | { 390 | "description": "Enables the is_enabled command without any pre-configured scope.", 391 | "type": "string", 392 | "const": "core:menu:allow-is-enabled" 393 | }, 394 | { 395 | "description": "Enables the items command without any pre-configured scope.", 396 | "type": "string", 397 | "const": "core:menu:allow-items" 398 | }, 399 | { 400 | "description": "Enables the new command without any pre-configured scope.", 401 | "type": "string", 402 | "const": "core:menu:allow-new" 403 | }, 404 | { 405 | "description": "Enables the popup command without any pre-configured scope.", 406 | "type": "string", 407 | "const": "core:menu:allow-popup" 408 | }, 409 | { 410 | "description": "Enables the prepend command without any pre-configured scope.", 411 | "type": "string", 412 | "const": "core:menu:allow-prepend" 413 | }, 414 | { 415 | "description": "Enables the remove command without any pre-configured scope.", 416 | "type": "string", 417 | "const": "core:menu:allow-remove" 418 | }, 419 | { 420 | "description": "Enables the remove_at command without any pre-configured scope.", 421 | "type": "string", 422 | "const": "core:menu:allow-remove-at" 423 | }, 424 | { 425 | "description": "Enables the set_accelerator command without any pre-configured scope.", 426 | "type": "string", 427 | "const": "core:menu:allow-set-accelerator" 428 | }, 429 | { 430 | "description": "Enables the set_as_app_menu command without any pre-configured scope.", 431 | "type": "string", 432 | "const": "core:menu:allow-set-as-app-menu" 433 | }, 434 | { 435 | "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.", 436 | "type": "string", 437 | "const": "core:menu:allow-set-as-help-menu-for-nsapp" 438 | }, 439 | { 440 | "description": "Enables the set_as_window_menu command without any pre-configured scope.", 441 | "type": "string", 442 | "const": "core:menu:allow-set-as-window-menu" 443 | }, 444 | { 445 | "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.", 446 | "type": "string", 447 | "const": "core:menu:allow-set-as-windows-menu-for-nsapp" 448 | }, 449 | { 450 | "description": "Enables the set_checked command without any pre-configured scope.", 451 | "type": "string", 452 | "const": "core:menu:allow-set-checked" 453 | }, 454 | { 455 | "description": "Enables the set_enabled command without any pre-configured scope.", 456 | "type": "string", 457 | "const": "core:menu:allow-set-enabled" 458 | }, 459 | { 460 | "description": "Enables the set_icon command without any pre-configured scope.", 461 | "type": "string", 462 | "const": "core:menu:allow-set-icon" 463 | }, 464 | { 465 | "description": "Enables the set_text command without any pre-configured scope.", 466 | "type": "string", 467 | "const": "core:menu:allow-set-text" 468 | }, 469 | { 470 | "description": "Enables the text command without any pre-configured scope.", 471 | "type": "string", 472 | "const": "core:menu:allow-text" 473 | }, 474 | { 475 | "description": "Denies the append command without any pre-configured scope.", 476 | "type": "string", 477 | "const": "core:menu:deny-append" 478 | }, 479 | { 480 | "description": "Denies the create_default command without any pre-configured scope.", 481 | "type": "string", 482 | "const": "core:menu:deny-create-default" 483 | }, 484 | { 485 | "description": "Denies the get command without any pre-configured scope.", 486 | "type": "string", 487 | "const": "core:menu:deny-get" 488 | }, 489 | { 490 | "description": "Denies the insert command without any pre-configured scope.", 491 | "type": "string", 492 | "const": "core:menu:deny-insert" 493 | }, 494 | { 495 | "description": "Denies the is_checked command without any pre-configured scope.", 496 | "type": "string", 497 | "const": "core:menu:deny-is-checked" 498 | }, 499 | { 500 | "description": "Denies the is_enabled command without any pre-configured scope.", 501 | "type": "string", 502 | "const": "core:menu:deny-is-enabled" 503 | }, 504 | { 505 | "description": "Denies the items command without any pre-configured scope.", 506 | "type": "string", 507 | "const": "core:menu:deny-items" 508 | }, 509 | { 510 | "description": "Denies the new command without any pre-configured scope.", 511 | "type": "string", 512 | "const": "core:menu:deny-new" 513 | }, 514 | { 515 | "description": "Denies the popup command without any pre-configured scope.", 516 | "type": "string", 517 | "const": "core:menu:deny-popup" 518 | }, 519 | { 520 | "description": "Denies the prepend command without any pre-configured scope.", 521 | "type": "string", 522 | "const": "core:menu:deny-prepend" 523 | }, 524 | { 525 | "description": "Denies the remove command without any pre-configured scope.", 526 | "type": "string", 527 | "const": "core:menu:deny-remove" 528 | }, 529 | { 530 | "description": "Denies the remove_at command without any pre-configured scope.", 531 | "type": "string", 532 | "const": "core:menu:deny-remove-at" 533 | }, 534 | { 535 | "description": "Denies the set_accelerator command without any pre-configured scope.", 536 | "type": "string", 537 | "const": "core:menu:deny-set-accelerator" 538 | }, 539 | { 540 | "description": "Denies the set_as_app_menu command without any pre-configured scope.", 541 | "type": "string", 542 | "const": "core:menu:deny-set-as-app-menu" 543 | }, 544 | { 545 | "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.", 546 | "type": "string", 547 | "const": "core:menu:deny-set-as-help-menu-for-nsapp" 548 | }, 549 | { 550 | "description": "Denies the set_as_window_menu command without any pre-configured scope.", 551 | "type": "string", 552 | "const": "core:menu:deny-set-as-window-menu" 553 | }, 554 | { 555 | "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.", 556 | "type": "string", 557 | "const": "core:menu:deny-set-as-windows-menu-for-nsapp" 558 | }, 559 | { 560 | "description": "Denies the set_checked command without any pre-configured scope.", 561 | "type": "string", 562 | "const": "core:menu:deny-set-checked" 563 | }, 564 | { 565 | "description": "Denies the set_enabled command without any pre-configured scope.", 566 | "type": "string", 567 | "const": "core:menu:deny-set-enabled" 568 | }, 569 | { 570 | "description": "Denies the set_icon command without any pre-configured scope.", 571 | "type": "string", 572 | "const": "core:menu:deny-set-icon" 573 | }, 574 | { 575 | "description": "Denies the set_text command without any pre-configured scope.", 576 | "type": "string", 577 | "const": "core:menu:deny-set-text" 578 | }, 579 | { 580 | "description": "Denies the text command without any pre-configured scope.", 581 | "type": "string", 582 | "const": "core:menu:deny-text" 583 | }, 584 | { 585 | "description": "Default permissions for the plugin.", 586 | "type": "string", 587 | "const": "core:path:default" 588 | }, 589 | { 590 | "description": "Enables the basename command without any pre-configured scope.", 591 | "type": "string", 592 | "const": "core:path:allow-basename" 593 | }, 594 | { 595 | "description": "Enables the dirname command without any pre-configured scope.", 596 | "type": "string", 597 | "const": "core:path:allow-dirname" 598 | }, 599 | { 600 | "description": "Enables the extname command without any pre-configured scope.", 601 | "type": "string", 602 | "const": "core:path:allow-extname" 603 | }, 604 | { 605 | "description": "Enables the is_absolute command without any pre-configured scope.", 606 | "type": "string", 607 | "const": "core:path:allow-is-absolute" 608 | }, 609 | { 610 | "description": "Enables the join command without any pre-configured scope.", 611 | "type": "string", 612 | "const": "core:path:allow-join" 613 | }, 614 | { 615 | "description": "Enables the normalize command without any pre-configured scope.", 616 | "type": "string", 617 | "const": "core:path:allow-normalize" 618 | }, 619 | { 620 | "description": "Enables the resolve command without any pre-configured scope.", 621 | "type": "string", 622 | "const": "core:path:allow-resolve" 623 | }, 624 | { 625 | "description": "Enables the resolve_directory command without any pre-configured scope.", 626 | "type": "string", 627 | "const": "core:path:allow-resolve-directory" 628 | }, 629 | { 630 | "description": "Denies the basename command without any pre-configured scope.", 631 | "type": "string", 632 | "const": "core:path:deny-basename" 633 | }, 634 | { 635 | "description": "Denies the dirname command without any pre-configured scope.", 636 | "type": "string", 637 | "const": "core:path:deny-dirname" 638 | }, 639 | { 640 | "description": "Denies the extname command without any pre-configured scope.", 641 | "type": "string", 642 | "const": "core:path:deny-extname" 643 | }, 644 | { 645 | "description": "Denies the is_absolute command without any pre-configured scope.", 646 | "type": "string", 647 | "const": "core:path:deny-is-absolute" 648 | }, 649 | { 650 | "description": "Denies the join command without any pre-configured scope.", 651 | "type": "string", 652 | "const": "core:path:deny-join" 653 | }, 654 | { 655 | "description": "Denies the normalize command without any pre-configured scope.", 656 | "type": "string", 657 | "const": "core:path:deny-normalize" 658 | }, 659 | { 660 | "description": "Denies the resolve command without any pre-configured scope.", 661 | "type": "string", 662 | "const": "core:path:deny-resolve" 663 | }, 664 | { 665 | "description": "Denies the resolve_directory command without any pre-configured scope.", 666 | "type": "string", 667 | "const": "core:path:deny-resolve-directory" 668 | }, 669 | { 670 | "description": "Default permissions for the plugin.", 671 | "type": "string", 672 | "const": "core:resources:default" 673 | }, 674 | { 675 | "description": "Enables the close command without any pre-configured scope.", 676 | "type": "string", 677 | "const": "core:resources:allow-close" 678 | }, 679 | { 680 | "description": "Denies the close command without any pre-configured scope.", 681 | "type": "string", 682 | "const": "core:resources:deny-close" 683 | }, 684 | { 685 | "description": "Default permissions for the plugin.", 686 | "type": "string", 687 | "const": "core:tray:default" 688 | }, 689 | { 690 | "description": "Enables the get_by_id command without any pre-configured scope.", 691 | "type": "string", 692 | "const": "core:tray:allow-get-by-id" 693 | }, 694 | { 695 | "description": "Enables the new command without any pre-configured scope.", 696 | "type": "string", 697 | "const": "core:tray:allow-new" 698 | }, 699 | { 700 | "description": "Enables the remove_by_id command without any pre-configured scope.", 701 | "type": "string", 702 | "const": "core:tray:allow-remove-by-id" 703 | }, 704 | { 705 | "description": "Enables the set_icon command without any pre-configured scope.", 706 | "type": "string", 707 | "const": "core:tray:allow-set-icon" 708 | }, 709 | { 710 | "description": "Enables the set_icon_as_template command without any pre-configured scope.", 711 | "type": "string", 712 | "const": "core:tray:allow-set-icon-as-template" 713 | }, 714 | { 715 | "description": "Enables the set_menu command without any pre-configured scope.", 716 | "type": "string", 717 | "const": "core:tray:allow-set-menu" 718 | }, 719 | { 720 | "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.", 721 | "type": "string", 722 | "const": "core:tray:allow-set-show-menu-on-left-click" 723 | }, 724 | { 725 | "description": "Enables the set_temp_dir_path command without any pre-configured scope.", 726 | "type": "string", 727 | "const": "core:tray:allow-set-temp-dir-path" 728 | }, 729 | { 730 | "description": "Enables the set_title command without any pre-configured scope.", 731 | "type": "string", 732 | "const": "core:tray:allow-set-title" 733 | }, 734 | { 735 | "description": "Enables the set_tooltip command without any pre-configured scope.", 736 | "type": "string", 737 | "const": "core:tray:allow-set-tooltip" 738 | }, 739 | { 740 | "description": "Enables the set_visible command without any pre-configured scope.", 741 | "type": "string", 742 | "const": "core:tray:allow-set-visible" 743 | }, 744 | { 745 | "description": "Denies the get_by_id command without any pre-configured scope.", 746 | "type": "string", 747 | "const": "core:tray:deny-get-by-id" 748 | }, 749 | { 750 | "description": "Denies the new command without any pre-configured scope.", 751 | "type": "string", 752 | "const": "core:tray:deny-new" 753 | }, 754 | { 755 | "description": "Denies the remove_by_id command without any pre-configured scope.", 756 | "type": "string", 757 | "const": "core:tray:deny-remove-by-id" 758 | }, 759 | { 760 | "description": "Denies the set_icon command without any pre-configured scope.", 761 | "type": "string", 762 | "const": "core:tray:deny-set-icon" 763 | }, 764 | { 765 | "description": "Denies the set_icon_as_template command without any pre-configured scope.", 766 | "type": "string", 767 | "const": "core:tray:deny-set-icon-as-template" 768 | }, 769 | { 770 | "description": "Denies the set_menu command without any pre-configured scope.", 771 | "type": "string", 772 | "const": "core:tray:deny-set-menu" 773 | }, 774 | { 775 | "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.", 776 | "type": "string", 777 | "const": "core:tray:deny-set-show-menu-on-left-click" 778 | }, 779 | { 780 | "description": "Denies the set_temp_dir_path command without any pre-configured scope.", 781 | "type": "string", 782 | "const": "core:tray:deny-set-temp-dir-path" 783 | }, 784 | { 785 | "description": "Denies the set_title command without any pre-configured scope.", 786 | "type": "string", 787 | "const": "core:tray:deny-set-title" 788 | }, 789 | { 790 | "description": "Denies the set_tooltip command without any pre-configured scope.", 791 | "type": "string", 792 | "const": "core:tray:deny-set-tooltip" 793 | }, 794 | { 795 | "description": "Denies the set_visible command without any pre-configured scope.", 796 | "type": "string", 797 | "const": "core:tray:deny-set-visible" 798 | }, 799 | { 800 | "description": "Default permissions for the plugin.", 801 | "type": "string", 802 | "const": "core:webview:default" 803 | }, 804 | { 805 | "description": "Enables the clear_all_browsing_data command without any pre-configured scope.", 806 | "type": "string", 807 | "const": "core:webview:allow-clear-all-browsing-data" 808 | }, 809 | { 810 | "description": "Enables the create_webview command without any pre-configured scope.", 811 | "type": "string", 812 | "const": "core:webview:allow-create-webview" 813 | }, 814 | { 815 | "description": "Enables the create_webview_window command without any pre-configured scope.", 816 | "type": "string", 817 | "const": "core:webview:allow-create-webview-window" 818 | }, 819 | { 820 | "description": "Enables the get_all_webviews command without any pre-configured scope.", 821 | "type": "string", 822 | "const": "core:webview:allow-get-all-webviews" 823 | }, 824 | { 825 | "description": "Enables the internal_toggle_devtools command without any pre-configured scope.", 826 | "type": "string", 827 | "const": "core:webview:allow-internal-toggle-devtools" 828 | }, 829 | { 830 | "description": "Enables the print command without any pre-configured scope.", 831 | "type": "string", 832 | "const": "core:webview:allow-print" 833 | }, 834 | { 835 | "description": "Enables the reparent command without any pre-configured scope.", 836 | "type": "string", 837 | "const": "core:webview:allow-reparent" 838 | }, 839 | { 840 | "description": "Enables the set_webview_focus command without any pre-configured scope.", 841 | "type": "string", 842 | "const": "core:webview:allow-set-webview-focus" 843 | }, 844 | { 845 | "description": "Enables the set_webview_position command without any pre-configured scope.", 846 | "type": "string", 847 | "const": "core:webview:allow-set-webview-position" 848 | }, 849 | { 850 | "description": "Enables the set_webview_size command without any pre-configured scope.", 851 | "type": "string", 852 | "const": "core:webview:allow-set-webview-size" 853 | }, 854 | { 855 | "description": "Enables the set_webview_zoom command without any pre-configured scope.", 856 | "type": "string", 857 | "const": "core:webview:allow-set-webview-zoom" 858 | }, 859 | { 860 | "description": "Enables the webview_close command without any pre-configured scope.", 861 | "type": "string", 862 | "const": "core:webview:allow-webview-close" 863 | }, 864 | { 865 | "description": "Enables the webview_hide command without any pre-configured scope.", 866 | "type": "string", 867 | "const": "core:webview:allow-webview-hide" 868 | }, 869 | { 870 | "description": "Enables the webview_position command without any pre-configured scope.", 871 | "type": "string", 872 | "const": "core:webview:allow-webview-position" 873 | }, 874 | { 875 | "description": "Enables the webview_show command without any pre-configured scope.", 876 | "type": "string", 877 | "const": "core:webview:allow-webview-show" 878 | }, 879 | { 880 | "description": "Enables the webview_size command without any pre-configured scope.", 881 | "type": "string", 882 | "const": "core:webview:allow-webview-size" 883 | }, 884 | { 885 | "description": "Denies the clear_all_browsing_data command without any pre-configured scope.", 886 | "type": "string", 887 | "const": "core:webview:deny-clear-all-browsing-data" 888 | }, 889 | { 890 | "description": "Denies the create_webview command without any pre-configured scope.", 891 | "type": "string", 892 | "const": "core:webview:deny-create-webview" 893 | }, 894 | { 895 | "description": "Denies the create_webview_window command without any pre-configured scope.", 896 | "type": "string", 897 | "const": "core:webview:deny-create-webview-window" 898 | }, 899 | { 900 | "description": "Denies the get_all_webviews command without any pre-configured scope.", 901 | "type": "string", 902 | "const": "core:webview:deny-get-all-webviews" 903 | }, 904 | { 905 | "description": "Denies the internal_toggle_devtools command without any pre-configured scope.", 906 | "type": "string", 907 | "const": "core:webview:deny-internal-toggle-devtools" 908 | }, 909 | { 910 | "description": "Denies the print command without any pre-configured scope.", 911 | "type": "string", 912 | "const": "core:webview:deny-print" 913 | }, 914 | { 915 | "description": "Denies the reparent command without any pre-configured scope.", 916 | "type": "string", 917 | "const": "core:webview:deny-reparent" 918 | }, 919 | { 920 | "description": "Denies the set_webview_focus command without any pre-configured scope.", 921 | "type": "string", 922 | "const": "core:webview:deny-set-webview-focus" 923 | }, 924 | { 925 | "description": "Denies the set_webview_position command without any pre-configured scope.", 926 | "type": "string", 927 | "const": "core:webview:deny-set-webview-position" 928 | }, 929 | { 930 | "description": "Denies the set_webview_size command without any pre-configured scope.", 931 | "type": "string", 932 | "const": "core:webview:deny-set-webview-size" 933 | }, 934 | { 935 | "description": "Denies the set_webview_zoom command without any pre-configured scope.", 936 | "type": "string", 937 | "const": "core:webview:deny-set-webview-zoom" 938 | }, 939 | { 940 | "description": "Denies the webview_close command without any pre-configured scope.", 941 | "type": "string", 942 | "const": "core:webview:deny-webview-close" 943 | }, 944 | { 945 | "description": "Denies the webview_hide command without any pre-configured scope.", 946 | "type": "string", 947 | "const": "core:webview:deny-webview-hide" 948 | }, 949 | { 950 | "description": "Denies the webview_position command without any pre-configured scope.", 951 | "type": "string", 952 | "const": "core:webview:deny-webview-position" 953 | }, 954 | { 955 | "description": "Denies the webview_show command without any pre-configured scope.", 956 | "type": "string", 957 | "const": "core:webview:deny-webview-show" 958 | }, 959 | { 960 | "description": "Denies the webview_size command without any pre-configured scope.", 961 | "type": "string", 962 | "const": "core:webview:deny-webview-size" 963 | }, 964 | { 965 | "description": "Default permissions for the plugin.", 966 | "type": "string", 967 | "const": "core:window:default" 968 | }, 969 | { 970 | "description": "Enables the available_monitors command without any pre-configured scope.", 971 | "type": "string", 972 | "const": "core:window:allow-available-monitors" 973 | }, 974 | { 975 | "description": "Enables the center command without any pre-configured scope.", 976 | "type": "string", 977 | "const": "core:window:allow-center" 978 | }, 979 | { 980 | "description": "Enables the close command without any pre-configured scope.", 981 | "type": "string", 982 | "const": "core:window:allow-close" 983 | }, 984 | { 985 | "description": "Enables the create command without any pre-configured scope.", 986 | "type": "string", 987 | "const": "core:window:allow-create" 988 | }, 989 | { 990 | "description": "Enables the current_monitor command without any pre-configured scope.", 991 | "type": "string", 992 | "const": "core:window:allow-current-monitor" 993 | }, 994 | { 995 | "description": "Enables the cursor_position command without any pre-configured scope.", 996 | "type": "string", 997 | "const": "core:window:allow-cursor-position" 998 | }, 999 | { 1000 | "description": "Enables the destroy command without any pre-configured scope.", 1001 | "type": "string", 1002 | "const": "core:window:allow-destroy" 1003 | }, 1004 | { 1005 | "description": "Enables the get_all_windows command without any pre-configured scope.", 1006 | "type": "string", 1007 | "const": "core:window:allow-get-all-windows" 1008 | }, 1009 | { 1010 | "description": "Enables the hide command without any pre-configured scope.", 1011 | "type": "string", 1012 | "const": "core:window:allow-hide" 1013 | }, 1014 | { 1015 | "description": "Enables the inner_position command without any pre-configured scope.", 1016 | "type": "string", 1017 | "const": "core:window:allow-inner-position" 1018 | }, 1019 | { 1020 | "description": "Enables the inner_size command without any pre-configured scope.", 1021 | "type": "string", 1022 | "const": "core:window:allow-inner-size" 1023 | }, 1024 | { 1025 | "description": "Enables the internal_toggle_maximize command without any pre-configured scope.", 1026 | "type": "string", 1027 | "const": "core:window:allow-internal-toggle-maximize" 1028 | }, 1029 | { 1030 | "description": "Enables the is_closable command without any pre-configured scope.", 1031 | "type": "string", 1032 | "const": "core:window:allow-is-closable" 1033 | }, 1034 | { 1035 | "description": "Enables the is_decorated command without any pre-configured scope.", 1036 | "type": "string", 1037 | "const": "core:window:allow-is-decorated" 1038 | }, 1039 | { 1040 | "description": "Enables the is_enabled command without any pre-configured scope.", 1041 | "type": "string", 1042 | "const": "core:window:allow-is-enabled" 1043 | }, 1044 | { 1045 | "description": "Enables the is_focused command without any pre-configured scope.", 1046 | "type": "string", 1047 | "const": "core:window:allow-is-focused" 1048 | }, 1049 | { 1050 | "description": "Enables the is_fullscreen command without any pre-configured scope.", 1051 | "type": "string", 1052 | "const": "core:window:allow-is-fullscreen" 1053 | }, 1054 | { 1055 | "description": "Enables the is_maximizable command without any pre-configured scope.", 1056 | "type": "string", 1057 | "const": "core:window:allow-is-maximizable" 1058 | }, 1059 | { 1060 | "description": "Enables the is_maximized command without any pre-configured scope.", 1061 | "type": "string", 1062 | "const": "core:window:allow-is-maximized" 1063 | }, 1064 | { 1065 | "description": "Enables the is_minimizable command without any pre-configured scope.", 1066 | "type": "string", 1067 | "const": "core:window:allow-is-minimizable" 1068 | }, 1069 | { 1070 | "description": "Enables the is_minimized command without any pre-configured scope.", 1071 | "type": "string", 1072 | "const": "core:window:allow-is-minimized" 1073 | }, 1074 | { 1075 | "description": "Enables the is_resizable command without any pre-configured scope.", 1076 | "type": "string", 1077 | "const": "core:window:allow-is-resizable" 1078 | }, 1079 | { 1080 | "description": "Enables the is_visible command without any pre-configured scope.", 1081 | "type": "string", 1082 | "const": "core:window:allow-is-visible" 1083 | }, 1084 | { 1085 | "description": "Enables the maximize command without any pre-configured scope.", 1086 | "type": "string", 1087 | "const": "core:window:allow-maximize" 1088 | }, 1089 | { 1090 | "description": "Enables the minimize command without any pre-configured scope.", 1091 | "type": "string", 1092 | "const": "core:window:allow-minimize" 1093 | }, 1094 | { 1095 | "description": "Enables the monitor_from_point command without any pre-configured scope.", 1096 | "type": "string", 1097 | "const": "core:window:allow-monitor-from-point" 1098 | }, 1099 | { 1100 | "description": "Enables the outer_position command without any pre-configured scope.", 1101 | "type": "string", 1102 | "const": "core:window:allow-outer-position" 1103 | }, 1104 | { 1105 | "description": "Enables the outer_size command without any pre-configured scope.", 1106 | "type": "string", 1107 | "const": "core:window:allow-outer-size" 1108 | }, 1109 | { 1110 | "description": "Enables the primary_monitor command without any pre-configured scope.", 1111 | "type": "string", 1112 | "const": "core:window:allow-primary-monitor" 1113 | }, 1114 | { 1115 | "description": "Enables the request_user_attention command without any pre-configured scope.", 1116 | "type": "string", 1117 | "const": "core:window:allow-request-user-attention" 1118 | }, 1119 | { 1120 | "description": "Enables the scale_factor command without any pre-configured scope.", 1121 | "type": "string", 1122 | "const": "core:window:allow-scale-factor" 1123 | }, 1124 | { 1125 | "description": "Enables the set_always_on_bottom command without any pre-configured scope.", 1126 | "type": "string", 1127 | "const": "core:window:allow-set-always-on-bottom" 1128 | }, 1129 | { 1130 | "description": "Enables the set_always_on_top command without any pre-configured scope.", 1131 | "type": "string", 1132 | "const": "core:window:allow-set-always-on-top" 1133 | }, 1134 | { 1135 | "description": "Enables the set_closable command without any pre-configured scope.", 1136 | "type": "string", 1137 | "const": "core:window:allow-set-closable" 1138 | }, 1139 | { 1140 | "description": "Enables the set_content_protected command without any pre-configured scope.", 1141 | "type": "string", 1142 | "const": "core:window:allow-set-content-protected" 1143 | }, 1144 | { 1145 | "description": "Enables the set_cursor_grab command without any pre-configured scope.", 1146 | "type": "string", 1147 | "const": "core:window:allow-set-cursor-grab" 1148 | }, 1149 | { 1150 | "description": "Enables the set_cursor_icon command without any pre-configured scope.", 1151 | "type": "string", 1152 | "const": "core:window:allow-set-cursor-icon" 1153 | }, 1154 | { 1155 | "description": "Enables the set_cursor_position command without any pre-configured scope.", 1156 | "type": "string", 1157 | "const": "core:window:allow-set-cursor-position" 1158 | }, 1159 | { 1160 | "description": "Enables the set_cursor_visible command without any pre-configured scope.", 1161 | "type": "string", 1162 | "const": "core:window:allow-set-cursor-visible" 1163 | }, 1164 | { 1165 | "description": "Enables the set_decorations command without any pre-configured scope.", 1166 | "type": "string", 1167 | "const": "core:window:allow-set-decorations" 1168 | }, 1169 | { 1170 | "description": "Enables the set_effects command without any pre-configured scope.", 1171 | "type": "string", 1172 | "const": "core:window:allow-set-effects" 1173 | }, 1174 | { 1175 | "description": "Enables the set_enabled command without any pre-configured scope.", 1176 | "type": "string", 1177 | "const": "core:window:allow-set-enabled" 1178 | }, 1179 | { 1180 | "description": "Enables the set_focus command without any pre-configured scope.", 1181 | "type": "string", 1182 | "const": "core:window:allow-set-focus" 1183 | }, 1184 | { 1185 | "description": "Enables the set_fullscreen command without any pre-configured scope.", 1186 | "type": "string", 1187 | "const": "core:window:allow-set-fullscreen" 1188 | }, 1189 | { 1190 | "description": "Enables the set_icon command without any pre-configured scope.", 1191 | "type": "string", 1192 | "const": "core:window:allow-set-icon" 1193 | }, 1194 | { 1195 | "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.", 1196 | "type": "string", 1197 | "const": "core:window:allow-set-ignore-cursor-events" 1198 | }, 1199 | { 1200 | "description": "Enables the set_max_size command without any pre-configured scope.", 1201 | "type": "string", 1202 | "const": "core:window:allow-set-max-size" 1203 | }, 1204 | { 1205 | "description": "Enables the set_maximizable command without any pre-configured scope.", 1206 | "type": "string", 1207 | "const": "core:window:allow-set-maximizable" 1208 | }, 1209 | { 1210 | "description": "Enables the set_min_size command without any pre-configured scope.", 1211 | "type": "string", 1212 | "const": "core:window:allow-set-min-size" 1213 | }, 1214 | { 1215 | "description": "Enables the set_minimizable command without any pre-configured scope.", 1216 | "type": "string", 1217 | "const": "core:window:allow-set-minimizable" 1218 | }, 1219 | { 1220 | "description": "Enables the set_position command without any pre-configured scope.", 1221 | "type": "string", 1222 | "const": "core:window:allow-set-position" 1223 | }, 1224 | { 1225 | "description": "Enables the set_progress_bar command without any pre-configured scope.", 1226 | "type": "string", 1227 | "const": "core:window:allow-set-progress-bar" 1228 | }, 1229 | { 1230 | "description": "Enables the set_resizable command without any pre-configured scope.", 1231 | "type": "string", 1232 | "const": "core:window:allow-set-resizable" 1233 | }, 1234 | { 1235 | "description": "Enables the set_shadow command without any pre-configured scope.", 1236 | "type": "string", 1237 | "const": "core:window:allow-set-shadow" 1238 | }, 1239 | { 1240 | "description": "Enables the set_size command without any pre-configured scope.", 1241 | "type": "string", 1242 | "const": "core:window:allow-set-size" 1243 | }, 1244 | { 1245 | "description": "Enables the set_size_constraints command without any pre-configured scope.", 1246 | "type": "string", 1247 | "const": "core:window:allow-set-size-constraints" 1248 | }, 1249 | { 1250 | "description": "Enables the set_skip_taskbar command without any pre-configured scope.", 1251 | "type": "string", 1252 | "const": "core:window:allow-set-skip-taskbar" 1253 | }, 1254 | { 1255 | "description": "Enables the set_theme command without any pre-configured scope.", 1256 | "type": "string", 1257 | "const": "core:window:allow-set-theme" 1258 | }, 1259 | { 1260 | "description": "Enables the set_title command without any pre-configured scope.", 1261 | "type": "string", 1262 | "const": "core:window:allow-set-title" 1263 | }, 1264 | { 1265 | "description": "Enables the set_title_bar_style command without any pre-configured scope.", 1266 | "type": "string", 1267 | "const": "core:window:allow-set-title-bar-style" 1268 | }, 1269 | { 1270 | "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.", 1271 | "type": "string", 1272 | "const": "core:window:allow-set-visible-on-all-workspaces" 1273 | }, 1274 | { 1275 | "description": "Enables the show command without any pre-configured scope.", 1276 | "type": "string", 1277 | "const": "core:window:allow-show" 1278 | }, 1279 | { 1280 | "description": "Enables the start_dragging command without any pre-configured scope.", 1281 | "type": "string", 1282 | "const": "core:window:allow-start-dragging" 1283 | }, 1284 | { 1285 | "description": "Enables the start_resize_dragging command without any pre-configured scope.", 1286 | "type": "string", 1287 | "const": "core:window:allow-start-resize-dragging" 1288 | }, 1289 | { 1290 | "description": "Enables the theme command without any pre-configured scope.", 1291 | "type": "string", 1292 | "const": "core:window:allow-theme" 1293 | }, 1294 | { 1295 | "description": "Enables the title command without any pre-configured scope.", 1296 | "type": "string", 1297 | "const": "core:window:allow-title" 1298 | }, 1299 | { 1300 | "description": "Enables the toggle_maximize command without any pre-configured scope.", 1301 | "type": "string", 1302 | "const": "core:window:allow-toggle-maximize" 1303 | }, 1304 | { 1305 | "description": "Enables the unmaximize command without any pre-configured scope.", 1306 | "type": "string", 1307 | "const": "core:window:allow-unmaximize" 1308 | }, 1309 | { 1310 | "description": "Enables the unminimize command without any pre-configured scope.", 1311 | "type": "string", 1312 | "const": "core:window:allow-unminimize" 1313 | }, 1314 | { 1315 | "description": "Denies the available_monitors command without any pre-configured scope.", 1316 | "type": "string", 1317 | "const": "core:window:deny-available-monitors" 1318 | }, 1319 | { 1320 | "description": "Denies the center command without any pre-configured scope.", 1321 | "type": "string", 1322 | "const": "core:window:deny-center" 1323 | }, 1324 | { 1325 | "description": "Denies the close command without any pre-configured scope.", 1326 | "type": "string", 1327 | "const": "core:window:deny-close" 1328 | }, 1329 | { 1330 | "description": "Denies the create command without any pre-configured scope.", 1331 | "type": "string", 1332 | "const": "core:window:deny-create" 1333 | }, 1334 | { 1335 | "description": "Denies the current_monitor command without any pre-configured scope.", 1336 | "type": "string", 1337 | "const": "core:window:deny-current-monitor" 1338 | }, 1339 | { 1340 | "description": "Denies the cursor_position command without any pre-configured scope.", 1341 | "type": "string", 1342 | "const": "core:window:deny-cursor-position" 1343 | }, 1344 | { 1345 | "description": "Denies the destroy command without any pre-configured scope.", 1346 | "type": "string", 1347 | "const": "core:window:deny-destroy" 1348 | }, 1349 | { 1350 | "description": "Denies the get_all_windows command without any pre-configured scope.", 1351 | "type": "string", 1352 | "const": "core:window:deny-get-all-windows" 1353 | }, 1354 | { 1355 | "description": "Denies the hide command without any pre-configured scope.", 1356 | "type": "string", 1357 | "const": "core:window:deny-hide" 1358 | }, 1359 | { 1360 | "description": "Denies the inner_position command without any pre-configured scope.", 1361 | "type": "string", 1362 | "const": "core:window:deny-inner-position" 1363 | }, 1364 | { 1365 | "description": "Denies the inner_size command without any pre-configured scope.", 1366 | "type": "string", 1367 | "const": "core:window:deny-inner-size" 1368 | }, 1369 | { 1370 | "description": "Denies the internal_toggle_maximize command without any pre-configured scope.", 1371 | "type": "string", 1372 | "const": "core:window:deny-internal-toggle-maximize" 1373 | }, 1374 | { 1375 | "description": "Denies the is_closable command without any pre-configured scope.", 1376 | "type": "string", 1377 | "const": "core:window:deny-is-closable" 1378 | }, 1379 | { 1380 | "description": "Denies the is_decorated command without any pre-configured scope.", 1381 | "type": "string", 1382 | "const": "core:window:deny-is-decorated" 1383 | }, 1384 | { 1385 | "description": "Denies the is_enabled command without any pre-configured scope.", 1386 | "type": "string", 1387 | "const": "core:window:deny-is-enabled" 1388 | }, 1389 | { 1390 | "description": "Denies the is_focused command without any pre-configured scope.", 1391 | "type": "string", 1392 | "const": "core:window:deny-is-focused" 1393 | }, 1394 | { 1395 | "description": "Denies the is_fullscreen command without any pre-configured scope.", 1396 | "type": "string", 1397 | "const": "core:window:deny-is-fullscreen" 1398 | }, 1399 | { 1400 | "description": "Denies the is_maximizable command without any pre-configured scope.", 1401 | "type": "string", 1402 | "const": "core:window:deny-is-maximizable" 1403 | }, 1404 | { 1405 | "description": "Denies the is_maximized command without any pre-configured scope.", 1406 | "type": "string", 1407 | "const": "core:window:deny-is-maximized" 1408 | }, 1409 | { 1410 | "description": "Denies the is_minimizable command without any pre-configured scope.", 1411 | "type": "string", 1412 | "const": "core:window:deny-is-minimizable" 1413 | }, 1414 | { 1415 | "description": "Denies the is_minimized command without any pre-configured scope.", 1416 | "type": "string", 1417 | "const": "core:window:deny-is-minimized" 1418 | }, 1419 | { 1420 | "description": "Denies the is_resizable command without any pre-configured scope.", 1421 | "type": "string", 1422 | "const": "core:window:deny-is-resizable" 1423 | }, 1424 | { 1425 | "description": "Denies the is_visible command without any pre-configured scope.", 1426 | "type": "string", 1427 | "const": "core:window:deny-is-visible" 1428 | }, 1429 | { 1430 | "description": "Denies the maximize command without any pre-configured scope.", 1431 | "type": "string", 1432 | "const": "core:window:deny-maximize" 1433 | }, 1434 | { 1435 | "description": "Denies the minimize command without any pre-configured scope.", 1436 | "type": "string", 1437 | "const": "core:window:deny-minimize" 1438 | }, 1439 | { 1440 | "description": "Denies the monitor_from_point command without any pre-configured scope.", 1441 | "type": "string", 1442 | "const": "core:window:deny-monitor-from-point" 1443 | }, 1444 | { 1445 | "description": "Denies the outer_position command without any pre-configured scope.", 1446 | "type": "string", 1447 | "const": "core:window:deny-outer-position" 1448 | }, 1449 | { 1450 | "description": "Denies the outer_size command without any pre-configured scope.", 1451 | "type": "string", 1452 | "const": "core:window:deny-outer-size" 1453 | }, 1454 | { 1455 | "description": "Denies the primary_monitor command without any pre-configured scope.", 1456 | "type": "string", 1457 | "const": "core:window:deny-primary-monitor" 1458 | }, 1459 | { 1460 | "description": "Denies the request_user_attention command without any pre-configured scope.", 1461 | "type": "string", 1462 | "const": "core:window:deny-request-user-attention" 1463 | }, 1464 | { 1465 | "description": "Denies the scale_factor command without any pre-configured scope.", 1466 | "type": "string", 1467 | "const": "core:window:deny-scale-factor" 1468 | }, 1469 | { 1470 | "description": "Denies the set_always_on_bottom command without any pre-configured scope.", 1471 | "type": "string", 1472 | "const": "core:window:deny-set-always-on-bottom" 1473 | }, 1474 | { 1475 | "description": "Denies the set_always_on_top command without any pre-configured scope.", 1476 | "type": "string", 1477 | "const": "core:window:deny-set-always-on-top" 1478 | }, 1479 | { 1480 | "description": "Denies the set_closable command without any pre-configured scope.", 1481 | "type": "string", 1482 | "const": "core:window:deny-set-closable" 1483 | }, 1484 | { 1485 | "description": "Denies the set_content_protected command without any pre-configured scope.", 1486 | "type": "string", 1487 | "const": "core:window:deny-set-content-protected" 1488 | }, 1489 | { 1490 | "description": "Denies the set_cursor_grab command without any pre-configured scope.", 1491 | "type": "string", 1492 | "const": "core:window:deny-set-cursor-grab" 1493 | }, 1494 | { 1495 | "description": "Denies the set_cursor_icon command without any pre-configured scope.", 1496 | "type": "string", 1497 | "const": "core:window:deny-set-cursor-icon" 1498 | }, 1499 | { 1500 | "description": "Denies the set_cursor_position command without any pre-configured scope.", 1501 | "type": "string", 1502 | "const": "core:window:deny-set-cursor-position" 1503 | }, 1504 | { 1505 | "description": "Denies the set_cursor_visible command without any pre-configured scope.", 1506 | "type": "string", 1507 | "const": "core:window:deny-set-cursor-visible" 1508 | }, 1509 | { 1510 | "description": "Denies the set_decorations command without any pre-configured scope.", 1511 | "type": "string", 1512 | "const": "core:window:deny-set-decorations" 1513 | }, 1514 | { 1515 | "description": "Denies the set_effects command without any pre-configured scope.", 1516 | "type": "string", 1517 | "const": "core:window:deny-set-effects" 1518 | }, 1519 | { 1520 | "description": "Denies the set_enabled command without any pre-configured scope.", 1521 | "type": "string", 1522 | "const": "core:window:deny-set-enabled" 1523 | }, 1524 | { 1525 | "description": "Denies the set_focus command without any pre-configured scope.", 1526 | "type": "string", 1527 | "const": "core:window:deny-set-focus" 1528 | }, 1529 | { 1530 | "description": "Denies the set_fullscreen command without any pre-configured scope.", 1531 | "type": "string", 1532 | "const": "core:window:deny-set-fullscreen" 1533 | }, 1534 | { 1535 | "description": "Denies the set_icon command without any pre-configured scope.", 1536 | "type": "string", 1537 | "const": "core:window:deny-set-icon" 1538 | }, 1539 | { 1540 | "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.", 1541 | "type": "string", 1542 | "const": "core:window:deny-set-ignore-cursor-events" 1543 | }, 1544 | { 1545 | "description": "Denies the set_max_size command without any pre-configured scope.", 1546 | "type": "string", 1547 | "const": "core:window:deny-set-max-size" 1548 | }, 1549 | { 1550 | "description": "Denies the set_maximizable command without any pre-configured scope.", 1551 | "type": "string", 1552 | "const": "core:window:deny-set-maximizable" 1553 | }, 1554 | { 1555 | "description": "Denies the set_min_size command without any pre-configured scope.", 1556 | "type": "string", 1557 | "const": "core:window:deny-set-min-size" 1558 | }, 1559 | { 1560 | "description": "Denies the set_minimizable command without any pre-configured scope.", 1561 | "type": "string", 1562 | "const": "core:window:deny-set-minimizable" 1563 | }, 1564 | { 1565 | "description": "Denies the set_position command without any pre-configured scope.", 1566 | "type": "string", 1567 | "const": "core:window:deny-set-position" 1568 | }, 1569 | { 1570 | "description": "Denies the set_progress_bar command without any pre-configured scope.", 1571 | "type": "string", 1572 | "const": "core:window:deny-set-progress-bar" 1573 | }, 1574 | { 1575 | "description": "Denies the set_resizable command without any pre-configured scope.", 1576 | "type": "string", 1577 | "const": "core:window:deny-set-resizable" 1578 | }, 1579 | { 1580 | "description": "Denies the set_shadow command without any pre-configured scope.", 1581 | "type": "string", 1582 | "const": "core:window:deny-set-shadow" 1583 | }, 1584 | { 1585 | "description": "Denies the set_size command without any pre-configured scope.", 1586 | "type": "string", 1587 | "const": "core:window:deny-set-size" 1588 | }, 1589 | { 1590 | "description": "Denies the set_size_constraints command without any pre-configured scope.", 1591 | "type": "string", 1592 | "const": "core:window:deny-set-size-constraints" 1593 | }, 1594 | { 1595 | "description": "Denies the set_skip_taskbar command without any pre-configured scope.", 1596 | "type": "string", 1597 | "const": "core:window:deny-set-skip-taskbar" 1598 | }, 1599 | { 1600 | "description": "Denies the set_theme command without any pre-configured scope.", 1601 | "type": "string", 1602 | "const": "core:window:deny-set-theme" 1603 | }, 1604 | { 1605 | "description": "Denies the set_title command without any pre-configured scope.", 1606 | "type": "string", 1607 | "const": "core:window:deny-set-title" 1608 | }, 1609 | { 1610 | "description": "Denies the set_title_bar_style command without any pre-configured scope.", 1611 | "type": "string", 1612 | "const": "core:window:deny-set-title-bar-style" 1613 | }, 1614 | { 1615 | "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.", 1616 | "type": "string", 1617 | "const": "core:window:deny-set-visible-on-all-workspaces" 1618 | }, 1619 | { 1620 | "description": "Denies the show command without any pre-configured scope.", 1621 | "type": "string", 1622 | "const": "core:window:deny-show" 1623 | }, 1624 | { 1625 | "description": "Denies the start_dragging command without any pre-configured scope.", 1626 | "type": "string", 1627 | "const": "core:window:deny-start-dragging" 1628 | }, 1629 | { 1630 | "description": "Denies the start_resize_dragging command without any pre-configured scope.", 1631 | "type": "string", 1632 | "const": "core:window:deny-start-resize-dragging" 1633 | }, 1634 | { 1635 | "description": "Denies the theme command without any pre-configured scope.", 1636 | "type": "string", 1637 | "const": "core:window:deny-theme" 1638 | }, 1639 | { 1640 | "description": "Denies the title command without any pre-configured scope.", 1641 | "type": "string", 1642 | "const": "core:window:deny-title" 1643 | }, 1644 | { 1645 | "description": "Denies the toggle_maximize command without any pre-configured scope.", 1646 | "type": "string", 1647 | "const": "core:window:deny-toggle-maximize" 1648 | }, 1649 | { 1650 | "description": "Denies the unmaximize command without any pre-configured scope.", 1651 | "type": "string", 1652 | "const": "core:window:deny-unmaximize" 1653 | }, 1654 | { 1655 | "description": "Denies the unminimize command without any pre-configured scope.", 1656 | "type": "string", 1657 | "const": "core:window:deny-unminimize" 1658 | } 1659 | ] 1660 | }, 1661 | "Value": { 1662 | "description": "All supported ACL values.", 1663 | "anyOf": [ 1664 | { 1665 | "description": "Represents a null JSON value.", 1666 | "type": "null" 1667 | }, 1668 | { 1669 | "description": "Represents a [`bool`].", 1670 | "type": "boolean" 1671 | }, 1672 | { 1673 | "description": "Represents a valid ACL [`Number`].", 1674 | "allOf": [ 1675 | { 1676 | "$ref": "#/definitions/Number" 1677 | } 1678 | ] 1679 | }, 1680 | { 1681 | "description": "Represents a [`String`].", 1682 | "type": "string" 1683 | }, 1684 | { 1685 | "description": "Represents a list of other [`Value`]s.", 1686 | "type": "array", 1687 | "items": { 1688 | "$ref": "#/definitions/Value" 1689 | } 1690 | }, 1691 | { 1692 | "description": "Represents a map of [`String`] keys to [`Value`]s.", 1693 | "type": "object", 1694 | "additionalProperties": { 1695 | "$ref": "#/definitions/Value" 1696 | } 1697 | } 1698 | ] 1699 | }, 1700 | "Number": { 1701 | "description": "A valid ACL number.", 1702 | "anyOf": [ 1703 | { 1704 | "description": "Represents an [`i64`].", 1705 | "type": "integer", 1706 | "format": "int64" 1707 | }, 1708 | { 1709 | "description": "Represents a [`f64`].", 1710 | "type": "number", 1711 | "format": "double" 1712 | } 1713 | ] 1714 | }, 1715 | "Target": { 1716 | "description": "Platform target.", 1717 | "oneOf": [ 1718 | { 1719 | "description": "MacOS.", 1720 | "type": "string", 1721 | "enum": [ 1722 | "macOS" 1723 | ] 1724 | }, 1725 | { 1726 | "description": "Windows.", 1727 | "type": "string", 1728 | "enum": [ 1729 | "windows" 1730 | ] 1731 | }, 1732 | { 1733 | "description": "Linux.", 1734 | "type": "string", 1735 | "enum": [ 1736 | "linux" 1737 | ] 1738 | }, 1739 | { 1740 | "description": "Android.", 1741 | "type": "string", 1742 | "enum": [ 1743 | "android" 1744 | ] 1745 | }, 1746 | { 1747 | "description": "iOS.", 1748 | "type": "string", 1749 | "enum": [ 1750 | "iOS" 1751 | ] 1752 | } 1753 | ] 1754 | } 1755 | } 1756 | } -------------------------------------------------------------------------------- /src-tauri/icons/128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/128x128.png -------------------------------------------------------------------------------- /src-tauri/icons/128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/128x128@2x.png -------------------------------------------------------------------------------- /src-tauri/icons/32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/32x32.png -------------------------------------------------------------------------------- /src-tauri/icons/Square107x107Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square107x107Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square142x142Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square142x142Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square150x150Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square150x150Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square284x284Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square284x284Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square30x30Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square30x30Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square310x310Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square310x310Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square44x44Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square44x44Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square71x71Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square71x71Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/Square89x89Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/Square89x89Logo.png -------------------------------------------------------------------------------- /src-tauri/icons/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/StoreLogo.png -------------------------------------------------------------------------------- /src-tauri/icons/icon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/icon.icns -------------------------------------------------------------------------------- /src-tauri/icons/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/icon.ico -------------------------------------------------------------------------------- /src-tauri/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clearlysid/tauri-wgpu-cam/0a2ee1cdf729114a8c26b775d291584b28cc20b6/src-tauri/icons/icon.png -------------------------------------------------------------------------------- /src-tauri/src/main.rs: -------------------------------------------------------------------------------- 1 | // Prevents additional console window on Windows in release, DO NOT REMOVE!! 2 | #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] 3 | 4 | mod utils; 5 | mod webgpu; 6 | 7 | use nokhwa::{pixel_format::RgbAFormat, Buffer}; 8 | use std::{sync::Arc, time::Instant}; 9 | use tauri::{async_runtime, Manager, RunEvent, WindowEvent}; 10 | use webgpu::WgpuState; 11 | 12 | fn main() { 13 | tauri::Builder::default() 14 | .setup(|app| { 15 | // Get the main window 16 | let window = app.get_webview_window("main").unwrap(); 17 | 18 | // Create a WgpuState (containing the device, instance, adapter etc.) 19 | // And store it in the state 20 | let wgpu_state = async_runtime::block_on(WgpuState::new(window)); 21 | app.manage(Arc::new(wgpu_state)); 22 | 23 | // Create a channel for sending/receiving buffers from the camera 24 | let (tx, rx) = std::sync::mpsc::channel::(); 25 | 26 | let app_handle = app.app_handle().clone(); 27 | 28 | // Spawn a thread for the camera 29 | async_runtime::spawn(async move { 30 | let mut camera = utils::create_camera(); 31 | 32 | camera.open_stream().expect("Could not open stream"); 33 | 34 | std::thread::sleep(std::time::Duration::from_secs(1)); 35 | 36 | for i in 0..1000 { 37 | let buffer = camera.frame().expect("Could not get frame"); 38 | tx.send(buffer).expect("Could not send buffer"); 39 | println!("Frame {i} sent"); 40 | } 41 | 42 | camera.stop_stream().expect("Could not stop stream"); 43 | println!("Camera Stream Stopped"); 44 | }); 45 | 46 | async_runtime::spawn(async move { 47 | let wgpu_state = app_handle.state::>(); 48 | 49 | while let Ok(buffer) = rx.recv() { 50 | let t = Instant::now(); 51 | 52 | let bytes = buffer.buffer(); 53 | let width = buffer.resolution().width(); 54 | let height = buffer.resolution().height(); 55 | 56 | // TODO: this step is very slow 57 | // let bytes = buffer 58 | // .decode_image::() 59 | // .expect("Could not decode frame"); 60 | 61 | let bytes = utils::yuyv_to_rgba(bytes, width as usize, height as usize); 62 | 63 | println!("Decoding took: {}ms", t.elapsed().as_millis()); 64 | 65 | let texture_size = wgpu::Extent3d { 66 | width, 67 | height, 68 | depth_or_array_layers: 1, 69 | }; 70 | 71 | let texture = wgpu_state.device.create_texture(&wgpu::TextureDescriptor { 72 | label: None, 73 | sample_count: 1, 74 | mip_level_count: 1, 75 | size: texture_size, 76 | dimension: wgpu::TextureDimension::D2, 77 | format: wgpu::TextureFormat::Rgba8UnormSrgb, 78 | usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, 79 | view_formats: &[], 80 | }); 81 | 82 | wgpu_state.queue.write_texture( 83 | wgpu::ImageCopyTexture { 84 | texture: &texture, 85 | mip_level: 0, 86 | origin: wgpu::Origin3d::ZERO, 87 | aspect: wgpu::TextureAspect::All, 88 | }, 89 | &bytes, 90 | wgpu::ImageDataLayout { 91 | offset: 0, 92 | bytes_per_row: Some(4 * width), 93 | rows_per_image: Some(height), 94 | }, 95 | texture_size, 96 | ); 97 | 98 | let texture_view = texture.create_view(&wgpu::TextureViewDescriptor::default()); 99 | let bind_group = 100 | wgpu_state 101 | .device 102 | .create_bind_group(&wgpu::BindGroupDescriptor { 103 | layout: &wgpu_state.bind_group_layout, 104 | entries: &[ 105 | wgpu::BindGroupEntry { 106 | binding: 0, 107 | resource: wgpu::BindingResource::TextureView(&texture_view), 108 | }, 109 | wgpu::BindGroupEntry { 110 | binding: 1, 111 | resource: wgpu::BindingResource::Sampler( 112 | &wgpu_state.sampler, 113 | ), 114 | }, 115 | ], 116 | label: None, 117 | }); 118 | 119 | let output = wgpu_state 120 | .surface 121 | .get_current_texture() 122 | .expect("Failed to acquire next swap chain texture"); 123 | let view = output 124 | .texture 125 | .create_view(&wgpu::TextureViewDescriptor::default()); 126 | 127 | let mut encoder = wgpu_state 128 | .device 129 | .create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None }); 130 | { 131 | let mut rpass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor { 132 | label: None, 133 | color_attachments: &[Some(wgpu::RenderPassColorAttachment { 134 | view: &view, 135 | resolve_target: None, 136 | ops: wgpu::Operations { 137 | load: wgpu::LoadOp::Clear(wgpu::Color::GREEN), 138 | store: wgpu::StoreOp::Store, 139 | }, 140 | })], 141 | depth_stencil_attachment: None, 142 | timestamp_writes: None, 143 | occlusion_query_set: None, 144 | }); 145 | rpass.set_pipeline(&wgpu_state.render_pipeline); 146 | rpass.set_bind_group(0, &bind_group, &[]); 147 | rpass.draw(0..6, 0..1); 148 | } 149 | 150 | wgpu_state.queue.submit(Some(encoder.finish())); 151 | output.present(); 152 | 153 | println!("Frame rendered in: {}ms", t.elapsed().as_millis()); 154 | } 155 | }); 156 | 157 | Ok(()) 158 | }) 159 | .invoke_handler(tauri::generate_handler![]) 160 | .build(tauri::generate_context!()) 161 | .expect("error while building tauri application") 162 | .run(|app_handle, event| { 163 | match event { 164 | RunEvent::WebviewEvent { label, event, .. } => { 165 | println!("Received event from {}: {:?}", label, event); 166 | } 167 | RunEvent::WindowEvent { 168 | label: _, 169 | event: WindowEvent::Resized(size), 170 | .. 171 | } => { 172 | let wgpu_state = app_handle.state::>(); 173 | 174 | let mut config = wgpu_state.config.lock().unwrap(); 175 | config.width = size.width.max(1); 176 | config.height = size.height.max(1); 177 | wgpu_state.surface.configure(&wgpu_state.device, &config); 178 | 179 | // TODO: Request redraw on macos (not exposed in tauri yet). 180 | } 181 | _ => (), 182 | } 183 | }); 184 | } 185 | -------------------------------------------------------------------------------- /src-tauri/src/shader.wgsl: -------------------------------------------------------------------------------- 1 | @group(0) @binding(0) var my_texture: texture_2d; 2 | @group(0) @binding(1) var my_sampler: sampler; 3 | 4 | struct VertexOutput { 5 | @builtin(position) position: vec4, 6 | @location(0) tex_coords: vec2, 7 | }; 8 | 9 | @vertex 10 | fn vs_main(@builtin(vertex_index) in_vertex_index: u32) -> VertexOutput { 11 | var out: VertexOutput; 12 | 13 | // Determine vertex position and texture coordinates based on the vertex index 14 | switch (in_vertex_index) { 15 | case 0u: { 16 | out.position = vec4(-1.0, -1.0, 0.0, 1.0); // Bottom-left 17 | out.tex_coords = vec2(0.0, 1.0); 18 | } 19 | case 1u: { 20 | out.position = vec4(1.0, -1.0, 0.0, 1.0); // Bottom-right 21 | out.tex_coords = vec2(1.0, 1.0); 22 | } 23 | case 2u: { 24 | out.position = vec4(-1.0, 1.0, 0.0, 1.0); // Top-left 25 | out.tex_coords = vec2(0.0, 0.0); 26 | } 27 | case 3u: { 28 | out.position = vec4(1.0, -1.0, 0.0, 1.0); // Bottom-right (shared with previous triangle) 29 | out.tex_coords = vec2(1.0, 1.0); 30 | } 31 | case 4u: { 32 | out.position = vec4(-1.0, 1.0, 0.0, 1.0); // Top-left (shared with previous triangle) 33 | out.tex_coords = vec2(0.0, 0.0); 34 | } 35 | case 5u: { 36 | out.position = vec4(1.0, 1.0, 0.0, 1.0); // Top-right 37 | out.tex_coords = vec2(1.0, 0.0); 38 | } 39 | default: { 40 | // Default case to handle unexpected indices 41 | out.position = vec4(0.0, 0.0, 0.0, 1.0); 42 | out.tex_coords = vec2(0.0, 0.0); 43 | } 44 | } 45 | 46 | return out; 47 | } 48 | 49 | @fragment 50 | fn fs_main(@location(0) in_tex_coords: vec2) -> @location(0) vec4 { 51 | return textureSample(my_texture, my_sampler, in_tex_coords); 52 | } 53 | -------------------------------------------------------------------------------- /src-tauri/src/utils.rs: -------------------------------------------------------------------------------- 1 | use nokhwa::pixel_format::RgbAFormat; 2 | use nokhwa::utils::{RequestedFormat, RequestedFormatType, Resolution}; 3 | use nokhwa::{native_api_backend, query, Camera}; 4 | 5 | use rayon::prelude::*; 6 | 7 | pub fn create_camera() -> Camera { 8 | let backend = native_api_backend().expect("Could not get backend"); 9 | let devices = query(backend).expect("Could not query backend"); 10 | let device = devices.first().expect("No devices found"); 11 | 12 | let format = 13 | RequestedFormat::new::(RequestedFormatType::HighestResolution(Resolution { 14 | width_x: 1280, 15 | height_y: 720, 16 | })); 17 | 18 | Camera::new(device.index().to_owned(), format).expect("Could not create camera") 19 | } 20 | 21 | /// HIGH PERFORMANCE DECODING 22 | pub fn yuyv_to_rgba(yuyv: &[u8], width: usize, height: usize) -> Vec { 23 | let pixel_count = width * height; 24 | let mut rgba = vec![0u8; pixel_count * 4]; 25 | 26 | rgba.par_chunks_exact_mut(4) 27 | .enumerate() 28 | .for_each(|(i, chunk)| { 29 | let yuyv_index = (i / 2) * 4; 30 | let y = if i % 2 == 0 { 31 | yuyv[yuyv_index] 32 | } else { 33 | yuyv[yuyv_index + 2] 34 | }; 35 | let u = yuyv[yuyv_index + 1]; 36 | let v = yuyv[yuyv_index + 3]; 37 | 38 | let c = y as f32 - 16.0; 39 | let d = u as f32 - 128.0; 40 | let e = v as f32 - 128.0; 41 | 42 | let r = (298.0 * c + 409.0 * e + 128.0) / 256.0; 43 | let g = (298.0 * c - 100.0 * d - 208.0 * e + 128.0) / 256.0; 44 | let b = (298.0 * c + 516.0 * d + 128.0) / 256.0; 45 | 46 | chunk[0] = r.clamp(0.0, 255.0) as u8; 47 | chunk[1] = g.clamp(0.0, 255.0) as u8; 48 | chunk[2] = b.clamp(0.0, 255.0) as u8; 49 | chunk[3] = 255; // Alpha channel (fully opaque) 50 | }); 51 | 52 | rgba 53 | } 54 | -------------------------------------------------------------------------------- /src-tauri/src/webgpu.rs: -------------------------------------------------------------------------------- 1 | use std::sync::Mutex; 2 | use tauri::WebviewWindow; 3 | 4 | pub struct WgpuState<'win> { 5 | pub queue: wgpu::Queue, 6 | pub device: wgpu::Device, 7 | pub sampler: wgpu::Sampler, 8 | pub surface: wgpu::Surface<'win>, 9 | pub render_pipeline: wgpu::RenderPipeline, 10 | pub bind_group_layout: wgpu::BindGroupLayout, 11 | pub config: Mutex, 12 | } 13 | 14 | impl WgpuState<'_> { 15 | pub async fn new(window: WebviewWindow) -> Self { 16 | let size = window.inner_size().unwrap(); 17 | let instance = wgpu::Instance::default(); 18 | let surface = instance.create_surface(window).unwrap(); 19 | let adapter = instance 20 | .request_adapter(&wgpu::RequestAdapterOptions { 21 | power_preference: wgpu::PowerPreference::default(), 22 | force_fallback_adapter: false, 23 | compatible_surface: Some(&surface), 24 | }) 25 | .await 26 | .expect("Failed to find an appropriate adapter"); 27 | 28 | let (device, queue) = adapter 29 | .request_device( 30 | &wgpu::DeviceDescriptor { 31 | label: None, 32 | required_features: wgpu::Features::empty(), 33 | required_limits: wgpu::Limits::downlevel_webgl2_defaults() 34 | .using_resolution(adapter.limits()), 35 | }, 36 | None, 37 | ) 38 | .await 39 | .expect("Failed to create device"); 40 | 41 | let shader = device.create_shader_module(wgpu::include_wgsl!("shader.wgsl")); 42 | 43 | let sampler = device.create_sampler(&wgpu::SamplerDescriptor { 44 | mag_filter: wgpu::FilterMode::Linear, 45 | min_filter: wgpu::FilterMode::Linear, 46 | mipmap_filter: wgpu::FilterMode::Nearest, 47 | address_mode_u: wgpu::AddressMode::ClampToEdge, 48 | address_mode_v: wgpu::AddressMode::ClampToEdge, 49 | address_mode_w: wgpu::AddressMode::ClampToEdge, 50 | ..Default::default() 51 | }); 52 | 53 | let bind_group_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor { 54 | entries: &[ 55 | wgpu::BindGroupLayoutEntry { 56 | binding: 0, 57 | visibility: wgpu::ShaderStages::FRAGMENT, 58 | ty: wgpu::BindingType::Texture { 59 | multisampled: false, 60 | view_dimension: wgpu::TextureViewDimension::D2, 61 | sample_type: wgpu::TextureSampleType::Float { filterable: true }, 62 | }, 63 | count: None, 64 | }, 65 | wgpu::BindGroupLayoutEntry { 66 | binding: 1, 67 | visibility: wgpu::ShaderStages::FRAGMENT, 68 | ty: wgpu::BindingType::Sampler(wgpu::SamplerBindingType::Filtering), 69 | count: None, 70 | }, 71 | ], 72 | label: Some("bind_group_layout"), 73 | }); 74 | 75 | let pipeline_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { 76 | label: None, 77 | push_constant_ranges: &[], 78 | bind_group_layouts: &[&bind_group_layout], 79 | }); 80 | 81 | let swapchain_capabilities = surface.get_capabilities(&adapter); 82 | let swapchain_format = swapchain_capabilities.formats[0]; 83 | 84 | let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { 85 | label: None, 86 | layout: Some(&pipeline_layout), 87 | vertex: wgpu::VertexState { 88 | module: &shader, 89 | entry_point: "vs_main", 90 | buffers: &[], 91 | compilation_options: wgpu::PipelineCompilationOptions::default(), 92 | }, 93 | fragment: Some(wgpu::FragmentState { 94 | module: &shader, 95 | entry_point: "fs_main", 96 | targets: &[Some(swapchain_format.into())], 97 | compilation_options: wgpu::PipelineCompilationOptions::default(), 98 | }), 99 | primitive: wgpu::PrimitiveState::default(), 100 | multisample: wgpu::MultisampleState::default(), 101 | depth_stencil: None, 102 | multiview: None, 103 | }); 104 | 105 | let config = wgpu::SurfaceConfiguration { 106 | width: size.width, 107 | height: size.height, 108 | format: swapchain_format, 109 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, 110 | present_mode: wgpu::PresentMode::Fifo, 111 | alpha_mode: swapchain_capabilities.alpha_modes[0], 112 | view_formats: vec![], 113 | desired_maximum_frame_latency: 2, 114 | }; 115 | 116 | surface.configure(&device, &config); 117 | 118 | Self { 119 | device, 120 | queue, 121 | surface, 122 | render_pipeline, 123 | config: Mutex::new(config), 124 | sampler, 125 | bind_group_layout, 126 | } 127 | } 128 | } 129 | -------------------------------------------------------------------------------- /src-tauri/tauri.conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "beforeDevCommand": "pnpm dev", 4 | "beforeBuildCommand": "pnpm build", 5 | "devUrl": "http://localhost:1420", 6 | "frontendDist": "../dist" 7 | }, 8 | "identifier": "com.tauri.alpha", 9 | "bundle": { 10 | "active": false, 11 | "targets": "all", 12 | "icon": [ 13 | "icons/32x32.png", 14 | "icons/128x128.png", 15 | "icons/128x128@2x.png", 16 | "icons/icon.icns", 17 | "icons/icon.ico" 18 | ] 19 | }, 20 | "app": { 21 | "macOSPrivateApi": true, 22 | "withGlobalTauri": true, 23 | "windows": [ 24 | { 25 | "fullscreen": false, 26 | "resizable": true, 27 | "title": "Tauri WGPU Camera Demo", 28 | "width": 640, 29 | "height": 360, 30 | "decorations": true, 31 | "transparent": true, 32 | "hiddenTitle": true, 33 | "titleBarStyle": "Overlay" 34 | } 35 | ], 36 | "security": {} 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/assets/tauri.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/typescript.svg: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 8 | 10 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/assets/vite.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | let greetInputEl: HTMLInputElement | null; 2 | let greetMsgEl: HTMLElement | null; 3 | 4 | window.addEventListener("DOMContentLoaded", () => { 5 | greetInputEl = document.querySelector("#greet-input"); 6 | greetMsgEl = document.querySelector("#greet-msg"); 7 | document.querySelector("#greet-form")?.addEventListener("submit", (e) => { 8 | e.preventDefault(); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-family: Inter, Avenir, Helvetica, Arial, sans-serif; 3 | font-size: 16px; 4 | line-height: 24px; 5 | font-weight: 400; 6 | 7 | color: #0f0f0f; 8 | background-color: #f6f6f6; 9 | 10 | font-synthesis: none; 11 | text-rendering: optimizeLegibility; 12 | -webkit-font-smoothing: antialiased; 13 | -moz-osx-font-smoothing: grayscale; 14 | -webkit-text-size-adjust: 100%; 15 | } 16 | 17 | .container { 18 | margin: 0; 19 | padding-top: 10vh; 20 | display: flex; 21 | flex-direction: column; 22 | justify-content: center; 23 | text-align: center; 24 | } 25 | 26 | .logo { 27 | height: 6em; 28 | padding: 1.5em; 29 | will-change: filter; 30 | transition: 0.75s; 31 | } 32 | 33 | .logo.tauri:hover { 34 | filter: drop-shadow(0 0 2em #24c8db); 35 | } 36 | 37 | .row { 38 | display: flex; 39 | justify-content: center; 40 | } 41 | 42 | a { 43 | font-weight: 500; 44 | color: #646cff; 45 | text-decoration: inherit; 46 | } 47 | 48 | a:hover { 49 | color: #535bf2; 50 | } 51 | 52 | h1 { 53 | text-align: center; 54 | } 55 | 56 | input, 57 | button { 58 | border-radius: 8px; 59 | border: 1px solid transparent; 60 | padding: 0.6em 1.2em; 61 | font-size: 1em; 62 | font-weight: 500; 63 | font-family: inherit; 64 | color: #0f0f0f; 65 | background-color: #ffffff; 66 | transition: border-color 0.25s; 67 | box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); 68 | } 69 | 70 | button { 71 | cursor: pointer; 72 | } 73 | 74 | button:hover { 75 | border-color: #396cd8; 76 | } 77 | button:active { 78 | border-color: #396cd8; 79 | background-color: #e8e8e8; 80 | } 81 | 82 | input, 83 | button { 84 | outline: none; 85 | } 86 | 87 | #greet-input { 88 | margin-right: 5px; 89 | } 90 | 91 | @media (prefers-color-scheme: dark) { 92 | :root { 93 | color: #f6f6f6; 94 | background-color: #2f2f2f; 95 | } 96 | 97 | a:hover { 98 | color: #24c8db; 99 | } 100 | 101 | input, 102 | button { 103 | color: #ffffff; 104 | background-color: #0f0f0f98; 105 | } 106 | button:active { 107 | background-color: #0f0f0f69; 108 | } 109 | } 110 | 111 | * { 112 | background-color: transparent !important; 113 | } 114 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2020", 4 | "useDefineForClassFields": true, 5 | "module": "ESNext", 6 | "lib": ["ES2020", "DOM", "DOM.Iterable"], 7 | "skipLibCheck": true, 8 | 9 | /* Bundler mode */ 10 | "moduleResolution": "bundler", 11 | "allowImportingTsExtensions": true, 12 | "resolveJsonModule": true, 13 | "isolatedModules": true, 14 | "noEmit": true, 15 | 16 | /* Linting */ 17 | "strict": true, 18 | "noUnusedLocals": true, 19 | "noUnusedParameters": true, 20 | "noFallthroughCasesInSwitch": true 21 | }, 22 | "include": ["src"] 23 | } 24 | -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | 3 | // https://vitejs.dev/config/ 4 | export default defineConfig(async () => ({ 5 | 6 | // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build` 7 | // 8 | // 1. prevent vite from obscuring rust errors 9 | clearScreen: false, 10 | // 2. tauri expects a fixed port, fail if that port is not available 11 | server: { 12 | port: 1420, 13 | strictPort: true, 14 | } 15 | })); 16 | --------------------------------------------------------------------------------