first commit
7
README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Tauri + SvelteKit
|
||||||
|
|
||||||
|
This template should help get you started developing with Tauri and SvelteKit in Vite.
|
||||||
|
|
||||||
|
## Recommended IDE Setup
|
||||||
|
|
||||||
|
[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer).
|
||||||
514
bun.lock
Normal file
@ -0,0 +1,514 @@
|
|||||||
|
{
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"workspaces": {
|
||||||
|
"": {
|
||||||
|
"name": "smoothie",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2",
|
||||||
|
"@tauri-apps/plugin-dialog": "~2",
|
||||||
|
"@tauri-apps/plugin-fs": "~2",
|
||||||
|
"@tauri-apps/plugin-http": "^2.5.7",
|
||||||
|
"@tauri-apps/plugin-notification": "~2",
|
||||||
|
"@tauri-apps/plugin-opener": "^2",
|
||||||
|
"@tauri-apps/plugin-os": "^2.3.2",
|
||||||
|
"@tauri-apps/plugin-shell": "~2",
|
||||||
|
"@tauri-apps/plugin-store": "~2",
|
||||||
|
"@tauri-apps/plugin-upload": "~2",
|
||||||
|
"@tauri-apps/plugin-window-state": "~2",
|
||||||
|
"@webtui/css": "^0.1.6",
|
||||||
|
"svelte-splitpanes": "^8.0.12",
|
||||||
|
"svelte-tabs": "^1.1.0",
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/compat": "^2.0.2",
|
||||||
|
"@eslint/js": "^9.39.2",
|
||||||
|
"@sveltejs/adapter-static": "^3.0.6",
|
||||||
|
"@sveltejs/kit": "^2.9.0",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||||
|
"@tauri-apps/cli": "^2",
|
||||||
|
"@types/node": "^22",
|
||||||
|
"eslint": "^9.39.2",
|
||||||
|
"eslint-config-prettier": "^10.1.8",
|
||||||
|
"eslint-plugin-svelte": "^3.14.0",
|
||||||
|
"globals": "^17.3.0",
|
||||||
|
"prettier": "^3.8.1",
|
||||||
|
"prettier-plugin-svelte": "^3.4.1",
|
||||||
|
"svelte": "^5.0.0",
|
||||||
|
"svelte-check": "^4.0.0",
|
||||||
|
"typescript": "~5.6.2",
|
||||||
|
"vite": "^6.0.3",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.25.12", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA=="],
|
||||||
|
|
||||||
|
"@esbuild/android-arm": ["@esbuild/android-arm@0.25.12", "", { "os": "android", "cpu": "arm" }, "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg=="],
|
||||||
|
|
||||||
|
"@esbuild/android-arm64": ["@esbuild/android-arm64@0.25.12", "", { "os": "android", "cpu": "arm64" }, "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg=="],
|
||||||
|
|
||||||
|
"@esbuild/android-x64": ["@esbuild/android-x64@0.25.12", "", { "os": "android", "cpu": "x64" }, "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg=="],
|
||||||
|
|
||||||
|
"@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.25.12", "", { "os": "darwin", "cpu": "arm64" }, "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg=="],
|
||||||
|
|
||||||
|
"@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.25.12", "", { "os": "darwin", "cpu": "x64" }, "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA=="],
|
||||||
|
|
||||||
|
"@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.25.12", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg=="],
|
||||||
|
|
||||||
|
"@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.25.12", "", { "os": "freebsd", "cpu": "x64" }, "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-arm": ["@esbuild/linux-arm@0.25.12", "", { "os": "linux", "cpu": "arm" }, "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.25.12", "", { "os": "linux", "cpu": "arm64" }, "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.25.12", "", { "os": "linux", "cpu": "ia32" }, "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.25.12", "", { "os": "linux", "cpu": "none" }, "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.25.12", "", { "os": "linux", "cpu": "none" }, "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.25.12", "", { "os": "linux", "cpu": "ppc64" }, "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.25.12", "", { "os": "linux", "cpu": "none" }, "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.25.12", "", { "os": "linux", "cpu": "s390x" }, "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg=="],
|
||||||
|
|
||||||
|
"@esbuild/linux-x64": ["@esbuild/linux-x64@0.25.12", "", { "os": "linux", "cpu": "x64" }, "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw=="],
|
||||||
|
|
||||||
|
"@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.25.12", "", { "os": "none", "cpu": "arm64" }, "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg=="],
|
||||||
|
|
||||||
|
"@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.25.12", "", { "os": "none", "cpu": "x64" }, "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ=="],
|
||||||
|
|
||||||
|
"@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.25.12", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A=="],
|
||||||
|
|
||||||
|
"@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.25.12", "", { "os": "openbsd", "cpu": "x64" }, "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw=="],
|
||||||
|
|
||||||
|
"@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.25.12", "", { "os": "none", "cpu": "arm64" }, "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg=="],
|
||||||
|
|
||||||
|
"@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.25.12", "", { "os": "sunos", "cpu": "x64" }, "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w=="],
|
||||||
|
|
||||||
|
"@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.25.12", "", { "os": "win32", "cpu": "arm64" }, "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg=="],
|
||||||
|
|
||||||
|
"@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.25.12", "", { "os": "win32", "cpu": "ia32" }, "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ=="],
|
||||||
|
|
||||||
|
"@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.12", "", { "os": "win32", "cpu": "x64" }, "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA=="],
|
||||||
|
|
||||||
|
"@eslint-community/eslint-utils": ["@eslint-community/eslint-utils@4.9.1", "", { "dependencies": { "eslint-visitor-keys": "^3.4.3" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ=="],
|
||||||
|
|
||||||
|
"@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.2", "", {}, "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew=="],
|
||||||
|
|
||||||
|
"@eslint/compat": ["@eslint/compat@2.0.2", "", { "dependencies": { "@eslint/core": "^1.1.0" }, "peerDependencies": { "eslint": "^8.40 || 9 || 10" }, "optionalPeers": ["eslint"] }, "sha512-pR1DoD0h3HfF675QZx0xsyrsU8q70Z/plx7880NOhS02NuWLgBCOMDL787nUeQ7EWLkxv3bPQJaarjcPQb2Dwg=="],
|
||||||
|
|
||||||
|
"@eslint/config-array": ["@eslint/config-array@0.21.1", "", { "dependencies": { "@eslint/object-schema": "^2.1.7", "debug": "^4.3.1", "minimatch": "^3.1.2" } }, "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA=="],
|
||||||
|
|
||||||
|
"@eslint/config-helpers": ["@eslint/config-helpers@0.4.2", "", { "dependencies": { "@eslint/core": "^0.17.0" } }, "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw=="],
|
||||||
|
|
||||||
|
"@eslint/core": ["@eslint/core@1.1.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-/nr9K9wkr3P1EzFTdFdMoLuo1PmIxjmwvPozwoSodjNBdefGujXQUF93u1DDZpEaTuDvMsIQddsd35BwtrW9Xw=="],
|
||||||
|
|
||||||
|
"@eslint/eslintrc": ["@eslint/eslintrc@3.3.4", "", { "dependencies": { "ajv": "^6.14.0", "debug": "^4.3.2", "espree": "^10.0.1", "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.1", "minimatch": "^3.1.3", "strip-json-comments": "^3.1.1" } }, "sha512-4h4MVF8pmBsncB60r0wSJiIeUKTSD4m7FmTFThG8RHlsg9ajqckLm9OraguFGZE4vVdpiI1Q4+hFnisopmG6gQ=="],
|
||||||
|
|
||||||
|
"@eslint/js": ["@eslint/js@9.39.3", "", {}, "sha512-1B1VkCq6FuUNlQvlBYb+1jDu/gV297TIs/OeiaSR9l1H27SVW55ONE1e1Vp16NqP683+xEGzxYtv4XCiDPaQiw=="],
|
||||||
|
|
||||||
|
"@eslint/object-schema": ["@eslint/object-schema@2.1.7", "", {}, "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA=="],
|
||||||
|
|
||||||
|
"@eslint/plugin-kit": ["@eslint/plugin-kit@0.4.1", "", { "dependencies": { "@eslint/core": "^0.17.0", "levn": "^0.4.1" } }, "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA=="],
|
||||||
|
|
||||||
|
"@humanfs/core": ["@humanfs/core@0.19.1", "", {}, "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA=="],
|
||||||
|
|
||||||
|
"@humanfs/node": ["@humanfs/node@0.16.7", "", { "dependencies": { "@humanfs/core": "^0.19.1", "@humanwhocodes/retry": "^0.4.0" } }, "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ=="],
|
||||||
|
|
||||||
|
"@humanwhocodes/module-importer": ["@humanwhocodes/module-importer@1.0.1", "", {}, "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA=="],
|
||||||
|
|
||||||
|
"@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="],
|
||||||
|
|
||||||
|
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
|
||||||
|
|
||||||
|
"@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
|
||||||
|
|
||||||
|
"@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
|
||||||
|
|
||||||
|
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
|
||||||
|
|
||||||
|
"@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
|
||||||
|
|
||||||
|
"@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.59.0", "", { "os": "android", "cpu": "arm" }, "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.59.0", "", { "os": "android", "cpu": "arm64" }, "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.59.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.59.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.59.0", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.59.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.59.0", "", { "os": "linux", "cpu": "arm" }, "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.59.0", "", { "os": "linux", "cpu": "arm" }, "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.59.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.59.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-loong64-musl": ["@rollup/rollup-linux-loong64-musl@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.59.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-ppc64-musl": ["@rollup/rollup-linux-ppc64-musl@4.59.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.59.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.59.0", "", { "os": "linux", "cpu": "x64" }, "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.59.0", "", { "os": "linux", "cpu": "x64" }, "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-openbsd-x64": ["@rollup/rollup-openbsd-x64@4.59.0", "", { "os": "openbsd", "cpu": "x64" }, "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.59.0", "", { "os": "none", "cpu": "arm64" }, "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.59.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.59.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.59.0", "", { "os": "win32", "cpu": "x64" }, "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA=="],
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.59.0", "", { "os": "win32", "cpu": "x64" }, "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA=="],
|
||||||
|
|
||||||
|
"@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
|
||||||
|
|
||||||
|
"@sveltejs/acorn-typescript": ["@sveltejs/acorn-typescript@1.0.9", "", { "peerDependencies": { "acorn": "^8.9.0" } }, "sha512-lVJX6qEgs/4DOcRTpo56tmKzVPtoWAaVbL4hfO7t7NVwl9AAXzQR6cihesW1BmNMPl+bK6dreu2sOKBP2Q9CIA=="],
|
||||||
|
|
||||||
|
"@sveltejs/adapter-static": ["@sveltejs/adapter-static@3.0.10", "", { "peerDependencies": { "@sveltejs/kit": "^2.0.0" } }, "sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew=="],
|
||||||
|
|
||||||
|
"@sveltejs/kit": ["@sveltejs/kit@2.53.2", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/cookie": "^0.6.0", "acorn": "^8.14.1", "cookie": "^0.6.0", "devalue": "^5.6.3", "esm-env": "^1.2.2", "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", "set-cookie-parser": "^3.0.0", "sirv": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0", "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": "^5.3.3", "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0" }, "optionalPeers": ["@opentelemetry/api", "typescript"], "bin": { "svelte-kit": "svelte-kit.js" } }, "sha512-M+MqAvFve12T1HWws/2npP/s3hFtyjw3GB/OXW/8a1jZBk48qnvPJrtgE+VOMc3RnjUMxc4mv/vQ73nvj2uNMg=="],
|
||||||
|
|
||||||
|
"@sveltejs/vite-plugin-svelte": ["@sveltejs/vite-plugin-svelte@5.1.1", "", { "dependencies": { "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1", "debug": "^4.4.1", "deepmerge": "^4.3.1", "kleur": "^4.1.5", "magic-string": "^0.30.17", "vitefu": "^1.0.6" }, "peerDependencies": { "svelte": "^5.0.0", "vite": "^6.0.0" } }, "sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ=="],
|
||||||
|
|
||||||
|
"@sveltejs/vite-plugin-svelte-inspector": ["@sveltejs/vite-plugin-svelte-inspector@4.0.1", "", { "dependencies": { "debug": "^4.3.7" }, "peerDependencies": { "@sveltejs/vite-plugin-svelte": "^5.0.0", "svelte": "^5.0.0", "vite": "^6.0.0" } }, "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw=="],
|
||||||
|
|
||||||
|
"@tauri-apps/api": ["@tauri-apps/api@2.10.1", "", {}, "sha512-hKL/jWf293UDSUN09rR69hrToyIXBb8CjGaWC7gfinvnQrBVvnLr08FeFi38gxtugAVyVcTa5/FD/Xnkb1siBw=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli": ["@tauri-apps/cli@2.10.0", "", { "optionalDependencies": { "@tauri-apps/cli-darwin-arm64": "2.10.0", "@tauri-apps/cli-darwin-x64": "2.10.0", "@tauri-apps/cli-linux-arm-gnueabihf": "2.10.0", "@tauri-apps/cli-linux-arm64-gnu": "2.10.0", "@tauri-apps/cli-linux-arm64-musl": "2.10.0", "@tauri-apps/cli-linux-riscv64-gnu": "2.10.0", "@tauri-apps/cli-linux-x64-gnu": "2.10.0", "@tauri-apps/cli-linux-x64-musl": "2.10.0", "@tauri-apps/cli-win32-arm64-msvc": "2.10.0", "@tauri-apps/cli-win32-ia32-msvc": "2.10.0", "@tauri-apps/cli-win32-x64-msvc": "2.10.0" }, "bin": { "tauri": "tauri.js" } }, "sha512-ZwT0T+7bw4+DPCSWzmviwq5XbXlM0cNoleDKOYPFYqcZqeKY31KlpoMW/MOON/tOFBPgi31a2v3w9gliqwL2+Q=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-darwin-arm64": ["@tauri-apps/cli-darwin-arm64@2.10.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-avqHD4HRjrMamE/7R/kzJPcAJnZs0IIS+1nkDP5b+TNBn3py7N2aIo9LIpy+VQq0AkN8G5dDpZtOOBkmWt/zjA=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-darwin-x64": ["@tauri-apps/cli-darwin-x64@2.10.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-keDmlvJRStzVFjZTd0xYkBONLtgBC9eMTpmXnBXzsHuawV2q9PvDo2x6D5mhuoMVrJ9QWjgaPKBBCFks4dK71Q=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-arm-gnueabihf": ["@tauri-apps/cli-linux-arm-gnueabihf@2.10.0", "", { "os": "linux", "cpu": "arm" }, "sha512-e5u0VfLZsMAC9iHaOEANumgl6lfnJx0Dtjkd8IJpysZ8jp0tJ6wrIkto2OzQgzcYyRCKgX72aKE0PFgZputA8g=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-arm64-gnu": ["@tauri-apps/cli-linux-arm64-gnu@2.10.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-YrYYk2dfmBs5m+OIMCrb+JH/oo+4FtlpcrTCgiFYc7vcs6m3QDd1TTyWu0u01ewsCtK2kOdluhr/zKku+KP7HA=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-arm64-musl": ["@tauri-apps/cli-linux-arm64-musl@2.10.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-GUoPdVJmrJRIXFfW3Rkt+eGK9ygOdyISACZfC/bCSfOnGt8kNdQIQr5WRH9QUaTVFIwxMlQyV3m+yXYP+xhSVA=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-riscv64-gnu": ["@tauri-apps/cli-linux-riscv64-gnu@2.10.0", "", { "os": "linux", "cpu": "none" }, "sha512-JO7s3TlSxshwsoKNCDkyvsx5gw2QAs/Y2GbR5UE2d5kkU138ATKoPOtxn8G1fFT1aDW4LH0rYAAfBpGkDyJJnw=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-x64-gnu": ["@tauri-apps/cli-linux-x64-gnu@2.10.0", "", { "os": "linux", "cpu": "x64" }, "sha512-Uvh4SUUp4A6DVRSMWjelww0GnZI3PlVy7VS+DRF5napKuIehVjGl9XD0uKoCoxwAQBLctvipyEK+pDXpJeoHng=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-linux-x64-musl": ["@tauri-apps/cli-linux-x64-musl@2.10.0", "", { "os": "linux", "cpu": "x64" }, "sha512-AP0KRK6bJuTpQ8kMNWvhIpKUkQJfcPFeba7QshOQZjJ8wOS6emwTN4K5g/d3AbCMo0RRdnZWwu67MlmtJyxC1Q=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-win32-arm64-msvc": ["@tauri-apps/cli-win32-arm64-msvc@2.10.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-97DXVU3dJystrq7W41IX+82JEorLNY+3+ECYxvXWqkq7DBN6FsA08x/EFGE8N/b0LTOui9X2dvpGGoeZKKV08g=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-win32-ia32-msvc": ["@tauri-apps/cli-win32-ia32-msvc@2.10.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-EHyQ1iwrWy1CwMalEm9z2a6L5isQ121pe7FcA2xe4VWMJp+GHSDDGvbTv/OPdkt2Lyr7DAZBpZHM6nvlHXEc4A=="],
|
||||||
|
|
||||||
|
"@tauri-apps/cli-win32-x64-msvc": ["@tauri-apps/cli-win32-x64-msvc@2.10.0", "", { "os": "win32", "cpu": "x64" }, "sha512-NTpyQxkpzGmU6ceWBTY2xRIEaS0ZLbVx1HE1zTA3TY/pV3+cPoPPOs+7YScr4IMzXMtOw7tLw5LEXo5oIG3qaQ=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-dialog": ["@tauri-apps/plugin-dialog@2.6.0", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-q4Uq3eY87TdcYzXACiYSPhmpBA76shgmQswGkSVio4C82Sz2W4iehe9TnKYwbq7weHiL88Yw19XZm7v28+Micg=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-fs": ["@tauri-apps/plugin-fs@2.4.5", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-dVxWWGE6VrOxC7/jlhyE+ON/Cc2REJlM35R3PJX3UvFw2XwYhLGQVAIyrehenDdKjotipjYEVc4YjOl3qq90fA=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-http": ["@tauri-apps/plugin-http@2.5.7", "", { "dependencies": { "@tauri-apps/api": "^2.10.1" } }, "sha512-+F2lEH/c9b0zSsOXKq+5hZNcd9F4IIKCK1T17RqMwpCmVnx2aoqY8yIBccCd25HTYUb3j6NPVbRax/m00hKG8A=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-notification": ["@tauri-apps/plugin-notification@2.3.3", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-Zw+ZH18RJb41G4NrfHgIuofJiymusqN+q8fGUIIV7vyCH+5sSn5coqRv/MWB9qETsUs97vmU045q7OyseCV3Qg=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-opener": ["@tauri-apps/plugin-opener@2.5.3", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-CCcUltXMOfUEArbf3db3kCE7Ggy1ExBEBl51Ko2ODJ6GDYHRp1nSNlQm5uNCFY5k7/ufaK5Ib3Du/Zir19IYQQ=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-os": ["@tauri-apps/plugin-os@2.3.2", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-n+nXWeuSeF9wcEsSPmRnBEGrRgOy6jjkSU+UVCOV8YUGKb2erhDOxis7IqRXiRVHhY8XMKks00BJ0OAdkpf6+A=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-shell": ["@tauri-apps/plugin-shell@2.3.5", "", { "dependencies": { "@tauri-apps/api": "^2.10.1" } }, "sha512-jewtULhiQ7lI7+owCKAjc8tYLJr92U16bPOeAa472LHJdgaibLP83NcfAF2e+wkEcA53FxKQAZ7byDzs2eeizg=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-store": ["@tauri-apps/plugin-store@2.4.2", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-0ClHS50Oq9HEvLPhNzTNFxbWVOqoAp3dRvtewQBeqfIQ0z5m3JRnOISIn2ZVPCrQC0MyGyhTS9DWhHjpigQE7A=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-upload": ["@tauri-apps/plugin-upload@2.4.0", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-ebhsqXmiELnpKu2p46EZG14UKxvbVP28BpJBiHzR+quWVrMxm40518PXTDlXXcJUW5CkbmP/6RL5ERSVXBL8sQ=="],
|
||||||
|
|
||||||
|
"@tauri-apps/plugin-window-state": ["@tauri-apps/plugin-window-state@2.4.1", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-OuvdrzyY8Q5Dbzpj+GcrnV1iCeoZbcFdzMjanZMMcAEUNy/6PH5pxZPXpaZLOR7whlzXiuzx0L9EKZbH7zpdRw=="],
|
||||||
|
|
||||||
|
"@types/cookie": ["@types/cookie@0.6.0", "", {}, "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="],
|
||||||
|
|
||||||
|
"@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],
|
||||||
|
|
||||||
|
"@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],
|
||||||
|
|
||||||
|
"@types/node": ["@types/node@22.19.13", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-akNQMv0wW5uyRpD2v2IEyRSZiR+BeGuoB6L310EgGObO44HSMNT8z1xzio28V8qOrgYaopIDNA18YgdXd+qTiw=="],
|
||||||
|
|
||||||
|
"@types/trusted-types": ["@types/trusted-types@2.0.7", "", {}, "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="],
|
||||||
|
|
||||||
|
"@webtui/css": ["@webtui/css@0.1.6", "", {}, "sha512-pYQ7wE5R2ZC4Suj/BtHg5oG1HPhX+RXfFPh/pn8b+Eb+GHmL7rT8RrKkywLgtExNBD0kdqrEDHAr7pjs6PNNBg=="],
|
||||||
|
|
||||||
|
"acorn": ["acorn@8.16.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="],
|
||||||
|
|
||||||
|
"acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="],
|
||||||
|
|
||||||
|
"ajv": ["ajv@6.14.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw=="],
|
||||||
|
|
||||||
|
"ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
|
||||||
|
|
||||||
|
"argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
|
||||||
|
|
||||||
|
"aria-query": ["aria-query@5.3.1", "", {}, "sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g=="],
|
||||||
|
|
||||||
|
"axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="],
|
||||||
|
|
||||||
|
"balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
|
||||||
|
|
||||||
|
"brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="],
|
||||||
|
|
||||||
|
"callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="],
|
||||||
|
|
||||||
|
"chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="],
|
||||||
|
|
||||||
|
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
|
||||||
|
|
||||||
|
"clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
|
||||||
|
|
||||||
|
"color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
|
||||||
|
|
||||||
|
"color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
|
||||||
|
|
||||||
|
"concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],
|
||||||
|
|
||||||
|
"cookie": ["cookie@0.6.0", "", {}, "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="],
|
||||||
|
|
||||||
|
"cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
|
||||||
|
|
||||||
|
"cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="],
|
||||||
|
|
||||||
|
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
||||||
|
|
||||||
|
"deep-is": ["deep-is@0.1.4", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="],
|
||||||
|
|
||||||
|
"deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],
|
||||||
|
|
||||||
|
"devalue": ["devalue@5.6.3", "", {}, "sha512-nc7XjUU/2Lb+SvEFVGcWLiKkzfw8+qHI7zn8WYXKkLMgfGSHbgCEaR6bJpev8Cm6Rmrb19Gfd/tZvGqx9is3wg=="],
|
||||||
|
|
||||||
|
"esbuild": ["esbuild@0.25.12", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.12", "@esbuild/android-arm": "0.25.12", "@esbuild/android-arm64": "0.25.12", "@esbuild/android-x64": "0.25.12", "@esbuild/darwin-arm64": "0.25.12", "@esbuild/darwin-x64": "0.25.12", "@esbuild/freebsd-arm64": "0.25.12", "@esbuild/freebsd-x64": "0.25.12", "@esbuild/linux-arm": "0.25.12", "@esbuild/linux-arm64": "0.25.12", "@esbuild/linux-ia32": "0.25.12", "@esbuild/linux-loong64": "0.25.12", "@esbuild/linux-mips64el": "0.25.12", "@esbuild/linux-ppc64": "0.25.12", "@esbuild/linux-riscv64": "0.25.12", "@esbuild/linux-s390x": "0.25.12", "@esbuild/linux-x64": "0.25.12", "@esbuild/netbsd-arm64": "0.25.12", "@esbuild/netbsd-x64": "0.25.12", "@esbuild/openbsd-arm64": "0.25.12", "@esbuild/openbsd-x64": "0.25.12", "@esbuild/openharmony-arm64": "0.25.12", "@esbuild/sunos-x64": "0.25.12", "@esbuild/win32-arm64": "0.25.12", "@esbuild/win32-ia32": "0.25.12", "@esbuild/win32-x64": "0.25.12" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg=="],
|
||||||
|
|
||||||
|
"escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],
|
||||||
|
|
||||||
|
"eslint": ["eslint@9.39.3", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", "@eslint/config-array": "^0.21.1", "@eslint/config-helpers": "^0.4.2", "@eslint/core": "^0.17.0", "@eslint/eslintrc": "^3.3.1", "@eslint/js": "9.39.3", "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.6", "debug": "^4.3.2", "escape-string-regexp": "^4.0.0", "eslint-scope": "^8.4.0", "eslint-visitor-keys": "^4.2.1", "espree": "^10.4.0", "esquery": "^1.5.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "json-stable-stringify-without-jsonify": "^1.0.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, "peerDependencies": { "jiti": "*" }, "optionalPeers": ["jiti"], "bin": { "eslint": "bin/eslint.js" } }, "sha512-VmQ+sifHUbI/IcSopBCF/HO3YiHQx/AVd3UVyYL6weuwW+HvON9VYn5l6Zl1WZzPWXPNZrSQpxwkkZ/VuvJZzg=="],
|
||||||
|
|
||||||
|
"eslint-config-prettier": ["eslint-config-prettier@10.1.8", "", { "peerDependencies": { "eslint": ">=7.0.0" }, "bin": { "eslint-config-prettier": "bin/cli.js" } }, "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w=="],
|
||||||
|
|
||||||
|
"eslint-plugin-svelte": ["eslint-plugin-svelte@3.15.0", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.6.1", "@jridgewell/sourcemap-codec": "^1.5.0", "esutils": "^2.0.3", "globals": "^16.0.0", "known-css-properties": "^0.37.0", "postcss": "^8.4.49", "postcss-load-config": "^3.1.4", "postcss-safe-parser": "^7.0.0", "semver": "^7.6.3", "svelte-eslint-parser": "^1.4.0" }, "peerDependencies": { "eslint": "^8.57.1 || ^9.0.0 || ^10.0.0", "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" }, "optionalPeers": ["svelte"] }, "sha512-QKB7zqfuB8aChOfBTComgDptMf2yxiJx7FE04nneCmtQzgTHvY8UJkuh8J2Rz7KB9FFV9aTHX6r7rdYGvG8T9Q=="],
|
||||||
|
|
||||||
|
"eslint-scope": ["eslint-scope@8.4.0", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg=="],
|
||||||
|
|
||||||
|
"eslint-visitor-keys": ["eslint-visitor-keys@4.2.1", "", {}, "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ=="],
|
||||||
|
|
||||||
|
"esm-env": ["esm-env@1.2.2", "", {}, "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="],
|
||||||
|
|
||||||
|
"espree": ["espree@10.4.0", "", { "dependencies": { "acorn": "^8.15.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^4.2.1" } }, "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ=="],
|
||||||
|
|
||||||
|
"esquery": ["esquery@1.7.0", "", { "dependencies": { "estraverse": "^5.1.0" } }, "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g=="],
|
||||||
|
|
||||||
|
"esrap": ["esrap@2.2.3", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-8fOS+GIGCQZl/ZIlhl59htOlms6U8NvX6ZYgYHpRU/b6tVSh3uHkOHZikl3D4cMbYM0JlpBe+p/BkZEi8J9XIQ=="],
|
||||||
|
|
||||||
|
"esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="],
|
||||||
|
|
||||||
|
"estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],
|
||||||
|
|
||||||
|
"esutils": ["esutils@2.0.3", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="],
|
||||||
|
|
||||||
|
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
||||||
|
|
||||||
|
"fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="],
|
||||||
|
|
||||||
|
"fast-levenshtein": ["fast-levenshtein@2.0.6", "", {}, "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="],
|
||||||
|
|
||||||
|
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
||||||
|
|
||||||
|
"file-entry-cache": ["file-entry-cache@8.0.0", "", { "dependencies": { "flat-cache": "^4.0.0" } }, "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ=="],
|
||||||
|
|
||||||
|
"find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
|
||||||
|
|
||||||
|
"flat-cache": ["flat-cache@4.0.1", "", { "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.4" } }, "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw=="],
|
||||||
|
|
||||||
|
"flatted": ["flatted@3.3.4", "", {}, "sha512-3+mMldrTAPdta5kjX2G2J7iX4zxtnwpdA8Tr2ZSjkyPSanvbZAcy6flmtnXbEybHrDcU9641lxrMfFuUxVz9vA=="],
|
||||||
|
|
||||||
|
"fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
|
||||||
|
|
||||||
|
"glob-parent": ["glob-parent@6.0.2", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="],
|
||||||
|
|
||||||
|
"globals": ["globals@17.4.0", "", {}, "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw=="],
|
||||||
|
|
||||||
|
"has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="],
|
||||||
|
|
||||||
|
"ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],
|
||||||
|
|
||||||
|
"import-fresh": ["import-fresh@3.3.1", "", { "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ=="],
|
||||||
|
|
||||||
|
"imurmurhash": ["imurmurhash@0.1.4", "", {}, "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="],
|
||||||
|
|
||||||
|
"is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="],
|
||||||
|
|
||||||
|
"is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="],
|
||||||
|
|
||||||
|
"is-reference": ["is-reference@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.6" } }, "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw=="],
|
||||||
|
|
||||||
|
"isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
|
||||||
|
|
||||||
|
"js-yaml": ["js-yaml@4.1.1", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA=="],
|
||||||
|
|
||||||
|
"json-buffer": ["json-buffer@3.0.1", "", {}, "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ=="],
|
||||||
|
|
||||||
|
"json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="],
|
||||||
|
|
||||||
|
"json-stable-stringify-without-jsonify": ["json-stable-stringify-without-jsonify@1.0.1", "", {}, "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="],
|
||||||
|
|
||||||
|
"keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="],
|
||||||
|
|
||||||
|
"kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],
|
||||||
|
|
||||||
|
"known-css-properties": ["known-css-properties@0.37.0", "", {}, "sha512-JCDrsP4Z1Sb9JwG0aJ8Eo2r7k4Ou5MwmThS/6lcIe1ICyb7UBJKGRIUUdqc2ASdE/42lgz6zFUnzAIhtXnBVrQ=="],
|
||||||
|
|
||||||
|
"levn": ["levn@0.4.1", "", { "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" } }, "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="],
|
||||||
|
|
||||||
|
"lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="],
|
||||||
|
|
||||||
|
"locate-character": ["locate-character@3.0.0", "", {}, "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA=="],
|
||||||
|
|
||||||
|
"locate-path": ["locate-path@6.0.0", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],
|
||||||
|
|
||||||
|
"lodash.merge": ["lodash.merge@4.6.2", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="],
|
||||||
|
|
||||||
|
"magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
|
||||||
|
|
||||||
|
"minimatch": ["minimatch@3.1.5", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w=="],
|
||||||
|
|
||||||
|
"mri": ["mri@1.2.0", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="],
|
||||||
|
|
||||||
|
"mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="],
|
||||||
|
|
||||||
|
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
||||||
|
|
||||||
|
"nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
||||||
|
|
||||||
|
"natural-compare": ["natural-compare@1.4.0", "", {}, "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="],
|
||||||
|
|
||||||
|
"optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="],
|
||||||
|
|
||||||
|
"p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="],
|
||||||
|
|
||||||
|
"p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="],
|
||||||
|
|
||||||
|
"parent-module": ["parent-module@1.0.1", "", { "dependencies": { "callsites": "^3.0.0" } }, "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="],
|
||||||
|
|
||||||
|
"path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
|
||||||
|
|
||||||
|
"path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
||||||
|
|
||||||
|
"picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
|
||||||
|
|
||||||
|
"picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="],
|
||||||
|
|
||||||
|
"postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="],
|
||||||
|
|
||||||
|
"postcss-load-config": ["postcss-load-config@3.1.4", "", { "dependencies": { "lilconfig": "^2.0.5", "yaml": "^1.10.2" }, "peerDependencies": { "postcss": ">=8.0.9", "ts-node": ">=9.0.0" }, "optionalPeers": ["postcss", "ts-node"] }, "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg=="],
|
||||||
|
|
||||||
|
"postcss-safe-parser": ["postcss-safe-parser@7.0.1", "", { "peerDependencies": { "postcss": "^8.4.31" } }, "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A=="],
|
||||||
|
|
||||||
|
"postcss-scss": ["postcss-scss@4.0.9", "", { "peerDependencies": { "postcss": "^8.4.29" } }, "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A=="],
|
||||||
|
|
||||||
|
"postcss-selector-parser": ["postcss-selector-parser@7.1.1", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg=="],
|
||||||
|
|
||||||
|
"prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="],
|
||||||
|
|
||||||
|
"prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
|
||||||
|
|
||||||
|
"prettier-plugin-svelte": ["prettier-plugin-svelte@3.5.0", "", { "peerDependencies": { "prettier": "^3.0.0", "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0" } }, "sha512-2lLO/7EupnjO/95t+XZesXs8Bf3nYLIDfCo270h5QWbj/vjLqmrQ1LiRk9LPggxSDsnVYfehamZNf+rgQYApZg=="],
|
||||||
|
|
||||||
|
"punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="],
|
||||||
|
|
||||||
|
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
|
||||||
|
|
||||||
|
"resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="],
|
||||||
|
|
||||||
|
"rollup": ["rollup@4.59.0", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.59.0", "@rollup/rollup-android-arm64": "4.59.0", "@rollup/rollup-darwin-arm64": "4.59.0", "@rollup/rollup-darwin-x64": "4.59.0", "@rollup/rollup-freebsd-arm64": "4.59.0", "@rollup/rollup-freebsd-x64": "4.59.0", "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", "@rollup/rollup-linux-arm-musleabihf": "4.59.0", "@rollup/rollup-linux-arm64-gnu": "4.59.0", "@rollup/rollup-linux-arm64-musl": "4.59.0", "@rollup/rollup-linux-loong64-gnu": "4.59.0", "@rollup/rollup-linux-loong64-musl": "4.59.0", "@rollup/rollup-linux-ppc64-gnu": "4.59.0", "@rollup/rollup-linux-ppc64-musl": "4.59.0", "@rollup/rollup-linux-riscv64-gnu": "4.59.0", "@rollup/rollup-linux-riscv64-musl": "4.59.0", "@rollup/rollup-linux-s390x-gnu": "4.59.0", "@rollup/rollup-linux-x64-gnu": "4.59.0", "@rollup/rollup-linux-x64-musl": "4.59.0", "@rollup/rollup-openbsd-x64": "4.59.0", "@rollup/rollup-openharmony-arm64": "4.59.0", "@rollup/rollup-win32-arm64-msvc": "4.59.0", "@rollup/rollup-win32-ia32-msvc": "4.59.0", "@rollup/rollup-win32-x64-gnu": "4.59.0", "@rollup/rollup-win32-x64-msvc": "4.59.0", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg=="],
|
||||||
|
|
||||||
|
"sade": ["sade@1.8.1", "", { "dependencies": { "mri": "^1.1.0" } }, "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A=="],
|
||||||
|
|
||||||
|
"semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
||||||
|
|
||||||
|
"set-cookie-parser": ["set-cookie-parser@3.0.1", "", {}, "sha512-n7Z7dXZhJbwuAHhNzkTti6Aw9QDDjZtm3JTpTGATIdNzdQz5GuFs22w90BcvF4INfnrL5xrX3oGsuqO5Dx3A1Q=="],
|
||||||
|
|
||||||
|
"shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
|
||||||
|
|
||||||
|
"shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
|
||||||
|
|
||||||
|
"sirv": ["sirv@3.0.2", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g=="],
|
||||||
|
|
||||||
|
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
||||||
|
|
||||||
|
"strip-json-comments": ["strip-json-comments@3.1.1", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="],
|
||||||
|
|
||||||
|
"supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
|
|
||||||
|
"svelte": ["svelte@5.53.5", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "@types/trusted-types": "^2.0.7", "acorn": "^8.12.1", "aria-query": "5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "devalue": "^5.6.3", "esm-env": "^1.2.1", "esrap": "^2.2.2", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-YkqERnF05g8KLdDZwZrF8/i1eSbj6Eoat8Jjr2IfruZz9StLuBqo8sfCSzjosNKd+ZrQ8DkKZDjpO5y3ht1Pow=="],
|
||||||
|
|
||||||
|
"svelte-check": ["svelte-check@4.4.3", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "chokidar": "^4.0.1", "fdir": "^6.2.0", "picocolors": "^1.0.0", "sade": "^1.7.4" }, "peerDependencies": { "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": ">=5.0.0" }, "bin": { "svelte-check": "bin/svelte-check" } }, "sha512-4HtdEv2hOoLCEsSXI+RDELk9okP/4sImWa7X02OjMFFOWeSdFF3NFy3vqpw0z+eH9C88J9vxZfUXz/Uv2A1ANw=="],
|
||||||
|
|
||||||
|
"svelte-eslint-parser": ["svelte-eslint-parser@1.5.1", "", { "dependencies": { "eslint-scope": "^8.2.0", "eslint-visitor-keys": "^4.0.0", "espree": "^10.0.0", "postcss": "^8.4.49", "postcss-scss": "^4.0.9", "postcss-selector-parser": "^7.0.0", "semver": "^7.7.2" }, "peerDependencies": { "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0" }, "optionalPeers": ["svelte"] }, "sha512-UbY7DYoDg+x4AKLUcX5xWuEWylgmm8ZD2Z89YT/AK6Wm/ckeMTnOMwr6AVC99znXbRC26xzWEPhSgmB62E07Gg=="],
|
||||||
|
|
||||||
|
"svelte-splitpanes": ["svelte-splitpanes@8.0.12", "", { "peerDependencies": { "svelte": "^5.43.0" } }, "sha512-HJ07HgbtY0Q/35TEuJquGy47dtgCVavV7ay9r1FhWRx3boyUs3RpeiHlwMKliznCKy2ZotNeT+8GG+mIoNjgRA=="],
|
||||||
|
|
||||||
|
"svelte-tabs": ["svelte-tabs@1.1.0", "", {}, "sha512-bCynxgET2uvqpB6xf/dVyqHjzmumRURQyh2QqXlrki8NxzO7h2WghF8qgpb5qeB5NTX1bMU+9Q5Hf5ey2WLaMg=="],
|
||||||
|
|
||||||
|
"tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],
|
||||||
|
|
||||||
|
"totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="],
|
||||||
|
|
||||||
|
"type-check": ["type-check@0.4.0", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="],
|
||||||
|
|
||||||
|
"typescript": ["typescript@5.6.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw=="],
|
||||||
|
|
||||||
|
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
||||||
|
|
||||||
|
"uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="],
|
||||||
|
|
||||||
|
"util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="],
|
||||||
|
|
||||||
|
"vite": ["vite@6.4.1", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g=="],
|
||||||
|
|
||||||
|
"vitefu": ["vitefu@1.1.2", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0" }, "optionalPeers": ["vite"] }, "sha512-zpKATdUbzbsycPFBN71nS2uzBUQiVnFoOrr2rvqv34S1lcAgMKKkjWleLGeiJlZ8lwCXvtWaRn7R3ZC16SYRuw=="],
|
||||||
|
|
||||||
|
"which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
|
||||||
|
|
||||||
|
"word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="],
|
||||||
|
|
||||||
|
"yaml": ["yaml@1.10.2", "", {}, "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg=="],
|
||||||
|
|
||||||
|
"yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="],
|
||||||
|
|
||||||
|
"zimmerframe": ["zimmerframe@1.1.4", "", {}, "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ=="],
|
||||||
|
|
||||||
|
"@eslint-community/eslint-utils/eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
|
||||||
|
|
||||||
|
"@eslint/config-helpers/@eslint/core": ["@eslint/core@0.17.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ=="],
|
||||||
|
|
||||||
|
"@eslint/eslintrc/globals": ["globals@14.0.0", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="],
|
||||||
|
|
||||||
|
"@eslint/plugin-kit/@eslint/core": ["@eslint/core@0.17.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ=="],
|
||||||
|
|
||||||
|
"eslint/@eslint/core": ["@eslint/core@0.17.0", "", { "dependencies": { "@types/json-schema": "^7.0.15" } }, "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ=="],
|
||||||
|
|
||||||
|
"eslint-plugin-svelte/globals": ["globals@16.5.0", "", {}, "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ=="],
|
||||||
|
}
|
||||||
|
}
|
||||||
25
eslint.config.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import prettier from 'eslint-config-prettier';
|
||||||
|
import path from 'node:path';
|
||||||
|
import { includeIgnoreFile } from '@eslint/compat';
|
||||||
|
import js from '@eslint/js';
|
||||||
|
import svelte from 'eslint-plugin-svelte';
|
||||||
|
import globals from 'globals';
|
||||||
|
import svelteConfig from './svelte.config.js';
|
||||||
|
|
||||||
|
const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');
|
||||||
|
|
||||||
|
/** @type {import('eslint').Linter.Config[]} */ export default [
|
||||||
|
includeIgnoreFile(gitignorePath),
|
||||||
|
js.configs.recommended,
|
||||||
|
...svelte.configs.recommended,
|
||||||
|
prettier,
|
||||||
|
...svelte.configs.prettier,
|
||||||
|
{
|
||||||
|
languageOptions: { globals: { ...globals.browser, ...globals.node } }
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
files: ['**/*.svelte', '**/*.svelte.js'],
|
||||||
|
languageOptions: { parserOptions: { svelteConfig } }
|
||||||
|
}
|
||||||
|
];
|
||||||
19
jsconfig.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"extends": "./.svelte-kit/tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"strict": false,
|
||||||
|
"moduleResolution": "bundler"
|
||||||
|
}
|
||||||
|
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
||||||
|
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
|
||||||
|
//
|
||||||
|
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
||||||
|
// from the referenced tsconfig.json - TypeScript does not merge them in
|
||||||
|
}
|
||||||
879
package-lock.json
generated
Normal file
@ -0,0 +1,879 @@
|
|||||||
|
{
|
||||||
|
"name": "smoothie",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "smoothie",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2",
|
||||||
|
"@tauri-apps/plugin-dialog": "~2",
|
||||||
|
"@tauri-apps/plugin-fs": "~2",
|
||||||
|
"@tauri-apps/plugin-http": "^2.5.7",
|
||||||
|
"@tauri-apps/plugin-notification": "^2.3.3",
|
||||||
|
"@tauri-apps/plugin-opener": "^2",
|
||||||
|
"@tauri-apps/plugin-os": "^2.3.2",
|
||||||
|
"@tauri-apps/plugin-window-state": "~2",
|
||||||
|
"svelte-splitpanes": "^8.0.12",
|
||||||
|
"svelte-tabs": "^1.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@sveltejs/adapter-static": "^3.0.6",
|
||||||
|
"@sveltejs/kit": "^2.9.0",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||||
|
"@tauri-apps/cli": "^2",
|
||||||
|
"svelte": "^5.0.0",
|
||||||
|
"svelte-check": "^4.0.0",
|
||||||
|
"typescript": "~5.6.2",
|
||||||
|
"vite": "^6.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@esbuild/linux-x64": {
|
||||||
|
"version": "0.25.12",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/gen-mapping": {
|
||||||
|
"version": "0.3.13",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/remapping": {
|
||||||
|
"version": "2.3.5",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/gen-mapping": "^0.3.5",
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.24"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/resolve-uri": {
|
||||||
|
"version": "3.1.2",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/sourcemap-codec": {
|
||||||
|
"version": "1.5.5",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@jridgewell/trace-mapping": {
|
||||||
|
"version": "0.3.31",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/resolve-uri": "^3.1.0",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@polka/url": {
|
||||||
|
"version": "1.0.0-next.29",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||||
|
"version": "4.59.0",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"node_modules/@rollup/rollup-linux-x64-musl": {
|
||||||
|
"version": "4.59.0",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"node_modules/@standard-schema/spec": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@sveltejs/acorn-typescript": {
|
||||||
|
"version": "1.0.9",
|
||||||
|
"license": "MIT",
|
||||||
|
"peerDependencies": {
|
||||||
|
"acorn": "^8.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@sveltejs/adapter-static": {
|
||||||
|
"version": "3.0.10",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@sveltejs/kit": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@sveltejs/kit": {
|
||||||
|
"version": "2.53.2",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@standard-schema/spec": "^1.0.0",
|
||||||
|
"@sveltejs/acorn-typescript": "^1.0.5",
|
||||||
|
"@types/cookie": "^0.6.0",
|
||||||
|
"acorn": "^8.14.1",
|
||||||
|
"cookie": "^0.6.0",
|
||||||
|
"devalue": "^5.6.3",
|
||||||
|
"esm-env": "^1.2.2",
|
||||||
|
"kleur": "^4.1.5",
|
||||||
|
"magic-string": "^0.30.5",
|
||||||
|
"mrmime": "^2.0.0",
|
||||||
|
"set-cookie-parser": "^3.0.0",
|
||||||
|
"sirv": "^3.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"svelte-kit": "svelte-kit.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.13"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@opentelemetry/api": "^1.0.0",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0",
|
||||||
|
"svelte": "^4.0.0 || ^5.0.0-next.0",
|
||||||
|
"typescript": "^5.3.3",
|
||||||
|
"vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@opentelemetry/api": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"typescript": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@sveltejs/vite-plugin-svelte": {
|
||||||
|
"version": "5.1.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@sveltejs/vite-plugin-svelte-inspector": "^4.0.1",
|
||||||
|
"debug": "^4.4.1",
|
||||||
|
"deepmerge": "^4.3.1",
|
||||||
|
"kleur": "^4.1.5",
|
||||||
|
"magic-string": "^0.30.17",
|
||||||
|
"vitefu": "^1.0.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.0.0 || ^20.0.0 || >=22"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"svelte": "^5.0.0",
|
||||||
|
"vite": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@sveltejs/vite-plugin-svelte-inspector": {
|
||||||
|
"version": "4.0.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"debug": "^4.3.7"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.0.0 || ^20.0.0 || >=22"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||||
|
"svelte": "^5.0.0",
|
||||||
|
"vite": "^6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/api": {
|
||||||
|
"version": "2.10.1",
|
||||||
|
"license": "Apache-2.0 OR MIT",
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/tauri"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/cli": {
|
||||||
|
"version": "2.10.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0 OR MIT",
|
||||||
|
"bin": {
|
||||||
|
"tauri": "tauri.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/tauri"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@tauri-apps/cli-darwin-arm64": "2.10.0",
|
||||||
|
"@tauri-apps/cli-darwin-x64": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-arm-gnueabihf": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-arm64-gnu": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-arm64-musl": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-riscv64-gnu": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-x64-gnu": "2.10.0",
|
||||||
|
"@tauri-apps/cli-linux-x64-musl": "2.10.0",
|
||||||
|
"@tauri-apps/cli-win32-arm64-msvc": "2.10.0",
|
||||||
|
"@tauri-apps/cli-win32-ia32-msvc": "2.10.0",
|
||||||
|
"@tauri-apps/cli-win32-x64-msvc": "2.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/cli-linux-x64-gnu": {
|
||||||
|
"version": "2.10.0",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0 OR MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/cli-linux-x64-musl": {
|
||||||
|
"version": "2.10.0",
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
],
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0 OR MIT",
|
||||||
|
"optional": true,
|
||||||
|
"os": [
|
||||||
|
"linux"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-dialog": {
|
||||||
|
"version": "2.6.0",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-fs": {
|
||||||
|
"version": "2.4.5",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-http": {
|
||||||
|
"version": "2.5.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tauri-apps/plugin-http/-/plugin-http-2.5.7.tgz",
|
||||||
|
"integrity": "sha512-+F2lEH/c9b0zSsOXKq+5hZNcd9F4IIKCK1T17RqMwpCmVnx2aoqY8yIBccCd25HTYUb3j6NPVbRax/m00hKG8A==",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.10.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-notification": {
|
||||||
|
"version": "2.3.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tauri-apps/plugin-notification/-/plugin-notification-2.3.3.tgz",
|
||||||
|
"integrity": "sha512-Zw+ZH18RJb41G4NrfHgIuofJiymusqN+q8fGUIIV7vyCH+5sSn5coqRv/MWB9qETsUs97vmU045q7OyseCV3Qg==",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-opener": {
|
||||||
|
"version": "2.5.3",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-os": {
|
||||||
|
"version": "2.3.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/@tauri-apps/plugin-os/-/plugin-os-2.3.2.tgz",
|
||||||
|
"integrity": "sha512-n+nXWeuSeF9wcEsSPmRnBEGrRgOy6jjkSU+UVCOV8YUGKb2erhDOxis7IqRXiRVHhY8XMKks00BJ0OAdkpf6+A==",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@tauri-apps/plugin-window-state": {
|
||||||
|
"version": "2.4.1",
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@types/cookie": {
|
||||||
|
"version": "0.6.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@types/estree": {
|
||||||
|
"version": "1.0.8",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/@types/trusted-types": {
|
||||||
|
"version": "2.0.7",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/acorn": {
|
||||||
|
"version": "8.16.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"acorn": "bin/acorn"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/aria-query": {
|
||||||
|
"version": "5.3.1",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/axobject-query": {
|
||||||
|
"version": "4.1.0",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/chokidar": {
|
||||||
|
"version": "4.0.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"readdirp": "^4.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 14.16.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://paulmillr.com/funding/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/clsx": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/cookie": {
|
||||||
|
"version": "0.6.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/debug": {
|
||||||
|
"version": "4.4.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "^2.1.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"supports-color": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/deepmerge": {
|
||||||
|
"version": "4.3.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/devalue": {
|
||||||
|
"version": "5.6.3",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/esbuild": {
|
||||||
|
"version": "0.25.12",
|
||||||
|
"dev": true,
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"esbuild": "bin/esbuild"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@esbuild/aix-ppc64": "0.25.12",
|
||||||
|
"@esbuild/android-arm": "0.25.12",
|
||||||
|
"@esbuild/android-arm64": "0.25.12",
|
||||||
|
"@esbuild/android-x64": "0.25.12",
|
||||||
|
"@esbuild/darwin-arm64": "0.25.12",
|
||||||
|
"@esbuild/darwin-x64": "0.25.12",
|
||||||
|
"@esbuild/freebsd-arm64": "0.25.12",
|
||||||
|
"@esbuild/freebsd-x64": "0.25.12",
|
||||||
|
"@esbuild/linux-arm": "0.25.12",
|
||||||
|
"@esbuild/linux-arm64": "0.25.12",
|
||||||
|
"@esbuild/linux-ia32": "0.25.12",
|
||||||
|
"@esbuild/linux-loong64": "0.25.12",
|
||||||
|
"@esbuild/linux-mips64el": "0.25.12",
|
||||||
|
"@esbuild/linux-ppc64": "0.25.12",
|
||||||
|
"@esbuild/linux-riscv64": "0.25.12",
|
||||||
|
"@esbuild/linux-s390x": "0.25.12",
|
||||||
|
"@esbuild/linux-x64": "0.25.12",
|
||||||
|
"@esbuild/netbsd-arm64": "0.25.12",
|
||||||
|
"@esbuild/netbsd-x64": "0.25.12",
|
||||||
|
"@esbuild/openbsd-arm64": "0.25.12",
|
||||||
|
"@esbuild/openbsd-x64": "0.25.12",
|
||||||
|
"@esbuild/openharmony-arm64": "0.25.12",
|
||||||
|
"@esbuild/sunos-x64": "0.25.12",
|
||||||
|
"@esbuild/win32-arm64": "0.25.12",
|
||||||
|
"@esbuild/win32-ia32": "0.25.12",
|
||||||
|
"@esbuild/win32-x64": "0.25.12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/esm-env": {
|
||||||
|
"version": "1.2.2",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/esrap": {
|
||||||
|
"version": "2.2.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.4.15"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/fdir": {
|
||||||
|
"version": "6.5.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"picomatch": "^3 || ^4"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"picomatch": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/is-reference": {
|
||||||
|
"version": "3.0.3",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/estree": "^1.0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/kleur": {
|
||||||
|
"version": "4.1.5",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/locate-character": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/magic-string": {
|
||||||
|
"version": "0.30.21",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.5.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/mri": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/mrmime": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/ms": {
|
||||||
|
"version": "2.1.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/nanoid": {
|
||||||
|
"version": "3.3.11",
|
||||||
|
"dev": true,
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/ai"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"bin": {
|
||||||
|
"nanoid": "bin/nanoid.cjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/picocolors": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "ISC"
|
||||||
|
},
|
||||||
|
"node_modules/picomatch": {
|
||||||
|
"version": "4.0.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/jonschlinkert"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/postcss": {
|
||||||
|
"version": "8.5.6",
|
||||||
|
"dev": true,
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/postcss/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "tidelift",
|
||||||
|
"url": "https://tidelift.com/funding/github/npm/postcss"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/ai"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"nanoid": "^3.3.11",
|
||||||
|
"picocolors": "^1.1.1",
|
||||||
|
"source-map-js": "^1.2.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^10 || ^12 || >=14"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/readdirp": {
|
||||||
|
"version": "4.1.2",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 14.18.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "individual",
|
||||||
|
"url": "https://paulmillr.com/funding/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rollup": {
|
||||||
|
"version": "4.59.0",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/estree": "1.0.8"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rollup": "dist/bin/rollup"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0",
|
||||||
|
"npm": ">=8.0.0"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@rollup/rollup-android-arm-eabi": "4.59.0",
|
||||||
|
"@rollup/rollup-android-arm64": "4.59.0",
|
||||||
|
"@rollup/rollup-darwin-arm64": "4.59.0",
|
||||||
|
"@rollup/rollup-darwin-x64": "4.59.0",
|
||||||
|
"@rollup/rollup-freebsd-arm64": "4.59.0",
|
||||||
|
"@rollup/rollup-freebsd-x64": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-arm-gnueabihf": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-arm-musleabihf": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-arm64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-arm64-musl": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-loong64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-loong64-musl": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-ppc64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-ppc64-musl": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-riscv64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-riscv64-musl": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-s390x-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-x64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-linux-x64-musl": "4.59.0",
|
||||||
|
"@rollup/rollup-openbsd-x64": "4.59.0",
|
||||||
|
"@rollup/rollup-openharmony-arm64": "4.59.0",
|
||||||
|
"@rollup/rollup-win32-arm64-msvc": "4.59.0",
|
||||||
|
"@rollup/rollup-win32-ia32-msvc": "4.59.0",
|
||||||
|
"@rollup/rollup-win32-x64-gnu": "4.59.0",
|
||||||
|
"@rollup/rollup-win32-x64-msvc": "4.59.0",
|
||||||
|
"fsevents": "~2.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/sade": {
|
||||||
|
"version": "1.8.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"mri": "^1.1.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/set-cookie-parser": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/sirv": {
|
||||||
|
"version": "3.0.2",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@polka/url": "^1.0.0-next.24",
|
||||||
|
"mrmime": "^2.0.0",
|
||||||
|
"totalist": "^3.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/source-map-js": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/svelte": {
|
||||||
|
"version": "5.53.5",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/remapping": "^2.3.4",
|
||||||
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||||
|
"@sveltejs/acorn-typescript": "^1.0.5",
|
||||||
|
"@types/estree": "^1.0.5",
|
||||||
|
"@types/trusted-types": "^2.0.7",
|
||||||
|
"acorn": "^8.12.1",
|
||||||
|
"aria-query": "5.3.1",
|
||||||
|
"axobject-query": "^4.1.0",
|
||||||
|
"clsx": "^2.1.1",
|
||||||
|
"devalue": "^5.6.3",
|
||||||
|
"esm-env": "^1.2.1",
|
||||||
|
"esrap": "^2.2.2",
|
||||||
|
"is-reference": "^3.0.3",
|
||||||
|
"locate-character": "^3.0.0",
|
||||||
|
"magic-string": "^0.30.11",
|
||||||
|
"zimmerframe": "^1.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/svelte-check": {
|
||||||
|
"version": "4.4.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/trace-mapping": "^0.3.25",
|
||||||
|
"chokidar": "^4.0.1",
|
||||||
|
"fdir": "^6.2.0",
|
||||||
|
"picocolors": "^1.0.0",
|
||||||
|
"sade": "^1.7.4"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"svelte-check": "bin/svelte-check"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 18.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"svelte": "^4.0.0 || ^5.0.0-next.0",
|
||||||
|
"typescript": ">=5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/svelte-splitpanes": {
|
||||||
|
"version": "8.0.12",
|
||||||
|
"license": "MIT",
|
||||||
|
"peerDependencies": {
|
||||||
|
"svelte": "^5.43.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/svelte-tabs": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/tinyglobby": {
|
||||||
|
"version": "0.2.15",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"fdir": "^6.5.0",
|
||||||
|
"picomatch": "^4.0.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/SuperchupuDev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/totalist": {
|
||||||
|
"version": "3.0.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/typescript": {
|
||||||
|
"version": "5.6.3",
|
||||||
|
"dev": true,
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"bin": {
|
||||||
|
"tsc": "bin/tsc",
|
||||||
|
"tsserver": "bin/tsserver"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.17"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/vite": {
|
||||||
|
"version": "6.4.1",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"esbuild": "^0.25.0",
|
||||||
|
"fdir": "^6.4.4",
|
||||||
|
"picomatch": "^4.0.2",
|
||||||
|
"postcss": "^8.5.3",
|
||||||
|
"rollup": "^4.34.9",
|
||||||
|
"tinyglobby": "^0.2.13"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"vite": "bin/vite.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "^18.0.0 || ^20.0.0 || >=22.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/vitejs/vite?sponsor=1"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"fsevents": "~2.3.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
|
||||||
|
"jiti": ">=1.21.0",
|
||||||
|
"less": "*",
|
||||||
|
"lightningcss": "^1.21.0",
|
||||||
|
"sass": "*",
|
||||||
|
"sass-embedded": "*",
|
||||||
|
"stylus": "*",
|
||||||
|
"sugarss": "*",
|
||||||
|
"terser": "^5.16.0",
|
||||||
|
"tsx": "^4.8.1",
|
||||||
|
"yaml": "^2.4.2"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/node": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"jiti": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"less": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"lightningcss": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"sass": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"sass-embedded": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"stylus": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"sugarss": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"terser": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"tsx": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"yaml": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/vitefu": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"workspaces": [
|
||||||
|
"tests/deps/*",
|
||||||
|
"tests/projects/*",
|
||||||
|
"tests/projects/workspace/packages/*"
|
||||||
|
],
|
||||||
|
"peerDependencies": {
|
||||||
|
"vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-beta.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"vite": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/zimmerframe": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"license": "MIT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
52
package.json
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"name": "smoothie",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"description": "",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite dev",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
|
||||||
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
|
||||||
|
"tauri": "tauri",
|
||||||
|
"lint": "prettier --check . && eslint .",
|
||||||
|
"format": "prettier --write ."
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@tauri-apps/api": "^2",
|
||||||
|
"@tauri-apps/plugin-dialog": "~2",
|
||||||
|
"@tauri-apps/plugin-fs": "~2",
|
||||||
|
"@tauri-apps/plugin-http": "^2.5.7",
|
||||||
|
"@tauri-apps/plugin-notification": "~2",
|
||||||
|
"@tauri-apps/plugin-opener": "^2",
|
||||||
|
"@tauri-apps/plugin-os": "^2.3.2",
|
||||||
|
"@tauri-apps/plugin-shell": "~2",
|
||||||
|
"@tauri-apps/plugin-store": "~2",
|
||||||
|
"@tauri-apps/plugin-upload": "~2",
|
||||||
|
"@tauri-apps/plugin-window-state": "~2",
|
||||||
|
"@webtui/css": "^0.1.6",
|
||||||
|
"svelte-splitpanes": "^8.0.12",
|
||||||
|
"svelte-tabs": "^1.1.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/compat": "^2.0.2",
|
||||||
|
"@eslint/js": "^9.39.2",
|
||||||
|
"@sveltejs/adapter-static": "^3.0.6",
|
||||||
|
"@sveltejs/kit": "^2.9.0",
|
||||||
|
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||||
|
"@tauri-apps/cli": "^2",
|
||||||
|
"@types/node": "^22",
|
||||||
|
"eslint": "^9.39.2",
|
||||||
|
"eslint-config-prettier": "^10.1.8",
|
||||||
|
"eslint-plugin-svelte": "^3.14.0",
|
||||||
|
"globals": "^17.3.0",
|
||||||
|
"prettier": "^3.8.1",
|
||||||
|
"prettier-plugin-svelte": "^3.4.1",
|
||||||
|
"svelte": "^5.0.0",
|
||||||
|
"svelte-check": "^4.0.0",
|
||||||
|
"typescript": "~5.6.2",
|
||||||
|
"vite": "^6.0.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
src-tauri/.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Generated by Cargo
|
||||||
|
# will have compiled files and executables
|
||||||
|
/target/
|
||||||
|
|
||||||
|
# Generated by Tauri
|
||||||
|
# will have schema files for capabilities auto-completion
|
||||||
|
/gen/schemas
|
||||||
6515
src-tauri/Cargo.lock
generated
Normal file
41
src-tauri/Cargo.toml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
[package]
|
||||||
|
name = "smoothie"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "A Tauri App"
|
||||||
|
authors = ["you"]
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
# The `_lib` suffix may seem redundant but it is necessary
|
||||||
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
||||||
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
||||||
|
name = "smoothie_lib"
|
||||||
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
tauri-build = { version = "2", features = [] }
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tauri = { version = "2", features = [] }
|
||||||
|
tauri-plugin-opener = "2"
|
||||||
|
tauri-plugin-window-state = "2"
|
||||||
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
serde_json = "1"
|
||||||
|
tauri-plugin-fs = "2"
|
||||||
|
tauri-plugin-dialog = "2"
|
||||||
|
tauri-plugin-http = "2"
|
||||||
|
tauri-plugin-notification = "2"
|
||||||
|
tauri-plugin-os = "2"
|
||||||
|
tauri-plugin-store = "2"
|
||||||
|
tauri-plugin-persisted-scope = "2"
|
||||||
|
tauri-plugin-shell = "2"
|
||||||
|
zip = "1.1"
|
||||||
|
tar = "0.4"
|
||||||
|
xz2 = "0.1"
|
||||||
|
flate2 = "1.0"
|
||||||
|
bzip2 = "0.4"
|
||||||
|
tauri-plugin-upload = "2"
|
||||||
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
||||||
|
tauri-plugin-window-state = "2"
|
||||||
3
src-tauri/build.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
tauri_build::build()
|
||||||
|
}
|
||||||
38
src-tauri/capabilities/desktop.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"identifier": "desktop-capability",
|
||||||
|
"platforms": ["macOS", "windows", "linux"],
|
||||||
|
"windows": ["main"],
|
||||||
|
"permissions": [
|
||||||
|
"core:default",
|
||||||
|
"opener:default",
|
||||||
|
"window-state:default",
|
||||||
|
"dialog:allow-open",
|
||||||
|
"dialog:allow-confirm",
|
||||||
|
"fs:allow-app-read-recursive",
|
||||||
|
"fs:allow-app-write-recursive",
|
||||||
|
"opener:allow-open-path",
|
||||||
|
"fs:allow-mkdir",
|
||||||
|
{
|
||||||
|
"identifier": "fs:scope",
|
||||||
|
"allow": [
|
||||||
|
{ "path": "$LOCALDATA/applications/**" },
|
||||||
|
{ "path": "$LOCALDATA/applications" },
|
||||||
|
{ "path": "$LOCALDATA/applications/*" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"shell:allow-spawn",
|
||||||
|
{
|
||||||
|
"identifier": "http:default",
|
||||||
|
"allow": [
|
||||||
|
{
|
||||||
|
"url": "https://*.blender.org"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification:default",
|
||||||
|
"os:default",
|
||||||
|
"store:default",
|
||||||
|
"shell:default",
|
||||||
|
"upload:default"
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
src-tauri/icons/128x128.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src-tauri/icons/128x128@2x.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
src-tauri/icons/32x32.png
Normal file
|
After Width: | Height: | Size: 974 B |
BIN
src-tauri/icons/Square107x107Logo.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
src-tauri/icons/Square142x142Logo.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
src-tauri/icons/Square150x150Logo.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
src-tauri/icons/Square284x284Logo.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
src-tauri/icons/Square30x30Logo.png
Normal file
|
After Width: | Height: | Size: 903 B |
BIN
src-tauri/icons/Square310x310Logo.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src-tauri/icons/Square44x44Logo.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src-tauri/icons/Square71x71Logo.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
src-tauri/icons/Square89x89Logo.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src-tauri/icons/StoreLogo.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src-tauri/icons/icon.icns
Normal file
BIN
src-tauri/icons/icon.ico
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
src-tauri/icons/icon.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
299
src-tauri/src/lib.rs
Normal file
@ -0,0 +1,299 @@
|
|||||||
|
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||||
|
|
||||||
|
use std::fs::File;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
|
use bzip2::read::BzDecoder;
|
||||||
|
use flate2::read::GzDecoder;
|
||||||
|
use tar::Archive as TarArchive;
|
||||||
|
use tauri::async_runtime::spawn_blocking;
|
||||||
|
use xz2::read::XzDecoder;
|
||||||
|
use zip::ZipArchive;
|
||||||
|
|
||||||
|
/// Strip a single top-level directory if the target directory contains only one subdirectory.
|
||||||
|
/// This is useful after extracting archives that create an unnecessary parent folder.
|
||||||
|
/// Returns true if flattening was performed, false otherwise.
|
||||||
|
fn strip_single_top_level_directory(target_dir: &Path) -> Result<bool, std::io::Error> {
|
||||||
|
use std::fs;
|
||||||
|
|
||||||
|
let entries: Vec<_> = fs::read_dir(target_dir)?
|
||||||
|
.filter_map(|entry| entry.ok())
|
||||||
|
.collect();
|
||||||
|
|
||||||
|
// If there's exactly one entry and it's a directory, flatten it
|
||||||
|
if entries.len() == 1 {
|
||||||
|
let entry = &entries[0];
|
||||||
|
if entry.path().is_dir() {
|
||||||
|
let subdir_path = entry.path();
|
||||||
|
let subdir_name = entry.file_name();
|
||||||
|
|
||||||
|
// Move all items from subdirectory to target directory
|
||||||
|
for sub_entry in fs::read_dir(&subdir_path)? {
|
||||||
|
let sub_entry = sub_entry?;
|
||||||
|
let source_path = sub_entry.path();
|
||||||
|
let dest_path = target_dir.join(sub_entry.file_name());
|
||||||
|
fs::rename(&source_path, &dest_path)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the now-empty subdirectory
|
||||||
|
fs::remove_dir(&subdir_path)?;
|
||||||
|
|
||||||
|
println!(
|
||||||
|
"Flattened directory structure: removed {}/",
|
||||||
|
subdir_name.to_string_lossy()
|
||||||
|
);
|
||||||
|
return Ok(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tauri::command]
|
||||||
|
fn launch_binary(path: String, args: Vec<String>) -> Result<String, String> {
|
||||||
|
use std::process::{Command, Stdio};
|
||||||
|
Command::new(path)
|
||||||
|
.args(args)
|
||||||
|
.stdin(Stdio::null())
|
||||||
|
.stdout(Stdio::null())
|
||||||
|
.stderr(Stdio::null())
|
||||||
|
.spawn()
|
||||||
|
.map(|_| "Launched".into())
|
||||||
|
.map_err(|e| e.to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extract a ZIP archive to a target directory
|
||||||
|
#[tauri::command]
|
||||||
|
fn extract_zip(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
let archive_file = File::open(&archive_path)
|
||||||
|
.map_err(|e| format!("Failed to open ZIP archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
let mut archive = ZipArchive::new(archive_file)
|
||||||
|
.map_err(|e| format!("Failed to read ZIP archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
for i in 0..archive.len() {
|
||||||
|
let mut file = archive
|
||||||
|
.by_index(i)
|
||||||
|
.map_err(|e| format!("Failed to read file {} in ZIP archive: {}", i, e))?;
|
||||||
|
|
||||||
|
let outpath = Path::new(&target_dir).join(file.mangled_name());
|
||||||
|
|
||||||
|
if file.name().ends_with('/') {
|
||||||
|
// Directory entry
|
||||||
|
std::fs::create_dir_all(&outpath)
|
||||||
|
.map_err(|e| format!("Failed to create directory {}: {}", outpath.display(), e))?;
|
||||||
|
} else {
|
||||||
|
// File entry
|
||||||
|
if let Some(parent) = outpath.parent() {
|
||||||
|
std::fs::create_dir_all(parent).map_err(|e| {
|
||||||
|
format!(
|
||||||
|
"Failed to create parent directory {}: {}",
|
||||||
|
parent.display(),
|
||||||
|
e
|
||||||
|
)
|
||||||
|
})?;
|
||||||
|
}
|
||||||
|
|
||||||
|
let mut outfile = File::create(&outpath)
|
||||||
|
.map_err(|e| format!("Failed to create file {}: {}", outpath.display(), e))?;
|
||||||
|
|
||||||
|
std::io::copy(&mut file, &mut outfile)
|
||||||
|
.map_err(|e| format!("Failed to write file {}: {}", outpath.display(), e))?;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Strip single top-level directory if archive created one
|
||||||
|
let target_path = Path::new(&target_dir);
|
||||||
|
if let Err(e) = strip_single_top_level_directory(target_path) {
|
||||||
|
println!("Warning: Failed to strip top-level directory: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"Successfully extracted ZIP archive to {}",
|
||||||
|
target_dir
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extract a TAR archive (uncompressed)
|
||||||
|
#[tauri::command]
|
||||||
|
fn extract_tar(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
let archive_file = File::open(&archive_path)
|
||||||
|
.map_err(|e| format!("Failed to open TAR archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
let mut archive = TarArchive::new(archive_file);
|
||||||
|
|
||||||
|
archive
|
||||||
|
.unpack(&target_dir)
|
||||||
|
.map_err(|e| format!("Failed to extract TAR archive to {}: {}", target_dir, e))?;
|
||||||
|
|
||||||
|
// Strip single top-level directory if archive created one
|
||||||
|
let target_path = Path::new(&target_dir);
|
||||||
|
if let Err(e) = strip_single_top_level_directory(target_path) {
|
||||||
|
println!("Warning: Failed to strip top-level directory: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"Successfully extracted TAR archive to {}",
|
||||||
|
target_dir
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extract a TAR.GZ archive
|
||||||
|
#[tauri::command]
|
||||||
|
fn extract_tar_gz(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
let archive_file = File::open(&archive_path)
|
||||||
|
.map_err(|e| format!("Failed to open TAR.GZ archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
let gz_decoder = GzDecoder::new(archive_file);
|
||||||
|
let mut archive = TarArchive::new(gz_decoder);
|
||||||
|
|
||||||
|
archive
|
||||||
|
.unpack(&target_dir)
|
||||||
|
.map_err(|e| format!("Failed to extract TAR.GZ archive to {}: {}", target_dir, e))?;
|
||||||
|
|
||||||
|
// Strip single top-level directory if archive created one
|
||||||
|
let target_path = Path::new(&target_dir);
|
||||||
|
if let Err(e) = strip_single_top_level_directory(target_path) {
|
||||||
|
println!("Warning: Failed to strip top-level directory: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"Successfully extracted TAR.GZ archive to {}",
|
||||||
|
target_dir
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extract a TAR.XZ archive
|
||||||
|
#[tauri::command]
|
||||||
|
fn extract_tar_xz(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
let archive_file = File::open(&archive_path)
|
||||||
|
.map_err(|e| format!("Failed to open TAR.XZ archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
let xz_decoder = XzDecoder::new(archive_file);
|
||||||
|
let mut archive = TarArchive::new(xz_decoder);
|
||||||
|
|
||||||
|
archive
|
||||||
|
.unpack(&target_dir)
|
||||||
|
.map_err(|e| format!("Failed to extract TAR.XZ archive to {}: {}", target_dir, e))?;
|
||||||
|
|
||||||
|
// Strip single top-level directory if archive created one
|
||||||
|
let target_path = Path::new(&target_dir);
|
||||||
|
if let Err(e) = strip_single_top_level_directory(target_path) {
|
||||||
|
println!("Warning: Failed to strip top-level directory: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"Successfully extracted TAR.XZ archive to {}",
|
||||||
|
target_dir
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extract a TAR.BZ2 archive
|
||||||
|
#[tauri::command]
|
||||||
|
fn extract_tar_bz2(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
let archive_file = File::open(&archive_path)
|
||||||
|
.map_err(|e| format!("Failed to open TAR.BZ2 archive at {}: {}", archive_path, e))?;
|
||||||
|
|
||||||
|
let bz_decoder = BzDecoder::new(archive_file);
|
||||||
|
let mut archive = TarArchive::new(bz_decoder);
|
||||||
|
|
||||||
|
archive
|
||||||
|
.unpack(&target_dir)
|
||||||
|
.map_err(|e| format!("Failed to extract TAR.BZ2 archive to {}: {}", target_dir, e))?;
|
||||||
|
|
||||||
|
// Strip single top-level directory if archive created one
|
||||||
|
let target_path = Path::new(&target_dir);
|
||||||
|
if let Err(e) = strip_single_top_level_directory(target_path) {
|
||||||
|
println!("Warning: Failed to strip top-level directory: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(format!(
|
||||||
|
"Successfully extracted TAR.BZ2 archive to {}",
|
||||||
|
target_dir
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Detect archive type and extract it automatically
|
||||||
|
#[tauri::command(async)]
|
||||||
|
async fn extract_archive(archive_path: String, target_dir: String) -> Result<String, String> {
|
||||||
|
// Run extraction in a blocking task to avoid hanging the UI
|
||||||
|
spawn_blocking(move || {
|
||||||
|
let path = Path::new(&archive_path);
|
||||||
|
|
||||||
|
// Get file extension(s) to determine archive type
|
||||||
|
let extension = path
|
||||||
|
.extension()
|
||||||
|
.and_then(|ext| ext.to_str())
|
||||||
|
.unwrap_or("")
|
||||||
|
.to_lowercase();
|
||||||
|
|
||||||
|
let filename = path
|
||||||
|
.file_name()
|
||||||
|
.and_then(|name| name.to_str())
|
||||||
|
.unwrap_or("")
|
||||||
|
.to_lowercase();
|
||||||
|
|
||||||
|
// Check for multi-part extensions like .tar.gz
|
||||||
|
if filename.ends_with(".tar.xz") || filename.ends_with(".txz") {
|
||||||
|
extract_tar_xz(archive_path, target_dir)
|
||||||
|
} else if filename.ends_with(".tar.gz") || filename.ends_with(".tgz") {
|
||||||
|
extract_tar_gz(archive_path, target_dir)
|
||||||
|
} else if filename.ends_with(".tar.bz2")
|
||||||
|
|| filename.ends_with(".tbz2")
|
||||||
|
|| filename.ends_with(".tbz")
|
||||||
|
{
|
||||||
|
extract_tar_bz2(archive_path, target_dir)
|
||||||
|
} else if extension == "tar" {
|
||||||
|
extract_tar(archive_path, target_dir)
|
||||||
|
} else if extension == "zip" {
|
||||||
|
extract_zip(archive_path, target_dir)
|
||||||
|
} else {
|
||||||
|
// Try ZIP first (common), then TAR
|
||||||
|
match extract_zip(archive_path.clone(), target_dir.clone()) {
|
||||||
|
Ok(result) => Ok(result),
|
||||||
|
Err(_) => {
|
||||||
|
// Try as uncompressed TAR
|
||||||
|
match extract_tar(archive_path, target_dir) {
|
||||||
|
Ok(result) => Ok(result),
|
||||||
|
Err(e) => Err(format!("Failed to extract archive. Supported formats: .zip, .tar, .tar.gz, .tar.xz, .tar.bz2. Error: {}", e))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
.map_err(|e| format!("Blocking task failed: {}", e))?
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||||
|
pub fn run() {
|
||||||
|
tauri::Builder::default()
|
||||||
|
.plugin(tauri_plugin_upload::init())
|
||||||
|
.plugin(tauri_plugin_shell::init())
|
||||||
|
.plugin(tauri_plugin_fs::init())
|
||||||
|
.plugin(tauri_plugin_persisted_scope::init())
|
||||||
|
.plugin(tauri_plugin_store::Builder::new().build())
|
||||||
|
.plugin(tauri_plugin_os::init())
|
||||||
|
.plugin(tauri_plugin_notification::init())
|
||||||
|
.plugin(tauri_plugin_http::init())
|
||||||
|
.plugin(tauri_plugin_dialog::init())
|
||||||
|
.plugin(tauri_plugin_window_state::Builder::new().build())
|
||||||
|
.plugin(tauri_plugin_opener::init())
|
||||||
|
.setup(|app| {
|
||||||
|
#[cfg(desktop)]
|
||||||
|
app.handle()
|
||||||
|
.plugin(tauri_plugin_window_state::Builder::default().build())?;
|
||||||
|
Ok(())
|
||||||
|
})
|
||||||
|
.invoke_handler(tauri::generate_handler![
|
||||||
|
extract_zip,
|
||||||
|
extract_tar,
|
||||||
|
extract_tar_gz,
|
||||||
|
extract_tar_xz,
|
||||||
|
extract_tar_bz2,
|
||||||
|
extract_archive,
|
||||||
|
launch_binary
|
||||||
|
])
|
||||||
|
.run(tauri::generate_context!())
|
||||||
|
.expect("error while running tauri application");
|
||||||
|
}
|
||||||
6
src-tauri/src/main.rs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||||
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
smoothie_lib::run()
|
||||||
|
}
|
||||||
42
src-tauri/tauri.conf.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
|
"productName": "smoothie",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"identifier": "smoothie",
|
||||||
|
"build": {
|
||||||
|
"beforeDevCommand": "bun run dev",
|
||||||
|
"devUrl": "http://localhost:1420",
|
||||||
|
"beforeBuildCommand": "bun run build",
|
||||||
|
"frontendDist": "../build"
|
||||||
|
},
|
||||||
|
"app": {
|
||||||
|
"windows": [
|
||||||
|
{
|
||||||
|
"decorations": true,
|
||||||
|
"title": "smoothie",
|
||||||
|
"width": 1024,
|
||||||
|
"height": 576,
|
||||||
|
"maxHeight": 1080,
|
||||||
|
"maxWidth": 1920,
|
||||||
|
"minHeight": 288,
|
||||||
|
"minWidth": 512,
|
||||||
|
"fullscreen": false,
|
||||||
|
"resizable": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"security": {
|
||||||
|
"csp": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bundle": {
|
||||||
|
"active": true,
|
||||||
|
"targets": "all",
|
||||||
|
"icon": [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/128x128.png",
|
||||||
|
"icons/128x128@2x.png",
|
||||||
|
"icons/icon.icns",
|
||||||
|
"icons/icon.ico"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/app.css
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: "Europa Mono";
|
||||||
|
src: url("/fonts/Europa-Mono-Medium.otf") format("opentype");
|
||||||
|
font-weight: 500; /* Medium weight */
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
* {
|
||||||
|
font-family: "Europa Mono", monospace;
|
||||||
|
}
|
||||||
13
src/app.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>Smoothie Blender Manager</title>
|
||||||
|
%sveltekit.head%
|
||||||
|
</head>
|
||||||
|
<body data-sveltekit-preload-data="hover">
|
||||||
|
<div style="display: contents">%sveltekit.body%</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
BIN
src/lib/assets/baseicon.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
src/lib/assets/fonts/Europa-Mono-Medium.otf
Executable file
202
src/lib/blenderfetch.js
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
import { fetch } from '@tauri-apps/plugin-http';
|
||||||
|
import { platform } from '@tauri-apps/plugin-os';
|
||||||
|
import { currentSettings } from './settings';
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
import { get } from 'svelte/store';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} FileLink
|
||||||
|
* @property {string} version - The version string (e.g., "5.0.0")
|
||||||
|
* @property {string} downloadUrl - The full download URL
|
||||||
|
* @property {string} platform - The platform identifier (e.g., 'linux', 'windows', 'macos')
|
||||||
|
* @property {string} architecture - The architecture identifier (e.g., 'x64', 'arm64')
|
||||||
|
* @property {string} fileExtension - The file extension (e.g., 'tar.xz', 'zip')
|
||||||
|
* @property {string} status - The download status ('pending', 'downloading', 'completed', 'error')
|
||||||
|
* @property {number} percent - The download progress percentage (0-100)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} BlenderRelease
|
||||||
|
* @property {string} original - The original href from the release page
|
||||||
|
* @property {string} version - The version string (e.g., "2.80", "3.6", "4.2alpha")
|
||||||
|
* @property {string} fullPath - The full URL to the release folder
|
||||||
|
* @property {Date|null} lastModified - The last modified date (currently null)
|
||||||
|
* @property {Array<FileLink>} links - Array of download links for this release
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const blenderReleases = writable([]);
|
||||||
|
|
||||||
|
export async function getBlenderReleases() {
|
||||||
|
const settings = await get(currentSettings);
|
||||||
|
const currentPlatform = settings.defaultPlatform || platform();
|
||||||
|
const currentArch = settings.defaultArch;
|
||||||
|
try {
|
||||||
|
// Fetch the HTML page
|
||||||
|
const response = await fetch('https://download.blender.org/release/');
|
||||||
|
const html = await response.text();
|
||||||
|
|
||||||
|
// Parse the HTML
|
||||||
|
const parser = new DOMParser();
|
||||||
|
const doc = parser.parseFromString(html, 'text/html');
|
||||||
|
|
||||||
|
// Extract all links that look like version folders
|
||||||
|
const links = doc.querySelectorAll('a');
|
||||||
|
/** @type {Promise<any>[]} */
|
||||||
|
const folderPromises = [];
|
||||||
|
|
||||||
|
links.forEach((link) => {
|
||||||
|
const href = link.getAttribute('href');
|
||||||
|
// Filter for directory links (ending with '/') that are version folders
|
||||||
|
// This regex matches patterns like Blender2.80/, Blender3.6/, Blender4.2alpha/, etc.
|
||||||
|
if (href && href.endsWith('/') && href.match(/^Blender[\d.]+[a-z]*\//)) {
|
||||||
|
// Remove the trailing slash and 'Blender' prefix for cleaner version names
|
||||||
|
const versionName = href.slice(0, -1).replace('Blender', ''); // Remove trailing slash
|
||||||
|
if (parseFloat(versionName) > 2.78) {
|
||||||
|
const promise = getBlenderMinorVersionsWithDownload(
|
||||||
|
`https://download.blender.org/release/${href}`,
|
||||||
|
currentPlatform,
|
||||||
|
currentArch
|
||||||
|
).then((links) => {
|
||||||
|
// Only add to array if there are links
|
||||||
|
if (links && links.length > 0) {
|
||||||
|
return {
|
||||||
|
original: href,
|
||||||
|
version: versionName, // e.g., "2.80", "3.6", "4.2alpha"
|
||||||
|
fullPath: `https://download.blender.org/release/${href}`,
|
||||||
|
lastModified: null, // Date info is in a separate column, harder to parse
|
||||||
|
links: links
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
folderPromises.push(promise);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
const folders = (await Promise.all(folderPromises)).filter((folder) => folder !== null);
|
||||||
|
folders.sort((a, b) => compareVersions(b.version, a.version));
|
||||||
|
blenderReleases.set(folders);
|
||||||
|
return folders;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching Blender release list:', error);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetches the minor versions (e.g., 5.0.0, 5.1.0) for a given major version folder URL,
|
||||||
|
* along with their download URLs for the current platform and architecture.
|
||||||
|
* @returns {Promise<FileLink[]>} List of minor versions with download URLs
|
||||||
|
* @param {string} majorVersionFolderUrl
|
||||||
|
* @param {string} currentPlatform
|
||||||
|
* @param {string} currentArch
|
||||||
|
*/
|
||||||
|
async function getBlenderMinorVersionsWithDownload(
|
||||||
|
majorVersionFolderUrl,
|
||||||
|
currentPlatform,
|
||||||
|
currentArch
|
||||||
|
) {
|
||||||
|
try {
|
||||||
|
// 1. Fetch the HTML of the version folder (e.g., Blender5.0/)
|
||||||
|
const response = await fetch(majorVersionFolderUrl);
|
||||||
|
const html = await response.text();
|
||||||
|
|
||||||
|
// 2. Parse the HTML
|
||||||
|
const parser = new DOMParser();
|
||||||
|
const doc = parser.parseFromString(html, 'text/html');
|
||||||
|
|
||||||
|
// 3. Map your platform/arch to the naming convention used in filenames
|
||||||
|
/** @type {{ linux: string; windows: string; darwin: string; }} */
|
||||||
|
const platformMap = {
|
||||||
|
linux: 'linux',
|
||||||
|
windows: 'windows',
|
||||||
|
darwin: 'macos' // macOS is called 'darwin' in some contexts, but files use 'macos'
|
||||||
|
};
|
||||||
|
/** @type {{ x86_64: string; arm64: string; }} */
|
||||||
|
const archMap = {
|
||||||
|
x86_64: 'x64',
|
||||||
|
arm64: 'arm64'
|
||||||
|
};
|
||||||
|
|
||||||
|
const targetPlatform =
|
||||||
|
platformMap[/** @type {keyof platformMap} */ (currentPlatform)] || currentPlatform;
|
||||||
|
const targetArch = archMap[/** @type {keyof archMap} */ (currentArch)] || currentArch;
|
||||||
|
|
||||||
|
// 4. Get all file links and process them
|
||||||
|
const links = doc.querySelectorAll('a');
|
||||||
|
/** @type {Map<string, { [key: string]: { url: string; extension: string; platform: string; arch: string } }>} */
|
||||||
|
const versionsMap = new Map(); // Key: version string, Value: object with files
|
||||||
|
|
||||||
|
links.forEach((link) => {
|
||||||
|
const href = link.getAttribute('href');
|
||||||
|
if (!href) return;
|
||||||
|
|
||||||
|
// Match pattern: blender-5.0.0-linux-x64.tar.xz
|
||||||
|
// Regex captures: version, platform, arch, extension
|
||||||
|
const match = href.match(/^blender-([\d.]+)-([a-z]+)-([a-z0-9]+)\.([a-z.]+)$/);
|
||||||
|
if (match) {
|
||||||
|
const [_, version, platform, arch, ext] =
|
||||||
|
/** @type {[string, string, string, string, string]} */ (match);
|
||||||
|
|
||||||
|
// Ignore checksum files (.md5, .sha256) if you don't need them
|
||||||
|
if (ext === 'md5' || ext === 'sha256') return;
|
||||||
|
|
||||||
|
// Store file info grouped by version
|
||||||
|
if (!versionsMap.has(version)) {
|
||||||
|
versionsMap.set(version, {});
|
||||||
|
}
|
||||||
|
const versionFiles = versionsMap.get(version);
|
||||||
|
if (!versionFiles) return;
|
||||||
|
const key = `${platform}-${arch}`;
|
||||||
|
versionFiles[key] = {
|
||||||
|
url: new URL(href, majorVersionFolderUrl).href,
|
||||||
|
extension: ext,
|
||||||
|
platform,
|
||||||
|
arch
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// 5. For each version, pick the correct download link based on target platform/arch
|
||||||
|
const results = [];
|
||||||
|
const targetKey = `${targetPlatform}-${targetArch}`;
|
||||||
|
|
||||||
|
for (const [version, files] of versionsMap.entries()) {
|
||||||
|
const fileInfo = files[targetKey];
|
||||||
|
if (fileInfo) {
|
||||||
|
results.push({
|
||||||
|
version: version,
|
||||||
|
downloadUrl: fileInfo.url,
|
||||||
|
platform: targetPlatform,
|
||||||
|
architecture: targetArch,
|
||||||
|
fileExtension: fileInfo.extension,
|
||||||
|
status: 'pending',
|
||||||
|
percent: 0
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
console.warn(`No matching file found for ${version} with ${targetKey}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return results.sort((a, b) => compareVersions(a.version, b.version)); // Optional: sort versions
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching Blender versions:', error);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Helper function to compare version strings (e.g., "5.0.0", "5.0.1")
|
||||||
|
/**
|
||||||
|
* @param {string} v1
|
||||||
|
* @param {string} v2
|
||||||
|
*/
|
||||||
|
function compareVersions(v1, v2) {
|
||||||
|
const parts1 = v1.split('.').map(Number);
|
||||||
|
const parts2 = v2.split('.').map(Number);
|
||||||
|
for (let i = 0; i < Math.max(parts1.length, parts2.length); i++) {
|
||||||
|
const num1 = parts1[i] || 0;
|
||||||
|
const num2 = parts2[i] || 0;
|
||||||
|
if (num1 !== num2) return num1 - num2;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
66
src/lib/components/Button.svelte
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<script>
|
||||||
|
let {
|
||||||
|
style = 'default',
|
||||||
|
color = 'black',
|
||||||
|
onclick,
|
||||||
|
children,
|
||||||
|
disabled = false,
|
||||||
|
fill = false
|
||||||
|
} = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<button {disabled} class="btn {style} {color}" class:fill {onclick} class:disabled
|
||||||
|
>{@render children()}</button
|
||||||
|
>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.btn {
|
||||||
|
font-family: var(--font);
|
||||||
|
outline: unset;
|
||||||
|
border: unset;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 100;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.black {
|
||||||
|
color: var(--light);
|
||||||
|
background-color: var(--black);
|
||||||
|
}
|
||||||
|
.black:hover {
|
||||||
|
background-color: var(--accent);
|
||||||
|
}
|
||||||
|
.black:active {
|
||||||
|
background-color: var(--light-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.iconbutton {
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.iconbutton:hover {
|
||||||
|
background-color: var(--light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.accent {
|
||||||
|
color: var(--light);
|
||||||
|
background-color: var(--accent);
|
||||||
|
}
|
||||||
|
.accent:hover {
|
||||||
|
background-color: var(--light-accent);
|
||||||
|
}
|
||||||
|
.accent:active {
|
||||||
|
background-color: var(--dark-accent);
|
||||||
|
}
|
||||||
|
.disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: default;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.fill {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
32
src/lib/components/Download.svelte
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<script>
|
||||||
|
import Release from '$lib/components/Release.svelte';
|
||||||
|
let { blenderVersions, installedVersions, downloadTasks } = $props();
|
||||||
|
import '@webtui/css/components/progress.css';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="container">
|
||||||
|
<h2>Releases</h2>
|
||||||
|
<div id="releases">
|
||||||
|
{#each blenderVersions as release (release.version)}
|
||||||
|
<Release {installedVersions} {downloadTasks} {release} />
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
h2 {
|
||||||
|
font-weight: normal;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
#container {
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
#releases {
|
||||||
|
padding-right: 1rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
69
src/lib/components/Library.svelte
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<script>
|
||||||
|
import VersionCard from './VersionCard.svelte';
|
||||||
|
import { send, receive } from '$lib/transition.js';
|
||||||
|
import { flip } from 'svelte/animate';
|
||||||
|
|
||||||
|
let { installedVersions } = $props();
|
||||||
|
import '@webtui/css/base.css';
|
||||||
|
import '@webtui/css/utils/box.css';
|
||||||
|
|
||||||
|
let favourites = $derived(installedVersions?.filter((v) => v.favourite) || []);
|
||||||
|
let installed = $derived(installedVersions?.filter((v) => !v.favourite) || []);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h2>Favourites</h2>
|
||||||
|
|
||||||
|
<div id="container">
|
||||||
|
<div id="library">
|
||||||
|
{#if favourites.length}
|
||||||
|
{#each favourites as version (version.version)}
|
||||||
|
<div
|
||||||
|
animate:flip={{ duration: 200 }}
|
||||||
|
in:receive={{ key: version.version }}
|
||||||
|
out:send={{ key: version.version }}
|
||||||
|
>
|
||||||
|
<VersionCard {version} />
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
{:else}
|
||||||
|
<p class="minor">No favourites</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Installed</h2>
|
||||||
|
<div id="container">
|
||||||
|
<div id="library">
|
||||||
|
{#each installed as version (version.version)}
|
||||||
|
<div
|
||||||
|
animate:flip={{ duration: 200 }}
|
||||||
|
in:receive={{ key: version.version }}
|
||||||
|
out:send={{ key: version.version }}
|
||||||
|
>
|
||||||
|
<VersionCard {version} />
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.minor {
|
||||||
|
color: var(--light-accent);
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-weight: normal;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
#container {
|
||||||
|
max-height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
#library {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.5rem;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 140px;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
142
src/lib/components/Menu.svelte
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
<script>
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
import Button from '$lib/components/Button.svelte';
|
||||||
|
|
||||||
|
let { position = 'bottom', button = undefined, children = undefined } = $props();
|
||||||
|
|
||||||
|
let open = $state(false);
|
||||||
|
let menuRef = $state(null);
|
||||||
|
let buttonRef = $state(null);
|
||||||
|
|
||||||
|
const toggle = () => {
|
||||||
|
open = !open;
|
||||||
|
};
|
||||||
|
|
||||||
|
const close = () => {
|
||||||
|
open = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
const handleClickOutside = (event) => {
|
||||||
|
if (
|
||||||
|
open &&
|
||||||
|
menuRef &&
|
||||||
|
!menuRef.contains(event.target) &&
|
||||||
|
buttonRef &&
|
||||||
|
!buttonRef.contains(event.target)
|
||||||
|
) {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleEscape = (event) => {
|
||||||
|
if (event.key === 'Escape' && open) {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
document.addEventListener('click', handleClickOutside);
|
||||||
|
document.addEventListener('keydown', handleEscape);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
document.removeEventListener('click', handleClickOutside);
|
||||||
|
document.removeEventListener('keydown', handleEscape);
|
||||||
|
};
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="menu-container">
|
||||||
|
<div class="btncont" bind:this={buttonRef}>
|
||||||
|
{#if button}
|
||||||
|
{@render button({ toggle, open })}
|
||||||
|
{:else}
|
||||||
|
<!-- Default three-dots button -->
|
||||||
|
<Button fill={true} style="iconbutton" onclick={toggle}>
|
||||||
|
<div class="icon-container">
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="20"
|
||||||
|
height="20"
|
||||||
|
fill="currentColor"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
</Button>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{#if open}
|
||||||
|
<div
|
||||||
|
class="menu-items"
|
||||||
|
class:top={position === 'top'}
|
||||||
|
class:bottom={position === 'bottom'}
|
||||||
|
class:left={position === 'left'}
|
||||||
|
class:right={position === 'right'}
|
||||||
|
bind:this={menuRef}
|
||||||
|
>
|
||||||
|
{#if children}
|
||||||
|
{@render children({ close })}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.btncont {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.menu-container {
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-items {
|
||||||
|
position: absolute;
|
||||||
|
background-color: var(--light);
|
||||||
|
border: 2px solid var(--light-accent);
|
||||||
|
border-radius: 5px;
|
||||||
|
min-width: 120px;
|
||||||
|
z-index: 1000;
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-items.bottom {
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-items.top {
|
||||||
|
bottom: 100%;
|
||||||
|
left: 0;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-items.left {
|
||||||
|
top: 0;
|
||||||
|
right: 100%;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-items.right {
|
||||||
|
top: 0;
|
||||||
|
left: 100%;
|
||||||
|
margin-left: 4px;
|
||||||
|
}
|
||||||
|
svg {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.icon-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.icon-container:hover svg {
|
||||||
|
fill: var(--accent);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
82
src/lib/components/Progress.svelte
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
<script>
|
||||||
|
import { onMount, tick } from 'svelte';
|
||||||
|
|
||||||
|
let { percent, unzipping, installed } = $props();
|
||||||
|
|
||||||
|
let element;
|
||||||
|
let emptyChar = '·';
|
||||||
|
let filledChar = '■';
|
||||||
|
let endChar = '';
|
||||||
|
let startChar = '|';
|
||||||
|
let spinnerChars = ['⣾', '⣽', '⣻', '⢿', '⡿', '⣟', '⣯', '⣷'];
|
||||||
|
let spinnerAlt = ['⠁', '⠂', '⠄', '⡀', '⢀', '⠠', '⠐', '⠈'];
|
||||||
|
let spinner = '';
|
||||||
|
let barWidth = $state(0);
|
||||||
|
|
||||||
|
let bar = $state('');
|
||||||
|
|
||||||
|
onMount(async () => {
|
||||||
|
requestAnimationFrame(updateBar);
|
||||||
|
//const resizeObserver = new ResizeObserver(updateBar);
|
||||||
|
//resizeObserver.observe(element);
|
||||||
|
});
|
||||||
|
|
||||||
|
async function updateBar(timestamp) {
|
||||||
|
if (!element) return;
|
||||||
|
spinner = spinnerChars[Math.floor(timestamp / 150) % spinnerChars.length];
|
||||||
|
const style = window.getComputedStyle(element);
|
||||||
|
const fontSize = parseFloat(style.fontSize);
|
||||||
|
// Estimate character width as roughly 60% of font size (monospace approximation)
|
||||||
|
const charWidth = fontSize * 0.57;
|
||||||
|
barWidth = Math.floor(element.clientWidth / charWidth) - 2;
|
||||||
|
bar =
|
||||||
|
startChar +
|
||||||
|
filledChar.repeat(Math.ceil((percent / 100) * barWidth)) +
|
||||||
|
'|' +
|
||||||
|
emptyChar.repeat(barWidth - Math.ceil((percent / 100) * barWidth)) +
|
||||||
|
endChar;
|
||||||
|
if (unzipping) {
|
||||||
|
const installText = '| |';
|
||||||
|
const barLength = barWidth;
|
||||||
|
const installStart = Math.floor((timestamp / 10) % (barLength + installText.length));
|
||||||
|
const barArray = bar.split('');
|
||||||
|
for (let i = 0; i < installText.length; i++) {
|
||||||
|
const pos = installStart + i;
|
||||||
|
if (pos >= barLength) {
|
||||||
|
barArray[pos - barLength] = installText[i];
|
||||||
|
} else {
|
||||||
|
barArray[pos] = installText[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bar = barArray.join('');
|
||||||
|
}
|
||||||
|
requestAnimationFrame(updateBar);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div bind:this={element} id="progress">
|
||||||
|
{#each bar as char, index (index)}
|
||||||
|
<span class="fixed-char" class:installed>{char}</span>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#progress {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.fixed-char {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: var(--font);
|
||||||
|
width: 1ch;
|
||||||
|
max-width: 1ch;
|
||||||
|
min-width: 1ch;
|
||||||
|
text-align: center;
|
||||||
|
overflow: visible;
|
||||||
|
color: var(--accent);
|
||||||
|
transition: 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
.fixed-char.installed {
|
||||||
|
color: var(--black);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
100
src/lib/components/Release.svelte
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
<script>
|
||||||
|
import Button from './Button.svelte';
|
||||||
|
import Progress from '$lib/components/Progress.svelte';
|
||||||
|
import { downloadBlenderVersion } from '$lib/download.js';
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
|
let { release, installedVersions = [], downloadTasks } = $props();
|
||||||
|
let linkIndex = $state(0);
|
||||||
|
let selectedLink = $derived(release.links[linkIndex]);
|
||||||
|
|
||||||
|
let installed = $derived(installedVersions.some((v) => v.version === selectedLink.version));
|
||||||
|
|
||||||
|
let percent = $derived(
|
||||||
|
downloadTasks.find((task) => task.version === selectedLink.version)?.percent ?? 0
|
||||||
|
);
|
||||||
|
let downloading = $derived(percent > 0 && !installed);
|
||||||
|
let unzipping = $derived(percent === 100 && !installed);
|
||||||
|
onMount(() => {
|
||||||
|
linkIndex = release.links.length - 1;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="download" class:full-width={downloading || installed}>
|
||||||
|
<div class="selectVersion {downloading}">
|
||||||
|
<select class:disabled={downloading && !installed} bind:value={linkIndex}>
|
||||||
|
{#each release.links as link, i (link.version)}
|
||||||
|
<option value={i} selected={i === linkIndex}>{link.version}</option>
|
||||||
|
{/each}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="progress" class:downloading={downloading || installed}>
|
||||||
|
<Progress {unzipping} percent={installed ? 100 : percent} {installed}></Progress>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
disabled={installed}
|
||||||
|
color={downloading ? 'accent' : 'black'}
|
||||||
|
onclick={() => {
|
||||||
|
downloadBlenderVersion(selectedLink);
|
||||||
|
downloading = !downloading;
|
||||||
|
}}>{installed ? 'Installed' : downloading ? 'Cancel' : 'Download'}</Button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.download {
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
align-content: center;
|
||||||
|
background-color: var(--light);
|
||||||
|
padding: 0.5rem 0.5rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
width: 20rem;
|
||||||
|
transition: width 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download.full-width {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.selectVersion {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 5.5rem;
|
||||||
|
min-width: 5.5rem;
|
||||||
|
}
|
||||||
|
.progress {
|
||||||
|
flex: 1;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.progress.downloading {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
select {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: none;
|
||||||
|
outline: unset;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-appearance: none;
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: var(--font);
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 0.5rem 0.5rem;
|
||||||
|
border-radius: 0.2rem;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
select:hover {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
}
|
||||||
|
select.disabled {
|
||||||
|
color: var(--accent);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
20
src/lib/components/Settings.svelte
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<script>
|
||||||
|
let { settings } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>Settings</div>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div>Platform: {settings.defaultPlatform}</div>
|
||||||
|
<div>Architecture: {settings.defaultArch}</div>
|
||||||
|
<div>Keep Archives: {settings.keepDownloadedArchives}</div>
|
||||||
|
<div>Library: {settings.libraryDir}/Smoothie Library</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#container {
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
99
src/lib/components/VersionCard.svelte
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<script>
|
||||||
|
import { deleteVersion, launchBlenderVersion } from '$lib/library';
|
||||||
|
import { toggleFavourite } from '$lib/library';
|
||||||
|
import Button from '$lib/components/Button.svelte';
|
||||||
|
import Menu from '$lib/components/Menu.svelte';
|
||||||
|
let { version } = $props();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="card">
|
||||||
|
<div class="row">
|
||||||
|
{version.version}
|
||||||
|
<Button style="iconbutton" onclick={() => toggleFavourite(version)}
|
||||||
|
><svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="16"
|
||||||
|
height="16"
|
||||||
|
class="fav-btn {version.favourite ? 'fav' : ''}"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M2 2v13.5a.5.5 0 0 0 .74.439L8 13.069l5.26 2.87A.5.5 0 0 0 14 15.5V2a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<Button onclick={() => launchBlenderVersion(version)}>Launch</Button>
|
||||||
|
<Menu>
|
||||||
|
{#snippet children({ close })}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="menu-item"
|
||||||
|
onclick={() => deleteVersion(version) && close()}
|
||||||
|
onkeydown={(e) =>
|
||||||
|
(e.key === 'Enter' || e.key === ' ') && deleteVersion(version) && close()}
|
||||||
|
>Delete</button
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="menu-item"
|
||||||
|
onclick={close}
|
||||||
|
onkeydown={(e) => (e.key === 'Enter' || e.key === ' ') && close()}>Option 2</button
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="menu-item"
|
||||||
|
onclick={close}
|
||||||
|
onkeydown={(e) => (e.key === 'Enter' || e.key === ' ') && close()}>Option 3</button
|
||||||
|
>
|
||||||
|
{/snippet}
|
||||||
|
</Menu>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
justify-content: space-between;
|
||||||
|
aspect-ratio: 1 / 0.7;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 170px;
|
||||||
|
max-width: 200px;
|
||||||
|
background-color: var(--white);
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: var(--light);
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
#card:hover {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
|
.fav-btn:hover {
|
||||||
|
fill: var(--accent);
|
||||||
|
}
|
||||||
|
.fav-btn.fav {
|
||||||
|
fill: var(--accent);
|
||||||
|
}
|
||||||
|
.menu-item {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
cursor: pointer;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
font-family: var(--font);
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--black);
|
||||||
|
text-align: left;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.menu-item:hover {
|
||||||
|
background-color: var(--light-accent);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
262
src/lib/download.js
Normal file
@ -0,0 +1,262 @@
|
|||||||
|
import { getSettings } from './settings.js';
|
||||||
|
import { ensureDirectory, stripTopLevelDirectory } from '$lib/file_utils.js';
|
||||||
|
import { join } from '@tauri-apps/api/path';
|
||||||
|
import { remove, readDir } from '@tauri-apps/plugin-fs';
|
||||||
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
|
import { download } from '@tauri-apps/plugin-upload';
|
||||||
|
import { getInstalledVersions } from './library.js';
|
||||||
|
import { BASE_LIBRARY_DIR } from './settings.js';
|
||||||
|
import { writable, get } from 'svelte/store';
|
||||||
|
|
||||||
|
export const downloadTasksStore = writable([]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} DownloadProgress
|
||||||
|
* @property {number} loaded - Bytes downloaded
|
||||||
|
* @property {number} total - Total bytes
|
||||||
|
* @property {number} percent - Progress percentage (0-100)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the download progress for a specific version in the download tasks store.
|
||||||
|
* @param {string} version - The Blender version
|
||||||
|
* @param {DownloadProgress} progress - The download progress object
|
||||||
|
*/
|
||||||
|
export function updateDownloadProgress(version, progress) {
|
||||||
|
downloadTasksStore.update((tasks) => {
|
||||||
|
const existingIndex = tasks.findIndex((task) => task.version === version);
|
||||||
|
if (existingIndex !== -1) {
|
||||||
|
// Update existing task
|
||||||
|
const updatedTasks = [...tasks];
|
||||||
|
updatedTasks[existingIndex] = { ...updatedTasks[existingIndex], ...progress };
|
||||||
|
return updatedTasks;
|
||||||
|
} else {
|
||||||
|
// Add new task
|
||||||
|
return [...tasks, { version, ...progress }];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Download and extract a Blender version.
|
||||||
|
* @param {(progress: DownloadProgress) => void} [onProgress] - Optional progress callback
|
||||||
|
* @returns {Promise<{success: boolean, message: string, path: string}>} Result
|
||||||
|
*/
|
||||||
|
export async function downloadBlenderVersion(versionInfo) {
|
||||||
|
try {
|
||||||
|
// Get settings
|
||||||
|
const settings = await getSettings();
|
||||||
|
const libraryDir = settings.libraryDir;
|
||||||
|
if (!libraryDir) {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: 'Library directory not set. Please configure settings.',
|
||||||
|
path: ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create target directory path
|
||||||
|
const targetDir = await join(libraryDir, BASE_LIBRARY_DIR, 'blender', versionInfo.version);
|
||||||
|
|
||||||
|
// Ensure the directory exists
|
||||||
|
await ensureDirectory(targetDir);
|
||||||
|
|
||||||
|
// Download the archive
|
||||||
|
const downloadResult = await downloadFile(versionInfo.downloadUrl, targetDir, (progress) => {
|
||||||
|
updateDownloadProgress(versionInfo.version, progress);
|
||||||
|
});
|
||||||
|
if (!downloadResult.success) {
|
||||||
|
// Clean up target directory if it's empty (failed download)
|
||||||
|
try {
|
||||||
|
const entries = await readDir(targetDir);
|
||||||
|
if (entries.length === 0) {
|
||||||
|
await remove(targetDir);
|
||||||
|
}
|
||||||
|
} catch (cleanupError) {
|
||||||
|
console.warn('Failed to clean up empty directory:', cleanupError);
|
||||||
|
}
|
||||||
|
return downloadResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
const archivePath = downloadResult.path;
|
||||||
|
|
||||||
|
// Extract the archive
|
||||||
|
const extractResult = await extractArchive(
|
||||||
|
archivePath,
|
||||||
|
targetDir,
|
||||||
|
versionInfo.platform,
|
||||||
|
versionInfo.fileExtension,
|
||||||
|
settings.keepDownloadedArchives ?? true
|
||||||
|
);
|
||||||
|
if (!extractResult.success) {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: extractResult.message,
|
||||||
|
path: extractResult.path || ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
//refresh installed versions
|
||||||
|
await getInstalledVersions();
|
||||||
|
return {
|
||||||
|
success: true,
|
||||||
|
message: `Successfully downloaded and extracted Blender ${versionInfo.version}`,
|
||||||
|
path: targetDir
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error downloading Blender version:', error);
|
||||||
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: `Unexpected error: ${errorMessage}`,
|
||||||
|
path: ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Download a file from URL to destination directory using optimized plugin.
|
||||||
|
* @param {string} url - Download URL
|
||||||
|
* @param {string} targetDir - Destination directory
|
||||||
|
* @param {(progress: DownloadProgress) => void} [onProgress] - Optional progress callback
|
||||||
|
* @returns {Promise<{success: boolean, message: string, path: string}>} Result with downloaded file path
|
||||||
|
*/
|
||||||
|
async function downloadFile(url, targetDir, onProgress) {
|
||||||
|
try {
|
||||||
|
// Extract filename from URL
|
||||||
|
const urlObj = new URL(url);
|
||||||
|
const filename = urlObj.pathname.split('/').pop() || 'blender-archive';
|
||||||
|
const filePath = await join(targetDir, filename);
|
||||||
|
|
||||||
|
// Optional: Mimic browser headers for better CDN performance
|
||||||
|
const headers = new Map([
|
||||||
|
['User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'],
|
||||||
|
['Accept-Encoding', 'gzip, deflate, br'],
|
||||||
|
['Accept', '*/*'],
|
||||||
|
['Connection', 'keep-alive']
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Use the optimized download function with proper async handling
|
||||||
|
await download(
|
||||||
|
url,
|
||||||
|
filePath,
|
||||||
|
(update) => {
|
||||||
|
if (onProgress) {
|
||||||
|
// Ensure progress updates are delivered asynchronously to prevent UI blocking
|
||||||
|
queueMicrotask(() => {
|
||||||
|
onProgress({
|
||||||
|
loaded: update.progressTotal,
|
||||||
|
total: update.total,
|
||||||
|
percent:
|
||||||
|
update.total > 0 ? Math.round((update.progressTotal / update.total) * 100) : 0
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
headers
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
success: true,
|
||||||
|
message: 'Download completed',
|
||||||
|
path: filePath
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error downloading file:', error);
|
||||||
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||||
|
|
||||||
|
// Clean up partially downloaded file if it exists
|
||||||
|
try {
|
||||||
|
const urlObj = new URL(url);
|
||||||
|
const filename = urlObj.pathname.split('/').pop() || 'blender-archive';
|
||||||
|
const filePath = await join(targetDir, filename);
|
||||||
|
await remove(filePath);
|
||||||
|
} catch (cleanupError) {
|
||||||
|
console.warn('Failed to clean up partially downloaded file:', cleanupError);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: `Download error: ${errorMessage}`,
|
||||||
|
path: ''
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extract an archive using Rust-based extraction (supports .zip, .tar, .tar.gz, .tar.xz, .tar.bz2)
|
||||||
|
* @param {string} archivePath - Path to archive file
|
||||||
|
* @param {string} targetDir - Directory to extract into
|
||||||
|
* @param {string} platform - "linux", "windows", "macos" (unused for Rust extraction)
|
||||||
|
* @param {string} fileExtension - Archive extension
|
||||||
|
* @param {boolean} keepArchive - Whether to keep the archive after extraction
|
||||||
|
* @returns {Promise<{success: boolean, message: string, path?: string}>} Result
|
||||||
|
*/
|
||||||
|
async function extractArchive(archivePath, targetDir, platform, fileExtension, keepArchive) {
|
||||||
|
try {
|
||||||
|
// Use Rust-based extraction via Tauri command
|
||||||
|
const result = await invoke('extract_archive', {
|
||||||
|
archivePath,
|
||||||
|
targetDir
|
||||||
|
});
|
||||||
|
|
||||||
|
// Extract succeeded - remove archive if not keeping it
|
||||||
|
if (!keepArchive) {
|
||||||
|
try {
|
||||||
|
await remove(archivePath);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Failed to remove archive:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flatten directory structure if archive created a top-level directory
|
||||||
|
await stripTopLevelDirectory(targetDir);
|
||||||
|
|
||||||
|
return {
|
||||||
|
success: true,
|
||||||
|
message: String(result),
|
||||||
|
path: archivePath
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error extracting archive:', error);
|
||||||
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||||
|
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: `Extraction failed: ${errorMessage}`,
|
||||||
|
path: archivePath
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the path where a Blender version should be installed.
|
||||||
|
* @param {string} version - Version string
|
||||||
|
* @returns {Promise<string>} Full path to version directory
|
||||||
|
*/
|
||||||
|
export async function getVersionPath(version) {
|
||||||
|
const settings = await getSettings();
|
||||||
|
const libraryDir = settings.libraryDir;
|
||||||
|
if (!libraryDir) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
return join(libraryDir, BASE_LIBRARY_DIR, 'blender', version);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a Blender version is already installed.
|
||||||
|
* @param {string} version - Version string
|
||||||
|
* @returns {Promise<boolean>} True if version directory exists and has content
|
||||||
|
*/
|
||||||
|
export async function isVersionInstalled(version) {
|
||||||
|
try {
|
||||||
|
const versionPath = await getVersionPath(version);
|
||||||
|
if (!versionPath) return false;
|
||||||
|
|
||||||
|
const entries = await readDir(versionPath);
|
||||||
|
// Check if directory exists and has at least one entry (not empty)
|
||||||
|
return entries.length > 0;
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
251
src/lib/file_utils.js
Normal file
@ -0,0 +1,251 @@
|
|||||||
|
import {
|
||||||
|
appDataDir,
|
||||||
|
join,
|
||||||
|
basename as pathBasename,
|
||||||
|
dirname as pathDirname
|
||||||
|
} from '@tauri-apps/api/path';
|
||||||
|
import { stat, mkdir, readDir, copyFile, rename, remove } from '@tauri-apps/plugin-fs';
|
||||||
|
import { open } from '@tauri-apps/plugin-dialog';
|
||||||
|
import baseicon from '$lib/assets/baseicon.png';
|
||||||
|
import { BASE_LIBRARY_DIR } from './settings';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a custom icon with text overlay
|
||||||
|
* @param {string} [iconText] - Text to overlay on the icon
|
||||||
|
* @returns {Promise<Blob>} Promise resolving to a PNG blob of the icon
|
||||||
|
*/
|
||||||
|
export async function createIcon(iconText) {
|
||||||
|
// Create canvas element
|
||||||
|
const canvas = document.createElement('canvas');
|
||||||
|
const ctx = canvas.getContext('2d');
|
||||||
|
|
||||||
|
// Load the base icon image
|
||||||
|
const img = new Image();
|
||||||
|
img.src = baseicon;
|
||||||
|
|
||||||
|
// Wait for image to load
|
||||||
|
await new Promise((resolve) => {
|
||||||
|
img.onload = resolve;
|
||||||
|
});
|
||||||
|
|
||||||
|
// Set canvas dimensions to match image
|
||||||
|
canvas.width = img.width;
|
||||||
|
canvas.height = img.height;
|
||||||
|
|
||||||
|
// Draw the base icon
|
||||||
|
ctx.drawImage(img, 0, 0);
|
||||||
|
|
||||||
|
// Set text properties
|
||||||
|
ctx.fillStyle = '#7d70ba';
|
||||||
|
ctx.textAlign = 'left';
|
||||||
|
ctx.textBaseline = 'top';
|
||||||
|
|
||||||
|
// Load the custom font
|
||||||
|
const fontFace = new FontFace(
|
||||||
|
'Europa-Mono',
|
||||||
|
`url(${baseicon.replace('baseicon.png', 'fonts/Europa-Mono-Medium.otf')})`
|
||||||
|
);
|
||||||
|
await fontFace.load();
|
||||||
|
document.fonts.add(fontFace);
|
||||||
|
|
||||||
|
// Set font size based on canvas dimensions
|
||||||
|
const fontSize = canvas.width / 6;
|
||||||
|
ctx.font = `${fontSize}px Europa-Mono`;
|
||||||
|
// Set font size based on canvas dimensions
|
||||||
|
|
||||||
|
// Add version text in the center
|
||||||
|
const text = iconText || 'XXX';
|
||||||
|
ctx.fillText(text, 150, 150);
|
||||||
|
|
||||||
|
// Convert canvas to blob
|
||||||
|
return new Promise((resolve) => {
|
||||||
|
canvas.toBlob((blob) => {
|
||||||
|
resolve(blob);
|
||||||
|
}, 'image/png');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create library directory structure if it doesn't exist
|
||||||
|
* @param {string} libraryDir - Library directory path
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
*/
|
||||||
|
export async function ensureLibraryStructure(libraryDir) {
|
||||||
|
try {
|
||||||
|
// Create main library directory
|
||||||
|
const baseDir = await join(libraryDir, BASE_LIBRARY_DIR);
|
||||||
|
// Create blender subdirectory
|
||||||
|
const blenderDir = await join(baseDir, 'blender');
|
||||||
|
await mkdir(blenderDir, { recursive: true });
|
||||||
|
|
||||||
|
// Create templates subdirectory
|
||||||
|
const templatesDir = await join(baseDir, 'templates');
|
||||||
|
await mkdir(templatesDir, { recursive: true });
|
||||||
|
|
||||||
|
const configDir = await join(baseDir, 'config');
|
||||||
|
await mkdir(configDir, { recursive: true });
|
||||||
|
|
||||||
|
console.log('Library structure created at:', libraryDir);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error creating library structure:', error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open a directory picker dialog for selecting a directory.
|
||||||
|
* @param {string} [currentPath] - Current path to use as default
|
||||||
|
* @returns {Promise<string|null>} Selected path or null if cancelled
|
||||||
|
*/
|
||||||
|
export async function selectDirectory(currentPath) {
|
||||||
|
try {
|
||||||
|
// Use currentPath if provided, otherwise use app data directory
|
||||||
|
let defaultPath = await appDataDir();
|
||||||
|
if (currentPath) {
|
||||||
|
defaultPath = currentPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
const selected = await open({
|
||||||
|
multiple: false,
|
||||||
|
recursive: true,
|
||||||
|
directory: true,
|
||||||
|
title: 'Select Library Directory',
|
||||||
|
defaultPath
|
||||||
|
});
|
||||||
|
|
||||||
|
return selected;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error opening directory picker:', error);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if a directory exists
|
||||||
|
* @param {string} path - Directory path to check
|
||||||
|
* @returns {Promise<boolean>} True if directory exists
|
||||||
|
*/
|
||||||
|
export async function directoryExists(path) {
|
||||||
|
try {
|
||||||
|
const stats = await stat(path);
|
||||||
|
return stats.isDirectory;
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a directory recursively if it doesn't exist
|
||||||
|
* @param {string} path - Directory path to create
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
*/
|
||||||
|
export async function ensureDirectory(path) {
|
||||||
|
try {
|
||||||
|
await mkdir(path, { recursive: true });
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error creating directory ${path}:`, error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the basename of a path (file or directory name)
|
||||||
|
* @param {string} path - Full path
|
||||||
|
* @returns {Promise<string>} Basename
|
||||||
|
*/
|
||||||
|
export async function basename(path) {
|
||||||
|
return pathBasename(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the directory name of a path
|
||||||
|
* @param {string} path - Full path
|
||||||
|
* @returns {Promise<string>} Directory name
|
||||||
|
*/
|
||||||
|
export async function dirname(path) {
|
||||||
|
return pathDirname(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy a file or directory recursively
|
||||||
|
* @param {string} source - Source path
|
||||||
|
* @param {string} destination - Destination path
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
*/
|
||||||
|
export async function copyPath(source, destination) {
|
||||||
|
try {
|
||||||
|
const statInfo = await stat(source);
|
||||||
|
if (statInfo.isDirectory) {
|
||||||
|
// Create destination directory
|
||||||
|
await mkdir(destination, { recursive: true });
|
||||||
|
// Read all entries in source
|
||||||
|
const entries = await readDir(source);
|
||||||
|
for (const entry of entries) {
|
||||||
|
const srcPath = await join(source, entry.name);
|
||||||
|
const destPath = await join(destination, entry.name);
|
||||||
|
await copyPath(srcPath, destPath); // recursive call
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// It's a file, copy directly
|
||||||
|
await copyFile(source, destination);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error copying ${source} to ${destination}:`, error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move or rename a file or directory
|
||||||
|
* @param {string} source - Source path
|
||||||
|
* @param {string} destination - Destination path
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
*/
|
||||||
|
export async function movePath(source, destination) {
|
||||||
|
try {
|
||||||
|
await rename(source, destination);
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error moving ${source} to ${destination}:`, error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Strip top-level directory if the target directory contains only one subdirectory.
|
||||||
|
* This is useful after extracting archives that create an unnecessary parent folder.
|
||||||
|
* @param {string} targetDir - Directory to check and potentially flatten
|
||||||
|
* @returns {Promise<boolean>} True if flattening was performed, false otherwise
|
||||||
|
*/
|
||||||
|
export async function stripTopLevelDirectory(targetDir) {
|
||||||
|
try {
|
||||||
|
// Read contents of target directory
|
||||||
|
const entries = await readDir(targetDir);
|
||||||
|
|
||||||
|
// If there's exactly one entry and it's a directory, flatten it
|
||||||
|
if (entries.length === 1 && entries[0].isDirectory) {
|
||||||
|
const singleDirName = entries[0].name;
|
||||||
|
const singleDirPath = await join(targetDir, singleDirName);
|
||||||
|
|
||||||
|
// Read contents of the single subdirectory
|
||||||
|
const subEntries = await readDir(singleDirPath);
|
||||||
|
|
||||||
|
// Move all items from subdirectory to target directory
|
||||||
|
for (const entry of subEntries) {
|
||||||
|
const sourcePath = await join(singleDirPath, entry.name);
|
||||||
|
const destPath = await join(targetDir, entry.name);
|
||||||
|
await rename(sourcePath, destPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the now-empty subdirectory
|
||||||
|
await remove(singleDirPath, { recursive: true });
|
||||||
|
|
||||||
|
console.log(`Flattened directory structure: removed ${singleDirName}/`);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error stripping top-level directory in ${targetDir}:`, error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
367
src/lib/library.js
Normal file
@ -0,0 +1,367 @@
|
|||||||
|
import { currentSettings } from '$lib/settings.js';
|
||||||
|
import { createIcon } from './file_utils';
|
||||||
|
import { platform } from '@tauri-apps/plugin-os';
|
||||||
|
import { join, localDataDir } from '@tauri-apps/api/path';
|
||||||
|
import { exists, stat, readDir, writeFile, remove } from '@tauri-apps/plugin-fs';
|
||||||
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
|
import { writable, get } from 'svelte/store';
|
||||||
|
import { LazyStore } from '@tauri-apps/plugin-store';
|
||||||
|
import { BASE_LIBRARY_DIR } from '$lib/settings.js';
|
||||||
|
import { confirm } from '@tauri-apps/plugin-dialog';
|
||||||
|
import { updateDownloadProgress } from './download';
|
||||||
|
|
||||||
|
/** INSTALLED BLENDER VERSION TYPE
|
||||||
|
* @typedef {Object} blenderVersion
|
||||||
|
* @property {string} version - Version string (e.g., "5.0.0")
|
||||||
|
* @property {string} path - Full path to version directory
|
||||||
|
* @property {string} executable - Path to Blender executable
|
||||||
|
* @property {string} platform - Detected platform (windows, linux, macos)
|
||||||
|
* @property {Date} [installDate] - Installation date (if available)
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const currentInstalledVersions = writable([]);
|
||||||
|
const favouritesStore = new LazyStore('versions.json');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create icon and write it to disk
|
||||||
|
* @param {blenderVersion} version
|
||||||
|
*/
|
||||||
|
export async function generateVersionIcon(version) {
|
||||||
|
//
|
||||||
|
//
|
||||||
|
if (!(await exists(version.path))) {
|
||||||
|
console.warn(`Version path does not exist: ${version.path}`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const iconPath = `${version.path}/icon.png`;
|
||||||
|
if (await exists(iconPath)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const newIcon = await createIcon(version.version);
|
||||||
|
const iconPath = `${version.path}/icon.png`;
|
||||||
|
const iconBuffer = new Uint8Array(await newIcon.arrayBuffer());
|
||||||
|
await writeFile(iconPath, iconBuffer);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Failed to create or save icon:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean up orphaned desktop files for versions that are no longer installed.
|
||||||
|
* @param {blenderVersion[]} versions Array of currently installed versions
|
||||||
|
*/
|
||||||
|
export async function cleanupOrphanedDesktopFiles(versions) {
|
||||||
|
const currentPlatform = await platform();
|
||||||
|
if (currentPlatform !== 'linux') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const installedVersionStrings = versions.map((v) => v.version);
|
||||||
|
const applicationsDir = await join(await localDataDir(), 'applications');
|
||||||
|
|
||||||
|
if (!(await exists(applicationsDir))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const entries = await readDir(applicationsDir);
|
||||||
|
for (const entry of entries) {
|
||||||
|
if (entry.isDirectory) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const fileName = entry.name;
|
||||||
|
const match = fileName.match(/^blender-smoothie-(.+)\.desktop$/);
|
||||||
|
if (match) {
|
||||||
|
const version = match[1];
|
||||||
|
if (!installedVersionStrings.includes(version)) {
|
||||||
|
const desktopFilePath = await join(applicationsDir, fileName);
|
||||||
|
try {
|
||||||
|
await remove(desktopFilePath);
|
||||||
|
console.log(`Removed orphaned desktop file: ${desktopFilePath}`);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(`Failed to remove orphaned desktop file ${desktopFilePath}:`, error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Error cleaning up orphaned desktop files:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the .desktop file for a Blender version (Linux only).
|
||||||
|
* @param {blenderVersion} version
|
||||||
|
*/
|
||||||
|
export async function removeDesktopFile(version) {
|
||||||
|
const currentPlatform = await platform();
|
||||||
|
if (currentPlatform !== 'linux') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const desktopFilePath = await join(
|
||||||
|
await localDataDir(),
|
||||||
|
`/applications/blender-smoothie-${version.version}.desktop`
|
||||||
|
);
|
||||||
|
if (!(await exists(desktopFilePath))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
await remove(desktopFilePath);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Failed to remove .desktop file:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a .desktop file for a Blender version (Linux only).
|
||||||
|
* @param {blenderVersion} version
|
||||||
|
*/
|
||||||
|
export async function createDesktopFile(version, forceRecreate = false) {
|
||||||
|
const currentPlatform = platform();
|
||||||
|
if (currentPlatform !== 'linux') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const desktopFilePath = await join(
|
||||||
|
await localDataDir(),
|
||||||
|
`/applications/blender-smoothie-${version.version}.desktop`
|
||||||
|
);
|
||||||
|
if (await exists(desktopFilePath)) {
|
||||||
|
if (!forceRecreate) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
await remove(desktopFilePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
const desktopFileContent = `[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Blender ${version.version}
|
||||||
|
Comment=Blender ${version.version} - 3D creation suite
|
||||||
|
Exec=${version.executable.replace(/ /g, '\\ ')} %F
|
||||||
|
Icon=${version.path.replace(/ /g, '\\ ')}/icon.png
|
||||||
|
Terminal=false
|
||||||
|
Categories=Graphics;3DGraphics;
|
||||||
|
MimeType=application/x-blender;
|
||||||
|
`;
|
||||||
|
console.log('creating desktop file:', desktopFilePath);
|
||||||
|
await writeFile(desktopFilePath, new TextEncoder().encode(desktopFileContent));
|
||||||
|
} catch (error) {
|
||||||
|
console.warn('Failed to create .desktop file:', error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function removeVersion(version) {
|
||||||
|
if (await exists(version.path)) {
|
||||||
|
try {
|
||||||
|
await remove(version.path, { recursive: true });
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(`Failed to remove version path: ${version.path}`, error);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.warn(`Version path does not exist: ${version.path}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Toggle the favourite status of a version.
|
||||||
|
* @param {blenderVersion} version The version to toggle.
|
||||||
|
*/
|
||||||
|
export async function toggleFavourite(version) {
|
||||||
|
const versions = get(currentInstalledVersions);
|
||||||
|
console.log();
|
||||||
|
const versionObj = versions.find((v) => v.version === version.version);
|
||||||
|
if (versionObj) {
|
||||||
|
versionObj.favourite = !versionObj.favourite;
|
||||||
|
} else {
|
||||||
|
console.error('version not found', version);
|
||||||
|
}
|
||||||
|
currentInstalledVersions.set(versions);
|
||||||
|
await favouritesStore.set(version.version, versionObj.favourite);
|
||||||
|
await favouritesStore.save();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete a version and remove it from disk.
|
||||||
|
* @param {blenderVersion} version The version to delete.
|
||||||
|
*/
|
||||||
|
export async function deleteVersion(version) {
|
||||||
|
try {
|
||||||
|
const confirmation = await confirm(
|
||||||
|
`This will remove the blender ${version.version} from your system. Are you sure?`,
|
||||||
|
{
|
||||||
|
title: 'Delete',
|
||||||
|
kind: 'warning'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (!confirmation) return;
|
||||||
|
// Remove the version directory from disk
|
||||||
|
await removeVersion(version);
|
||||||
|
updateDownloadProgress(version.version, { loaded: 0, total: 0, percent: 0 });
|
||||||
|
// Remove the .desktop file if it exists (Linux only)
|
||||||
|
await removeDesktopFile(version);
|
||||||
|
|
||||||
|
// Remove from favourites store
|
||||||
|
await favouritesStore.delete(version.version);
|
||||||
|
await favouritesStore.save();
|
||||||
|
|
||||||
|
// Update the current installed versions list
|
||||||
|
const versions = get(currentInstalledVersions);
|
||||||
|
const filteredVersions = versions.filter((v) => v.version !== version.version);
|
||||||
|
currentInstalledVersions.set(filteredVersions);
|
||||||
|
|
||||||
|
console.log(`Successfully deleted version ${version.version}`);
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Failed to delete version ${version.version}:`, error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all installed Blender versions from the library directory.
|
||||||
|
* @returns {Promise<blenderVersion[]>} Array of installed versions
|
||||||
|
*/
|
||||||
|
export async function getInstalledVersions() {
|
||||||
|
const favouriteEntries = await favouritesStore.entries();
|
||||||
|
const favourites = Object.fromEntries(favouriteEntries);
|
||||||
|
|
||||||
|
try {
|
||||||
|
const settings = get(currentSettings);
|
||||||
|
const libraryDir = settings.libraryDir;
|
||||||
|
if (!libraryDir) {
|
||||||
|
currentInstalledVersions.set([]);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
const blenderLibraryPath = await join(libraryDir, BASE_LIBRARY_DIR, 'blender');
|
||||||
|
|
||||||
|
if (!exists(blenderLibraryPath)) {
|
||||||
|
currentInstalledVersions.set([]);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read all version directories
|
||||||
|
const entries = await readDir(blenderLibraryPath);
|
||||||
|
const versions = [];
|
||||||
|
|
||||||
|
// Filter out non-directory entries
|
||||||
|
for (const entry of entries) {
|
||||||
|
if (!entry.isDirectory) {
|
||||||
|
const filePath = await join(blenderLibraryPath, entry.name);
|
||||||
|
//await remove(filePath);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const version = entry.name;
|
||||||
|
const versionPath = await join(blenderLibraryPath, version);
|
||||||
|
|
||||||
|
try {
|
||||||
|
// Find the Blender executable in this version directory
|
||||||
|
const executable = await findBlenderExecutable(versionPath);
|
||||||
|
if (executable) {
|
||||||
|
const currentPlatform = platform();
|
||||||
|
let newVersion = {
|
||||||
|
version,
|
||||||
|
path: versionPath,
|
||||||
|
executable,
|
||||||
|
platform: currentPlatform,
|
||||||
|
favourite: favourites[version] || false
|
||||||
|
};
|
||||||
|
|
||||||
|
//check if version has an icon, if not generate one
|
||||||
|
await generateVersionIcon(newVersion);
|
||||||
|
// create desktop file if autoCreateShortcuts is enabled
|
||||||
|
if (settings.autoCreateShortcuts) {
|
||||||
|
await createDesktopFile(newVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
versions.push(newVersion);
|
||||||
|
} else {
|
||||||
|
console.warn(`No executable found deleting folder ${version}`);
|
||||||
|
//await remove(versionPath, { recursive: true });
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(`Error processing version ${version}:`, error);
|
||||||
|
// Skip this version if we can't process it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
currentInstalledVersions.set(versions);
|
||||||
|
cleanupOrphanedDesktopFiles(versions);
|
||||||
|
|
||||||
|
return versions;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error getting installed versions:', error);
|
||||||
|
currentInstalledVersions.set([]);
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Launch a specific Blender version.
|
||||||
|
* @param {blenderVersion} version - The version object to launch
|
||||||
|
* @returns {Promise<{success: boolean, message: string}>} Result of launch attempt
|
||||||
|
*/
|
||||||
|
export async function launchBlenderVersion(version) {
|
||||||
|
try {
|
||||||
|
if (!version || !version.executable) {
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: 'Invalid version or executable not found'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if executable exists
|
||||||
|
try {
|
||||||
|
await stat(version.executable);
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: `Executable not found: ${version.executable}`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
// Launch the executable
|
||||||
|
invoke('launch_binary', { path: version.executable, args: [] });
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error launching Blender:', error);
|
||||||
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||||
|
return {
|
||||||
|
success: false,
|
||||||
|
message: `Launch failed: ${errorMessage}`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function findBlenderExecutable(versionPath) {
|
||||||
|
const settings = get(currentSettings);
|
||||||
|
const currentPlatform = settings.defaultPlatform;
|
||||||
|
const platformStr = String(currentPlatform);
|
||||||
|
|
||||||
|
// Map platform strings to executable names
|
||||||
|
const executableMap = {
|
||||||
|
windows: 'blender.exe',
|
||||||
|
linux: 'blender',
|
||||||
|
macos: 'blender'
|
||||||
|
// Add more platforms here as needed
|
||||||
|
};
|
||||||
|
|
||||||
|
// Default to 'blender' if platform not in map
|
||||||
|
const executableName = executableMap[platformStr] || 'blender';
|
||||||
|
const executablePath = await join(versionPath, executableName);
|
||||||
|
|
||||||
|
try {
|
||||||
|
const stats = await stat(executablePath);
|
||||||
|
if (stats.isFile) {
|
||||||
|
return executablePath;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
// Executable not found at the expected path
|
||||||
|
console.warn(`Blender executable not found at ${executablePath}:`, error);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
154
src/lib/settings.js
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
import { LazyStore } from '@tauri-apps/plugin-store';
|
||||||
|
import { writable, get } from 'svelte/store';
|
||||||
|
import { platform, arch } from '@tauri-apps/plugin-os';
|
||||||
|
import { appDataDir } from '@tauri-apps/api/path';
|
||||||
|
import { ensureLibraryStructure, selectDirectory } from './file_utils.js';
|
||||||
|
|
||||||
|
// Define the settings structure
|
||||||
|
/** @typedef {Object} Settings
|
||||||
|
* @property {string} [libraryDir] - Path to library directory
|
||||||
|
* @property {string} [defaultPlatform] - Default platform ('auto', 'windows', 'linux', 'macos')
|
||||||
|
* @property {string} [defaultArch] - Default architecture ('x86_64', 'arm64', etc.)
|
||||||
|
* @property {string} [theme] - Theme ('light', 'dark')
|
||||||
|
* @property {boolean} [autoCreateShortcuts] - should smoothie create a shortcut to newly installed blender versions
|
||||||
|
* @property {boolean} [keepDownloadedArchives] - Whether to keep downloaded archives after extraction
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Settings lazy store
|
||||||
|
const settingsStore = new LazyStore('settings.json');
|
||||||
|
export const currentSettings = writable(/** @type {Settings} */ ({}));
|
||||||
|
|
||||||
|
export const BASE_LIBRARY_DIR = 'smoothie-library';
|
||||||
|
let DEFAULT_SETTINGS = null;
|
||||||
|
|
||||||
|
export async function initSettings() {
|
||||||
|
const detectedPlatform = await detectPlatform();
|
||||||
|
const detectedArch = await detectArch();
|
||||||
|
const defaultLibraryDir = await appDataDir();
|
||||||
|
|
||||||
|
DEFAULT_SETTINGS = {
|
||||||
|
libraryDir: defaultLibraryDir, // Will be filled with default library directory
|
||||||
|
defaultPlatform: detectedPlatform, //Automatic
|
||||||
|
defaultArch: detectedArch,
|
||||||
|
keepDownloadedArchives: false,
|
||||||
|
autoCreateShortcuts: true,
|
||||||
|
theme: 'light' //
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current settings, filling with defaults if missing.
|
||||||
|
* @returns {Promise<Settings>}
|
||||||
|
*/
|
||||||
|
export async function getSettings() {
|
||||||
|
if (DEFAULT_SETTINGS === null) {
|
||||||
|
await initSettings();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
// Get all stored values
|
||||||
|
const storeEntries = await settingsStore.entries();
|
||||||
|
|
||||||
|
// Store empty, load defaults
|
||||||
|
if (storeEntries.length === 0) {
|
||||||
|
await resetSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
//load settings object and patch with defaults for missing fields
|
||||||
|
const settings = Object.fromEntries(storeEntries);
|
||||||
|
const filledSettings = { ...DEFAULT_SETTINGS, ...settings };
|
||||||
|
currentSettings.set(filledSettings);
|
||||||
|
await ensureLibraryStructure(filledSettings.libraryDir);
|
||||||
|
return filledSettings;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error loading settings:', error);
|
||||||
|
currentSettings.set(DEFAULT_SETTINGS);
|
||||||
|
return DEFAULT_SETTINGS;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Partial<Settings>} PartialSettings
|
||||||
|
*/
|
||||||
|
export async function saveSettings(newSettings) {
|
||||||
|
try {
|
||||||
|
for (const [key, value] of Object.entries(newSettings)) {
|
||||||
|
await settingsStore.set(key, value);
|
||||||
|
}
|
||||||
|
if (newSettings.libraryDir) {
|
||||||
|
//if new library dir check it
|
||||||
|
await ensureLibraryStructure(newSettings.libraryDir);
|
||||||
|
}
|
||||||
|
await settingsStore.save();
|
||||||
|
let completeSettings = { ...get(currentSettings), ...newSettings };
|
||||||
|
currentSettings.set(completeSettings);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error saving settings:', error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear store and reset all settings to defaults.
|
||||||
|
* @returns {Promise<Settings>}
|
||||||
|
*/
|
||||||
|
export async function resetSettings() {
|
||||||
|
try {
|
||||||
|
await settingsStore.clear();
|
||||||
|
await saveSettings(DEFAULT_SETTINGS);
|
||||||
|
|
||||||
|
return DEFAULT_SETTINGS;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error resetting settings:', error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detect the current platform, mapping to our supported values.
|
||||||
|
* @returns {Promise<string>} 'windows', 'linux', or 'macos'
|
||||||
|
*/
|
||||||
|
async function detectPlatform() {
|
||||||
|
try {
|
||||||
|
const currentPlatform = platform();
|
||||||
|
// Map from OS plugin values to our settings values (desktop only)
|
||||||
|
const platformMap = {
|
||||||
|
linux: 'linux',
|
||||||
|
windows: 'windows',
|
||||||
|
darwin: 'macos',
|
||||||
|
macos: 'macos'
|
||||||
|
};
|
||||||
|
|
||||||
|
// Only desktop platforms are supported
|
||||||
|
if (currentPlatform in platformMap) {
|
||||||
|
return currentPlatform;
|
||||||
|
}
|
||||||
|
console.warn(`Platform "${currentPlatform}" is not supported, defaulting to linux`);
|
||||||
|
return 'linux';
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error detecting platform:', error);
|
||||||
|
return 'linux'; // fallback
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Detect the current platform, mapping to our supported values.
|
||||||
|
* @returns {Promise<string>} 'windows', 'linux', or 'macos'
|
||||||
|
*/
|
||||||
|
async function detectArch() {
|
||||||
|
try {
|
||||||
|
const currentArch = arch();
|
||||||
|
const archmap = {
|
||||||
|
x86_64: 'x64',
|
||||||
|
arm: 'arm64',
|
||||||
|
aarch64: 'arm64'
|
||||||
|
};
|
||||||
|
if (currentArch in archmap) {
|
||||||
|
return currentArch;
|
||||||
|
}
|
||||||
|
console.warn(`Architecture "${currentArch}" is not supported, defaulting to x64`);
|
||||||
|
return 'x64';
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error detecting platform:', error);
|
||||||
|
return 'linux'; // fallback
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export { selectDirectory };
|
||||||
20
src/lib/transition.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { crossfade } from 'svelte/transition';
|
||||||
|
import { quintOut } from 'svelte/easing';
|
||||||
|
|
||||||
|
export const [send, receive] = crossfade({
|
||||||
|
duration: (d) => Math.sqrt(d * 200),
|
||||||
|
|
||||||
|
fallback(node, params) {
|
||||||
|
const style = getComputedStyle(node);
|
||||||
|
const transform = style.transform === 'none' ? '' : style.transform;
|
||||||
|
|
||||||
|
return {
|
||||||
|
duration: 600,
|
||||||
|
easing: quintOut,
|
||||||
|
css: (t) => `
|
||||||
|
transform: ${transform} scale(${t});
|
||||||
|
opacity: ${t}
|
||||||
|
`
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
5
src/routes/+layout.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// Tauri doesn't have a Node.js server to do proper SSR
|
||||||
|
// so we will use adapter-static to prerender the app (SSG)
|
||||||
|
// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
|
||||||
|
export const prerender = true;
|
||||||
|
export const ssr = false;
|
||||||
5
src/routes/+layout.svelte
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
import '../app.css';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<slot></slot>
|
||||||
203
src/routes/+page.svelte
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
<script>
|
||||||
|
import '@webtui/css/components/spinner.css';
|
||||||
|
import { fade } from 'svelte/transition';
|
||||||
|
import { onMount } from 'svelte';
|
||||||
|
import { getSettings, currentSettings } from '$lib/settings.js';
|
||||||
|
import { getBlenderReleases, blenderReleases } from '$lib/blenderfetch';
|
||||||
|
import { getInstalledVersions, currentInstalledVersions } from '$lib/library.js';
|
||||||
|
import { downloadTasksStore } from '$lib/download.js';
|
||||||
|
import Library from '$lib/components/Library.svelte';
|
||||||
|
import Download from '$lib/components/Download.svelte';
|
||||||
|
import Settings from '$lib/components/Settings.svelte';
|
||||||
|
|
||||||
|
let fadeInSettings = { duration: 100 };
|
||||||
|
let fadeOutSettings = { duration: 100, delay: fadeInSettings.duration };
|
||||||
|
let activeTab = 'library';
|
||||||
|
let blenderVersions = [];
|
||||||
|
let installedVersions = [];
|
||||||
|
let downloadTasks = [];
|
||||||
|
let settings = {};
|
||||||
|
let initialized = false;
|
||||||
|
|
||||||
|
function initStoresListeners() {
|
||||||
|
currentSettings.subscribe((value) => {
|
||||||
|
settings = value;
|
||||||
|
console.log('Loaded settings:', settings);
|
||||||
|
});
|
||||||
|
currentInstalledVersions.subscribe((value) => {
|
||||||
|
installedVersions = value;
|
||||||
|
console.log('Loaded installed versions:', installedVersions);
|
||||||
|
});
|
||||||
|
blenderReleases.subscribe((value) => {
|
||||||
|
blenderVersions = value;
|
||||||
|
console.log('Loaded Blender releases:', blenderVersions);
|
||||||
|
});
|
||||||
|
downloadTasksStore.subscribe((value) => {
|
||||||
|
downloadTasks = value;
|
||||||
|
//console.log('Loaded download tasks:', downloadTasks);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
onMount(async () => {
|
||||||
|
const startTime = Date.now();
|
||||||
|
|
||||||
|
await getSettings();
|
||||||
|
await getBlenderReleases();
|
||||||
|
await getInstalledVersions();
|
||||||
|
|
||||||
|
initStoresListeners();
|
||||||
|
const elapsed = Date.now() - startTime;
|
||||||
|
if (elapsed < 2000) {
|
||||||
|
initialized = true;
|
||||||
|
/* setTimeout(() => {
|
||||||
|
initialized = true;
|
||||||
|
}, 2000 - elapsed);*/
|
||||||
|
} else {
|
||||||
|
initialized = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//await getInstalledVersions();
|
||||||
|
//
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div id="main">
|
||||||
|
{#if initialized}
|
||||||
|
<div class="tablist" role="tablist">
|
||||||
|
<div
|
||||||
|
role="tab"
|
||||||
|
tabindex="0"
|
||||||
|
class="tabitem"
|
||||||
|
class:selected={activeTab === 'library'}
|
||||||
|
aria-selected={activeTab === 'library'}
|
||||||
|
on:click={() => (activeTab = 'library')}
|
||||||
|
on:keydown={(e) => (e.key === 'Enter' || e.key === ' ' ? (activeTab = 'library') : null)}
|
||||||
|
>
|
||||||
|
Library
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
role="tab"
|
||||||
|
tabindex="0"
|
||||||
|
class="tabitem"
|
||||||
|
class:selected={activeTab === 'download'}
|
||||||
|
aria-selected={activeTab === 'download'}
|
||||||
|
on:click={() => (activeTab = 'download')}
|
||||||
|
on:keydown={(e) => (e.key === 'Enter' || e.key === ' ' ? (activeTab = 'download') : null)}
|
||||||
|
>
|
||||||
|
Download
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
role="tab"
|
||||||
|
tabindex="0"
|
||||||
|
class="tabitem"
|
||||||
|
class:selected={activeTab === 'settings'}
|
||||||
|
aria-selected={activeTab === 'settings'}
|
||||||
|
on:click={() => (activeTab = 'settings')}
|
||||||
|
on:keydown={(e) => (e.key === 'Enter' || e.key === ' ' ? (activeTab = 'settings') : null)}
|
||||||
|
>
|
||||||
|
Settings
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="tabcontent">
|
||||||
|
<div class="frame">
|
||||||
|
{#if activeTab === 'library'}
|
||||||
|
<div class="page" in:fade={fadeOutSettings} out:fade={fadeInSettings}>
|
||||||
|
<Library {installedVersions} />
|
||||||
|
</div>
|
||||||
|
{:else if activeTab === 'download'}
|
||||||
|
<div class="page" in:fade={fadeOutSettings} out:fade={fadeInSettings}>
|
||||||
|
<Download {downloadTasks} {installedVersions} {blenderVersions} />
|
||||||
|
</div>
|
||||||
|
{:else if activeTab === 'settings'}
|
||||||
|
<div class="page" in:fade={fadeOutSettings} out:fade={fadeInSettings}>
|
||||||
|
<Settings {settings} />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{:else}
|
||||||
|
LOADING...
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
:global(:root) {
|
||||||
|
--white: #f5f5f5;
|
||||||
|
--light-accent: #d4cdf2;
|
||||||
|
--light: #eaebed;
|
||||||
|
--black: #171a21;
|
||||||
|
--accent: #7d70ba;
|
||||||
|
--error: #ed1c24;
|
||||||
|
--warning: #f1d302;
|
||||||
|
--font: font-family: 'Europa Mono', monospace;
|
||||||
|
}
|
||||||
|
:global(*) {
|
||||||
|
color: var(--black);
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
:global(.svelte-tabs) {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
:global(body) {
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background-color: var(--white);
|
||||||
|
}
|
||||||
|
.tablist {
|
||||||
|
width: 100%;
|
||||||
|
height: 3rem;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.tabitem {
|
||||||
|
text-align: center;
|
||||||
|
line-height: 3rem;
|
||||||
|
color: var(--black);
|
||||||
|
width: 8rem;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0 1.5rem;
|
||||||
|
}
|
||||||
|
.tabitem:hover {
|
||||||
|
background-color: var(--light-accent);
|
||||||
|
}
|
||||||
|
.tabitem.selected {
|
||||||
|
background-color: var(--light-accent);
|
||||||
|
border-bottom: 2px solid var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
#main {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabcontent {
|
||||||
|
background-color: var(--light);
|
||||||
|
box-sizing: border-box;
|
||||||
|
height: calc(100vh - 3rem);
|
||||||
|
padding: 1rem;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
.frame {
|
||||||
|
background-color: var(--white);
|
||||||
|
padding: 1rem;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
.page {
|
||||||
|
display: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
BIN
static/favicon.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
static/fonts/Europa-Mono-Medium.otf
Executable file
1
static/svelte.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="26.6" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 308"><path fill="#FF3E00" d="M239.682 40.707C211.113-.182 154.69-12.301 113.895 13.69L42.247 59.356a82.198 82.198 0 0 0-37.135 55.056a86.566 86.566 0 0 0 8.536 55.576a82.425 82.425 0 0 0-12.296 30.719a87.596 87.596 0 0 0 14.964 66.244c28.574 40.893 84.997 53.007 125.787 27.016l71.648-45.664a82.182 82.182 0 0 0 37.135-55.057a86.601 86.601 0 0 0-8.53-55.577a82.409 82.409 0 0 0 12.29-30.718a87.573 87.573 0 0 0-14.963-66.244"></path><path fill="#FFF" d="M106.889 270.841c-23.102 6.007-47.497-3.036-61.103-22.648a52.685 52.685 0 0 1-9.003-39.85a49.978 49.978 0 0 1 1.713-6.693l1.35-4.115l3.671 2.697a92.447 92.447 0 0 0 28.036 14.007l2.663.808l-.245 2.659a16.067 16.067 0 0 0 2.89 10.656a17.143 17.143 0 0 0 18.397 6.828a15.786 15.786 0 0 0 4.403-1.935l71.67-45.672a14.922 14.922 0 0 0 6.734-9.977a15.923 15.923 0 0 0-2.713-12.011a17.156 17.156 0 0 0-18.404-6.832a15.78 15.78 0 0 0-4.396 1.933l-27.35 17.434a52.298 52.298 0 0 1-14.553 6.391c-23.101 6.007-47.497-3.036-61.101-22.649a52.681 52.681 0 0 1-9.004-39.849a49.428 49.428 0 0 1 22.34-33.114l71.664-45.677a52.218 52.218 0 0 1 14.563-6.398c23.101-6.007 47.497 3.036 61.101 22.648a52.685 52.685 0 0 1 9.004 39.85a50.559 50.559 0 0 1-1.713 6.692l-1.35 4.116l-3.67-2.693a92.373 92.373 0 0 0-28.037-14.013l-2.664-.809l.246-2.658a16.099 16.099 0 0 0-2.89-10.656a17.143 17.143 0 0 0-18.398-6.828a15.786 15.786 0 0 0-4.402 1.935l-71.67 45.674a14.898 14.898 0 0 0-6.73 9.975a15.9 15.9 0 0 0 2.709 12.012a17.156 17.156 0 0 0 18.404 6.832a15.841 15.841 0 0 0 4.402-1.935l27.345-17.427a52.147 52.147 0 0 1 14.552-6.397c23.101-6.006 47.497 3.037 61.102 22.65a52.681 52.681 0 0 1 9.003 39.848a49.453 49.453 0 0 1-22.34 33.12l-71.664 45.673a52.218 52.218 0 0 1-14.563 6.398"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.9 KiB |
6
static/tauri.svg
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>
|
||||||
|
<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>
|
||||||
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.5 KiB |
1
static/vite.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
13
svelte.config.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// Tauri doesn't have a Node.js server to do proper SSR
|
||||||
|
// so we will use adapter-static to prerender the app (SSG)
|
||||||
|
// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info
|
||||||
|
import adapter from "@sveltejs/adapter-static";
|
||||||
|
|
||||||
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
|
const config = {
|
||||||
|
kit: {
|
||||||
|
adapter: adapter(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
32
vite.config.js
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { defineConfig } from "vite";
|
||||||
|
import { sveltekit } from "@sveltejs/kit/vite";
|
||||||
|
|
||||||
|
// @ts-expect-error process is a nodejs global
|
||||||
|
const host = process.env.TAURI_DEV_HOST;
|
||||||
|
|
||||||
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig(async () => ({
|
||||||
|
plugins: [sveltekit()],
|
||||||
|
|
||||||
|
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
|
||||||
|
//
|
||||||
|
// 1. prevent vite from obscuring rust errors
|
||||||
|
clearScreen: false,
|
||||||
|
// 2. tauri expects a fixed port, fail if that port is not available
|
||||||
|
server: {
|
||||||
|
port: 1420,
|
||||||
|
strictPort: true,
|
||||||
|
host: host || false,
|
||||||
|
hmr: host
|
||||||
|
? {
|
||||||
|
protocol: "ws",
|
||||||
|
host,
|
||||||
|
port: 1421,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
|
watch: {
|
||||||
|
// 3. tell vite to ignore watching `src-tauri`
|
||||||
|
ignored: ["**/src-tauri/**"],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}));
|
||||||