Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: add prettier formatting
Kyle Mendell215221da8663
diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.ymlindex 607641c01..99cf5a48f 100644--- a/.github/ISSUE_TEMPLATE/bug.yml+++ b/.github/ISSUE_TEMPLATE/bug.yml@@ -1,7 +1,7 @@name: 🐞 Bug Reportdescription: Report a bug to help improve Arcane-title: "🐞 Bug: "-labels: ["bug"]+title: '🐞 Bug: '+labels: ['bug']body:- type: markdownattributes:diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.ymlindex 942c8d288..a90731946 100644--- a/.github/ISSUE_TEMPLATE/feature.yml+++ b/.github/ISSUE_TEMPLATE/feature.yml@@ -1,7 +1,7 @@name: ⚡️ Feature Requestdescription: Suggest a new feature or enhancement for Arcane-title: "⚡️ Feature: "-labels: ["enhancement"]+title: '⚡️ Feature: '+labels: ['enhancement']body:- type: markdownattributes:diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex b41798354..1fd0cb37c 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -5,7 +5,7 @@version: 2updates:- - package-ecosystem: "npm" # See documentation for possible values- directory: "/" # Location of package manifests+ - package-ecosystem: 'npm' # See documentation for possible values+ directory: '/' # Location of package manifestsschedule:- interval: "daily"+ interval: 'daily'diff --git a/.prettierrc b/.prettierrcnew file mode 100644index 000000000..3862a8e6b--- /dev/null+++ b/.prettierrc@@ -0,0 +1,15 @@+{+ "useTabs": true,+ "singleQuote": true,+ "trailingComma": "none",+ "printWidth": 600,+ "plugins": ["prettier-plugin-svelte"],+ "overrides": [+ {+ "files": "*.svelte",+ "options": {+ "parser": "svelte"+ }+ }+ ]+}diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cc8290d36..871466e92 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,15 +2,16 @@### Features-* add yaml editor component ([#44](https://github.com/ofkm/arcane/issues/44)) ([165404a](https://github.com/ofkm/arcane/commit/165404a184868f50440d0eebad7cdbaf3b2cb359))-* implement full docker compose spec ([#45](https://github.com/ofkm/arcane/issues/45)) ([103707f](https://github.com/ofkm/arcane/commit/103707fe353b6deddeaba597dd3248f635d37dc3))-* link stack containers to container details page ([#41](https://github.com/ofkm/arcane/issues/41)) ([2939909](https://github.com/ofkm/arcane/commit/29399095cd9757e3955b350fece0f37852b7d99b))+- add yaml editor component ([#44](https://github.com/ofkm/arcane/issues/44)) ([165404a](https://github.com/ofkm/arcane/commit/165404a184868f50440d0eebad7cdbaf3b2cb359))+- implement full docker compose spec ([#45](https://github.com/ofkm/arcane/issues/45)) ([103707f](https://github.com/ofkm/arcane/commit/103707fe353b6deddeaba597dd3248f635d37dc3))+- link stack containers to container details page ([#41](https://github.com/ofkm/arcane/issues/41)) ([2939909](https://github.com/ofkm/arcane/commit/29399095cd9757e3955b350fece0f37852b7d99b))+## [0.1.1](https://github.com/ofkm/arcane/compare/v0.1.0...v0.1.1) (2025-04-22)### Bug Fixes-* container details card layout ([94fde0e](https://github.com/ofkm/arcane/commit/94fde0e470043b519d27dfd6e5aa0c27779496ae))-* container env details layout ([b2f7e28](https://github.com/ofkm/arcane/commit/b2f7e28fd31875c768c845ab4cbbc8e99406ea01))-* container port details layout ([721cacb](https://github.com/ofkm/arcane/commit/721cacb35292ec06060afbc6fa0b4f7fbddaca08))-* log display improvements ([8343c9d](https://github.com/ofkm/arcane/commit/8343c9d3dd71cb85297de817a97c764b455848b6))-* make container details grid more reponsive ([17b5abf](https://github.com/ofkm/arcane/commit/17b5abf55d5f37a6f02ae4d7f236c9a65beb63ba))+- container details card layout ([94fde0e](https://github.com/ofkm/arcane/commit/94fde0e470043b519d27dfd6e5aa0c27779496ae))+- container env details layout ([b2f7e28](https://github.com/ofkm/arcane/commit/b2f7e28fd31875c768c845ab4cbbc8e99406ea01))+- container port details layout ([721cacb](https://github.com/ofkm/arcane/commit/721cacb35292ec06060afbc6fa0b4f7fbddaca08))+- log display improvements ([8343c9d](https://github.com/ofkm/arcane/commit/8343c9d3dd71cb85297de817a97c764b455848b6))+- make container details grid more reponsive ([17b5abf](https://github.com/ofkm/arcane/commit/17b5abf55d5f37a6f02ae4d7f236c9a65beb63ba))diff --git a/app-settings.json b/app-settings.jsonindex 9a1503b43..57e931163 100644--- a/app-settings.json+++ b/app-settings.json@@ -1,6 +1,6 @@{- "dockerHost": "unix:///var/run/docker.sock",- "autoRefresh": true,- "pollingInterval": 5,- "stacksDirectory": "/app/data/stacks"+ "dockerHost": "unix:///var/run/docker.sock",+ "autoRefresh": true,+ "pollingInterval": 5,+ "stacksDirectory": "/app/data/stacks"}diff --git a/docker-compose.yml b/docker-compose.ymlindex 39e1b0aa9..240522437 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -3,7 +3,7 @@ services:image: ghcr.io/ofkm/arcane:latestcontainer_name: arcaneports:- - "3000:3000"+ - '3000:3000'volumes:- /var/run/docker.sock:/var/run/docker.sock- ./arcane-data:/app/data@@ -14,7 +14,6 @@ services:- PGID=1000- DOCKER_GID=998 # getent group docker | cut -d: -f3restart: unless-stopped-# Optional: Define the volume if you want Docker to manage it# volumes:-# arcane-data:\ No newline at end of file+# arcane-data:diff --git a/eslint.config.js b/eslint.config.jsindex 165237185..be96241c2 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -17,16 +17,14 @@ export default ts.config(languageOptions: {globals: { ...globals.browser, ...globals.node }},- rules: { // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.- // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors- "no-undef": 'off' }+ rules: {+ // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.+ // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors+ 'no-undef': 'off'+ }},{- files: [- '**/*.svelte',- '**/*.svelte.ts',- '**/*.svelte.js'- ],+ files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],languageOptions: {parserOptions: {projectService: true,diff --git a/package-lock.json b/package-lock.jsonindex 9c4e65173..a4d789907 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,6197 +1,6224 @@{- "name": "arcane",- "version": "0.2.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "arcane",- "version": "0.2.0",- "dependencies": {- "@codemirror/lang-yaml": "^6.1.2",- "@codemirror/theme-one-dark": "^6.1.2",- "@tanstack/table-core": "^8.21.3",- "codemirror": "^6.0.1",- "dockerode": "^4.0.6",- "dockerode-compose": "^1.4.0",- "js-yaml": "^4.1.0",- "nanoid": "^5.1.5",- "proper-lockfile": "^4.1.2",- "redis": "^4.7.0",- "svelte-codemirror-editor": "^1.4.1"- },- "devDependencies": {- "@eslint/compat": "^1.2.5",- "@eslint/js": "^9.18.0",- "@lucide/svelte": "^0.503.0",- "@sveltejs/adapter-node": "^5.2.12",- "@sveltejs/kit": "^2.16.0",- "@sveltejs/vite-plugin-svelte": "^5.0.0",- "@tailwindcss/vite": "^4.0.0",- "@types/dockerode": "^3.3.38",- "@types/dockerode-compose": "^1.4.1",- "@types/js-yaml": "^4.0.9",- "@types/proper-lockfile": "^4.1.4",- "bits-ui": "^1.3.19",- "clsx": "^2.1.1",- "eslint": "^9.25.1",- "eslint-plugin-svelte": "^3.0.0",- "formsnap": "^2.0.1",- "globals": "^16.0.0",- "mode-watcher": "^1.0.2",- "svelte": "^5.28.2",- "svelte-check": "^4.0.0",- "svelte-sonner": "^0.3.28",- "sveltekit-superforms": "^2.24.1",- "tailwind-merge": "^3.2.0",- "tailwind-variants": "^1.0.0",- "tailwindcss": "^4.0.0",- "tailwindcss-animate": "^1.0.7",- "typescript": "^5.0.0",- "typescript-eslint": "^8.31.0",- "vite": "^6.3.3",- "zod": "^3.24.3"- }- },- "node_modules/@ampproject/remapping": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",- "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",- "license": "Apache-2.0",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@ark/schema": {- "version": "0.46.0",- "resolved": "https://registry.npmjs.org/@ark/schema/-/schema-0.46.0.tgz",- "integrity": "sha512-c2UQdKgP2eqqDArfBqQIJppxJHvNNXuQPeuSPlDML4rjw+f1cu0qAlzOG4b8ujgm9ctIDWwhpyw6gjG5ledIVQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@ark/util": "0.46.0"- }- },- "node_modules/@ark/util": {- "version": "0.46.0",- "resolved": "https://registry.npmjs.org/@ark/util/-/util-0.46.0.tgz",- "integrity": "sha512-JPy/NGWn/lvf1WmGCPw2VGpBg5utZraE84I7wli18EDF3p3zc/e9WolT35tINeZO3l7C77SjqRJeAUoT0CvMRg==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@babel/runtime": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz",- "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "regenerator-runtime": "^0.14.0"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@balena/dockerignore": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/@balena/dockerignore/-/dockerignore-1.0.2.tgz",- "integrity": "sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==",- "license": "Apache-2.0"- },- "node_modules/@codemirror/autocomplete": {- "version": "6.18.6",- "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.6.tgz",- "integrity": "sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==",- "license": "MIT",- "dependencies": {- "@codemirror/language": "^6.0.0",- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.17.0",- "@lezer/common": "^1.0.0"- }- },- "node_modules/@codemirror/commands": {- "version": "6.8.1",- "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.8.1.tgz",- "integrity": "sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==",- "license": "MIT",- "dependencies": {- "@codemirror/language": "^6.0.0",- "@codemirror/state": "^6.4.0",- "@codemirror/view": "^6.27.0",- "@lezer/common": "^1.1.0"- }- },- "node_modules/@codemirror/lang-yaml": {- "version": "6.1.2",- "resolved": "https://registry.npmjs.org/@codemirror/lang-yaml/-/lang-yaml-6.1.2.tgz",- "integrity": "sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==",- "license": "MIT",- "dependencies": {- "@codemirror/autocomplete": "^6.0.0",- "@codemirror/language": "^6.0.0",- "@codemirror/state": "^6.0.0",- "@lezer/common": "^1.2.0",- "@lezer/highlight": "^1.2.0",- "@lezer/lr": "^1.0.0",- "@lezer/yaml": "^1.0.0"- }- },- "node_modules/@codemirror/language": {- "version": "6.11.0",- "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.11.0.tgz",- "integrity": "sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==",- "license": "MIT",- "dependencies": {- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.23.0",- "@lezer/common": "^1.1.0",- "@lezer/highlight": "^1.0.0",- "@lezer/lr": "^1.0.0",- "style-mod": "^4.0.0"- }- },- "node_modules/@codemirror/lint": {- "version": "6.8.5",- "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.5.tgz",- "integrity": "sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==",- "license": "MIT",- "dependencies": {- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.35.0",- "crelt": "^1.0.5"- }- },- "node_modules/@codemirror/search": {- "version": "6.5.10",- "resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.10.tgz",- "integrity": "sha512-RMdPdmsrUf53pb2VwflKGHEe1XVM07hI7vV2ntgw1dmqhimpatSJKva4VA9h4TLUDOD4EIF02201oZurpnEFsg==",- "license": "MIT",- "dependencies": {- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.0.0",- "crelt": "^1.0.5"- }- },- "node_modules/@codemirror/state": {- "version": "6.5.2",- "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.2.tgz",- "integrity": "sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==",- "license": "MIT",- "dependencies": {- "@marijn/find-cluster-break": "^1.0.0"- }- },- "node_modules/@codemirror/theme-one-dark": {- "version": "6.1.2",- "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.1.2.tgz",- "integrity": "sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==",- "license": "MIT",- "dependencies": {- "@codemirror/language": "^6.0.0",- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.0.0",- "@lezer/highlight": "^1.0.0"- }- },- "node_modules/@codemirror/view": {- "version": "6.36.5",- "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.36.5.tgz",- "integrity": "sha512-cd+FZEUlu3GQCYnguYm3EkhJ8KJVisqqUsCOKedBoAt/d9c76JUUap6U0UrpElln5k6VyrEOYliMuDAKIeDQLg==",- "license": "MIT",- "dependencies": {- "@codemirror/state": "^6.5.0",- "style-mod": "^4.1.0",- "w3c-keyname": "^2.2.4"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz",- "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz",- "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz",- "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz",- "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz",- "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz",- "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz",- "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz",- "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz",- "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz",- "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz",- "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz",- "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz",- "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz",- "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz",- "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz",- "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz",- "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz",- "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz",- "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz",- "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz",- "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz",- "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz",- "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz",- "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz",- "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@eslint-community/eslint-utils": {- "version": "4.6.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz",- "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"- }- },- "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/@eslint-community/regexpp": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",- "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"- }- },- "node_modules/@eslint/compat": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.8.tgz",- "integrity": "sha512-LqCYHdWL/QqKIJuZ/ucMAv8d4luKGs4oCPgpt8mWztQAtPrHfXKQ/XAUc8ljCHAfJCn6SvkpTcGt5Tsh8saowA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "peerDependencies": {- "eslint": "^9.10.0"- },- "peerDependenciesMeta": {- "eslint": {- "optional": true- }- }- },- "node_modules/@eslint/config-array": {- "version": "0.20.0",- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz",- "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/object-schema": "^2.1.6",- "debug": "^4.3.1",- "minimatch": "^3.1.2"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@eslint/config-helpers": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz",- "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@eslint/core": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz",- "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@types/json-schema": "^7.0.15"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@eslint/eslintrc": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",- "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ajv": "^6.12.4",- "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.0",- "minimatch": "^3.1.2",- "strip-json-comments": "^3.1.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/@eslint/eslintrc/node_modules/globals": {- "version": "14.0.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",- "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@eslint/js": {- "version": "9.25.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.1.tgz",- "integrity": "sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@eslint/object-schema": {- "version": "2.1.6",- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",- "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@eslint/plugin-kit": {- "version": "0.2.8",- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz",- "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/core": "^0.13.0",- "levn": "^0.4.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- }- },- "node_modules/@exodus/schemasafe": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz",- "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@floating-ui/core": {- "version": "1.6.9",- "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.9.tgz",- "integrity": "sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/utils": "^0.2.9"- }- },- "node_modules/@floating-ui/dom": {- "version": "1.6.13",- "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz",- "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/core": "^1.6.0",- "@floating-ui/utils": "^0.2.9"- }- },- "node_modules/@floating-ui/utils": {- "version": "0.2.9",- "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz",- "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==",- "dev": true,- "license": "MIT"- },- "node_modules/@gcornut/valibot-json-schema": {- "version": "0.31.0",- "resolved": "https://registry.npmjs.org/@gcornut/valibot-json-schema/-/valibot-json-schema-0.31.0.tgz",- "integrity": "sha512-3xGptCurm23e7nuPQkdrE5rEs1FeTPHhAUsBuwwqG4/YeZLwJOoYZv+fmsppUEfo5y9lzUwNQrNqLS/q7HMc7g==",- "dev": true,- "optional": true,- "dependencies": {- "valibot": "~0.31.0"- },- "bin": {- "valibot-json-schema": "bin/index.js"- },- "optionalDependencies": {- "@types/json-schema": ">= 7.0.14",- "esbuild": ">= 0.18.20",- "esbuild-runner": ">= 2.2.2"- }- },- "node_modules/@gcornut/valibot-json-schema/node_modules/valibot": {- "version": "0.31.1",- "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.31.1.tgz",- "integrity": "sha512-2YYIhPrnVSz/gfT2/iXVTrSj92HwchCt9Cga/6hX4B26iCz9zkIsGTS0HjDYTZfTi1Un0X6aRvhBi1cfqs/i0Q==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@grpc/grpc-js": {- "version": "1.13.3",- "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.3.tgz",- "integrity": "sha512-FTXHdOoPbZrBjlVLHuKbDZnsTxXv2BlHF57xw6LuThXacXvtkahEPED0CKMk6obZDf65Hv4k3z62eyPNpvinIg==",- "license": "Apache-2.0",- "dependencies": {- "@grpc/proto-loader": "^0.7.13",- "@js-sdsl/ordered-map": "^4.4.2"- },- "engines": {- "node": ">=12.10.0"- }- },- "node_modules/@grpc/proto-loader": {- "version": "0.7.15",- "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz",- "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==",- "license": "Apache-2.0",- "dependencies": {- "lodash.camelcase": "^4.3.0",- "long": "^5.0.0",- "protobufjs": "^7.2.5",- "yargs": "^17.7.2"- },- "bin": {- "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/@hapi/hoek": {- "version": "9.3.0",- "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",- "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true- },- "node_modules/@hapi/topo": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz",- "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true,- "dependencies": {- "@hapi/hoek": "^9.0.0"- }- },- "node_modules/@humanfs/core": {- "version": "0.19.1",- "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",- "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanfs/node": {- "version": "0.16.6",- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",- "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanfs/core": "^0.19.1",- "@humanwhocodes/retry": "^0.3.0"- },- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {- "version": "0.3.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",- "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/module-importer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.22"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/retry": {- "version": "0.4.2",- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz",- "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@internationalized/date": {- "version": "3.8.0",- "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.8.0.tgz",- "integrity": "sha512-J51AJ0fEL68hE4CwGPa6E0PO6JDaVLd8aln48xFCSy7CZkZc96dGEGmLs2OEEbBxcsVZtfrqkXJwI2/MSG8yKw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@swc/helpers": "^0.5.0"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.8",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",- "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",- "license": "MIT",- "dependencies": {- "@jridgewell/set-array": "^1.2.1",- "@jridgewell/sourcemap-codec": "^1.4.10",- "@jridgewell/trace-mapping": "^0.3.24"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/set-array": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",- "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.25",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",- "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@js-sdsl/ordered-map": {- "version": "4.4.2",- "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",- "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/js-sdsl"- }- },- "node_modules/@lezer/common": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.3.tgz",- "integrity": "sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==",- "license": "MIT"- },- "node_modules/@lezer/highlight": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",- "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",- "license": "MIT",- "dependencies": {- "@lezer/common": "^1.0.0"- }- },- "node_modules/@lezer/lr": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",- "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",- "license": "MIT",- "dependencies": {- "@lezer/common": "^1.0.0"- }- },- "node_modules/@lezer/yaml": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@lezer/yaml/-/yaml-1.0.3.tgz",- "integrity": "sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==",- "license": "MIT",- "dependencies": {- "@lezer/common": "^1.2.0",- "@lezer/highlight": "^1.0.0",- "@lezer/lr": "^1.4.0"- }- },- "node_modules/@lucide/svelte": {- "version": "0.503.0",- "resolved": "https://registry.npmjs.org/@lucide/svelte/-/svelte-0.503.0.tgz",- "integrity": "sha512-Y7Q8pHnX2YG8Ef4a/VnYFN9tTAJS33MiS78vQtPiyp5iiWuBlTMoViMiRUxQb7U9Ro46RdJ0kpCADvvha3Z2rA==",- "dev": true,- "license": "ISC",- "peerDependencies": {- "svelte": "^5"- }- },- "node_modules/@marijn/find-cluster-break": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz",- "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==",- "license": "MIT"- },- "node_modules/@nodelib/fs.scandir": {- "version": "2.1.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "2.0.5",- "run-parallel": "^1.1.9"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.stat": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.walk": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.scandir": "2.1.5",- "fastq": "^1.6.0"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@polka/url": {- "version": "1.0.0-next.29",- "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz",- "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",- "dev": true,- "license": "MIT"- },- "node_modules/@poppinss/macroable": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/@poppinss/macroable/-/macroable-1.0.4.tgz",- "integrity": "sha512-ct43jurbe7lsUX5eIrj4ijO3j/6zIPp7CDnFWXDs7UPAbw1Pu1iH3oAmFdP4jcskKJBURH5M9oTtyeiUXyHX8Q==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=18.16.0"- }- },- "node_modules/@protobufjs/aspromise": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",- "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/base64": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",- "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/codegen": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",- "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/eventemitter": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",- "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/fetch": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",- "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",- "license": "BSD-3-Clause",- "dependencies": {- "@protobufjs/aspromise": "^1.1.1",- "@protobufjs/inquire": "^1.1.0"- }- },- "node_modules/@protobufjs/float": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",- "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/inquire": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",- "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/path": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",- "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/pool": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",- "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",- "license": "BSD-3-Clause"- },- "node_modules/@protobufjs/utf8": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",- "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",- "license": "BSD-3-Clause"- },- "node_modules/@redis/bloom": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz",- "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==",- "license": "MIT",- "peerDependencies": {- "@redis/client": "^1.0.0"- }- },- "node_modules/@redis/client": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.0.tgz",- "integrity": "sha512-aR0uffYI700OEEH4gYnitAnv3vzVGXCFvYfdpu/CJKvk4pHfLPEy/JSZyrpQ+15WhXe1yJRXLtfQ84s4mEXnPg==",- "license": "MIT",- "dependencies": {- "cluster-key-slot": "1.1.2",- "generic-pool": "3.9.0",- "yallist": "4.0.0"- },- "engines": {- "node": ">=14"- }- },- "node_modules/@redis/graph": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz",- "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==",- "license": "MIT",- "peerDependencies": {- "@redis/client": "^1.0.0"- }- },- "node_modules/@redis/json": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz",- "integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==",- "license": "MIT",- "peerDependencies": {- "@redis/client": "^1.0.0"- }- },- "node_modules/@redis/search": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz",- "integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==",- "license": "MIT",- "peerDependencies": {- "@redis/client": "^1.0.0"- }- },- "node_modules/@redis/time-series": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.1.0.tgz",- "integrity": "sha512-c1Q99M5ljsIuc4YdaCwfUEXsofakb9c8+Zse2qxTadu8TalLXuAESzLvFAvNVbkmSlvlzIQOLpBCmWI9wTOt+g==",- "license": "MIT",- "peerDependencies": {- "@redis/client": "^1.0.0"- }- },- "node_modules/@rollup/plugin-commonjs": {- "version": "28.0.3",- "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.3.tgz",- "integrity": "sha512-pyltgilam1QPdn+Zd9gaCfOLcnjMEJ9gV+bTw6/r73INdvzf1ah9zLIJBm+kW7R6IUFIQ1YO+VqZtYxZNWFPEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rollup/pluginutils": "^5.0.1",- "commondir": "^1.0.1",- "estree-walker": "^2.0.2",- "fdir": "^6.2.0",- "is-reference": "1.2.1",- "magic-string": "^0.30.3",- "picomatch": "^4.0.2"- },- "engines": {- "node": ">=16.0.0 || 14 >= 14.17"- },- "peerDependencies": {- "rollup": "^2.68.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }- },- "node_modules/@rollup/plugin-json": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz",- "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rollup/pluginutils": "^5.1.0"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }- },- "node_modules/@rollup/plugin-node-resolve": {- "version": "16.0.1",- "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.1.tgz",- "integrity": "sha512-tk5YCxJWIG81umIvNkSod2qK5KyQW19qcBF/B78n1bjtOON6gzKoVeSzAE8yHCZEDmqkHKkxplExA8KzdJLJpA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rollup/pluginutils": "^5.0.1",- "@types/resolve": "1.20.2",- "deepmerge": "^4.2.2",- "is-module": "^1.0.0",- "resolve": "^1.22.1"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^2.78.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }- },- "node_modules/@rollup/pluginutils": {- "version": "5.1.4",- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz",- "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "estree-walker": "^2.0.2",- "picomatch": "^4.0.2"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.0.tgz",- "integrity": "sha512-+Fbls/diZ0RDerhE8kyC6hjADCXA1K4yVNlH0EYfd2XjyH0UGgzaQ8MlT0pCXAThfxv3QUAczHaL+qSv1E4/Cg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.0.tgz",- "integrity": "sha512-PPA6aEEsTPRz+/4xxAmaoWDqh67N7wFbgFUJGMnanCFs0TV99M0M8QhhaSCks+n6EbQoFvLQgYOGXxlMGQe/6w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.0.tgz",- "integrity": "sha512-GwYOcOakYHdfnjjKwqpTGgn5a6cUX7+Ra2HeNj/GdXvO2VJOOXCiYYlRFU4CubFM67EhbmzLOmACKEfvp3J1kQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.0.tgz",- "integrity": "sha512-CoLEGJ+2eheqD9KBSxmma6ld01czS52Iw0e2qMZNpPDlf7Z9mj8xmMemxEucinev4LgHalDPczMyxzbq+Q+EtA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.0.tgz",- "integrity": "sha512-r7yGiS4HN/kibvESzmrOB/PxKMhPTlz+FcGvoUIKYoTyGd5toHp48g1uZy1o1xQvybwwpqpe010JrcGG2s5nkg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.0.tgz",- "integrity": "sha512-mVDxzlf0oLzV3oZOr0SMJ0lSDd3xC4CmnWJ8Val8isp9jRGl5Dq//LLDSPFrasS7pSm6m5xAcKaw3sHXhBjoRw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.0.tgz",- "integrity": "sha512-y/qUMOpJxBMy8xCXD++jeu8t7kzjlOCkoxxajL58G62PJGBZVl/Gwpm7JK9+YvlB701rcQTzjUZ1JgUoPTnoQA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.0.tgz",- "integrity": "sha512-GoCsPibtVdJFPv/BOIvBKO/XmwZLwaNWdyD8TKlXuqp0veo2sHE+A/vpMQ5iSArRUz/uaoj4h5S6Pn0+PdhRjg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.0.tgz",- "integrity": "sha512-L5ZLphTjjAD9leJzSLI7rr8fNqJMlGDKlazW2tX4IUF9P7R5TMQPElpH82Q7eNIDQnQlAyiNVfRPfP2vM5Avvg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.0.tgz",- "integrity": "sha512-ATZvCRGCDtv1Y4gpDIXsS+wfFeFuLwVxyUBSLawjgXK2tRE6fnsQEkE4csQQYWlBlsFztRzCnBvWVfcae/1qxQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loongarch64-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.0.tgz",- "integrity": "sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.0.tgz",- "integrity": "sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.0.tgz",- "integrity": "sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.0.tgz",- "integrity": "sha512-rKmSj6EXQRnhSkE22+WvrqOqRtk733x3p5sWpZilhmjnkHkpeCgWsFFo0dGnUGeA+OZjRl3+VYq+HyCOEuwcxQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.0.tgz",- "integrity": "sha512-SpnYlAfKPOoVsQqmTFJ0usx0z84bzGOS9anAC0AZ3rdSo3snecihbhFTlJZ8XMwzqAcodjFU4+/SM311dqE5Sw==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.0.tgz",- "integrity": "sha512-RcDGMtqF9EFN8i2RYN2W+64CdHruJ5rPqrlYw+cgM3uOVPSsnAQps7cpjXe9be/yDp8UC7VLoCoKC8J3Kn2FkQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.0.tgz",- "integrity": "sha512-HZvjpiUmSNx5zFgwtQAV1GaGazT2RWvqeDi0hV+AtC8unqqDSsaFjPxfsO6qPtKRRg25SisACWnJ37Yio8ttaw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.0.tgz",- "integrity": "sha512-UtZQQI5k/b8d7d3i9AZmA/t+Q4tk3hOC0tMOMSq2GlMYOfxbesxG4mJSeDp0EHs30N9bsfwUvs3zF4v/RzOeTQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.0.tgz",- "integrity": "sha512-+m03kvI2f5syIqHXCZLPVYplP8pQch9JHyXKZ3AGMKlg8dCyr2PKHjwRLiW53LTrN/Nc3EqHOKxUxzoSPdKddA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.0.tgz",- "integrity": "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@sideway/address": {- "version": "4.1.5",- "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz",- "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true,- "dependencies": {- "@hapi/hoek": "^9.0.0"- }- },- "node_modules/@sideway/formula": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",- "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true- },- "node_modules/@sideway/pinpoint": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz",- "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true- },- "node_modules/@sinclair/typebox": {- "version": "0.34.33",- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.33.tgz",- "integrity": "sha512-5HAV9exOMcXRUxo+9iYB5n09XxzCXnfy4VTNW4xnDv+FgjzAGY989C28BIdljKqmF+ZltUwujE3aossvcVtq6g==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@standard-schema/spec": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0.tgz",- "integrity": "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@sveltejs/acorn-typescript": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.5.tgz",- "integrity": "sha512-IwQk4yfwLdibDlrXVE04jTZYlLnwsTT2PIOQQGNLWfjavGifnk1JD1LcZjZaBTRcxZu2FfPfNLOE04DSu9lqtQ==",- "license": "MIT",- "peerDependencies": {- "acorn": "^8.9.0"- }- },- "node_modules/@sveltejs/adapter-node": {- "version": "5.2.12",- "resolved": "https://registry.npmjs.org/@sveltejs/adapter-node/-/adapter-node-5.2.12.tgz",- "integrity": "sha512-0bp4Yb3jKIEcZWVcJC/L1xXp9zzJS4hDwfb4VITAkfT4OVdkspSHsx7YhqJDbb2hgLl6R9Vs7VQR+fqIVOxPUQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rollup/plugin-commonjs": "^28.0.1",- "@rollup/plugin-json": "^6.1.0",- "@rollup/plugin-node-resolve": "^16.0.0",- "rollup": "^4.9.5"- },- "peerDependencies": {- "@sveltejs/kit": "^2.4.0"- }- },- "node_modules/@sveltejs/kit": {- "version": "2.20.7",- "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.20.7.tgz",- "integrity": "sha512-dVbLMubpJJSLI4OYB+yWYNHGAhgc2bVevWuBjDj8jFUXIJOAnLwYP3vsmtcgoxNGUXoq0rHS5f7MFCsryb6nzg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/cookie": "^0.6.0",- "cookie": "^0.6.0",- "devalue": "^5.1.0",- "esm-env": "^1.2.2",- "import-meta-resolve": "^4.1.0",- "kleur": "^4.1.5",- "magic-string": "^0.30.5",- "mrmime": "^2.0.0",- "sade": "^1.8.1",- "set-cookie-parser": "^2.6.0",- "sirv": "^3.0.0"- },- "bin": {- "svelte-kit": "svelte-kit.js"- },- "engines": {- "node": ">=18.13"- },- "peerDependencies": {- "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0",- "svelte": "^4.0.0 || ^5.0.0-next.0",- "vite": "^5.0.3 || ^6.0.0"- }- },- "node_modules/@sveltejs/vite-plugin-svelte": {- "version": "5.0.3",- "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.0.3.tgz",- "integrity": "sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1",- "debug": "^4.4.0",- "deepmerge": "^4.3.1",- "kleur": "^4.1.5",- "magic-string": "^0.30.15",- "vitefu": "^1.0.4"- },- "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",- "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz",- "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==",- "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/@swc/helpers": {- "version": "0.5.17",- "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.17.tgz",- "integrity": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "tslib": "^2.8.0"- }- },- "node_modules/@tailwindcss/node": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.4.tgz",- "integrity": "sha512-MT5118zaiO6x6hNA04OWInuAiP1YISXql8Z+/Y8iisV5nuhM8VXlyhRuqc2PEviPszcXI66W44bCIk500Oolhw==",- "dev": true,- "license": "MIT",- "dependencies": {- "enhanced-resolve": "^5.18.1",- "jiti": "^2.4.2",- "lightningcss": "1.29.2",- "tailwindcss": "4.1.4"- }- },- "node_modules/@tailwindcss/oxide": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.4.tgz",- "integrity": "sha512-p5wOpXyOJx7mKh5MXh5oKk+kqcz8T+bA3z/5VWWeQwFrmuBItGwz8Y2CHk/sJ+dNb9B0nYFfn0rj/cKHZyjahQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 10"- },- "optionalDependencies": {- "@tailwindcss/oxide-android-arm64": "4.1.4",- "@tailwindcss/oxide-darwin-arm64": "4.1.4",- "@tailwindcss/oxide-darwin-x64": "4.1.4",- "@tailwindcss/oxide-freebsd-x64": "4.1.4",- "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.4",- "@tailwindcss/oxide-linux-arm64-gnu": "4.1.4",- "@tailwindcss/oxide-linux-arm64-musl": "4.1.4",- "@tailwindcss/oxide-linux-x64-gnu": "4.1.4",- "@tailwindcss/oxide-linux-x64-musl": "4.1.4",- "@tailwindcss/oxide-wasm32-wasi": "4.1.4",- "@tailwindcss/oxide-win32-arm64-msvc": "4.1.4",- "@tailwindcss/oxide-win32-x64-msvc": "4.1.4"- }- },- "node_modules/@tailwindcss/oxide-android-arm64": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.4.tgz",- "integrity": "sha512-xMMAe/SaCN/vHfQYui3fqaBDEXMu22BVwQ33veLc8ep+DNy7CWN52L+TTG9y1K397w9nkzv+Mw+mZWISiqhmlA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-darwin-arm64": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.4.tgz",- "integrity": "sha512-JGRj0SYFuDuAGilWFBlshcexev2hOKfNkoX+0QTksKYq2zgF9VY/vVMq9m8IObYnLna0Xlg+ytCi2FN2rOL0Sg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-darwin-x64": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.4.tgz",- "integrity": "sha512-sdDeLNvs3cYeWsEJ4H1DvjOzaGios4QbBTNLVLVs0XQ0V95bffT3+scptzYGPMjm7xv4+qMhCDrkHwhnUySEzA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-freebsd-x64": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.4.tgz",- "integrity": "sha512-VHxAqxqdghM83HslPhRsNhHo91McsxRJaEnShJOMu8mHmEj9Ig7ToHJtDukkuLWLzLboh2XSjq/0zO6wgvykNA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.4.tgz",- "integrity": "sha512-OTU/m/eV4gQKxy9r5acuesqaymyeSCnsx1cFto/I1WhPmi5HDxX1nkzb8KYBiwkHIGg7CTfo/AcGzoXAJBxLfg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.4.tgz",- "integrity": "sha512-hKlLNvbmUC6z5g/J4H+Zx7f7w15whSVImokLPmP6ff1QqTVE+TxUM9PGuNsjHvkvlHUtGTdDnOvGNSEUiXI1Ww==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-linux-arm64-musl": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.4.tgz",- "integrity": "sha512-X3As2xhtgPTY/m5edUtddmZ8rCruvBvtxYLMw9OsZdH01L2gS2icsHRwxdU0dMItNfVmrBezueXZCHxVeeb7Aw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-linux-x64-gnu": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.4.tgz",- "integrity": "sha512-2VG4DqhGaDSmYIu6C4ua2vSLXnJsb/C9liej7TuSO04NK+JJJgJucDUgmX6sn7Gw3Cs5ZJ9ZLrnI0QRDOjLfNQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-linux-x64-musl": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.4.tgz",- "integrity": "sha512-v+mxVgH2kmur/X5Mdrz9m7TsoVjbdYQT0b4Z+dr+I4RvreCNXyCFELZL/DO0M1RsidZTrm6O1eMnV6zlgEzTMQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.4.tgz",- "integrity": "sha512-2TLe9ir+9esCf6Wm+lLWTMbgklIjiF0pbmDnwmhR9MksVOq+e8aP3TSsXySnBDDvTTVd/vKu1aNttEGj3P6l8Q==",- "bundleDependencies": [- "@napi-rs/wasm-runtime",- "@emnapi/core",- "@emnapi/runtime",- "@tybys/wasm-util",- "@emnapi/wasi-threads",- "tslib"- ],- "cpu": [- "wasm32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/core": "^1.4.0",- "@emnapi/runtime": "^1.4.0",- "@emnapi/wasi-threads": "^1.0.1",- "@napi-rs/wasm-runtime": "^0.2.8",- "@tybys/wasm-util": "^0.9.0",- "tslib": "^2.8.0"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {- "version": "1.4.0",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/wasi-threads": "1.0.1",- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {- "version": "1.4.0",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {- "version": "1.0.1",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {- "version": "0.2.8",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/core": "^1.4.0",- "@emnapi/runtime": "^1.4.0",- "@tybys/wasm-util": "^0.9.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {- "version": "0.9.0",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {- "version": "2.8.0",- "dev": true,- "inBundle": true,- "license": "0BSD",- "optional": true- },- "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.4.tgz",- "integrity": "sha512-VlnhfilPlO0ltxW9/BgfLI5547PYzqBMPIzRrk4W7uupgCt8z6Trw/tAj6QUtF2om+1MH281Pg+HHUJoLesmng==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/oxide-win32-x64-msvc": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.4.tgz",- "integrity": "sha512-+7S63t5zhYjslUGb8NcgLpFXD+Kq1F/zt5Xv5qTv7HaFTG/DHyHD9GA6ieNAxhgyA4IcKa/zy7Xx4Oad2/wuhw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tailwindcss/vite": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.4.tgz",- "integrity": "sha512-4UQeMrONbvrsXKXXp/uxmdEN5JIJ9RkH7YVzs6AMxC/KC1+Np7WZBaNIco7TEjlkthqxZbt8pU/ipD+hKjm80A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@tailwindcss/node": "4.1.4",- "@tailwindcss/oxide": "4.1.4",- "tailwindcss": "4.1.4"- },- "peerDependencies": {- "vite": "^5.2.0 || ^6"- }- },- "node_modules/@tanstack/table-core": {- "version": "8.21.3",- "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.21.3.tgz",- "integrity": "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/tannerlinsley"- }- },- "node_modules/@types/cookie": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",- "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/docker-modem": {- "version": "3.0.6",- "resolved": "https://registry.npmjs.org/@types/docker-modem/-/docker-modem-3.0.6.tgz",- "integrity": "sha512-yKpAGEuKRSS8wwx0joknWxsmLha78wNMe9R2S3UNsVOkZded8UqOrV8KoeDXoXsjndxwyF3eIhyClGbO1SEhEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*",- "@types/ssh2": "*"- }- },- "node_modules/@types/dockerode": {- "version": "3.3.38",- "resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.38.tgz",- "integrity": "sha512-nnrcfUe2iR+RyOuz0B4bZgQwD9djQa9ADEjp7OAgBs10pYT0KSCtplJjcmBDJz0qaReX5T7GbE5i4VplvzUHvA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/docker-modem": "*",- "@types/node": "*",- "@types/ssh2": "*"- }- },- "node_modules/@types/dockerode-compose": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/@types/dockerode-compose/-/dockerode-compose-1.4.1.tgz",- "integrity": "sha512-AouE5+t2bghPrCxWGabBGqvXQDF1Hym0NCuCVDzI3vI5KbucWyLBPUIwZK+a9qb3v2Wr9VvBJzHrHLS5r1VM/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/dockerode": "*"- }- },- "node_modules/@types/estree": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz",- "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",- "license": "MIT"- },- "node_modules/@types/js-yaml": {- "version": "4.0.9",- "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",- "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/json-schema": {- "version": "7.0.15",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/node": {- "version": "22.14.1",- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz",- "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==",- "license": "MIT",- "dependencies": {- "undici-types": "~6.21.0"- }- },- "node_modules/@types/proper-lockfile": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@types/proper-lockfile/-/proper-lockfile-4.1.4.tgz",- "integrity": "sha512-uo2ABllncSqg9F1D4nugVl9v93RmjxF6LJzQLMLDdPaXCUIDPeOJ21Gbqi43xNKzBi/WQ0Q0dICqufzQbMjipQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/retry": "*"- }- },- "node_modules/@types/resolve": {- "version": "1.20.2",- "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz",- "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/retry": {- "version": "0.12.5",- "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz",- "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/ssh2": {- "version": "1.15.5",- "resolved": "https://registry.npmjs.org/@types/ssh2/-/ssh2-1.15.5.tgz",- "integrity": "sha512-N1ASjp/nXH3ovBHddRJpli4ozpk6UdDYIX4RJWFa9L1YKnzdhTlVmiGHm4DZnj/jLbqZpes4aeR30EFGQtvhQQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "^18.11.18"- }- },- "node_modules/@types/ssh2/node_modules/@types/node": {- "version": "18.19.86",- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.86.tgz",- "integrity": "sha512-fifKayi175wLyKyc5qUfyENhQ1dCNI1UNjp653d8kuYcPQN5JhX3dGuP/XmvPTg/xRBn1VTLpbmi+H/Mr7tLfQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "undici-types": "~5.26.4"- }- },- "node_modules/@types/ssh2/node_modules/undici-types": {- "version": "5.26.5",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/validator": {- "version": "13.15.0",- "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.0.tgz",- "integrity": "sha512-nh7nrWhLr6CBq9ldtw0wx+z9wKnnv/uTVLA9g/3/TcOYxbpOSZE+MhKPmWqU+K0NvThjhv12uD8MuqijB0WzEA==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/@typeschema/class-validator": {- "version": "0.3.0",- "resolved": "https://registry.npmjs.org/@typeschema/class-validator/-/class-validator-0.3.0.tgz",- "integrity": "sha512-OJSFeZDIQ8EK1HTljKLT5CItM2wsbgczLN8tMEfz3I1Lmhc5TBfkZ0eikFzUC16tI3d1Nag7um6TfCgp2I2Bww==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@typeschema/core": "0.14.0"- },- "peerDependencies": {- "class-validator": "^0.14.1"- },- "peerDependenciesMeta": {- "class-validator": {- "optional": true- }- }- },- "node_modules/@typeschema/core": {- "version": "0.14.0",- "resolved": "https://registry.npmjs.org/@typeschema/core/-/core-0.14.0.tgz",- "integrity": "sha512-Ia6PtZHcL3KqsAWXjMi5xIyZ7XMH4aSnOQes8mfMLx+wGFGtGRNlwe6Y7cYvX+WfNK67OL0/HSe9t8QDygV0/w==",- "dev": true,- "license": "MIT",- "optional": true,- "peerDependencies": {- "@types/json-schema": "^7.0.15"- },- "peerDependenciesMeta": {- "@types/json-schema": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/eslint-plugin": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.31.0.tgz",- "integrity": "sha512-evaQJZ/J/S4wisevDvC1KFZkPzRetH8kYZbkgcTRyql3mcKsf+ZFDV1BVWUGTCAW5pQHoqn5gK5b8kn7ou9aFQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/regexpp": "^4.10.0",- "@typescript-eslint/scope-manager": "8.31.0",- "@typescript-eslint/type-utils": "8.31.0",- "@typescript-eslint/utils": "8.31.0",- "@typescript-eslint/visitor-keys": "8.31.0",- "graphemer": "^1.4.0",- "ignore": "^5.3.1",- "natural-compare": "^1.4.0",- "ts-api-utils": "^2.0.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/@typescript-eslint/parser": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.31.0.tgz",- "integrity": "sha512-67kYYShjBR0jNI5vsf/c3WG4u+zDnCTHTPqVMQguffaWWFs7artgwKmfwdifl+r6XyM5LYLas/dInj2T0SgJyw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/scope-manager": "8.31.0",- "@typescript-eslint/types": "8.31.0",- "@typescript-eslint/typescript-estree": "8.31.0",- "@typescript-eslint/visitor-keys": "8.31.0",- "debug": "^4.3.4"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/@typescript-eslint/scope-manager": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.31.0.tgz",- "integrity": "sha512-knO8UyF78Nt8O/B64i7TlGXod69ko7z6vJD9uhSlm0qkAbGeRUSudcm0+K/4CrRjrpiHfBCjMWlc08Vav1xwcw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.31.0",- "@typescript-eslint/visitor-keys": "8.31.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/type-utils": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.31.0.tgz",- "integrity": "sha512-DJ1N1GdjI7IS7uRlzJuEDCgDQix3ZVYVtgeWEyhyn4iaoitpMBX6Ndd488mXSx0xah/cONAkEaYyylDyAeHMHg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/typescript-estree": "8.31.0",- "@typescript-eslint/utils": "8.31.0",- "debug": "^4.3.4",- "ts-api-utils": "^2.0.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/@typescript-eslint/types": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.31.0.tgz",- "integrity": "sha512-Ch8oSjVyYyJxPQk8pMiP2FFGYatqXQfQIaMp+TpuuLlDachRWpUAeEu1u9B/v/8LToehUIWyiKcA/w5hUFRKuQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/typescript-estree": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.31.0.tgz",- "integrity": "sha512-xLmgn4Yl46xi6aDSZ9KkyfhhtnYI15/CvHbpOy/eR5NWhK/BK8wc709KKwhAR0m4ZKRP7h07bm4BWUYOCuRpQQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.31.0",- "@typescript-eslint/visitor-keys": "8.31.0",- "debug": "^4.3.4",- "fast-glob": "^3.3.2",- "is-glob": "^4.0.3",- "minimatch": "^9.0.4",- "semver": "^7.6.0",- "ts-api-utils": "^2.0.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/@typescript-eslint/utils": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.31.0.tgz",- "integrity": "sha512-qi6uPLt9cjTFxAb1zGNgTob4x9ur7xC6mHQJ8GwEzGMGE9tYniublmJaowOJ9V2jUzxrltTPfdG2nKlWsq0+Ww==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.4.0",- "@typescript-eslint/scope-manager": "8.31.0",- "@typescript-eslint/types": "8.31.0",- "@typescript-eslint/typescript-estree": "8.31.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/@typescript-eslint/visitor-keys": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.31.0.tgz",- "integrity": "sha512-QcGHmlRHWOl93o64ZUMNewCdwKGU6WItOU52H0djgNmn1EOrhVudrDzXz4OycCRSCPwFCDrE2iIt5vmuUdHxuQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.31.0",- "eslint-visitor-keys": "^4.2.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@vinejs/compiler": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/@vinejs/compiler/-/compiler-3.0.0.tgz",- "integrity": "sha512-v9Lsv59nR56+bmy2p0+czjZxsLHwaibJ+SV5iK9JJfehlJMa501jUJQqqz4X/OqKXrxtE3uTQmSqjUqzF3B2mw==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=18.0.0"- }- },- "node_modules/@vinejs/vine": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/@vinejs/vine/-/vine-3.0.1.tgz",- "integrity": "sha512-ZtvYkYpZOYdvbws3uaOAvTFuvFXoQGAtmzeiXu+XSMGxi5GVsODpoI9Xu9TplEMuD/5fmAtBbKb9cQHkWkLXDQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@poppinss/macroable": "^1.0.4",- "@types/validator": "^13.12.2",- "@vinejs/compiler": "^3.0.0",- "camelcase": "^8.0.0",- "dayjs": "^1.11.13",- "dlv": "^1.1.3",- "normalize-url": "^8.0.1",- "validator": "^13.12.0"- },- "engines": {- "node": ">=18.16.0"- }- },- "node_modules/acorn": {- "version": "8.14.1",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",- "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/ajv": {- "version": "6.12.6",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",- "dev": true,- "license": "MIT",- "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"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "license": "MIT",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/argparse": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",- "license": "Python-2.0"- },- "node_modules/aria-query": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",- "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",- "license": "Apache-2.0",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/arktype": {- "version": "2.1.20",- "resolved": "https://registry.npmjs.org/arktype/-/arktype-2.1.20.tgz",- "integrity": "sha512-IZCEEXaJ8g+Ijd59WtSYwtjnqXiwM8sWQ5EjGamcto7+HVN9eK0C4p0zDlCuAwWhpqr6fIBkxPuYDl4/Mcj/+Q==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@ark/schema": "0.46.0",- "@ark/util": "0.46.0"- }- },- "node_modules/asn1": {- "version": "0.2.6",- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",- "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",- "license": "MIT",- "dependencies": {- "safer-buffer": "~2.1.0"- }- },- "node_modules/axobject-query": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",- "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",- "license": "Apache-2.0",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/base64-js": {- "version": "1.5.1",- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/bcrypt-pbkdf": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",- "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",- "license": "BSD-3-Clause",- "dependencies": {- "tweetnacl": "^0.14.3"- }- },- "node_modules/bits-ui": {- "version": "1.3.19",- "resolved": "https://registry.npmjs.org/bits-ui/-/bits-ui-1.3.19.tgz",- "integrity": "sha512-2blb6dkgedHUsDXqCjvmtUi4Advgd9MhaJDT8r7bEWDzHI8HGsOoYsLeh8CxpEWWEYPrlGN+7k+kpxRhIDdFrQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@floating-ui/core": "^1.6.4",- "@floating-ui/dom": "^1.6.7",- "@internationalized/date": "^3.5.6",- "esm-env": "^1.1.2",- "runed": "^0.23.2",- "svelte-toolbelt": "^0.7.1",- "tabbable": "^6.2.0"- },- "engines": {- "node": ">=18",- "pnpm": ">=8.7.0"- },- "funding": {- "url": "https://github.com/sponsors/huntabyte"- },- "peerDependencies": {- "svelte": "^5.11.0"- }- },- "node_modules/bits-ui/node_modules/runed": {- "version": "0.23.4",- "resolved": "https://registry.npmjs.org/runed/-/runed-0.23.4.tgz",- "integrity": "sha512-9q8oUiBYeXIDLWNK5DfCWlkL0EW3oGbk845VdKlPeia28l751VpfesaB/+7pI6rnbx1I6rqoZ2fZxptOJLxILA==",- "dev": true,- "funding": [- "https://github.com/sponsors/huntabyte",- "https://github.com/sponsors/tglide"- ],- "dependencies": {- "esm-env": "^1.0.0"- },- "peerDependencies": {- "svelte": "^5.7.0"- }- },- "node_modules/bl": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",- "license": "MIT",- "dependencies": {- "buffer": "^5.5.0",- "inherits": "^2.0.4",- "readable-stream": "^3.4.0"- }- },- "node_modules/brace-expansion": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/braces": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fill-range": "^7.1.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/buffer": {- "version": "5.7.1",- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT",- "dependencies": {- "base64-js": "^1.3.1",- "ieee754": "^1.1.13"- }- },- "node_modules/buffer-from": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/buildcheck": {- "version": "0.0.6",- "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.6.tgz",- "integrity": "sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==",- "optional": true,- "engines": {- "node": ">=10.0.0"- }- },- "node_modules/callsites": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/camelcase": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz",- "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/chokidar": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",- "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",- "dev": true,- "license": "MIT",- "dependencies": {- "readdirp": "^4.0.1"- },- "engines": {- "node": ">= 14.16.0"- },- "funding": {- "url": "https://paulmillr.com/funding/"- }- },- "node_modules/chownr": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",- "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",- "license": "ISC"- },- "node_modules/class-validator": {- "version": "0.14.1",- "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.1.tgz",- "integrity": "sha512-2VEG9JICxIqTpoK1eMzZqaV+u/EiwEJkMGzTrZf6sU/fwsnOITVgYJ8yojSy6CaXtO9V0Cc6ZQZ8h8m4UBuLwQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@types/validator": "^13.11.8",- "libphonenumber-js": "^1.10.53",- "validator": "^13.9.0"- }- },- "node_modules/cliui": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",- "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",- "license": "ISC",- "dependencies": {- "string-width": "^4.2.0",- "strip-ansi": "^6.0.1",- "wrap-ansi": "^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/clsx": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",- "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/cluster-key-slot": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz",- "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==",- "license": "Apache-2.0",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/codemirror": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz",- "integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==",- "license": "MIT",- "dependencies": {- "@codemirror/autocomplete": "^6.0.0",- "@codemirror/commands": "^6.0.0",- "@codemirror/language": "^6.0.0",- "@codemirror/lint": "^6.0.0",- "@codemirror/search": "^6.0.0",- "@codemirror/state": "^6.0.0",- "@codemirror/view": "^6.0.0"- }- },- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "license": "MIT",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "license": "MIT"- },- "node_modules/commondir": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",- "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",- "dev": true,- "license": "MIT"- },- "node_modules/concat-map": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true,- "license": "MIT"- },- "node_modules/cookie": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",- "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/cpu-features": {- "version": "0.0.10",- "resolved": "https://registry.npmjs.org/cpu-features/-/cpu-features-0.0.10.tgz",- "integrity": "sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==",- "hasInstallScript": true,- "optional": true,- "dependencies": {- "buildcheck": "~0.0.6",- "nan": "^2.19.0"- },- "engines": {- "node": ">=10.0.0"- }- },- "node_modules/crelt": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",- "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==",- "license": "MIT"- },- "node_modules/cross-spawn": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^3.1.0",- "shebang-command": "^2.0.0",- "which": "^2.0.1"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/cssesc": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",- "dev": true,- "license": "MIT",- "bin": {- "cssesc": "bin/cssesc"- },- "engines": {- "node": ">=4"- }- },- "node_modules/dayjs": {- "version": "1.11.13",- "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",- "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/debug": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",- "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/deep-is": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",- "dev": true,- "license": "MIT"- },- "node_modules/deepmerge": {- "version": "4.3.1",- "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",- "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/detect-libc": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",- "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=8"- }- },- "node_modules/devalue": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.1.1.tgz",- "integrity": "sha512-maua5KUiapvEwiEAe+XnlZ3Rh0GD+qI1J/nb9vrJc3muPXvcF/8gXYTWF76+5DAqHyDUtOIImEuo0YKE9mshVw==",- "dev": true,- "license": "MIT"- },- "node_modules/dlv": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",- "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/docker-modem": {- "version": "5.0.6",- "resolved": "https://registry.npmjs.org/docker-modem/-/docker-modem-5.0.6.tgz",- "integrity": "sha512-ens7BiayssQz/uAxGzH8zGXCtiV24rRWXdjNha5V4zSOcxmAZsfGVm/PPFbwQdqEkDnhG+SyR9E3zSHUbOKXBQ==",- "license": "Apache-2.0",- "dependencies": {- "debug": "^4.1.1",- "readable-stream": "^3.5.0",- "split-ca": "^1.0.1",- "ssh2": "^1.15.0"- },- "engines": {- "node": ">= 8.0"- }- },- "node_modules/dockerode": {- "version": "4.0.6",- "resolved": "https://registry.npmjs.org/dockerode/-/dockerode-4.0.6.tgz",- "integrity": "sha512-FbVf3Z8fY/kALB9s+P9epCpWhfi/r0N2DgYYcYpsAUlaTxPjdsitsFobnltb+lyCgAIvf9C+4PSWlTnHlJMf1w==",- "license": "Apache-2.0",- "dependencies": {- "@balena/dockerignore": "^1.0.2",- "@grpc/grpc-js": "^1.11.1",- "@grpc/proto-loader": "^0.7.13",- "docker-modem": "^5.0.6",- "protobufjs": "^7.3.2",- "tar-fs": "~2.1.2",- "uuid": "^10.0.0"- },- "engines": {- "node": ">= 8.0"- }- },- "node_modules/dockerode-compose": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/dockerode-compose/-/dockerode-compose-1.4.0.tgz",- "integrity": "sha512-6x5ZlK06H+cgoTR4ffucqN5kWVvxNvxwTLcHQUZcegCJBEDGrdzXMOEGDMsxbHwiLtLo2dNwG0eZK7B2RfEWSw==",- "license": "Apache-2.0",- "dependencies": {- "dockerode": "^4.0.0",- "js-yaml": "^4.0.0",- "tar-fs": "^2.1.1"- }- },- "node_modules/effect": {- "version": "3.14.11",- "resolved": "https://registry.npmjs.org/effect/-/effect-3.14.11.tgz",- "integrity": "sha512-PPfiu7QRtmmrgH6VWZp/rY1S8SSLJofx5betRuTPGG868G3f0C7yvPOa6SZPLG5ra2yCd1Vfm7cdeI26ZVGGlA==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@standard-schema/spec": "^1.0.0",- "fast-check": "^3.23.1"- }- },- "node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "license": "MIT"- },- "node_modules/end-of-stream": {- "version": "1.4.4",- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",- "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",- "license": "MIT",- "dependencies": {- "once": "^1.4.0"- }- },- "node_modules/enhanced-resolve": {- "version": "5.18.1",- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz",- "integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.4",- "tapable": "^2.2.0"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/esbuild": {- "version": "0.25.2",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz",- "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.25.2",- "@esbuild/android-arm": "0.25.2",- "@esbuild/android-arm64": "0.25.2",- "@esbuild/android-x64": "0.25.2",- "@esbuild/darwin-arm64": "0.25.2",- "@esbuild/darwin-x64": "0.25.2",- "@esbuild/freebsd-arm64": "0.25.2",- "@esbuild/freebsd-x64": "0.25.2",- "@esbuild/linux-arm": "0.25.2",- "@esbuild/linux-arm64": "0.25.2",- "@esbuild/linux-ia32": "0.25.2",- "@esbuild/linux-loong64": "0.25.2",- "@esbuild/linux-mips64el": "0.25.2",- "@esbuild/linux-ppc64": "0.25.2",- "@esbuild/linux-riscv64": "0.25.2",- "@esbuild/linux-s390x": "0.25.2",- "@esbuild/linux-x64": "0.25.2",- "@esbuild/netbsd-arm64": "0.25.2",- "@esbuild/netbsd-x64": "0.25.2",- "@esbuild/openbsd-arm64": "0.25.2",- "@esbuild/openbsd-x64": "0.25.2",- "@esbuild/sunos-x64": "0.25.2",- "@esbuild/win32-arm64": "0.25.2",- "@esbuild/win32-ia32": "0.25.2",- "@esbuild/win32-x64": "0.25.2"- }- },- "node_modules/esbuild-runner": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/esbuild-runner/-/esbuild-runner-2.2.2.tgz",- "integrity": "sha512-fRFVXcmYVmSmtYm2mL8RlUASt2TDkGh3uRcvHFOKNr/T58VrfVeKD9uT9nlgxk96u0LS0ehS/GY7Da/bXWKkhw==",- "dev": true,- "license": "Apache License 2.0",- "optional": true,- "dependencies": {- "source-map-support": "0.5.21",- "tslib": "2.4.0"- },- "bin": {- "esr": "bin/esr.js"- },- "peerDependencies": {- "esbuild": "*"- }- },- "node_modules/esbuild-runner/node_modules/tslib": {- "version": "2.4.0",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",- "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",- "dev": true,- "license": "0BSD",- "optional": true- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint": {- "version": "9.25.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz",- "integrity": "sha512-E6Mtz9oGQWDCpV12319d59n4tx9zOTXSTmc8BLVxBx+G/0RdM5MvEEJLU9c0+aleoePYYgVTOsRblx433qmhWQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.2.0",- "@eslint-community/regexpp": "^4.12.1",- "@eslint/config-array": "^0.20.0",- "@eslint/config-helpers": "^0.2.1",- "@eslint/core": "^0.13.0",- "@eslint/eslintrc": "^3.3.1",- "@eslint/js": "9.25.1",- "@eslint/plugin-kit": "^0.2.8",- "@humanfs/node": "^0.16.6",- "@humanwhocodes/module-importer": "^1.0.1",- "@humanwhocodes/retry": "^0.4.2",- "@types/estree": "^1.0.6",- "@types/json-schema": "^7.0.15",- "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.3.0",- "eslint-visitor-keys": "^4.2.0",- "espree": "^10.3.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"- },- "bin": {- "eslint": "bin/eslint.js"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://eslint.org/donate"- },- "peerDependencies": {- "jiti": "*"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- }- }- },- "node_modules/eslint-plugin-svelte": {- "version": "3.5.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-3.5.1.tgz",- "integrity": "sha512-Qn1slddZHfqYiDO6IN8/iN3YL+VuHlgYjm30FT+hh0Jf/TX0jeZMTJXQMajFm5f6f6hURi+XO8P+NPYD+T4jkg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.4.1",- "@jridgewell/sourcemap-codec": "^1.5.0",- "esutils": "^2.0.3",- "known-css-properties": "^0.35.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.1.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://github.com/sponsors/ota-meshi"- },- "peerDependencies": {- "eslint": "^8.57.1 || ^9.0.0",- "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0"- },- "peerDependenciesMeta": {- "svelte": {- "optional": true- }- }- },- "node_modules/eslint-scope": {- "version": "8.3.0",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz",- "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-visitor-keys": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",- "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esm-env": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz",- "integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==",- "license": "MIT"- },- "node_modules/espree": {- "version": "10.3.0",- "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz",- "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "acorn": "^8.14.0",- "acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^4.2.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esquery": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",- "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "estraverse": "^5.1.0"- },- "engines": {- "node": ">=0.10"- }- },- "node_modules/esrap": {- "version": "1.4.6",- "resolved": "https://registry.npmjs.org/esrap/-/esrap-1.4.6.tgz",- "integrity": "sha512-F/D2mADJ9SHY3IwksD4DAXjTt7qt7GWUf3/8RhCNWmC/67tyb55dpimHmy7EplakFaflV0R/PC+fdSPqrRHAQw==",- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.4.15"- }- },- "node_modules/esrecurse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "estraverse": "^5.2.0"- },- "engines": {- "node": ">=4.0"- }- },- "node_modules/estraverse": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/estree-walker": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",- "dev": true,- "license": "MIT"- },- "node_modules/esutils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/fast-check": {- "version": "3.23.2",- "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.23.2.tgz",- "integrity": "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==",- "dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/dubzzz"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fast-check"- }- ],- "license": "MIT",- "optional": true,- "dependencies": {- "pure-rand": "^6.1.0"- },- "engines": {- "node": ">=8.0.0"- }- },- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-glob": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",- "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "^2.0.2",- "@nodelib/fs.walk": "^1.2.3",- "glob-parent": "^5.1.2",- "merge2": "^1.3.0",- "micromatch": "^4.0.8"- },- "engines": {- "node": ">=8.6.0"- }- },- "node_modules/fast-glob/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-levenshtein": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",- "dev": true,- "license": "MIT"- },- "node_modules/fastq": {- "version": "1.19.1",- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "reusify": "^1.0.4"- }- },- "node_modules/fdir": {- "version": "6.4.4",- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz",- "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "picomatch": "^3 || ^4"- },- "peerDependenciesMeta": {- "picomatch": {- "optional": true- }- }- },- "node_modules/file-entry-cache": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",- "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "flat-cache": "^4.0.0"- },- "engines": {- "node": ">=16.0.0"- }- },- "node_modules/fill-range": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",- "dev": true,- "license": "MIT",- "dependencies": {- "to-regex-range": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/find-up": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",- "dev": true,- "license": "MIT",- "dependencies": {- "locate-path": "^6.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/flat-cache": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",- "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",- "dev": true,- "license": "MIT",- "dependencies": {- "flatted": "^3.2.9",- "keyv": "^4.5.4"- },- "engines": {- "node": ">=16"- }- },- "node_modules/flatted": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",- "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",- "dev": true,- "license": "ISC"- },- "node_modules/formsnap": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/formsnap/-/formsnap-2.0.1.tgz",- "integrity": "sha512-iJSe4YKd/W6WhLwKDVJU9FQeaJRpEFuolhju7ZXlRpUVyDdqFdMP8AUBICgnVvQPyP41IPAlBa/v0Eo35iE6wQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "svelte-toolbelt": "^0.5.0"- },- "engines": {- "node": ">=18",- "pnpm": ">=8.7.0"- },- "funding": {- "url": "https://github.com/sponsors/huntabyte"- },- "peerDependencies": {- "svelte": "^5.0.0",- "sveltekit-superforms": "^2.19.0"- }- },- "node_modules/formsnap/node_modules/svelte-toolbelt": {- "version": "0.5.0",- "resolved": "https://registry.npmjs.org/svelte-toolbelt/-/svelte-toolbelt-0.5.0.tgz",- "integrity": "sha512-t3tenZcnfQoIeRuQf/jBU7bvTeT3TGkcEE+1EUr5orp0lR7NEpprflpuie3x9Dn0W9nOKqs3HwKGJeeN5Ok1sQ==",- "dev": true,- "funding": [- "https://github.com/sponsors/huntabyte"- ],- "dependencies": {- "clsx": "^2.1.1",- "style-to-object": "^1.0.8"- },- "engines": {- "node": ">=18",- "pnpm": ">=8.7.0"- },- "peerDependencies": {- "svelte": "^5.0.0-next.126"- }- },- "node_modules/fs-constants": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",- "license": "MIT"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/function-bind": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/generic-pool": {- "version": "3.9.0",- "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz",- "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==",- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/get-caller-file": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",- "license": "ISC",- "engines": {- "node": "6.* || 8.* || >= 10.*"- }- },- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/globals": {- "version": "16.0.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-16.0.0.tgz",- "integrity": "sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/graceful-fs": {- "version": "4.2.11",- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",- "license": "ISC"- },- "node_modules/graphemer": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",- "dev": true,- "license": "MIT"- },- "node_modules/has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/hasown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "function-bind": "^1.1.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/ieee754": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "BSD-3-Clause"- },- "node_modules/ignore": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/import-fresh": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",- "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "parent-module": "^1.0.0",- "resolve-from": "^4.0.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/import-meta-resolve": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",- "integrity": "sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.19"- }- },- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "license": "ISC"- },- "node_modules/inline-style-parser": {- "version": "0.2.4",- "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.4.tgz",- "integrity": "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==",- "dev": true,- "license": "MIT"- },- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",- "dev": true,- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-module": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",- "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==",- "dev": true,- "license": "MIT"- },- "node_modules/is-number": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.12.0"- }- },- "node_modules/is-reference": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",- "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "*"- }- },- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "dev": true,- "license": "ISC"- },- "node_modules/jiti": {- "version": "2.4.2",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",- "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",- "dev": true,- "license": "MIT",- "bin": {- "jiti": "lib/jiti-cli.mjs"- }- },- "node_modules/joi": {- "version": "17.13.3",- "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz",- "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true,- "dependencies": {- "@hapi/hoek": "^9.3.0",- "@hapi/topo": "^5.1.0",- "@sideway/address": "^4.1.5",- "@sideway/formula": "^3.0.1",- "@sideway/pinpoint": "^2.0.0"- }- },- "node_modules/js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",- "license": "MIT",- "dependencies": {- "argparse": "^2.0.1"- },- "bin": {- "js-yaml": "bin/js-yaml.js"- }- },- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,- "license": "MIT"- },- "node_modules/json-schema-to-ts": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz",- "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@babel/runtime": "^7.18.3",- "ts-algebra": "^2.0.0"- },- "engines": {- "node": ">=16"- }- },- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true,- "license": "MIT"- },- "node_modules/json-stable-stringify-without-jsonify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",- "dev": true,- "license": "MIT",- "dependencies": {- "json-buffer": "3.0.1"- }- },- "node_modules/kleur": {- "version": "4.1.5",- "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",- "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/known-css-properties": {- "version": "0.35.0",- "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.35.0.tgz",- "integrity": "sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==",- "dev": true,- "license": "MIT"- },- "node_modules/levn": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1",- "type-check": "~0.4.0"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/libphonenumber-js": {- "version": "1.12.7",- "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.7.tgz",- "integrity": "sha512-0nYZSNj/QEikyhcM5RZFXGlCB/mr4PVamnT1C2sKBnDDTYndrvbybYjvg+PMqAndQHlLbwQ3socolnL3WWTUFA==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/lightningcss": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.29.2.tgz",- "integrity": "sha512-6b6gd/RUXKaw5keVdSEtqFVdzWnU5jMxTUjA2bVcMNPLwSQ08Sv/UodBVtETLCn7k4S1Ibxwh7k68IwLZPgKaA==",- "dev": true,- "license": "MPL-2.0",- "dependencies": {- "detect-libc": "^2.0.3"- },- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- },- "optionalDependencies": {- "lightningcss-darwin-arm64": "1.29.2",- "lightningcss-darwin-x64": "1.29.2",- "lightningcss-freebsd-x64": "1.29.2",- "lightningcss-linux-arm-gnueabihf": "1.29.2",- "lightningcss-linux-arm64-gnu": "1.29.2",- "lightningcss-linux-arm64-musl": "1.29.2",- "lightningcss-linux-x64-gnu": "1.29.2",- "lightningcss-linux-x64-musl": "1.29.2",- "lightningcss-win32-arm64-msvc": "1.29.2",- "lightningcss-win32-x64-msvc": "1.29.2"- }- },- "node_modules/lightningcss-darwin-arm64": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.29.2.tgz",- "integrity": "sha512-cK/eMabSViKn/PG8U/a7aCorpeKLMlK0bQeNHmdb7qUnBkNPnL+oV5DjJUo0kqWsJUapZsM4jCfYItbqBDvlcA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-x64": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.29.2.tgz",- "integrity": "sha512-j5qYxamyQw4kDXX5hnnCKMf3mLlHvG44f24Qyi2965/Ycz829MYqjrVg2H8BidybHBp9kom4D7DR5VqCKDXS0w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-freebsd-x64": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.29.2.tgz",- "integrity": "sha512-wDk7M2tM78Ii8ek9YjnY8MjV5f5JN2qNVO+/0BAGZRvXKtQrBC4/cn4ssQIpKIPP44YXw6gFdpUF+Ps+RGsCwg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm-gnueabihf": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.29.2.tgz",- "integrity": "sha512-IRUrOrAF2Z+KExdExe3Rz7NSTuuJ2HvCGlMKoquK5pjvo2JY4Rybr+NrKnq0U0hZnx5AnGsuFHjGnNT14w26sg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-gnu": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.29.2.tgz",- "integrity": "sha512-KKCpOlmhdjvUTX/mBuaKemp0oeDIBBLFiU5Fnqxh1/DZ4JPZi4evEH7TKoSBFOSOV3J7iEmmBaw/8dpiUvRKlQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-musl": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.29.2.tgz",- "integrity": "sha512-Q64eM1bPlOOUgxFmoPUefqzY1yV3ctFPE6d/Vt7WzLW4rKTv7MyYNky+FWxRpLkNASTnKQUaiMJ87zNODIrrKQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-gnu": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.29.2.tgz",- "integrity": "sha512-0v6idDCPG6epLXtBH/RPkHvYx74CVziHo6TMYga8O2EiQApnUPZsbR9nFNrg2cgBzk1AYqEd95TlrsL7nYABQg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-musl": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.29.2.tgz",- "integrity": "sha512-rMpz2yawkgGT8RULc5S4WiZopVMOFWjiItBT7aSfDX4NQav6M44rhn5hjtkKzB+wMTRlLLqxkeYEtQ3dd9696w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-arm64-msvc": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.29.2.tgz",- "integrity": "sha512-nL7zRW6evGQqYVu/bKGK+zShyz8OVzsCotFgc7judbt6wnB2KbiKKJwBE4SGoDBQ1O94RjW4asrCjQL4i8Fhbw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-x64-msvc": {- "version": "1.29.2",- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.29.2.tgz",- "integrity": "sha512-EdIUW3B2vLuHmv7urfzMI/h2fmlnOQBk1xlsDxkN1tCWKjNFjfLhGxYk8C8mzpSfr+A6jFFIi8fU6LbQGsRWjA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lilconfig": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",- "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- }- },- "node_modules/locate-character": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",- "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",- "license": "MIT"- },- "node_modules/locate-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^5.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/lodash.camelcase": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",- "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",- "license": "MIT"- },- "node_modules/lodash.merge": {- "version": "4.6.2",- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",- "dev": true,- "license": "MIT"- },- "node_modules/long": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",- "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",- "license": "Apache-2.0"- },- "node_modules/magic-string": {- "version": "0.30.17",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",- "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0"- }- },- "node_modules/memoize-weak": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/memoize-weak/-/memoize-weak-1.0.2.tgz",- "integrity": "sha512-gj39xkrjEw7nCn4nJ1M5ms6+MyMlyiGmttzsqAUsAKn6bYKwuTHh/AO3cKPF8IBrTIYTxb0wWXFs3E//Y8VoWQ==",- "dev": true,- "license": "ISC"- },- "node_modules/merge2": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/micromatch": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",- "dev": true,- "license": "MIT",- "dependencies": {- "braces": "^3.0.3",- "picomatch": "^2.3.1"- },- "engines": {- "node": ">=8.6"- }- },- "node_modules/micromatch/node_modules/picomatch": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/mkdirp-classic": {- "version": "0.5.3",- "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",- "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",- "license": "MIT"- },- "node_modules/mode-watcher": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/mode-watcher/-/mode-watcher-1.0.2.tgz",- "integrity": "sha512-b3ghU4F4kZeRHHPlsVeCltBgYRHNr7HNyT9JTlvIIvuob7Vulu7iKCfaKNU4FGugBIFWyK5q4bDhqCeZy3Cuxw==",- "dev": true,- "license": "MIT",- "dependencies": {- "runed": "^0.25.0",- "svelte-toolbelt": "^0.7.1"- },- "peerDependencies": {- "svelte": "^5.27.0"- }- },- "node_modules/mri": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",- "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/mrmime": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",- "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "license": "MIT"- },- "node_modules/nan": {- "version": "2.22.2",- "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.2.tgz",- "integrity": "sha512-DANghxFkS1plDdRsX0X9pm0Z6SJNN6gBdtXfanwoZ8hooC5gosGFSBGRYHUVPz1asKA/kMRqDRdHrluZ61SpBQ==",- "license": "MIT",- "optional": true- },- "node_modules/nanoid": {- "version": "5.1.5",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz",- "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.js"- },- "engines": {- "node": "^18 || >=20"- }- },- "node_modules/natural-compare": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",- "dev": true,- "license": "MIT"- },- "node_modules/normalize-url": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz",- "integrity": "sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=14.16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/once": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",- "license": "ISC",- "dependencies": {- "wrappy": "1"- }- },- "node_modules/optionator": {- "version": "0.9.4",- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",- "dev": true,- "license": "MIT",- "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"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/p-limit": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^0.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/p-locate": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^3.0.2"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/parent-module": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",- "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",- "dev": true,- "license": "MIT",- "dependencies": {- "callsites": "^3.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "dev": true,- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/picomatch": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",- "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/postcss": {- "version": "8.5.3",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz",- "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",- "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.8",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/postcss-load-config": {- "version": "3.1.4",- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz",- "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",- "dev": true,- "license": "MIT",- "dependencies": {- "lilconfig": "^2.0.5",- "yaml": "^1.10.2"- },- "engines": {- "node": ">= 10"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- "peerDependencies": {- "postcss": ">=8.0.9",- "ts-node": ">=9.0.0"- },- "peerDependenciesMeta": {- "postcss": {- "optional": true- },- "ts-node": {- "optional": true- }- }- },- "node_modules/postcss-load-config/node_modules/yaml": {- "version": "1.10.2",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">= 6"- }- },- "node_modules/postcss-safe-parser": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz",- "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "engines": {- "node": ">=18.0"- },- "peerDependencies": {- "postcss": "^8.4.31"- }- },- "node_modules/postcss-scss": {- "version": "4.0.9",- "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz",- "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss-scss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "engines": {- "node": ">=12.0"- },- "peerDependencies": {- "postcss": "^8.4.29"- }- },- "node_modules/postcss-selector-parser": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz",- "integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==",- "dev": true,- "license": "MIT",- "dependencies": {- "cssesc": "^3.0.0",- "util-deprecate": "^1.0.2"- },- "engines": {- "node": ">=4"- }- },- "node_modules/postcss/node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "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/prelude-ls": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/proper-lockfile": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz",- "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.4",- "retry": "^0.12.0",- "signal-exit": "^3.0.2"- }- },- "node_modules/property-expr": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",- "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/protobufjs": {- "version": "7.5.0",- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.0.tgz",- "integrity": "sha512-Z2E/kOY1QjoMlCytmexzYfDm/w5fKAiRwpSzGtdnXW1zC88Z2yXazHHrOtwCzn+7wSxyE8PYM4rvVcMphF9sOA==",- "hasInstallScript": true,- "license": "BSD-3-Clause",- "dependencies": {- "@protobufjs/aspromise": "^1.1.2",- "@protobufjs/base64": "^1.1.2",- "@protobufjs/codegen": "^2.0.4",- "@protobufjs/eventemitter": "^1.1.0",- "@protobufjs/fetch": "^1.1.0",- "@protobufjs/float": "^1.0.2",- "@protobufjs/inquire": "^1.1.0",- "@protobufjs/path": "^1.1.2",- "@protobufjs/pool": "^1.1.0",- "@protobufjs/utf8": "^1.1.0",- "@types/node": ">=13.7.0",- "long": "^5.0.0"- },- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/pump": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz",- "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",- "license": "MIT",- "dependencies": {- "end-of-stream": "^1.1.0",- "once": "^1.3.1"- }- },- "node_modules/punycode": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/pure-rand": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz",- "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==",- "dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/dubzzz"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fast-check"- }- ],- "license": "MIT",- "optional": true- },- "node_modules/queue-microtask": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/readable-stream": {- "version": "3.6.2",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",- "license": "MIT",- "dependencies": {- "inherits": "^2.0.3",- "string_decoder": "^1.1.1",- "util-deprecate": "^1.0.1"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/readdirp": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",- "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 14.18.0"- },- "funding": {- "type": "individual",- "url": "https://paulmillr.com/funding/"- }- },- "node_modules/redis": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/redis/-/redis-4.7.0.tgz",- "integrity": "sha512-zvmkHEAdGMn+hMRXuMBtu4Vo5P6rHQjLoHftu+lBqq8ZTA3RCVC/WzD790bkKKiNFp7d5/9PcSD19fJyyRvOdQ==",- "license": "MIT",- "workspaces": [- "./packages/*"- ],- "dependencies": {- "@redis/bloom": "1.2.0",- "@redis/client": "1.6.0",- "@redis/graph": "1.1.1",- "@redis/json": "1.0.7",- "@redis/search": "1.2.0",- "@redis/time-series": "1.1.0"- }- },- "node_modules/regenerator-runtime": {- "version": "0.14.1",- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",- "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/require-directory": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/resolve": {- "version": "1.22.10",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",- "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.0",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/resolve-from": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/retry": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",- "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/reusify": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",- "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",- "dev": true,- "license": "MIT",- "engines": {- "iojs": ">=1.0.0",- "node": ">=0.10.0"- }- },- "node_modules/rollup": {- "version": "4.40.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz",- "integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.7"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.40.0",- "@rollup/rollup-android-arm64": "4.40.0",- "@rollup/rollup-darwin-arm64": "4.40.0",- "@rollup/rollup-darwin-x64": "4.40.0",- "@rollup/rollup-freebsd-arm64": "4.40.0",- "@rollup/rollup-freebsd-x64": "4.40.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.40.0",- "@rollup/rollup-linux-arm-musleabihf": "4.40.0",- "@rollup/rollup-linux-arm64-gnu": "4.40.0",- "@rollup/rollup-linux-arm64-musl": "4.40.0",- "@rollup/rollup-linux-loongarch64-gnu": "4.40.0",- "@rollup/rollup-linux-powerpc64le-gnu": "4.40.0",- "@rollup/rollup-linux-riscv64-gnu": "4.40.0",- "@rollup/rollup-linux-riscv64-musl": "4.40.0",- "@rollup/rollup-linux-s390x-gnu": "4.40.0",- "@rollup/rollup-linux-x64-gnu": "4.40.0",- "@rollup/rollup-linux-x64-musl": "4.40.0",- "@rollup/rollup-win32-arm64-msvc": "4.40.0",- "@rollup/rollup-win32-ia32-msvc": "4.40.0",- "@rollup/rollup-win32-x64-msvc": "4.40.0",- "fsevents": "~2.3.2"- }- },- "node_modules/run-parallel": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",- "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT",- "dependencies": {- "queue-microtask": "^1.2.2"- }- },- "node_modules/runed": {- "version": "0.25.0",- "resolved": "https://registry.npmjs.org/runed/-/runed-0.25.0.tgz",- "integrity": "sha512-7+ma4AG9FT2sWQEA0Egf6mb7PBT2vHyuHail1ie8ropfSjvZGtEAx8YTmUjv/APCsdRRxEVvArNjALk9zFSOrg==",- "dev": true,- "funding": [- "https://github.com/sponsors/huntabyte",- "https://github.com/sponsors/tglide"- ],- "dependencies": {- "esm-env": "^1.0.0"- },- "peerDependencies": {- "svelte": "^5.7.0"- }- },- "node_modules/sade": {- "version": "1.8.1",- "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",- "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",- "dev": true,- "license": "MIT",- "dependencies": {- "mri": "^1.1.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/safe-buffer": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/safer-buffer": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",- "license": "MIT"- },- "node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/set-cookie-parser": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",- "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==",- "dev": true,- "license": "MIT"- },- "node_modules/shebang-command": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "shebang-regex": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/shebang-regex": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "license": "ISC"- },- "node_modules/sirv": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.1.tgz",- "integrity": "sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==",- "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": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "optional": true,- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/source-map-support": {- "version": "0.5.21",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",- "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "buffer-from": "^1.0.0",- "source-map": "^0.6.0"- }- },- "node_modules/split-ca": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/split-ca/-/split-ca-1.0.1.tgz",- "integrity": "sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==",- "license": "ISC"- },- "node_modules/ssh2": {- "version": "1.16.0",- "resolved": "https://registry.npmjs.org/ssh2/-/ssh2-1.16.0.tgz",- "integrity": "sha512-r1X4KsBGedJqo7h8F5c4Ybpcr5RjyP+aWIG007uBPRjmdQWfEiVLzSK71Zji1B9sKxwaCvD8y8cwSkYrlLiRRg==",- "hasInstallScript": true,- "dependencies": {- "asn1": "^0.2.6",- "bcrypt-pbkdf": "^1.0.2"- },- "engines": {- "node": ">=10.16.0"- },- "optionalDependencies": {- "cpu-features": "~0.0.10",- "nan": "^2.20.0"- }- },- "node_modules/string_decoder": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",- "license": "MIT",- "dependencies": {- "safe-buffer": "~5.2.0"- }- },- "node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-json-comments": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/style-mod": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",- "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==",- "license": "MIT"- },- "node_modules/style-to-object": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.8.tgz",- "integrity": "sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "inline-style-parser": "0.2.4"- }- },- "node_modules/superstruct": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-2.0.2.tgz",- "integrity": "sha512-uV+TFRZdXsqXTL2pRvujROjdZQ4RAlBUS5BTh9IGm+jTqQntYThciG/qu57Gs69yjnVUSqdxF9YLmSnpupBW9A==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/svelte": {- "version": "5.28.2",- "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.28.2.tgz",- "integrity": "sha512-FbWBxgWOpQfhKvoGJv/TFwzqb4EhJbwCD17dB0tEpQiw1XyUEKZJtgm4nA4xq3LLsMo7hu5UY/BOFmroAxKTMg==",- "license": "MIT",- "dependencies": {- "@ampproject/remapping": "^2.3.0",- "@jridgewell/sourcemap-codec": "^1.5.0",- "@sveltejs/acorn-typescript": "^1.0.5",- "@types/estree": "^1.0.5",- "acorn": "^8.12.1",- "aria-query": "^5.3.1",- "axobject-query": "^4.1.0",- "clsx": "^2.1.1",- "esm-env": "^1.2.1",- "esrap": "^1.4.6",- "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.1.6",- "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.6.tgz",- "integrity": "sha512-P7w/6tdSfk3zEVvfsgrp3h3DFC75jCdZjTQvgGJtjPORs1n7/v2VMPIoty3PWv7jnfEm3x0G/p9wH4pecTb0Wg==",- "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-codemirror-editor": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/svelte-codemirror-editor/-/svelte-codemirror-editor-1.4.1.tgz",- "integrity": "sha512-Pv350iro0Y/AZTT/y2OLaonheQqAwl50Hdfipa2Jv1Z04TSP5kPUyxQnRjqxeRW7DXOX9s5Nd11tHdBl9iYSzw==",- "license": "MIT",- "peerDependencies": {- "codemirror": "^6.0.0",- "svelte": "^3.0.0 || ^4.0.0 || ^5.0.0"- }- },- "node_modules/svelte-eslint-parser": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-1.1.2.tgz",- "integrity": "sha512-vqFBRamDKo1l70KMfxxXj1/0Cco5TfMDnqaAjgz6D8PyoMhfMcDOLRkAwPg8WkMyZjMtQL3wW66TZ0x59iqO2w==",- "dev": true,- "license": "MIT",- "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"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://github.com/sponsors/ota-meshi"- },- "peerDependencies": {- "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0"- },- "peerDependenciesMeta": {- "svelte": {- "optional": true- }- }- },- "node_modules/svelte-sonner": {- "version": "0.3.28",- "resolved": "https://registry.npmjs.org/svelte-sonner/-/svelte-sonner-0.3.28.tgz",- "integrity": "sha512-K3AmlySeFifF/cKgsYNv5uXqMVNln0NBAacOYgmkQStLa/UoU0LhfAACU6Gr+YYC8bOCHdVmFNoKuDbMEsppJg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "svelte": "^3.0.0 || ^4.0.0 || ^5.0.0-next.1"- }- },- "node_modules/svelte-toolbelt": {- "version": "0.7.1",- "resolved": "https://registry.npmjs.org/svelte-toolbelt/-/svelte-toolbelt-0.7.1.tgz",- "integrity": "sha512-HcBOcR17Vx9bjaOceUvxkY3nGmbBmCBBbuWLLEWO6jtmWH8f/QoWmbyUfQZrpDINH39en1b8mptfPQT9VKQ1xQ==",- "dev": true,- "funding": [- "https://github.com/sponsors/huntabyte"- ],- "dependencies": {- "clsx": "^2.1.1",- "runed": "^0.23.2",- "style-to-object": "^1.0.8"- },- "engines": {- "node": ">=18",- "pnpm": ">=8.7.0"- },- "peerDependencies": {- "svelte": "^5.0.0"- }- },- "node_modules/svelte-toolbelt/node_modules/runed": {- "version": "0.23.4",- "resolved": "https://registry.npmjs.org/runed/-/runed-0.23.4.tgz",- "integrity": "sha512-9q8oUiBYeXIDLWNK5DfCWlkL0EW3oGbk845VdKlPeia28l751VpfesaB/+7pI6rnbx1I6rqoZ2fZxptOJLxILA==",- "dev": true,- "funding": [- "https://github.com/sponsors/huntabyte",- "https://github.com/sponsors/tglide"- ],- "dependencies": {- "esm-env": "^1.0.0"- },- "peerDependencies": {- "svelte": "^5.7.0"- }- },- "node_modules/svelte/node_modules/is-reference": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz",- "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==",- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.6"- }- },- "node_modules/sveltekit-superforms": {- "version": "2.24.1",- "resolved": "https://registry.npmjs.org/sveltekit-superforms/-/sveltekit-superforms-2.24.1.tgz",- "integrity": "sha512-L4BlvgOD1CquP83UaCcHziD/BJ7lJEHT6g0J+F5h15mShxurJiXse4dX1BxDSGarNdzzrOBujd5ecjuIQm2zdw==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ciscoheat"- },- {- "type": "ko-fi",- "url": "https://ko-fi.com/ciscoheat"- },- {- "type": "paypal",- "url": "https://www.paypal.com/donate/?hosted_button_id=NY7F5ALHHSVQS"- }- ],- "license": "MIT",- "dependencies": {- "devalue": "^5.1.1",- "memoize-weak": "^1.0.2",- "ts-deepmerge": "^7.0.2"- },- "optionalDependencies": {- "@exodus/schemasafe": "^1.3.0",- "@gcornut/valibot-json-schema": "^0.31.0",- "@sinclair/typebox": "^0.34.28",- "@typeschema/class-validator": "^0.3.0",- "@vinejs/vine": "^3.0.0",- "arktype": "^2.1.9",- "class-validator": "^0.14.1",- "effect": "^3.13.7",- "joi": "^17.13.3",- "json-schema-to-ts": "^3.1.1",- "superstruct": "^2.0.2",- "valibot": "1.0.0-rc.3",- "yup": "^1.6.1",- "zod": "^3.24.2",- "zod-to-json-schema": "^3.24.3"- },- "peerDependencies": {- "@exodus/schemasafe": "^1.3.0",- "@sinclair/typebox": "^0.34.28",- "@sveltejs/kit": "1.x || 2.x",- "@typeschema/class-validator": "^0.3.0",- "@vinejs/vine": "^1.8.0 || ^2.0.0 || ^3.0.0",- "arktype": ">=2.0.0-rc.23",- "class-validator": "^0.14.1",- "effect": "^3.13.7",- "joi": "^17.13.1",- "superstruct": "^2.0.2",- "svelte": "3.x || 4.x || >=5.0.0-next.51",- "valibot": ">=1.0.0-rc.3",- "yup": "^1.4.0",- "zod": "^3.24.2"- },- "peerDependenciesMeta": {- "@exodus/schemasafe": {- "optional": true- },- "@sinclair/typebox": {- "optional": true- },- "@typeschema/class-validator": {- "optional": true- },- "@vinejs/vine": {- "optional": true- },- "arktype": {- "optional": true- },- "class-validator": {- "optional": true- },- "effect": {- "optional": true- },- "joi": {- "optional": true- },- "superstruct": {- "optional": true- },- "valibot": {- "optional": true- },- "yup": {- "optional": true- },- "zod": {- "optional": true- }- }- },- "node_modules/tabbable": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz",- "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==",- "dev": true,- "license": "MIT"- },- "node_modules/tailwind-merge": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.2.0.tgz",- "integrity": "sha512-FQT/OVqCD+7edmmJpsgCsY820RTD5AkBryuG5IUqR5YQZSdj5xlH5nLgH7YPths7WsLPSpSBNneJdM8aS8aeFA==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/dcastil"- }- },- "node_modules/tailwind-variants": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/tailwind-variants/-/tailwind-variants-1.0.0.tgz",- "integrity": "sha512-2WSbv4ulEEyuBKomOunut65D8UZwxrHoRfYnxGcQNnHqlSCp2+B7Yz2W+yrNDrxRodOXtGD/1oCcKGNBnUqMqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tailwind-merge": "3.0.2"- },- "engines": {- "node": ">=16.x",- "pnpm": ">=7.x"- },- "peerDependencies": {- "tailwindcss": "*"- }- },- "node_modules/tailwind-variants/node_modules/tailwind-merge": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.0.2.tgz",- "integrity": "sha512-l7z+OYZ7mu3DTqrL88RiKrKIqO3NcpEO8V/Od04bNpvk0kiIFndGEoqfuzvj4yuhRkHKjRkII2z+KS2HfPcSxw==",- "dev": true,- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/dcastil"- }- },- "node_modules/tailwindcss": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.4.tgz",- "integrity": "sha512-1ZIUqtPITFbv/DxRmDr5/agPqJwF69d24m9qmM1939TJehgY539CtzeZRjbLt5G6fSy/7YqqYsfvoTEw9xUI2A==",- "dev": true,- "license": "MIT"- },- "node_modules/tailwindcss-animate": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",- "integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },- "node_modules/tapable": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",- "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/tar-fs": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.2.tgz",- "integrity": "sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==",- "license": "MIT",- "dependencies": {- "chownr": "^1.1.1",- "mkdirp-classic": "^0.5.2",- "pump": "^3.0.0",- "tar-stream": "^2.1.4"- }- },- "node_modules/tar-stream": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",- "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",- "license": "MIT",- "dependencies": {- "bl": "^4.0.3",- "end-of-stream": "^1.4.1",- "fs-constants": "^1.0.0",- "inherits": "^2.0.3",- "readable-stream": "^3.1.1"- },- "engines": {- "node": ">=6"- }- },- "node_modules/tiny-case": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",- "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/tinyglobby": {- "version": "0.2.13",- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz",- "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==",- "dev": true,- "license": "MIT",- "dependencies": {- "fdir": "^6.4.4",- "picomatch": "^4.0.2"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "url": "https://github.com/sponsors/SuperchupuDev"- }- },- "node_modules/to-regex-range": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-number": "^7.0.0"- },- "engines": {- "node": ">=8.0"- }- },- "node_modules/toposort": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",- "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/totalist": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",- "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/ts-algebra": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz",- "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==",- "dev": true,- "license": "MIT",- "optional": true- },- "node_modules/ts-api-utils": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",- "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18.12"- },- "peerDependencies": {- "typescript": ">=4.8.4"- }- },- "node_modules/ts-deepmerge": {- "version": "7.0.2",- "resolved": "https://registry.npmjs.org/ts-deepmerge/-/ts-deepmerge-7.0.2.tgz",- "integrity": "sha512-akcpDTPuez4xzULo5NwuoKwYRtjQJ9eoNfBACiBMaXwNAx7B1PKfe5wqUFJuW5uKzQ68YjDFwPaWHDG1KnFGsA==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14.13.1"- }- },- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "dev": true,- "license": "0BSD"- },- "node_modules/tweetnacl": {- "version": "0.14.5",- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",- "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==",- "license": "Unlicense"- },- "node_modules/type-check": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/type-fest": {- "version": "2.19.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",- "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "optional": true,- "engines": {- "node": ">=12.20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/typescript": {- "version": "5.8.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",- "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/typescript-eslint": {- "version": "8.31.0",- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.31.0.tgz",- "integrity": "sha512-u+93F0sB0An8WEAPtwxVhFby573E8ckdjwUUQUj9QA4v8JAvgtoDdIyYR3XFwFHq2W1KJ1AurwJCO+w+Y1ixyQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/eslint-plugin": "8.31.0",- "@typescript-eslint/parser": "8.31.0",- "@typescript-eslint/utils": "8.31.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/undici-types": {- "version": "6.21.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",- "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",- "license": "MIT"- },- "node_modules/uri-js": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "punycode": "^2.1.0"- }- },- "node_modules/util-deprecate": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",- "license": "MIT"- },- "node_modules/uuid": {- "version": "10.0.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",- "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],- "license": "MIT",- "bin": {- "uuid": "dist/bin/uuid"- }- },- "node_modules/valibot": {- "version": "1.0.0-rc.3",- "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.0.0-rc.3.tgz",- "integrity": "sha512-LT0REa7Iqx4QGcaHLiTiTkcmJqJ9QdpOy89HALFFBJgejTS64GQFRIbDF7e4f6pauQbo/myfKGmWXCLhMeM6+g==",- "dev": true,- "license": "MIT",- "optional": true,- "peerDependencies": {- "typescript": ">=5"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/validator": {- "version": "13.15.0",- "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",- "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">= 0.10"- }- },- "node_modules/vite": {- "version": "6.3.3",- "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.3.tgz",- "integrity": "sha512-5nXH+QsELbFKhsEfWLkHrvgRpTdGJzqOZ+utSdmPTvwHmvU6ITTm3xx+mRusihkcI8GeC7lCDyn3kDtiki9scw==",- "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.0.6",- "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz",- "integrity": "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==",- "dev": true,- "license": "MIT",- "workspaces": [- "tests/deps/*",- "tests/projects/*"- ],- "peerDependencies": {- "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"- },- "peerDependenciesMeta": {- "vite": {- "optional": true- }- }- },- "node_modules/w3c-keyname": {- "version": "2.2.8",- "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",- "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==",- "license": "MIT"- },- "node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dev": true,- "license": "ISC",- "dependencies": {- "isexe": "^2.0.0"- },- "bin": {- "node-which": "bin/node-which"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/word-wrap": {- "version": "1.2.5",- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",- "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/wrap-ansi": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/wrappy": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",- "license": "ISC"- },- "node_modules/y18n": {- "version": "5.0.8",- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",- "license": "ISC",- "engines": {- "node": ">=10"- }- },- "node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "license": "ISC"- },- "node_modules/yaml": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz",- "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==",- "dev": true,- "license": "ISC",- "optional": true,- "peer": true,- "bin": {- "yaml": "bin.mjs"- },- "engines": {- "node": ">= 14"- }- },- "node_modules/yargs": {- "version": "17.7.2",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",- "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",- "license": "MIT",- "dependencies": {- "cliui": "^8.0.1",- "escalade": "^3.1.1",- "get-caller-file": "^2.0.5",- "require-directory": "^2.1.1",- "string-width": "^4.2.3",- "y18n": "^5.0.5",- "yargs-parser": "^21.1.1"- },- "engines": {- "node": ">=12"- }- },- "node_modules/yargs-parser": {- "version": "21.1.1",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",- "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",- "license": "ISC",- "engines": {- "node": ">=12"- }- },- "node_modules/yocto-queue": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/yup": {- "version": "1.6.1",- "resolved": "https://registry.npmjs.org/yup/-/yup-1.6.1.tgz",- "integrity": "sha512-JED8pB50qbA4FOkDol0bYF/p60qSEDQqBD0/qeIrUCG1KbPBIQ776fCUNb9ldbPcSTxA69g/47XTo4TqWiuXOA==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "property-expr": "^2.0.5",- "tiny-case": "^1.0.3",- "toposort": "^2.0.2",- "type-fest": "^2.19.0"- }- },- "node_modules/zimmerframe": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.2.tgz",- "integrity": "sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==",- "license": "MIT"- },- "node_modules/zod": {- "version": "3.24.3",- "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz",- "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- },- "node_modules/zod-to-json-schema": {- "version": "3.24.5",- "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz",- "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==",- "dev": true,- "license": "ISC",- "optional": true,- "peerDependencies": {- "zod": "^3.24.1"- }- }- }+ "name": "arcane",+ "version": "0.2.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "arcane",+ "version": "0.2.0",+ "dependencies": {+ "@codemirror/lang-yaml": "^6.1.2",+ "@codemirror/theme-one-dark": "^6.1.2",+ "@tanstack/table-core": "^8.21.3",+ "codemirror": "^6.0.1",+ "dockerode": "^4.0.6",+ "dockerode-compose": "^1.4.0",+ "js-yaml": "^4.1.0",+ "nanoid": "^5.1.5",+ "prettier": "^3.5.3",+ "prettier-plugin-svelte": "^3.3.3",+ "proper-lockfile": "^4.1.2",+ "redis": "^4.7.0",+ "svelte-codemirror-editor": "^1.4.1"+ },+ "devDependencies": {+ "@eslint/compat": "^1.2.5",+ "@eslint/js": "^9.18.0",+ "@lucide/svelte": "^0.503.0",+ "@sveltejs/adapter-node": "^5.2.12",+ "@sveltejs/kit": "^2.16.0",+ "@sveltejs/vite-plugin-svelte": "^5.0.0",+ "@tailwindcss/vite": "^4.0.0",+ "@types/dockerode": "^3.3.38",+ "@types/dockerode-compose": "^1.4.1",+ "@types/js-yaml": "^4.0.9",+ "@types/proper-lockfile": "^4.1.4",+ "bits-ui": "^1.3.19",+ "clsx": "^2.1.1",+ "eslint": "^9.25.1",+ "eslint-plugin-svelte": "^3.0.0",+ "formsnap": "^2.0.1",+ "globals": "^16.0.0",+ "mode-watcher": "^1.0.2",+ "svelte": "^5.28.2",+ "svelte-check": "^4.0.0",+ "svelte-sonner": "^0.3.28",+ "sveltekit-superforms": "^2.24.1",+ "tailwind-merge": "^3.2.0",+ "tailwind-variants": "^1.0.0",+ "tailwindcss": "^4.0.0",+ "tailwindcss-animate": "^1.0.7",+ "typescript": "^5.5.0",+ "typescript-eslint": "^8.31.0",+ "vite": "^6.3.3",+ "zod": "^3.24.3"+ }+ },+ "node_modules/@ampproject/remapping": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@ark/schema": {+ "version": "0.46.0",+ "resolved": "https://registry.npmjs.org/@ark/schema/-/schema-0.46.0.tgz",+ "integrity": "sha512-c2UQdKgP2eqqDArfBqQIJppxJHvNNXuQPeuSPlDML4rjw+f1cu0qAlzOG4b8ujgm9ctIDWwhpyw6gjG5ledIVQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@ark/util": "0.46.0"+ }+ },+ "node_modules/@ark/util": {+ "version": "0.46.0",+ "resolved": "https://registry.npmjs.org/@ark/util/-/util-0.46.0.tgz",+ "integrity": "sha512-JPy/NGWn/lvf1WmGCPw2VGpBg5utZraE84I7wli18EDF3p3zc/e9WolT35tINeZO3l7C77SjqRJeAUoT0CvMRg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@babel/runtime": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz",+ "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "regenerator-runtime": "^0.14.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@balena/dockerignore": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@balena/dockerignore/-/dockerignore-1.0.2.tgz",+ "integrity": "sha512-wMue2Sy4GAVTk6Ic4tJVcnfdau+gx2EnG7S+uAEe+TWJFqE4YoWN4/H8MSLj4eYJKxGg26lZwboEniNiNwZQ6Q==",+ "license": "Apache-2.0"+ },+ "node_modules/@codemirror/autocomplete": {+ "version": "6.18.6",+ "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.18.6.tgz",+ "integrity": "sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/language": "^6.0.0",+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.17.0",+ "@lezer/common": "^1.0.0"+ }+ },+ "node_modules/@codemirror/commands": {+ "version": "6.8.1",+ "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.8.1.tgz",+ "integrity": "sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/language": "^6.0.0",+ "@codemirror/state": "^6.4.0",+ "@codemirror/view": "^6.27.0",+ "@lezer/common": "^1.1.0"+ }+ },+ "node_modules/@codemirror/lang-yaml": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/@codemirror/lang-yaml/-/lang-yaml-6.1.2.tgz",+ "integrity": "sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/autocomplete": "^6.0.0",+ "@codemirror/language": "^6.0.0",+ "@codemirror/state": "^6.0.0",+ "@lezer/common": "^1.2.0",+ "@lezer/highlight": "^1.2.0",+ "@lezer/lr": "^1.0.0",+ "@lezer/yaml": "^1.0.0"+ }+ },+ "node_modules/@codemirror/language": {+ "version": "6.11.0",+ "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.11.0.tgz",+ "integrity": "sha512-A7+f++LodNNc1wGgoRDTt78cOwWm9KVezApgjOMp1W4hM0898nsqBXwF+sbePE7ZRcjN7Sa1Z5m2oN27XkmEjQ==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.23.0",+ "@lezer/common": "^1.1.0",+ "@lezer/highlight": "^1.0.0",+ "@lezer/lr": "^1.0.0",+ "style-mod": "^4.0.0"+ }+ },+ "node_modules/@codemirror/lint": {+ "version": "6.8.5",+ "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.8.5.tgz",+ "integrity": "sha512-s3n3KisH7dx3vsoeGMxsbRAgKe4O1vbrnKBClm99PU0fWxmxsx5rR2PfqQgIt+2MMJBHbiJ5rfIdLYfB9NNvsA==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.35.0",+ "crelt": "^1.0.5"+ }+ },+ "node_modules/@codemirror/search": {+ "version": "6.5.10",+ "resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.5.10.tgz",+ "integrity": "sha512-RMdPdmsrUf53pb2VwflKGHEe1XVM07hI7vV2ntgw1dmqhimpatSJKva4VA9h4TLUDOD4EIF02201oZurpnEFsg==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.0.0",+ "crelt": "^1.0.5"+ }+ },+ "node_modules/@codemirror/state": {+ "version": "6.5.2",+ "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.5.2.tgz",+ "integrity": "sha512-FVqsPqtPWKVVL3dPSxy8wEF/ymIEuVzF1PK3VbUgrxXpJUSHQWWZz4JMToquRxnkw+36LTamCZG2iua2Ptq0fA==",+ "license": "MIT",+ "dependencies": {+ "@marijn/find-cluster-break": "^1.0.0"+ }+ },+ "node_modules/@codemirror/theme-one-dark": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.1.2.tgz",+ "integrity": "sha512-F+sH0X16j/qFLMAfbciKTxVOwkdAS336b7AXTKOZhy8BR3eH/RelsnLgLFINrpST63mmN2OuwUt0W2ndUgYwUA==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/language": "^6.0.0",+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.0.0",+ "@lezer/highlight": "^1.0.0"+ }+ },+ "node_modules/@codemirror/view": {+ "version": "6.36.5",+ "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.36.5.tgz",+ "integrity": "sha512-cd+FZEUlu3GQCYnguYm3EkhJ8KJVisqqUsCOKedBoAt/d9c76JUUap6U0UrpElln5k6VyrEOYliMuDAKIeDQLg==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/state": "^6.5.0",+ "style-mod": "^4.1.0",+ "w3c-keyname": "^2.2.4"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz",+ "integrity": "sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.2.tgz",+ "integrity": "sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.2.tgz",+ "integrity": "sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.2.tgz",+ "integrity": "sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.2.tgz",+ "integrity": "sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.2.tgz",+ "integrity": "sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.2.tgz",+ "integrity": "sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.2.tgz",+ "integrity": "sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.2.tgz",+ "integrity": "sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.2.tgz",+ "integrity": "sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.2.tgz",+ "integrity": "sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.2.tgz",+ "integrity": "sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.2.tgz",+ "integrity": "sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.2.tgz",+ "integrity": "sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.2.tgz",+ "integrity": "sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.2.tgz",+ "integrity": "sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz",+ "integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.2.tgz",+ "integrity": "sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.2.tgz",+ "integrity": "sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.2.tgz",+ "integrity": "sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.2.tgz",+ "integrity": "sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.2.tgz",+ "integrity": "sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.2.tgz",+ "integrity": "sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.2.tgz",+ "integrity": "sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.2.tgz",+ "integrity": "sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.6.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz",+ "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eslint-visitor-keys": "^3.4.3"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"+ }+ },+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint-community/regexpp": {+ "version": "4.12.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/compat": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.2.8.tgz",+ "integrity": "sha512-LqCYHdWL/QqKIJuZ/ucMAv8d4luKGs4oCPgpt8mWztQAtPrHfXKQ/XAUc8ljCHAfJCn6SvkpTcGt5Tsh8saowA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "peerDependencies": {+ "eslint": "^9.10.0"+ },+ "peerDependenciesMeta": {+ "eslint": {+ "optional": true+ }+ }+ },+ "node_modules/@eslint/config-array": {+ "version": "0.20.0",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz",+ "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/object-schema": "^2.1.6",+ "debug": "^4.3.1",+ "minimatch": "^3.1.2"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/config-helpers": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz",+ "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/core": {+ "version": "0.13.0",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz",+ "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/eslintrc": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",+ "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.12.4",+ "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.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint/eslintrc/node_modules/globals": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@eslint/js": {+ "version": "9.25.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.1.tgz",+ "integrity": "sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/object-schema": {+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",+ "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/plugin-kit": {+ "version": "0.2.8",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz",+ "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/core": "^0.13.0",+ "levn": "^0.4.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@exodus/schemasafe": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@exodus/schemasafe/-/schemasafe-1.3.0.tgz",+ "integrity": "sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@floating-ui/core": {+ "version": "1.6.9",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.9.tgz",+ "integrity": "sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@floating-ui/utils": "^0.2.9"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.6.13",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.13.tgz",+ "integrity": "sha512-umqzocjDgNRGTuO7Q8CU32dkHkECqI8ZdMZ5Swb6QAM0t5rnlrN3lGo1hdpscRd3WS8T6DKYK4ephgIH9iRh3w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.6.0",+ "@floating-ui/utils": "^0.2.9"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.9",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz",+ "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@gcornut/valibot-json-schema": {+ "version": "0.31.0",+ "resolved": "https://registry.npmjs.org/@gcornut/valibot-json-schema/-/valibot-json-schema-0.31.0.tgz",+ "integrity": "sha512-3xGptCurm23e7nuPQkdrE5rEs1FeTPHhAUsBuwwqG4/YeZLwJOoYZv+fmsppUEfo5y9lzUwNQrNqLS/q7HMc7g==",+ "dev": true,+ "optional": true,+ "dependencies": {+ "valibot": "~0.31.0"+ },+ "bin": {+ "valibot-json-schema": "bin/index.js"+ },+ "optionalDependencies": {+ "@types/json-schema": ">= 7.0.14",+ "esbuild": ">= 0.18.20",+ "esbuild-runner": ">= 2.2.2"+ }+ },+ "node_modules/@gcornut/valibot-json-schema/node_modules/valibot": {+ "version": "0.31.1",+ "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.31.1.tgz",+ "integrity": "sha512-2YYIhPrnVSz/gfT2/iXVTrSj92HwchCt9Cga/6hX4B26iCz9zkIsGTS0HjDYTZfTi1Un0X6aRvhBi1cfqs/i0Q==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@grpc/grpc-js": {+ "version": "1.13.3",+ "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.3.tgz",+ "integrity": "sha512-FTXHdOoPbZrBjlVLHuKbDZnsTxXv2BlHF57xw6LuThXacXvtkahEPED0CKMk6obZDf65Hv4k3z62eyPNpvinIg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@grpc/proto-loader": "^0.7.13",+ "@js-sdsl/ordered-map": "^4.4.2"+ },+ "engines": {+ "node": ">=12.10.0"+ }+ },+ "node_modules/@grpc/proto-loader": {+ "version": "0.7.15",+ "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz",+ "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "lodash.camelcase": "^4.3.0",+ "long": "^5.0.0",+ "protobufjs": "^7.2.5",+ "yargs": "^17.7.2"+ },+ "bin": {+ "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/@hapi/hoek": {+ "version": "9.3.0",+ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz",+ "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/@hapi/topo": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-5.1.0.tgz",+ "integrity": "sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "@hapi/hoek": "^9.0.0"+ }+ },+ "node_modules/@humanfs/core": {+ "version": "0.19.1",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanfs/node": {+ "version": "0.16.6",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanfs/core": "^0.19.1",+ "@humanwhocodes/retry": "^0.3.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {+ "version": "0.3.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/retry": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz",+ "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@internationalized/date": {+ "version": "3.8.0",+ "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.8.0.tgz",+ "integrity": "sha512-J51AJ0fEL68hE4CwGPa6E0PO6JDaVLd8aln48xFCSy7CZkZc96dGEGmLs2OEEbBxcsVZtfrqkXJwI2/MSG8yKw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/helpers": "^0.5.0"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.8",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",+ "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/set-array": "^1.2.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/set-array": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.25",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@js-sdsl/ordered-map": {+ "version": "4.4.2",+ "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",+ "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/js-sdsl"+ }+ },+ "node_modules/@lezer/common": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.2.3.tgz",+ "integrity": "sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==",+ "license": "MIT"+ },+ "node_modules/@lezer/highlight": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.1.tgz",+ "integrity": "sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==",+ "license": "MIT",+ "dependencies": {+ "@lezer/common": "^1.0.0"+ }+ },+ "node_modules/@lezer/lr": {+ "version": "1.4.2",+ "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.2.tgz",+ "integrity": "sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==",+ "license": "MIT",+ "dependencies": {+ "@lezer/common": "^1.0.0"+ }+ },+ "node_modules/@lezer/yaml": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@lezer/yaml/-/yaml-1.0.3.tgz",+ "integrity": "sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==",+ "license": "MIT",+ "dependencies": {+ "@lezer/common": "^1.2.0",+ "@lezer/highlight": "^1.0.0",+ "@lezer/lr": "^1.4.0"+ }+ },+ "node_modules/@lucide/svelte": {+ "version": "0.503.0",+ "resolved": "https://registry.npmjs.org/@lucide/svelte/-/svelte-0.503.0.tgz",+ "integrity": "sha512-Y7Q8pHnX2YG8Ef4a/VnYFN9tTAJS33MiS78vQtPiyp5iiWuBlTMoViMiRUxQb7U9Ro46RdJ0kpCADvvha3Z2rA==",+ "dev": true,+ "license": "ISC",+ "peerDependencies": {+ "svelte": "^5"+ }+ },+ "node_modules/@marijn/find-cluster-break": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.2.tgz",+ "integrity": "sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==",+ "license": "MIT"+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@polka/url": {+ "version": "1.0.0-next.29",+ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz",+ "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@poppinss/macroable": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@poppinss/macroable/-/macroable-1.0.4.tgz",+ "integrity": "sha512-ct43jurbe7lsUX5eIrj4ijO3j/6zIPp7CDnFWXDs7UPAbw1Pu1iH3oAmFdP4jcskKJBURH5M9oTtyeiUXyHX8Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=18.16.0"+ }+ },+ "node_modules/@protobufjs/aspromise": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",+ "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/base64": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",+ "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/codegen": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",+ "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/eventemitter": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",+ "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/fetch": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",+ "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.1",+ "@protobufjs/inquire": "^1.1.0"+ }+ },+ "node_modules/@protobufjs/float": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",+ "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/inquire": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",+ "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/path": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",+ "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/pool": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",+ "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/utf8": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",+ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@redis/bloom": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz",+ "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==",+ "license": "MIT",+ "peerDependencies": {+ "@redis/client": "^1.0.0"+ }+ },+ "node_modules/@redis/client": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.6.0.tgz",+ "integrity": "sha512-aR0uffYI700OEEH4gYnitAnv3vzVGXCFvYfdpu/CJKvk4pHfLPEy/JSZyrpQ+15WhXe1yJRXLtfQ84s4mEXnPg==",+ "license": "MIT",+ "dependencies": {+ "cluster-key-slot": "1.1.2",+ "generic-pool": "3.9.0",+ "yallist": "4.0.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@redis/graph": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz",+ "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==",+ "license": "MIT",+ "peerDependencies": {+ "@redis/client": "^1.0.0"+ }+ },+ "node_modules/@redis/json": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz",+ "integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==",+ "license": "MIT",+ "peerDependencies": {+ "@redis/client": "^1.0.0"+ }+ },+ "node_modules/@redis/search": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz",+ "integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==",+ "license": "MIT",+ "peerDependencies": {+ "@redis/client": "^1.0.0"+ }+ },+ "node_modules/@redis/time-series": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.1.0.tgz",+ "integrity": "sha512-c1Q99M5ljsIuc4YdaCwfUEXsofakb9c8+Zse2qxTadu8TalLXuAESzLvFAvNVbkmSlvlzIQOLpBCmWI9wTOt+g==",+ "license": "MIT",+ "peerDependencies": {+ "@redis/client": "^1.0.0"+ }+ },+ "node_modules/@rollup/plugin-commonjs": {+ "version": "28.0.3",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.3.tgz",+ "integrity": "sha512-pyltgilam1QPdn+Zd9gaCfOLcnjMEJ9gV+bTw6/r73INdvzf1ah9zLIJBm+kW7R6IUFIQ1YO+VqZtYxZNWFPEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/pluginutils": "^5.0.1",+ "commondir": "^1.0.1",+ "estree-walker": "^2.0.2",+ "fdir": "^6.2.0",+ "is-reference": "1.2.1",+ "magic-string": "^0.30.3",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=16.0.0 || 14 >= 14.17"+ },+ "peerDependencies": {+ "rollup": "^2.68.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/plugin-json": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-json/-/plugin-json-6.1.0.tgz",+ "integrity": "sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/pluginutils": "^5.1.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/plugin-node-resolve": {+ "version": "16.0.1",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-16.0.1.tgz",+ "integrity": "sha512-tk5YCxJWIG81umIvNkSod2qK5KyQW19qcBF/B78n1bjtOON6gzKoVeSzAE8yHCZEDmqkHKkxplExA8KzdJLJpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/pluginutils": "^5.0.1",+ "@types/resolve": "1.20.2",+ "deepmerge": "^4.2.2",+ "is-module": "^1.0.0",+ "resolve": "^1.22.1"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^2.78.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/pluginutils": {+ "version": "5.1.4",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz",+ "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "estree-walker": "^2.0.2",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.0.tgz",+ "integrity": "sha512-+Fbls/diZ0RDerhE8kyC6hjADCXA1K4yVNlH0EYfd2XjyH0UGgzaQ8MlT0pCXAThfxv3QUAczHaL+qSv1E4/Cg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.0.tgz",+ "integrity": "sha512-PPA6aEEsTPRz+/4xxAmaoWDqh67N7wFbgFUJGMnanCFs0TV99M0M8QhhaSCks+n6EbQoFvLQgYOGXxlMGQe/6w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.0.tgz",+ "integrity": "sha512-GwYOcOakYHdfnjjKwqpTGgn5a6cUX7+Ra2HeNj/GdXvO2VJOOXCiYYlRFU4CubFM67EhbmzLOmACKEfvp3J1kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.0.tgz",+ "integrity": "sha512-CoLEGJ+2eheqD9KBSxmma6ld01czS52Iw0e2qMZNpPDlf7Z9mj8xmMemxEucinev4LgHalDPczMyxzbq+Q+EtA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.0.tgz",+ "integrity": "sha512-r7yGiS4HN/kibvESzmrOB/PxKMhPTlz+FcGvoUIKYoTyGd5toHp48g1uZy1o1xQvybwwpqpe010JrcGG2s5nkg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.0.tgz",+ "integrity": "sha512-mVDxzlf0oLzV3oZOr0SMJ0lSDd3xC4CmnWJ8Val8isp9jRGl5Dq//LLDSPFrasS7pSm6m5xAcKaw3sHXhBjoRw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.0.tgz",+ "integrity": "sha512-y/qUMOpJxBMy8xCXD++jeu8t7kzjlOCkoxxajL58G62PJGBZVl/Gwpm7JK9+YvlB701rcQTzjUZ1JgUoPTnoQA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.0.tgz",+ "integrity": "sha512-GoCsPibtVdJFPv/BOIvBKO/XmwZLwaNWdyD8TKlXuqp0veo2sHE+A/vpMQ5iSArRUz/uaoj4h5S6Pn0+PdhRjg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.0.tgz",+ "integrity": "sha512-L5ZLphTjjAD9leJzSLI7rr8fNqJMlGDKlazW2tX4IUF9P7R5TMQPElpH82Q7eNIDQnQlAyiNVfRPfP2vM5Avvg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.0.tgz",+ "integrity": "sha512-ATZvCRGCDtv1Y4gpDIXsS+wfFeFuLwVxyUBSLawjgXK2tRE6fnsQEkE4csQQYWlBlsFztRzCnBvWVfcae/1qxQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loongarch64-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.0.tgz",+ "integrity": "sha512-wG9e2XtIhd++QugU5MD9i7OnpaVb08ji3P1y/hNbxrQ3sYEelKJOq1UJ5dXczeo6Hj2rfDEL5GdtkMSVLa/AOg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.0.tgz",+ "integrity": "sha512-vgXfWmj0f3jAUvC7TZSU/m/cOE558ILWDzS7jBhiCAFpY2WEBn5jqgbqvmzlMjtp8KlLcBlXVD2mkTSEQE6Ixw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.0.tgz",+ "integrity": "sha512-uJkYTugqtPZBS3Z136arevt/FsKTF/J9dEMTX/cwR7lsAW4bShzI2R0pJVw+hcBTWF4dxVckYh72Hk3/hWNKvA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.0.tgz",+ "integrity": "sha512-rKmSj6EXQRnhSkE22+WvrqOqRtk733x3p5sWpZilhmjnkHkpeCgWsFFo0dGnUGeA+OZjRl3+VYq+HyCOEuwcxQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.0.tgz",+ "integrity": "sha512-SpnYlAfKPOoVsQqmTFJ0usx0z84bzGOS9anAC0AZ3rdSo3snecihbhFTlJZ8XMwzqAcodjFU4+/SM311dqE5Sw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.0.tgz",+ "integrity": "sha512-RcDGMtqF9EFN8i2RYN2W+64CdHruJ5rPqrlYw+cgM3uOVPSsnAQps7cpjXe9be/yDp8UC7VLoCoKC8J3Kn2FkQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.0.tgz",+ "integrity": "sha512-HZvjpiUmSNx5zFgwtQAV1GaGazT2RWvqeDi0hV+AtC8unqqDSsaFjPxfsO6qPtKRRg25SisACWnJ37Yio8ttaw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.0.tgz",+ "integrity": "sha512-UtZQQI5k/b8d7d3i9AZmA/t+Q4tk3hOC0tMOMSq2GlMYOfxbesxG4mJSeDp0EHs30N9bsfwUvs3zF4v/RzOeTQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.0.tgz",+ "integrity": "sha512-+m03kvI2f5syIqHXCZLPVYplP8pQch9JHyXKZ3AGMKlg8dCyr2PKHjwRLiW53LTrN/Nc3EqHOKxUxzoSPdKddA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.0.tgz",+ "integrity": "sha512-lpPE1cLfP5oPzVjKMx10pgBmKELQnFJXHgvtHCtuJWOv8MxqdEIMNtgHgBFf7Ea2/7EuVwa9fodWUfXAlXZLZQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@sideway/address": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz",+ "integrity": "sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "@hapi/hoek": "^9.0.0"+ }+ },+ "node_modules/@sideway/formula": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",+ "integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/@sideway/pinpoint": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@sideway/pinpoint/-/pinpoint-2.0.0.tgz",+ "integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true+ },+ "node_modules/@sinclair/typebox": {+ "version": "0.34.33",+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.33.tgz",+ "integrity": "sha512-5HAV9exOMcXRUxo+9iYB5n09XxzCXnfy4VTNW4xnDv+FgjzAGY989C28BIdljKqmF+ZltUwujE3aossvcVtq6g==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@standard-schema/spec": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0.tgz",+ "integrity": "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@sveltejs/acorn-typescript": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.5.tgz",+ "integrity": "sha512-IwQk4yfwLdibDlrXVE04jTZYlLnwsTT2PIOQQGNLWfjavGifnk1JD1LcZjZaBTRcxZu2FfPfNLOE04DSu9lqtQ==",+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^8.9.0"+ }+ },+ "node_modules/@sveltejs/adapter-node": {+ "version": "5.2.12",+ "resolved": "https://registry.npmjs.org/@sveltejs/adapter-node/-/adapter-node-5.2.12.tgz",+ "integrity": "sha512-0bp4Yb3jKIEcZWVcJC/L1xXp9zzJS4hDwfb4VITAkfT4OVdkspSHsx7YhqJDbb2hgLl6R9Vs7VQR+fqIVOxPUQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/plugin-commonjs": "^28.0.1",+ "@rollup/plugin-json": "^6.1.0",+ "@rollup/plugin-node-resolve": "^16.0.0",+ "rollup": "^4.9.5"+ },+ "peerDependencies": {+ "@sveltejs/kit": "^2.4.0"+ }+ },+ "node_modules/@sveltejs/kit": {+ "version": "2.20.7",+ "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.20.7.tgz",+ "integrity": "sha512-dVbLMubpJJSLI4OYB+yWYNHGAhgc2bVevWuBjDj8jFUXIJOAnLwYP3vsmtcgoxNGUXoq0rHS5f7MFCsryb6nzg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/cookie": "^0.6.0",+ "cookie": "^0.6.0",+ "devalue": "^5.1.0",+ "esm-env": "^1.2.2",+ "import-meta-resolve": "^4.1.0",+ "kleur": "^4.1.5",+ "magic-string": "^0.30.5",+ "mrmime": "^2.0.0",+ "sade": "^1.8.1",+ "set-cookie-parser": "^2.6.0",+ "sirv": "^3.0.0"+ },+ "bin": {+ "svelte-kit": "svelte-kit.js"+ },+ "engines": {+ "node": ">=18.13"+ },+ "peerDependencies": {+ "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0",+ "svelte": "^4.0.0 || ^5.0.0-next.0",+ "vite": "^5.0.3 || ^6.0.0"+ }+ },+ "node_modules/@sveltejs/vite-plugin-svelte": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.0.3.tgz",+ "integrity": "sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1",+ "debug": "^4.4.0",+ "deepmerge": "^4.3.1",+ "kleur": "^4.1.5",+ "magic-string": "^0.30.15",+ "vitefu": "^1.0.4"+ },+ "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",+ "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz",+ "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==",+ "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/@swc/helpers": {+ "version": "0.5.17",+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.17.tgz",+ "integrity": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "node_modules/@tailwindcss/node": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.4.tgz",+ "integrity": "sha512-MT5118zaiO6x6hNA04OWInuAiP1YISXql8Z+/Y8iisV5nuhM8VXlyhRuqc2PEviPszcXI66W44bCIk500Oolhw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "enhanced-resolve": "^5.18.1",+ "jiti": "^2.4.2",+ "lightningcss": "1.29.2",+ "tailwindcss": "4.1.4"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.4.tgz",+ "integrity": "sha512-p5wOpXyOJx7mKh5MXh5oKk+kqcz8T+bA3z/5VWWeQwFrmuBItGwz8Y2CHk/sJ+dNb9B0nYFfn0rj/cKHZyjahQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.1.4",+ "@tailwindcss/oxide-darwin-arm64": "4.1.4",+ "@tailwindcss/oxide-darwin-x64": "4.1.4",+ "@tailwindcss/oxide-freebsd-x64": "4.1.4",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.4",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.1.4",+ "@tailwindcss/oxide-linux-arm64-musl": "4.1.4",+ "@tailwindcss/oxide-linux-x64-gnu": "4.1.4",+ "@tailwindcss/oxide-linux-x64-musl": "4.1.4",+ "@tailwindcss/oxide-wasm32-wasi": "4.1.4",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.1.4",+ "@tailwindcss/oxide-win32-x64-msvc": "4.1.4"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.4.tgz",+ "integrity": "sha512-xMMAe/SaCN/vHfQYui3fqaBDEXMu22BVwQ33veLc8ep+DNy7CWN52L+TTG9y1K397w9nkzv+Mw+mZWISiqhmlA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.4.tgz",+ "integrity": "sha512-JGRj0SYFuDuAGilWFBlshcexev2hOKfNkoX+0QTksKYq2zgF9VY/vVMq9m8IObYnLna0Xlg+ytCi2FN2rOL0Sg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.4.tgz",+ "integrity": "sha512-sdDeLNvs3cYeWsEJ4H1DvjOzaGios4QbBTNLVLVs0XQ0V95bffT3+scptzYGPMjm7xv4+qMhCDrkHwhnUySEzA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.4.tgz",+ "integrity": "sha512-VHxAqxqdghM83HslPhRsNhHo91McsxRJaEnShJOMu8mHmEj9Ig7ToHJtDukkuLWLzLboh2XSjq/0zO6wgvykNA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.4.tgz",+ "integrity": "sha512-OTU/m/eV4gQKxy9r5acuesqaymyeSCnsx1cFto/I1WhPmi5HDxX1nkzb8KYBiwkHIGg7CTfo/AcGzoXAJBxLfg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.4.tgz",+ "integrity": "sha512-hKlLNvbmUC6z5g/J4H+Zx7f7w15whSVImokLPmP6ff1QqTVE+TxUM9PGuNsjHvkvlHUtGTdDnOvGNSEUiXI1Ww==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.4.tgz",+ "integrity": "sha512-X3As2xhtgPTY/m5edUtddmZ8rCruvBvtxYLMw9OsZdH01L2gS2icsHRwxdU0dMItNfVmrBezueXZCHxVeeb7Aw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.4.tgz",+ "integrity": "sha512-2VG4DqhGaDSmYIu6C4ua2vSLXnJsb/C9liej7TuSO04NK+JJJgJucDUgmX6sn7Gw3Cs5ZJ9ZLrnI0QRDOjLfNQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.4.tgz",+ "integrity": "sha512-v+mxVgH2kmur/X5Mdrz9m7TsoVjbdYQT0b4Z+dr+I4RvreCNXyCFELZL/DO0M1RsidZTrm6O1eMnV6zlgEzTMQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.4.tgz",+ "integrity": "sha512-2TLe9ir+9esCf6Wm+lLWTMbgklIjiF0pbmDnwmhR9MksVOq+e8aP3TSsXySnBDDvTTVd/vKu1aNttEGj3P6l8Q==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.4.0",+ "@emnapi/runtime": "^1.4.0",+ "@emnapi/wasi-threads": "^1.0.1",+ "@napi-rs/wasm-runtime": "^0.2.8",+ "@tybys/wasm-util": "^0.9.0",+ "tslib": "^2.8.0"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {+ "version": "1.4.0",+ "dev": true,+ "inBundle": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/wasi-threads": "1.0.1",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {+ "version": "1.4.0",+ "dev": true,+ "inBundle": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {+ "version": "1.0.1",+ "dev": true,+ "inBundle": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {+ "version": "0.2.8",+ "dev": true,+ "inBundle": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.4.0",+ "@emnapi/runtime": "^1.4.0",+ "@tybys/wasm-util": "^0.9.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {+ "version": "0.9.0",+ "dev": true,+ "inBundle": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {+ "version": "2.8.0",+ "dev": true,+ "inBundle": true,+ "license": "0BSD",+ "optional": true+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.4.tgz",+ "integrity": "sha512-VlnhfilPlO0ltxW9/BgfLI5547PYzqBMPIzRrk4W7uupgCt8z6Trw/tAj6QUtF2om+1MH281Pg+HHUJoLesmng==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.4.tgz",+ "integrity": "sha512-+7S63t5zhYjslUGb8NcgLpFXD+Kq1F/zt5Xv5qTv7HaFTG/DHyHD9GA6ieNAxhgyA4IcKa/zy7Xx4Oad2/wuhw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tailwindcss/vite": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.4.tgz",+ "integrity": "sha512-4UQeMrONbvrsXKXXp/uxmdEN5JIJ9RkH7YVzs6AMxC/KC1+Np7WZBaNIco7TEjlkthqxZbt8pU/ipD+hKjm80A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tailwindcss/node": "4.1.4",+ "@tailwindcss/oxide": "4.1.4",+ "tailwindcss": "4.1.4"+ },+ "peerDependencies": {+ "vite": "^5.2.0 || ^6"+ }+ },+ "node_modules/@tanstack/table-core": {+ "version": "8.21.3",+ "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.21.3.tgz",+ "integrity": "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ }+ },+ "node_modules/@types/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/docker-modem": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/@types/docker-modem/-/docker-modem-3.0.6.tgz",+ "integrity": "sha512-yKpAGEuKRSS8wwx0joknWxsmLha78wNMe9R2S3UNsVOkZded8UqOrV8KoeDXoXsjndxwyF3eIhyClGbO1SEhEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "@types/ssh2": "*"+ }+ },+ "node_modules/@types/dockerode": {+ "version": "3.3.38",+ "resolved": "https://registry.npmjs.org/@types/dockerode/-/dockerode-3.3.38.tgz",+ "integrity": "sha512-nnrcfUe2iR+RyOuz0B4bZgQwD9djQa9ADEjp7OAgBs10pYT0KSCtplJjcmBDJz0qaReX5T7GbE5i4VplvzUHvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/docker-modem": "*",+ "@types/node": "*",+ "@types/ssh2": "*"+ }+ },+ "node_modules/@types/dockerode-compose": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/@types/dockerode-compose/-/dockerode-compose-1.4.1.tgz",+ "integrity": "sha512-AouE5+t2bghPrCxWGabBGqvXQDF1Hym0NCuCVDzI3vI5KbucWyLBPUIwZK+a9qb3v2Wr9VvBJzHrHLS5r1VM/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/dockerode": "*"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz",+ "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",+ "license": "MIT"+ },+ "node_modules/@types/js-yaml": {+ "version": "4.0.9",+ "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",+ "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "22.14.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.1.tgz",+ "integrity": "sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/proper-lockfile": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/@types/proper-lockfile/-/proper-lockfile-4.1.4.tgz",+ "integrity": "sha512-uo2ABllncSqg9F1D4nugVl9v93RmjxF6LJzQLMLDdPaXCUIDPeOJ21Gbqi43xNKzBi/WQ0Q0dICqufzQbMjipQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/retry": "*"+ }+ },+ "node_modules/@types/resolve": {+ "version": "1.20.2",+ "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz",+ "integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/retry": {+ "version": "0.12.5",+ "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.5.tgz",+ "integrity": "sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/ssh2": {+ "version": "1.15.5",+ "resolved": "https://registry.npmjs.org/@types/ssh2/-/ssh2-1.15.5.tgz",+ "integrity": "sha512-N1ASjp/nXH3ovBHddRJpli4ozpk6UdDYIX4RJWFa9L1YKnzdhTlVmiGHm4DZnj/jLbqZpes4aeR30EFGQtvhQQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "^18.11.18"+ }+ },+ "node_modules/@types/ssh2/node_modules/@types/node": {+ "version": "18.19.86",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.86.tgz",+ "integrity": "sha512-fifKayi175wLyKyc5qUfyENhQ1dCNI1UNjp653d8kuYcPQN5JhX3dGuP/XmvPTg/xRBn1VTLpbmi+H/Mr7tLfQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/@types/ssh2/node_modules/undici-types": {+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/validator": {+ "version": "13.15.0",+ "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.15.0.tgz",+ "integrity": "sha512-nh7nrWhLr6CBq9ldtw0wx+z9wKnnv/uTVLA9g/3/TcOYxbpOSZE+MhKPmWqU+K0NvThjhv12uD8MuqijB0WzEA==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/@typeschema/class-validator": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/@typeschema/class-validator/-/class-validator-0.3.0.tgz",+ "integrity": "sha512-OJSFeZDIQ8EK1HTljKLT5CItM2wsbgczLN8tMEfz3I1Lmhc5TBfkZ0eikFzUC16tI3d1Nag7um6TfCgp2I2Bww==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@typeschema/core": "0.14.0"+ },+ "peerDependencies": {+ "class-validator": "^0.14.1"+ },+ "peerDependenciesMeta": {+ "class-validator": {+ "optional": true+ }+ }+ },+ "node_modules/@typeschema/core": {+ "version": "0.14.0",+ "resolved": "https://registry.npmjs.org/@typeschema/core/-/core-0.14.0.tgz",+ "integrity": "sha512-Ia6PtZHcL3KqsAWXjMi5xIyZ7XMH4aSnOQes8mfMLx+wGFGtGRNlwe6Y7cYvX+WfNK67OL0/HSe9t8QDygV0/w==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peerDependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "peerDependenciesMeta": {+ "@types/json-schema": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.31.0.tgz",+ "integrity": "sha512-evaQJZ/J/S4wisevDvC1KFZkPzRetH8kYZbkgcTRyql3mcKsf+ZFDV1BVWUGTCAW5pQHoqn5gK5b8kn7ou9aFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.10.0",+ "@typescript-eslint/scope-manager": "8.31.0",+ "@typescript-eslint/type-utils": "8.31.0",+ "@typescript-eslint/utils": "8.31.0",+ "@typescript-eslint/visitor-keys": "8.31.0",+ "graphemer": "^1.4.0",+ "ignore": "^5.3.1",+ "natural-compare": "^1.4.0",+ "ts-api-utils": "^2.0.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.31.0.tgz",+ "integrity": "sha512-67kYYShjBR0jNI5vsf/c3WG4u+zDnCTHTPqVMQguffaWWFs7artgwKmfwdifl+r6XyM5LYLas/dInj2T0SgJyw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/scope-manager": "8.31.0",+ "@typescript-eslint/types": "8.31.0",+ "@typescript-eslint/typescript-estree": "8.31.0",+ "@typescript-eslint/visitor-keys": "8.31.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.31.0.tgz",+ "integrity": "sha512-knO8UyF78Nt8O/B64i7TlGXod69ko7z6vJD9uhSlm0qkAbGeRUSudcm0+K/4CrRjrpiHfBCjMWlc08Vav1xwcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.31.0",+ "@typescript-eslint/visitor-keys": "8.31.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/type-utils": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.31.0.tgz",+ "integrity": "sha512-DJ1N1GdjI7IS7uRlzJuEDCgDQix3ZVYVtgeWEyhyn4iaoitpMBX6Ndd488mXSx0xah/cONAkEaYyylDyAeHMHg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/typescript-estree": "8.31.0",+ "@typescript-eslint/utils": "8.31.0",+ "debug": "^4.3.4",+ "ts-api-utils": "^2.0.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.31.0.tgz",+ "integrity": "sha512-Ch8oSjVyYyJxPQk8pMiP2FFGYatqXQfQIaMp+TpuuLlDachRWpUAeEu1u9B/v/8LToehUIWyiKcA/w5hUFRKuQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.31.0.tgz",+ "integrity": "sha512-xLmgn4Yl46xi6aDSZ9KkyfhhtnYI15/CvHbpOy/eR5NWhK/BK8wc709KKwhAR0m4ZKRP7h07bm4BWUYOCuRpQQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.31.0",+ "@typescript-eslint/visitor-keys": "8.31.0",+ "debug": "^4.3.4",+ "fast-glob": "^3.3.2",+ "is-glob": "^4.0.3",+ "minimatch": "^9.0.4",+ "semver": "^7.6.0",+ "ts-api-utils": "^2.0.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.31.0.tgz",+ "integrity": "sha512-qi6uPLt9cjTFxAb1zGNgTob4x9ur7xC6mHQJ8GwEzGMGE9tYniublmJaowOJ9V2jUzxrltTPfdG2nKlWsq0+Ww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.4.0",+ "@typescript-eslint/scope-manager": "8.31.0",+ "@typescript-eslint/types": "8.31.0",+ "@typescript-eslint/typescript-estree": "8.31.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.31.0.tgz",+ "integrity": "sha512-QcGHmlRHWOl93o64ZUMNewCdwKGU6WItOU52H0djgNmn1EOrhVudrDzXz4OycCRSCPwFCDrE2iIt5vmuUdHxuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.31.0",+ "eslint-visitor-keys": "^4.2.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@vinejs/compiler": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/@vinejs/compiler/-/compiler-3.0.0.tgz",+ "integrity": "sha512-v9Lsv59nR56+bmy2p0+czjZxsLHwaibJ+SV5iK9JJfehlJMa501jUJQqqz4X/OqKXrxtE3uTQmSqjUqzF3B2mw==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@vinejs/vine": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/@vinejs/vine/-/vine-3.0.1.tgz",+ "integrity": "sha512-ZtvYkYpZOYdvbws3uaOAvTFuvFXoQGAtmzeiXu+XSMGxi5GVsODpoI9Xu9TplEMuD/5fmAtBbKb9cQHkWkLXDQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@poppinss/macroable": "^1.0.4",+ "@types/validator": "^13.12.2",+ "@vinejs/compiler": "^3.0.0",+ "camelcase": "^8.0.0",+ "dayjs": "^1.11.13",+ "dlv": "^1.1.3",+ "normalize-url": "^8.0.1",+ "validator": "^13.12.0"+ },+ "engines": {+ "node": ">=18.16.0"+ }+ },+ "node_modules/acorn": {+ "version": "8.14.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",+ "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "license": "MIT",+ "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"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "license": "Python-2.0"+ },+ "node_modules/aria-query": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/arktype": {+ "version": "2.1.20",+ "resolved": "https://registry.npmjs.org/arktype/-/arktype-2.1.20.tgz",+ "integrity": "sha512-IZCEEXaJ8g+Ijd59WtSYwtjnqXiwM8sWQ5EjGamcto7+HVN9eK0C4p0zDlCuAwWhpqr6fIBkxPuYDl4/Mcj/+Q==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@ark/schema": "0.46.0",+ "@ark/util": "0.46.0"+ }+ },+ "node_modules/asn1": {+ "version": "0.2.6",+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",+ "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": "~2.1.0"+ }+ },+ "node_modules/axobject-query": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/bcrypt-pbkdf": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",+ "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "tweetnacl": "^0.14.3"+ }+ },+ "node_modules/bits-ui": {+ "version": "1.3.19",+ "resolved": "https://registry.npmjs.org/bits-ui/-/bits-ui-1.3.19.tgz",+ "integrity": "sha512-2blb6dkgedHUsDXqCjvmtUi4Advgd9MhaJDT8r7bEWDzHI8HGsOoYsLeh8CxpEWWEYPrlGN+7k+kpxRhIDdFrQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.6.4",+ "@floating-ui/dom": "^1.6.7",+ "@internationalized/date": "^3.5.6",+ "esm-env": "^1.1.2",+ "runed": "^0.23.2",+ "svelte-toolbelt": "^0.7.1",+ "tabbable": "^6.2.0"+ },+ "engines": {+ "node": ">=18",+ "pnpm": ">=8.7.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/huntabyte"+ },+ "peerDependencies": {+ "svelte": "^5.11.0"+ }+ },+ "node_modules/bits-ui/node_modules/runed": {+ "version": "0.23.4",+ "resolved": "https://registry.npmjs.org/runed/-/runed-0.23.4.tgz",+ "integrity": "sha512-9q8oUiBYeXIDLWNK5DfCWlkL0EW3oGbk845VdKlPeia28l751VpfesaB/+7pI6rnbx1I6rqoZ2fZxptOJLxILA==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/huntabyte",+ "https://github.com/sponsors/tglide"+ ],+ "dependencies": {+ "esm-env": "^1.0.0"+ },+ "peerDependencies": {+ "svelte": "^5.7.0"+ }+ },+ "node_modules/bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "license": "MIT",+ "dependencies": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ }+ },+ "node_modules/brace-expansion": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/buildcheck": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/buildcheck/-/buildcheck-0.0.6.tgz",+ "integrity": "sha512-8f9ZJCUXyT1M35Jx7MkBgmBMo3oHTTBIPLiY9xyL0pl3T5RwcPEY8cUHr5LBNfu/fk6c2T4DJZuVM/8ZZT2D2A==",+ "optional": true,+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/camelcase": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz",+ "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/chokidar": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "readdirp": "^4.0.1"+ },+ "engines": {+ "node": ">= 14.16.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/chownr": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",+ "license": "ISC"+ },+ "node_modules/class-validator": {+ "version": "0.14.1",+ "resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.14.1.tgz",+ "integrity": "sha512-2VEG9JICxIqTpoK1eMzZqaV+u/EiwEJkMGzTrZf6sU/fwsnOITVgYJ8yojSy6CaXtO9V0Cc6ZQZ8h8m4UBuLwQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@types/validator": "^13.11.8",+ "libphonenumber-js": "^1.10.53",+ "validator": "^13.9.0"+ }+ },+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/cluster-key-slot": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz",+ "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/codemirror": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz",+ "integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==",+ "license": "MIT",+ "dependencies": {+ "@codemirror/autocomplete": "^6.0.0",+ "@codemirror/commands": "^6.0.0",+ "@codemirror/language": "^6.0.0",+ "@codemirror/lint": "^6.0.0",+ "@codemirror/search": "^6.0.0",+ "@codemirror/state": "^6.0.0",+ "@codemirror/view": "^6.0.0"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "license": "MIT"+ },+ "node_modules/commondir": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",+ "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cpu-features": {+ "version": "0.0.10",+ "resolved": "https://registry.npmjs.org/cpu-features/-/cpu-features-0.0.10.tgz",+ "integrity": "sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==",+ "hasInstallScript": true,+ "optional": true,+ "dependencies": {+ "buildcheck": "~0.0.6",+ "nan": "^2.19.0"+ },+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/crelt": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz",+ "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==",+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/dayjs": {+ "version": "1.11.13",+ "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz",+ "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/debug": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",+ "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/deep-is": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/deepmerge": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",+ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",+ "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/devalue": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.1.1.tgz",+ "integrity": "sha512-maua5KUiapvEwiEAe+XnlZ3Rh0GD+qI1J/nb9vrJc3muPXvcF/8gXYTWF76+5DAqHyDUtOIImEuo0YKE9mshVw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/docker-modem": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/docker-modem/-/docker-modem-5.0.6.tgz",+ "integrity": "sha512-ens7BiayssQz/uAxGzH8zGXCtiV24rRWXdjNha5V4zSOcxmAZsfGVm/PPFbwQdqEkDnhG+SyR9E3zSHUbOKXBQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "debug": "^4.1.1",+ "readable-stream": "^3.5.0",+ "split-ca": "^1.0.1",+ "ssh2": "^1.15.0"+ },+ "engines": {+ "node": ">= 8.0"+ }+ },+ "node_modules/dockerode": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/dockerode/-/dockerode-4.0.6.tgz",+ "integrity": "sha512-FbVf3Z8fY/kALB9s+P9epCpWhfi/r0N2DgYYcYpsAUlaTxPjdsitsFobnltb+lyCgAIvf9C+4PSWlTnHlJMf1w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@balena/dockerignore": "^1.0.2",+ "@grpc/grpc-js": "^1.11.1",+ "@grpc/proto-loader": "^0.7.13",+ "docker-modem": "^5.0.6",+ "protobufjs": "^7.3.2",+ "tar-fs": "~2.1.2",+ "uuid": "^10.0.0"+ },+ "engines": {+ "node": ">= 8.0"+ }+ },+ "node_modules/dockerode-compose": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/dockerode-compose/-/dockerode-compose-1.4.0.tgz",+ "integrity": "sha512-6x5ZlK06H+cgoTR4ffucqN5kWVvxNvxwTLcHQUZcegCJBEDGrdzXMOEGDMsxbHwiLtLo2dNwG0eZK7B2RfEWSw==",+ "license": "Apache-2.0",+ "dependencies": {+ "dockerode": "^4.0.0",+ "js-yaml": "^4.0.0",+ "tar-fs": "^2.1.1"+ }+ },+ "node_modules/effect": {+ "version": "3.14.11",+ "resolved": "https://registry.npmjs.org/effect/-/effect-3.14.11.tgz",+ "integrity": "sha512-PPfiu7QRtmmrgH6VWZp/rY1S8SSLJofx5betRuTPGG868G3f0C7yvPOa6SZPLG5ra2yCd1Vfm7cdeI26ZVGGlA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@standard-schema/spec": "^1.0.0",+ "fast-check": "^3.23.1"+ }+ },+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/end-of-stream": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",+ "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/enhanced-resolve": {+ "version": "5.18.1",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz",+ "integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/esbuild": {+ "version": "0.25.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz",+ "integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.2",+ "@esbuild/android-arm": "0.25.2",+ "@esbuild/android-arm64": "0.25.2",+ "@esbuild/android-x64": "0.25.2",+ "@esbuild/darwin-arm64": "0.25.2",+ "@esbuild/darwin-x64": "0.25.2",+ "@esbuild/freebsd-arm64": "0.25.2",+ "@esbuild/freebsd-x64": "0.25.2",+ "@esbuild/linux-arm": "0.25.2",+ "@esbuild/linux-arm64": "0.25.2",+ "@esbuild/linux-ia32": "0.25.2",+ "@esbuild/linux-loong64": "0.25.2",+ "@esbuild/linux-mips64el": "0.25.2",+ "@esbuild/linux-ppc64": "0.25.2",+ "@esbuild/linux-riscv64": "0.25.2",+ "@esbuild/linux-s390x": "0.25.2",+ "@esbuild/linux-x64": "0.25.2",+ "@esbuild/netbsd-arm64": "0.25.2",+ "@esbuild/netbsd-x64": "0.25.2",+ "@esbuild/openbsd-arm64": "0.25.2",+ "@esbuild/openbsd-x64": "0.25.2",+ "@esbuild/sunos-x64": "0.25.2",+ "@esbuild/win32-arm64": "0.25.2",+ "@esbuild/win32-ia32": "0.25.2",+ "@esbuild/win32-x64": "0.25.2"+ }+ },+ "node_modules/esbuild-runner": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/esbuild-runner/-/esbuild-runner-2.2.2.tgz",+ "integrity": "sha512-fRFVXcmYVmSmtYm2mL8RlUASt2TDkGh3uRcvHFOKNr/T58VrfVeKD9uT9nlgxk96u0LS0ehS/GY7Da/bXWKkhw==",+ "dev": true,+ "license": "Apache License 2.0",+ "optional": true,+ "dependencies": {+ "source-map-support": "0.5.21",+ "tslib": "2.4.0"+ },+ "bin": {+ "esr": "bin/esr.js"+ },+ "peerDependencies": {+ "esbuild": "*"+ }+ },+ "node_modules/esbuild-runner/node_modules/tslib": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz",+ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==",+ "dev": true,+ "license": "0BSD",+ "optional": true+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "9.25.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz",+ "integrity": "sha512-E6Mtz9oGQWDCpV12319d59n4tx9zOTXSTmc8BLVxBx+G/0RdM5MvEEJLU9c0+aleoePYYgVTOsRblx433qmhWQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.2.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.20.0",+ "@eslint/config-helpers": "^0.2.1",+ "@eslint/core": "^0.13.0",+ "@eslint/eslintrc": "^3.3.1",+ "@eslint/js": "9.25.1",+ "@eslint/plugin-kit": "^0.2.8",+ "@humanfs/node": "^0.16.6",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6",+ "@types/json-schema": "^7.0.15",+ "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.3.0",+ "eslint-visitor-keys": "^4.2.0",+ "espree": "^10.3.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"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ },+ "peerDependencies": {+ "jiti": "*"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-plugin-svelte": {+ "version": "3.5.1",+ "resolved": "https://registry.npmjs.org/eslint-plugin-svelte/-/eslint-plugin-svelte-3.5.1.tgz",+ "integrity": "sha512-Qn1slddZHfqYiDO6IN8/iN3YL+VuHlgYjm30FT+hh0Jf/TX0jeZMTJXQMajFm5f6f6hURi+XO8P+NPYD+T4jkg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.4.1",+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "esutils": "^2.0.3",+ "known-css-properties": "^0.35.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.1.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ota-meshi"+ },+ "peerDependencies": {+ "eslint": "^8.57.1 || ^9.0.0",+ "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0"+ },+ "peerDependenciesMeta": {+ "svelte": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-scope": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz",+ "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",+ "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esm-env": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz",+ "integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==",+ "license": "MIT"+ },+ "node_modules/espree": {+ "version": "10.3.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz",+ "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "acorn": "^8.14.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^4.2.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrap": {+ "version": "1.4.6",+ "resolved": "https://registry.npmjs.org/esrap/-/esrap-1.4.6.tgz",+ "integrity": "sha512-F/D2mADJ9SHY3IwksD4DAXjTt7qt7GWUf3/8RhCNWmC/67tyb55dpimHmy7EplakFaflV0R/PC+fdSPqrRHAQw==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.4.15"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estree-walker": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/fast-check": {+ "version": "3.23.2",+ "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.23.2.tgz",+ "integrity": "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/dubzzz"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fast-check"+ }+ ],+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "pure-rand": "^6.1.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fastq": {+ "version": "1.19.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fdir": {+ "version": "6.4.4",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz",+ "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/file-entry-cache": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^4.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flatted": "^3.2.9",+ "keyv": "^4.5.4"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/flatted": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/formsnap": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/formsnap/-/formsnap-2.0.1.tgz",+ "integrity": "sha512-iJSe4YKd/W6WhLwKDVJU9FQeaJRpEFuolhju7ZXlRpUVyDdqFdMP8AUBICgnVvQPyP41IPAlBa/v0Eo35iE6wQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "svelte-toolbelt": "^0.5.0"+ },+ "engines": {+ "node": ">=18",+ "pnpm": ">=8.7.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/huntabyte"+ },+ "peerDependencies": {+ "svelte": "^5.0.0",+ "sveltekit-superforms": "^2.19.0"+ }+ },+ "node_modules/formsnap/node_modules/svelte-toolbelt": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/svelte-toolbelt/-/svelte-toolbelt-0.5.0.tgz",+ "integrity": "sha512-t3tenZcnfQoIeRuQf/jBU7bvTeT3TGkcEE+1EUr5orp0lR7NEpprflpuie3x9Dn0W9nOKqs3HwKGJeeN5Ok1sQ==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/huntabyte"+ ],+ "dependencies": {+ "clsx": "^2.1.1",+ "style-to-object": "^1.0.8"+ },+ "engines": {+ "node": ">=18",+ "pnpm": ">=8.7.0"+ },+ "peerDependencies": {+ "svelte": "^5.0.0-next.126"+ }+ },+ "node_modules/fs-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",+ "license": "MIT"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/generic-pool": {+ "version": "3.9.0",+ "resolved": "https://registry.npmjs.org/generic-pool/-/generic-pool-3.9.0.tgz",+ "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==",+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/globals": {+ "version": "16.0.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.0.0.tgz",+ "integrity": "sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "license": "ISC"+ },+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/import-meta-resolve": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz",+ "integrity": "sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/inline-style-parser": {+ "version": "0.2.4",+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.4.tgz",+ "integrity": "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-module": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",+ "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-reference": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz",+ "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/jiti": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",+ "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/joi": {+ "version": "17.13.3",+ "resolved": "https://registry.npmjs.org/joi/-/joi-17.13.3.tgz",+ "integrity": "sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "dependencies": {+ "@hapi/hoek": "^9.3.0",+ "@hapi/topo": "^5.1.0",+ "@sideway/address": "^4.1.5",+ "@sideway/formula": "^3.0.1",+ "@sideway/pinpoint": "^2.0.0"+ }+ },+ "node_modules/js-yaml": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-to-ts": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz",+ "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@babel/runtime": "^7.18.3",+ "ts-algebra": "^2.0.0"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/kleur": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/known-css-properties": {+ "version": "0.35.0",+ "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.35.0.tgz",+ "integrity": "sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/libphonenumber-js": {+ "version": "1.12.7",+ "resolved": "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.7.tgz",+ "integrity": "sha512-0nYZSNj/QEikyhcM5RZFXGlCB/mr4PVamnT1C2sKBnDDTYndrvbybYjvg+PMqAndQHlLbwQ3socolnL3WWTUFA==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/lightningcss": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.29.2.tgz",+ "integrity": "sha512-6b6gd/RUXKaw5keVdSEtqFVdzWnU5jMxTUjA2bVcMNPLwSQ08Sv/UodBVtETLCn7k4S1Ibxwh7k68IwLZPgKaA==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-darwin-arm64": "1.29.2",+ "lightningcss-darwin-x64": "1.29.2",+ "lightningcss-freebsd-x64": "1.29.2",+ "lightningcss-linux-arm-gnueabihf": "1.29.2",+ "lightningcss-linux-arm64-gnu": "1.29.2",+ "lightningcss-linux-arm64-musl": "1.29.2",+ "lightningcss-linux-x64-gnu": "1.29.2",+ "lightningcss-linux-x64-musl": "1.29.2",+ "lightningcss-win32-arm64-msvc": "1.29.2",+ "lightningcss-win32-x64-msvc": "1.29.2"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.29.2.tgz",+ "integrity": "sha512-cK/eMabSViKn/PG8U/a7aCorpeKLMlK0bQeNHmdb7qUnBkNPnL+oV5DjJUo0kqWsJUapZsM4jCfYItbqBDvlcA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.29.2.tgz",+ "integrity": "sha512-j5qYxamyQw4kDXX5hnnCKMf3mLlHvG44f24Qyi2965/Ycz829MYqjrVg2H8BidybHBp9kom4D7DR5VqCKDXS0w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.29.2.tgz",+ "integrity": "sha512-wDk7M2tM78Ii8ek9YjnY8MjV5f5JN2qNVO+/0BAGZRvXKtQrBC4/cn4ssQIpKIPP44YXw6gFdpUF+Ps+RGsCwg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.29.2.tgz",+ "integrity": "sha512-IRUrOrAF2Z+KExdExe3Rz7NSTuuJ2HvCGlMKoquK5pjvo2JY4Rybr+NrKnq0U0hZnx5AnGsuFHjGnNT14w26sg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.29.2.tgz",+ "integrity": "sha512-KKCpOlmhdjvUTX/mBuaKemp0oeDIBBLFiU5Fnqxh1/DZ4JPZi4evEH7TKoSBFOSOV3J7iEmmBaw/8dpiUvRKlQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.29.2.tgz",+ "integrity": "sha512-Q64eM1bPlOOUgxFmoPUefqzY1yV3ctFPE6d/Vt7WzLW4rKTv7MyYNky+FWxRpLkNASTnKQUaiMJ87zNODIrrKQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.29.2.tgz",+ "integrity": "sha512-0v6idDCPG6epLXtBH/RPkHvYx74CVziHo6TMYga8O2EiQApnUPZsbR9nFNrg2cgBzk1AYqEd95TlrsL7nYABQg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.29.2.tgz",+ "integrity": "sha512-rMpz2yawkgGT8RULc5S4WiZopVMOFWjiItBT7aSfDX4NQav6M44rhn5hjtkKzB+wMTRlLLqxkeYEtQ3dd9696w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.29.2.tgz",+ "integrity": "sha512-nL7zRW6evGQqYVu/bKGK+zShyz8OVzsCotFgc7judbt6wnB2KbiKKJwBE4SGoDBQ1O94RjW4asrCjQL4i8Fhbw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.29.2",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.29.2.tgz",+ "integrity": "sha512-EdIUW3B2vLuHmv7urfzMI/h2fmlnOQBk1xlsDxkN1tCWKjNFjfLhGxYk8C8mzpSfr+A6jFFIi8fU6LbQGsRWjA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lilconfig": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",+ "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/locate-character": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",+ "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",+ "license": "MIT"+ },+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lodash.camelcase": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",+ "license": "MIT"+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/long": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",+ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",+ "license": "Apache-2.0"+ },+ "node_modules/magic-string": {+ "version": "0.30.17",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",+ "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0"+ }+ },+ "node_modules/memoize-weak": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/memoize-weak/-/memoize-weak-1.0.2.tgz",+ "integrity": "sha512-gj39xkrjEw7nCn4nJ1M5ms6+MyMlyiGmttzsqAUsAKn6bYKwuTHh/AO3cKPF8IBrTIYTxb0wWXFs3E//Y8VoWQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/micromatch/node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/mkdirp-classic": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",+ "license": "MIT"+ },+ "node_modules/mode-watcher": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/mode-watcher/-/mode-watcher-1.0.2.tgz",+ "integrity": "sha512-b3ghU4F4kZeRHHPlsVeCltBgYRHNr7HNyT9JTlvIIvuob7Vulu7iKCfaKNU4FGugBIFWyK5q4bDhqCeZy3Cuxw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "runed": "^0.25.0",+ "svelte-toolbelt": "^0.7.1"+ },+ "peerDependencies": {+ "svelte": "^5.27.0"+ }+ },+ "node_modules/mri": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",+ "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/mrmime": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",+ "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/nan": {+ "version": "2.22.2",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.2.tgz",+ "integrity": "sha512-DANghxFkS1plDdRsX0X9pm0Z6SJNN6gBdtXfanwoZ8hooC5gosGFSBGRYHUVPz1asKA/kMRqDRdHrluZ61SpBQ==",+ "license": "MIT",+ "optional": true+ },+ "node_modules/nanoid": {+ "version": "5.1.5",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.5.tgz",+ "integrity": "sha512-Ir/+ZpE9fDsNH0hQ3C68uyThDXzYcim2EqcZ8zn8Chtt1iylPT9xXJB0kPCnqzgcEGikO9RxSrh63MsmVCU7Fw==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.js"+ },+ "engines": {+ "node": "^18 || >=20"+ }+ },+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/normalize-url": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz",+ "integrity": "sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,+ "license": "MIT",+ "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"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",+ "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.3",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz",+ "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",+ "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.8",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz",+ "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^2.0.5",+ "yaml": "^1.10.2"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": ">=8.0.9",+ "ts-node": ">=9.0.0"+ },+ "peerDependenciesMeta": {+ "postcss": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-load-config/node_modules/yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/postcss-safe-parser": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.1.tgz",+ "integrity": "sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=18.0"+ },+ "peerDependencies": {+ "postcss": "^8.4.31"+ }+ },+ "node_modules/postcss-scss": {+ "version": "4.0.9",+ "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-4.0.9.tgz",+ "integrity": "sha512-AjKOeiwAitL/MXxQW2DliT28EKukvvbEWx3LBmJIRN8KfBGZbRTxNYW0kSqi1COiTZ57nZ9NW06S6ux//N1c9A==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss-scss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.4.29"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.0.tgz",+ "integrity": "sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss/node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "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/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/prettier": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",+ "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",+ "license": "MIT",+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },+ "node_modules/prettier-plugin-svelte": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-3.3.3.tgz",+ "integrity": "sha512-yViK9zqQ+H2qZD1w/bH7W8i+bVfKrD8GIFjkFe4Thl6kCT9SlAsXVNmt3jCvQOCsnOhcvYgsoVlRV/Eu6x5nNw==",+ "license": "MIT",+ "peerDependencies": {+ "prettier": "^3.0.0",+ "svelte": "^3.2.0 || ^4.0.0-next.0 || ^5.0.0-next.0"+ }+ },+ "node_modules/proper-lockfile": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz",+ "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "retry": "^0.12.0",+ "signal-exit": "^3.0.2"+ }+ },+ "node_modules/property-expr": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",+ "integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/protobufjs": {+ "version": "7.5.0",+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.0.tgz",+ "integrity": "sha512-Z2E/kOY1QjoMlCytmexzYfDm/w5fKAiRwpSzGtdnXW1zC88Z2yXazHHrOtwCzn+7wSxyE8PYM4rvVcMphF9sOA==",+ "hasInstallScript": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.2",+ "@protobufjs/base64": "^1.1.2",+ "@protobufjs/codegen": "^2.0.4",+ "@protobufjs/eventemitter": "^1.1.0",+ "@protobufjs/fetch": "^1.1.0",+ "@protobufjs/float": "^1.0.2",+ "@protobufjs/inquire": "^1.1.0",+ "@protobufjs/path": "^1.1.2",+ "@protobufjs/pool": "^1.1.0",+ "@protobufjs/utf8": "^1.1.0",+ "@types/node": ">=13.7.0",+ "long": "^5.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/pump": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz",+ "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==",+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/pure-rand": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz",+ "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/dubzzz"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fast-check"+ }+ ],+ "license": "MIT",+ "optional": true+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/readdirp": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.18.0"+ },+ "funding": {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/redis": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/redis/-/redis-4.7.0.tgz",+ "integrity": "sha512-zvmkHEAdGMn+hMRXuMBtu4Vo5P6rHQjLoHftu+lBqq8ZTA3RCVC/WzD790bkKKiNFp7d5/9PcSD19fJyyRvOdQ==",+ "license": "MIT",+ "workspaces": [+ "./packages/*"+ ],+ "dependencies": {+ "@redis/bloom": "1.2.0",+ "@redis/client": "1.6.0",+ "@redis/graph": "1.1.1",+ "@redis/json": "1.0.7",+ "@redis/search": "1.2.0",+ "@redis/time-series": "1.1.0"+ }+ },+ "node_modules/regenerator-runtime": {+ "version": "0.14.1",+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.10",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-from": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/retry": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rollup": {+ "version": "4.40.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.0.tgz",+ "integrity": "sha512-Noe455xmA96nnqH5piFtLobsGbCij7Tu+tb3c1vYjNbTkfzGqXqQXG3wJaYXkRZuQ0vEYN4bhwg7QnIrqB5B+w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.7"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.40.0",+ "@rollup/rollup-android-arm64": "4.40.0",+ "@rollup/rollup-darwin-arm64": "4.40.0",+ "@rollup/rollup-darwin-x64": "4.40.0",+ "@rollup/rollup-freebsd-arm64": "4.40.0",+ "@rollup/rollup-freebsd-x64": "4.40.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.40.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.40.0",+ "@rollup/rollup-linux-arm64-gnu": "4.40.0",+ "@rollup/rollup-linux-arm64-musl": "4.40.0",+ "@rollup/rollup-linux-loongarch64-gnu": "4.40.0",+ "@rollup/rollup-linux-powerpc64le-gnu": "4.40.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.40.0",+ "@rollup/rollup-linux-riscv64-musl": "4.40.0",+ "@rollup/rollup-linux-s390x-gnu": "4.40.0",+ "@rollup/rollup-linux-x64-gnu": "4.40.0",+ "@rollup/rollup-linux-x64-musl": "4.40.0",+ "@rollup/rollup-win32-arm64-msvc": "4.40.0",+ "@rollup/rollup-win32-ia32-msvc": "4.40.0",+ "@rollup/rollup-win32-x64-msvc": "4.40.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/runed": {+ "version": "0.25.0",+ "resolved": "https://registry.npmjs.org/runed/-/runed-0.25.0.tgz",+ "integrity": "sha512-7+ma4AG9FT2sWQEA0Egf6mb7PBT2vHyuHail1ie8ropfSjvZGtEAx8YTmUjv/APCsdRRxEVvArNjALk9zFSOrg==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/huntabyte",+ "https://github.com/sponsors/tglide"+ ],+ "dependencies": {+ "esm-env": "^1.0.0"+ },+ "peerDependencies": {+ "svelte": "^5.7.0"+ }+ },+ "node_modules/sade": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",+ "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mri": "^1.1.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/set-cookie-parser": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",+ "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "license": "ISC"+ },+ "node_modules/sirv": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.1.tgz",+ "integrity": "sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==",+ "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": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.5.21",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "buffer-from": "^1.0.0",+ "source-map": "^0.6.0"+ }+ },+ "node_modules/split-ca": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/split-ca/-/split-ca-1.0.1.tgz",+ "integrity": "sha512-Q5thBSxp5t8WPTTJQS59LrGqOZqOsrhDGDVm8azCqIBjSBd7nd9o2PM+mDulQQkh8h//4U6hFZnc/mul8t5pWQ==",+ "license": "ISC"+ },+ "node_modules/ssh2": {+ "version": "1.16.0",+ "resolved": "https://registry.npmjs.org/ssh2/-/ssh2-1.16.0.tgz",+ "integrity": "sha512-r1X4KsBGedJqo7h8F5c4Ybpcr5RjyP+aWIG007uBPRjmdQWfEiVLzSK71Zji1B9sKxwaCvD8y8cwSkYrlLiRRg==",+ "hasInstallScript": true,+ "dependencies": {+ "asn1": "^0.2.6",+ "bcrypt-pbkdf": "^1.0.2"+ },+ "engines": {+ "node": ">=10.16.0"+ },+ "optionalDependencies": {+ "cpu-features": "~0.0.10",+ "nan": "^2.20.0"+ }+ },+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/style-mod": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.2.tgz",+ "integrity": "sha512-wnD1HyVqpJUI2+eKZ+eo1UwghftP6yuFheBqqe+bWCotBjC2K1YnteJILRMs3SM4V/0dLEW1SC27MWP5y+mwmw==",+ "license": "MIT"+ },+ "node_modules/style-to-object": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.8.tgz",+ "integrity": "sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.4"+ }+ },+ "node_modules/superstruct": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-2.0.2.tgz",+ "integrity": "sha512-uV+TFRZdXsqXTL2pRvujROjdZQ4RAlBUS5BTh9IGm+jTqQntYThciG/qu57Gs69yjnVUSqdxF9YLmSnpupBW9A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/svelte": {+ "version": "5.28.2",+ "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.28.2.tgz",+ "integrity": "sha512-FbWBxgWOpQfhKvoGJv/TFwzqb4EhJbwCD17dB0tEpQiw1XyUEKZJtgm4nA4xq3LLsMo7hu5UY/BOFmroAxKTMg==",+ "license": "MIT",+ "dependencies": {+ "@ampproject/remapping": "^2.3.0",+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@sveltejs/acorn-typescript": "^1.0.5",+ "@types/estree": "^1.0.5",+ "acorn": "^8.12.1",+ "aria-query": "^5.3.1",+ "axobject-query": "^4.1.0",+ "clsx": "^2.1.1",+ "esm-env": "^1.2.1",+ "esrap": "^1.4.6",+ "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.1.6",+ "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.1.6.tgz",+ "integrity": "sha512-P7w/6tdSfk3zEVvfsgrp3h3DFC75jCdZjTQvgGJtjPORs1n7/v2VMPIoty3PWv7jnfEm3x0G/p9wH4pecTb0Wg==",+ "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-codemirror-editor": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/svelte-codemirror-editor/-/svelte-codemirror-editor-1.4.1.tgz",+ "integrity": "sha512-Pv350iro0Y/AZTT/y2OLaonheQqAwl50Hdfipa2Jv1Z04TSP5kPUyxQnRjqxeRW7DXOX9s5Nd11tHdBl9iYSzw==",+ "license": "MIT",+ "peerDependencies": {+ "codemirror": "^6.0.0",+ "svelte": "^3.0.0 || ^4.0.0 || ^5.0.0"+ }+ },+ "node_modules/svelte-eslint-parser": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/svelte-eslint-parser/-/svelte-eslint-parser-1.1.2.tgz",+ "integrity": "sha512-vqFBRamDKo1l70KMfxxXj1/0Cco5TfMDnqaAjgz6D8PyoMhfMcDOLRkAwPg8WkMyZjMtQL3wW66TZ0x59iqO2w==",+ "dev": true,+ "license": "MIT",+ "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"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ota-meshi"+ },+ "peerDependencies": {+ "svelte": "^3.37.0 || ^4.0.0 || ^5.0.0"+ },+ "peerDependenciesMeta": {+ "svelte": {+ "optional": true+ }+ }+ },+ "node_modules/svelte-sonner": {+ "version": "0.3.28",+ "resolved": "https://registry.npmjs.org/svelte-sonner/-/svelte-sonner-0.3.28.tgz",+ "integrity": "sha512-K3AmlySeFifF/cKgsYNv5uXqMVNln0NBAacOYgmkQStLa/UoU0LhfAACU6Gr+YYC8bOCHdVmFNoKuDbMEsppJg==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "svelte": "^3.0.0 || ^4.0.0 || ^5.0.0-next.1"+ }+ },+ "node_modules/svelte-toolbelt": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/svelte-toolbelt/-/svelte-toolbelt-0.7.1.tgz",+ "integrity": "sha512-HcBOcR17Vx9bjaOceUvxkY3nGmbBmCBBbuWLLEWO6jtmWH8f/QoWmbyUfQZrpDINH39en1b8mptfPQT9VKQ1xQ==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/huntabyte"+ ],+ "dependencies": {+ "clsx": "^2.1.1",+ "runed": "^0.23.2",+ "style-to-object": "^1.0.8"+ },+ "engines": {+ "node": ">=18",+ "pnpm": ">=8.7.0"+ },+ "peerDependencies": {+ "svelte": "^5.0.0"+ }+ },+ "node_modules/svelte-toolbelt/node_modules/runed": {+ "version": "0.23.4",+ "resolved": "https://registry.npmjs.org/runed/-/runed-0.23.4.tgz",+ "integrity": "sha512-9q8oUiBYeXIDLWNK5DfCWlkL0EW3oGbk845VdKlPeia28l751VpfesaB/+7pI6rnbx1I6rqoZ2fZxptOJLxILA==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/huntabyte",+ "https://github.com/sponsors/tglide"+ ],+ "dependencies": {+ "esm-env": "^1.0.0"+ },+ "peerDependencies": {+ "svelte": "^5.7.0"+ }+ },+ "node_modules/svelte/node_modules/is-reference": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz",+ "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.6"+ }+ },+ "node_modules/sveltekit-superforms": {+ "version": "2.24.1",+ "resolved": "https://registry.npmjs.org/sveltekit-superforms/-/sveltekit-superforms-2.24.1.tgz",+ "integrity": "sha512-L4BlvgOD1CquP83UaCcHziD/BJ7lJEHT6g0J+F5h15mShxurJiXse4dX1BxDSGarNdzzrOBujd5ecjuIQm2zdw==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ciscoheat"+ },+ {+ "type": "ko-fi",+ "url": "https://ko-fi.com/ciscoheat"+ },+ {+ "type": "paypal",+ "url": "https://www.paypal.com/donate/?hosted_button_id=NY7F5ALHHSVQS"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devalue": "^5.1.1",+ "memoize-weak": "^1.0.2",+ "ts-deepmerge": "^7.0.2"+ },+ "optionalDependencies": {+ "@exodus/schemasafe": "^1.3.0",+ "@gcornut/valibot-json-schema": "^0.31.0",+ "@sinclair/typebox": "^0.34.28",+ "@typeschema/class-validator": "^0.3.0",+ "@vinejs/vine": "^3.0.0",+ "arktype": "^2.1.9",+ "class-validator": "^0.14.1",+ "effect": "^3.13.7",+ "joi": "^17.13.3",+ "json-schema-to-ts": "^3.1.1",+ "superstruct": "^2.0.2",+ "valibot": "1.0.0-rc.3",+ "yup": "^1.6.1",+ "zod": "^3.24.2",+ "zod-to-json-schema": "^3.24.3"+ },+ "peerDependencies": {+ "@exodus/schemasafe": "^1.3.0",+ "@sinclair/typebox": "^0.34.28",+ "@sveltejs/kit": "1.x || 2.x",+ "@typeschema/class-validator": "^0.3.0",+ "@vinejs/vine": "^1.8.0 || ^2.0.0 || ^3.0.0",+ "arktype": ">=2.0.0-rc.23",+ "class-validator": "^0.14.1",+ "effect": "^3.13.7",+ "joi": "^17.13.1",+ "superstruct": "^2.0.2",+ "svelte": "3.x || 4.x || >=5.0.0-next.51",+ "valibot": ">=1.0.0-rc.3",+ "yup": "^1.4.0",+ "zod": "^3.24.2"+ },+ "peerDependenciesMeta": {+ "@exodus/schemasafe": {+ "optional": true+ },+ "@sinclair/typebox": {+ "optional": true+ },+ "@typeschema/class-validator": {+ "optional": true+ },+ "@vinejs/vine": {+ "optional": true+ },+ "arktype": {+ "optional": true+ },+ "class-validator": {+ "optional": true+ },+ "effect": {+ "optional": true+ },+ "joi": {+ "optional": true+ },+ "superstruct": {+ "optional": true+ },+ "valibot": {+ "optional": true+ },+ "yup": {+ "optional": true+ },+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/tabbable": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz",+ "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tailwind-merge": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.2.0.tgz",+ "integrity": "sha512-FQT/OVqCD+7edmmJpsgCsY820RTD5AkBryuG5IUqR5YQZSdj5xlH5nLgH7YPths7WsLPSpSBNneJdM8aS8aeFA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/tailwind-variants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/tailwind-variants/-/tailwind-variants-1.0.0.tgz",+ "integrity": "sha512-2WSbv4ulEEyuBKomOunut65D8UZwxrHoRfYnxGcQNnHqlSCp2+B7Yz2W+yrNDrxRodOXtGD/1oCcKGNBnUqMqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tailwind-merge": "3.0.2"+ },+ "engines": {+ "node": ">=16.x",+ "pnpm": ">=7.x"+ },+ "peerDependencies": {+ "tailwindcss": "*"+ }+ },+ "node_modules/tailwind-variants/node_modules/tailwind-merge": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.0.2.tgz",+ "integrity": "sha512-l7z+OYZ7mu3DTqrL88RiKrKIqO3NcpEO8V/Od04bNpvk0kiIFndGEoqfuzvj4yuhRkHKjRkII2z+KS2HfPcSxw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/tailwindcss": {+ "version": "4.1.4",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.4.tgz",+ "integrity": "sha512-1ZIUqtPITFbv/DxRmDr5/agPqJwF69d24m9qmM1939TJehgY539CtzeZRjbLt5G6fSy/7YqqYsfvoTEw9xUI2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tailwindcss-animate": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",+ "integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "tailwindcss": ">=3.0.0 || insiders"+ }+ },+ "node_modules/tapable": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",+ "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tar-fs": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.2.tgz",+ "integrity": "sha512-EsaAXwxmx8UB7FRKqeozqEPop69DXcmYwTQwXvyAPF352HJsPdkVhvTaDPYqfNgruveJIJy3TA2l+2zj8LJIJA==",+ "license": "MIT",+ "dependencies": {+ "chownr": "^1.1.1",+ "mkdirp-classic": "^0.5.2",+ "pump": "^3.0.0",+ "tar-stream": "^2.1.4"+ }+ },+ "node_modules/tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "license": "MIT",+ "dependencies": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tiny-case": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",+ "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/tinyglobby": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz",+ "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.4.4",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/toposort": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",+ "integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/totalist": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",+ "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/ts-algebra": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz",+ "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "node_modules/ts-api-utils": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"+ }+ },+ "node_modules/ts-deepmerge": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/ts-deepmerge/-/ts-deepmerge-7.0.2.tgz",+ "integrity": "sha512-akcpDTPuez4xzULo5NwuoKwYRtjQJ9eoNfBACiBMaXwNAx7B1PKfe5wqUFJuW5uKzQ68YjDFwPaWHDG1KnFGsA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14.13.1"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/tweetnacl": {+ "version": "0.14.5",+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",+ "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==",+ "license": "Unlicense"+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-fest": {+ "version": "2.19.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",+ "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "optional": true,+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typescript": {+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",+ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/typescript-eslint": {+ "version": "8.31.0",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.31.0.tgz",+ "integrity": "sha512-u+93F0sB0An8WEAPtwxVhFby573E8ckdjwUUQUj9QA4v8JAvgtoDdIyYR3XFwFHq2W1KJ1AurwJCO+w+Y1ixyQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/eslint-plugin": "8.31.0",+ "@typescript-eslint/parser": "8.31.0",+ "@typescript-eslint/utils": "8.31.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <5.9.0"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "license": "MIT"+ },+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"+ },+ "node_modules/uuid": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz",+ "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",+ "funding": [+ "https://github.com/sponsors/broofa",+ "https://github.com/sponsors/ctavan"+ ],+ "license": "MIT",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/valibot": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.0.0-rc.3.tgz",+ "integrity": "sha512-LT0REa7Iqx4QGcaHLiTiTkcmJqJ9QdpOy89HALFFBJgejTS64GQFRIbDF7e4f6pauQbo/myfKGmWXCLhMeM6+g==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peerDependencies": {+ "typescript": ">=5"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/validator": {+ "version": "13.15.0",+ "resolved": "https://registry.npmjs.org/validator/-/validator-13.15.0.tgz",+ "integrity": "sha512-36B2ryl4+oL5QxZ3AzD0t5SsMNGvTtQHpjgFO5tbNxfXbMFkY822ktCDe1MnlqV3301QQI9SLHDNJokDI+Z9pA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/vite": {+ "version": "6.3.3",+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.3.tgz",+ "integrity": "sha512-5nXH+QsELbFKhsEfWLkHrvgRpTdGJzqOZ+utSdmPTvwHmvU6ITTm3xx+mRusihkcI8GeC7lCDyn3kDtiki9scw==",+ "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.0.6",+ "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.0.6.tgz",+ "integrity": "sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==",+ "dev": true,+ "license": "MIT",+ "workspaces": [+ "tests/deps/*",+ "tests/projects/*"+ ],+ "peerDependencies": {+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"+ },+ "peerDependenciesMeta": {+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/w3c-keyname": {+ "version": "2.2.8",+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",+ "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==",+ "license": "MIT"+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "license": "ISC"+ },+ "node_modules/yaml": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz",+ "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "peer": true,+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/yup": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/yup/-/yup-1.6.1.tgz",+ "integrity": "sha512-JED8pB50qbA4FOkDol0bYF/p60qSEDQqBD0/qeIrUCG1KbPBIQ776fCUNb9ldbPcSTxA69g/47XTo4TqWiuXOA==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "property-expr": "^2.0.5",+ "tiny-case": "^1.0.3",+ "toposort": "^2.0.2",+ "type-fest": "^2.19.0"+ }+ },+ "node_modules/zimmerframe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.2.tgz",+ "integrity": "sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==",+ "license": "MIT"+ },+ "node_modules/zod": {+ "version": "3.24.3",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz",+ "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zod-to-json-schema": {+ "version": "3.24.5",+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz",+ "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "peerDependencies": {+ "zod": "^3.24.1"+ }+ }+ }}diff --git a/package.json b/package.jsonindex 7d9c860c9..8ec2a4e1b 100644--- a/package.json+++ b/package.json@@ -1,60 +1,63 @@{- "name": "arcane",- "private": true,- "version": "0.2.0",- "type": "module",- "scripts": {- "dev": "vite dev",- "build": "vite build",- "preview": "vite preview",- "prepare": "svelte-kit sync || echo ''",- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",- "lint": "eslint ."- },- "devDependencies": {- "@eslint/compat": "^1.2.5",- "@eslint/js": "^9.18.0",- "@lucide/svelte": "^0.503.0",- "@sveltejs/adapter-node": "^5.2.12",- "@sveltejs/kit": "^2.16.0",- "@sveltejs/vite-plugin-svelte": "^5.0.0",- "@tailwindcss/vite": "^4.0.0",- "@types/dockerode": "^3.3.38",- "@types/dockerode-compose": "^1.4.1",- "@types/js-yaml": "^4.0.9",- "@types/proper-lockfile": "^4.1.4",- "bits-ui": "^1.3.19",- "clsx": "^2.1.1",- "eslint": "^9.25.1",- "eslint-plugin-svelte": "^3.0.0",- "formsnap": "^2.0.1",- "globals": "^16.0.0",- "mode-watcher": "^1.0.2",- "svelte": "^5.28.2",- "svelte-check": "^4.0.0",- "svelte-sonner": "^0.3.28",- "sveltekit-superforms": "^2.24.1",- "tailwind-merge": "^3.2.0",- "tailwind-variants": "^1.0.0",- "tailwindcss": "^4.0.0",- "tailwindcss-animate": "^1.0.7",- "typescript": "^5.5.0",- "typescript-eslint": "^8.31.0",- "vite": "^6.3.3",- "zod": "^3.24.3"- },- "dependencies": {- "@codemirror/lang-yaml": "^6.1.2",- "@codemirror/theme-one-dark": "^6.1.2",- "@tanstack/table-core": "^8.21.3",- "codemirror": "^6.0.1",- "dockerode": "^4.0.6",- "dockerode-compose": "^1.4.0",- "js-yaml": "^4.1.0",- "nanoid": "^5.1.5",- "proper-lockfile": "^4.1.2",- "redis": "^4.7.0",- "svelte-codemirror-editor": "^1.4.1"- }+ "name": "arcane",+ "private": true,+ "version": "0.2.0",+ "type": "module",+ "scripts": {+ "dev": "vite dev",+ "build": "vite build",+ "preview": "vite preview",+ "prepare": "svelte-kit sync || echo ''",+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",+ "format": "prettier --write .",+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",+ "lint": "eslint ."+ },+ "devDependencies": {+ "@eslint/compat": "^1.2.5",+ "@eslint/js": "^9.18.0",+ "@lucide/svelte": "^0.503.0",+ "@sveltejs/adapter-node": "^5.2.12",+ "@sveltejs/kit": "^2.16.0",+ "@sveltejs/vite-plugin-svelte": "^5.0.0",+ "@tailwindcss/vite": "^4.0.0",+ "@types/dockerode": "^3.3.38",+ "@types/dockerode-compose": "^1.4.1",+ "@types/js-yaml": "^4.0.9",+ "@types/proper-lockfile": "^4.1.4",+ "bits-ui": "^1.3.19",+ "clsx": "^2.1.1",+ "eslint": "^9.25.1",+ "eslint-plugin-svelte": "^3.0.0",+ "formsnap": "^2.0.1",+ "globals": "^16.0.0",+ "mode-watcher": "^1.0.2",+ "svelte": "^5.28.2",+ "svelte-check": "^4.0.0",+ "svelte-sonner": "^0.3.28",+ "sveltekit-superforms": "^2.24.1",+ "tailwind-merge": "^3.2.0",+ "tailwind-variants": "^1.0.0",+ "tailwindcss": "^4.0.0",+ "tailwindcss-animate": "^1.0.7",+ "typescript": "^5.5.0",+ "typescript-eslint": "^8.31.0",+ "vite": "^6.3.3",+ "zod": "^3.24.3"+ },+ "dependencies": {+ "@codemirror/lang-yaml": "^6.1.2",+ "@codemirror/theme-one-dark": "^6.1.2",+ "@tanstack/table-core": "^8.21.3",+ "codemirror": "^6.0.1",+ "dockerode": "^4.0.6",+ "dockerode-compose": "^1.4.0",+ "js-yaml": "^4.1.0",+ "nanoid": "^5.1.5",+ "prettier": "^3.5.3",+ "prettier-plugin-svelte": "^3.3.3",+ "proper-lockfile": "^4.1.2",+ "redis": "^4.7.0",+ "svelte-codemirror-editor": "^1.4.1"+ }}diff --git a/src/app.css b/src/app.cssindex 830f6c4ee..fd3fa9157 100644--- a/src/app.css+++ b/src/app.css@@ -1,118 +1,118 @@-@import "tailwindcss";+@import 'tailwindcss';@config '../tailwind.config.ts';@layer base {- :root {- --background: 0 0% 100%;- --foreground: 224 71.4% 4.1%;- --card: 0 0% 100%;- --card-foreground: 224 71.4% 4.1%;- --popover: 0 0% 100%;- --popover-foreground: 224 71.4% 4.1%;- --primary: 262.1 83.3% 57.8%;- --primary-foreground: 210 20% 98%;- --secondary: 220 14.3% 95.9%;- --secondary-foreground: 220.9 39.3% 11%;- --muted: 220 14.3% 95.9%;- --muted-foreground: 220 8.9% 46.1%;- --accent: 220 14.3% 95.9%;- --accent-foreground: 220.9 39.3% 11%;- --destructive: 0 72.22% 50.59%;- --destructive-foreground: 210 20% 98%;- --border: 220 13% 91%;- --input: 220 13% 91%;- --ring: 262.1 83.3% 57.8%;- --radius: 1rem;- }- .dark {- --background: 224 71.4% 4.1%;- --foreground: 210 20% 98%;- --card: 224 71.4% 4.1%;- --card-foreground: 210 20% 98%;- --popover: 224 71.4% 4.1%;- --popover-foreground: 210 20% 98%;- --primary: 263.4 70% 50.4%;- --primary-foreground: 210 20% 98%;- --secondary: 215 27.9% 16.9%;- --secondary-foreground: 210 20% 98%;- --muted: 215 27.9% 16.9%;- --muted-foreground: 217.9 10.6% 64.9%;- --accent: 215 27.9% 16.9%;- --accent-foreground: 210 20% 98%;- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 210 20% 98%;- --border: 215 27.9% 16.9%;- --input: 215 27.9% 16.9%;- --ring: 263.4 70% 50.4%;- }+ :root {+ --background: 0 0% 100%;+ --foreground: 224 71.4% 4.1%;+ --card: 0 0% 100%;+ --card-foreground: 224 71.4% 4.1%;+ --popover: 0 0% 100%;+ --popover-foreground: 224 71.4% 4.1%;+ --primary: 262.1 83.3% 57.8%;+ --primary-foreground: 210 20% 98%;+ --secondary: 220 14.3% 95.9%;+ --secondary-foreground: 220.9 39.3% 11%;+ --muted: 220 14.3% 95.9%;+ --muted-foreground: 220 8.9% 46.1%;+ --accent: 220 14.3% 95.9%;+ --accent-foreground: 220.9 39.3% 11%;+ --destructive: 0 72.22% 50.59%;+ --destructive-foreground: 210 20% 98%;+ --border: 220 13% 91%;+ --input: 220 13% 91%;+ --ring: 262.1 83.3% 57.8%;+ --radius: 1rem;+ }+ .dark {+ --background: 224 71.4% 4.1%;+ --foreground: 210 20% 98%;+ --card: 224 71.4% 4.1%;+ --card-foreground: 210 20% 98%;+ --popover: 224 71.4% 4.1%;+ --popover-foreground: 210 20% 98%;+ --primary: 263.4 70% 50.4%;+ --primary-foreground: 210 20% 98%;+ --secondary: 215 27.9% 16.9%;+ --secondary-foreground: 210 20% 98%;+ --muted: 215 27.9% 16.9%;+ --muted-foreground: 217.9 10.6% 64.9%;+ --accent: 215 27.9% 16.9%;+ --accent-foreground: 210 20% 98%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 210 20% 98%;+ --border: 215 27.9% 16.9%;+ --input: 215 27.9% 16.9%;+ --ring: 263.4 70% 50.4%;+ }}@layer base {- * {- @apply border-border;- }- body {- @apply bg-background text-foreground;- }+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;+ }}/* Dashboard tables styling */.dashboard-table-wrapper :global(.space-y-4) {- margin-top: 0 !important;- margin-bottom: 0 !important;+ margin-top: 0 !important;+ margin-bottom: 0 !important;}.dashboard-table-wrapper :global(.rounded-md.border) {- border: none !important;- border-radius: 0 !important;- overflow: hidden;+ border: none !important;+ border-radius: 0 !important;+ overflow: hidden;}.dashboard-table-wrapper :global(table) {- margin: 0;+ margin: 0;}.dashboard-table-wrapper :global(th) {- background-color: transparent !important;- font-size: 0.75rem !important;- font-weight: 500 !important;- color: var(--muted-foreground) !important;- padding-left: 1.5rem !important;- padding-right: 1.5rem !important;- height: 2.5rem !important;- text-transform: uppercase !important;- letter-spacing: 0.04em !important;+ background-color: transparent !important;+ font-size: 0.75rem !important;+ font-weight: 500 !important;+ color: var(--muted-foreground) !important;+ padding-left: 1.5rem !important;+ padding-right: 1.5rem !important;+ height: 2.5rem !important;+ text-transform: uppercase !important;+ letter-spacing: 0.04em !important;}.dashboard-table-wrapper :global(td) {- padding-left: 1.5rem !important;- padding-right: 1.5rem !important;- font-size: 0.875rem !important;+ padding-left: 1.5rem !important;+ padding-right: 1.5rem !important;+ font-size: 0.875rem !important;}.dashboard-table-wrapper :global(tr:last-child td) {- border-bottom: none !important;+ border-bottom: none !important;}/* Hide the search/filter area */.dashboard-table-wrapper > :global(div) > :global(div:first-child) {- display: none !important;+ display: none !important;}/* Remove vertical spacing between elements */.dashboard-table-wrapper > :global(div.space-y-4) > :global(div) {- margin-top: 0 !important;+ margin-top: 0 !important;}/* Hide pagination when not needed */.dashboard-table-wrapper > :global(div.space-y-4) > :global(div:last-child) {- display: none !important;+ display: none !important;}.version-collapsed {- writing-mode: vertical-rl;- text-orientation: mixed;- transform: rotate(180deg);- opacity: 0.7;+ writing-mode: vertical-rl;+ text-orientation: mixed;+ transform: rotate(180deg);+ opacity: 0.7;}diff --git a/src/hooks.server.ts b/src/hooks.server.tsindex 276af9686..ad2bc4ea5 100644--- a/src/hooks.server.ts+++ b/src/hooks.server.ts@@ -1,10 +1,10 @@-import { initComposeService } from "$lib/services/compose";+import { initComposeService } from '$lib/services/compose';// Initialize needed servicesinitComposeService().catch((err) => {- console.error("Failed to initialize compose service:", err);+ console.error('Failed to initialize compose service:', err);});export async function handle({ event, resolve }) {- return await resolve(event);+ return await resolve(event);}diff --git a/src/lib/components/action-buttons.svelte b/src/lib/components/action-buttons.svelteindex 90bb170da..051cce0b6 100644--- a/src/lib/components/action-buttons.svelte+++ b/src/lib/components/action-buttons.svelte@@ -1,153 +1,116 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import {- Play,- StopCircle,- RotateCcw,- Download,- Rocket,- RefreshCw,- Trash2,- Loader2,- } from "@lucide/svelte";+ import { Button } from '$lib/components/ui/button/index.js';+ import { Play, StopCircle, RotateCcw, Download, Rocket, RefreshCw, Trash2, Loader2 } from '@lucide/svelte';- type TargetType = "container" | "stack";- type LoadingStates = {- start?: boolean;- stop?: boolean;- restart?: boolean;- pull?: boolean;- deploy?: boolean;- redeploy?: boolean;- remove?: boolean;- };+ type TargetType = 'container' | 'stack';+ type LoadingStates = {+ start?: boolean;+ stop?: boolean;+ restart?: boolean;+ pull?: boolean;+ deploy?: boolean;+ redeploy?: boolean;+ remove?: boolean;+ };- let {- id,- type = "container",- state = "stopped",- loading = {},- formAction = null,- }: {- id: string;- type?: TargetType;- state?: string;- loading?: LoadingStates;- formAction?: string | null;- } = $props();+ let {+ id,+ type = 'container',+ state = 'stopped',+ loading = {},+ formAction = null+ }: {+ id: string;+ type?: TargetType;+ state?: string;+ loading?: LoadingStates;+ formAction?: string | null;+ } = $props();- const isRunning = $derived(- state === "running" || (type === "stack" && state === "partially running")- );+ const isRunning = $derived(state === 'running' || (type === 'stack' && state === 'partially running'));</script><div class="flex items-center gap-2">- {#if !isRunning}- <Button- type="submit"- variant="default"- disabled={loading.start}- class="font-medium "- formaction={formAction || "?/start"}- >- {#if loading.start}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- {:else}- <Play class="w-4 h-4 mr-2" />- {/if}- {type === "stack" ? "Deploy" : "Start"}- </Button>- {:else}- <Button- type="submit"- variant="secondary"- disabled={loading.stop}- class="font-medium "- formaction={formAction || "?/stop"}- >- {#if loading.stop}- <Loader2 class="w-4 h-4 animate-spin" />- {:else}- <StopCircle class="w-4 h-4" />- {/if}- Stop- </Button>+ {#if !isRunning}+ <Button type="submit" variant="default" disabled={loading.start} class="font-medium " formaction={formAction || '?/start'}>+ {#if loading.start}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ {:else}+ <Play class="w-4 h-4 mr-2" />+ {/if}+ {type === 'stack' ? 'Deploy' : 'Start'}+ </Button>+ {:else}+ <Button type="submit" variant="secondary" disabled={loading.stop} class="font-medium " formaction={formAction || '?/stop'}>+ {#if loading.stop}+ <Loader2 class="w-4 h-4 animate-spin" />+ {:else}+ <StopCircle class="w-4 h-4" />+ {/if}+ Stop+ </Button>- <Button- type="submit"- variant="outline"- disabled={loading.restart}- class="font-medium "- formaction={formAction || "?/restart"}- name="action"- value="restart"- >- {#if loading.restart}- <Loader2 class="w-4 h-4 animate-spin" />- {:else}- <RotateCcw class="w-4 h-4" />- {/if}- Restart- </Button>- {/if}+ <Button type="submit" variant="outline" disabled={loading.restart} class="font-medium " formaction={formAction || '?/restart'} name="action" value="restart">+ {#if loading.restart}+ <Loader2 class="w-4 h-4 animate-spin" />+ {:else}+ <RotateCcw class="w-4 h-4" />+ {/if}+ Restart+ </Button>+ {/if}- {#if type === "container"}- <Button- type="submit"- variant="destructive"- disabled={loading.remove}- class="font-medium "- formaction={formAction || "?/remove"}- onclick={(e) => {- if (!confirm(`Are you sure you want to remove this ${type}?`)) {- e.preventDefault();- return false;- }- }}- >- {#if loading.remove}- <Loader2 class="w-4 h-4 animate-spin" />- {:else}- <Trash2 class="w-4 h-4" />- {/if}- Remove- </Button>- {:else}- <!-- Stack-specific actions -->- <Button- type="submit"- variant="outline"- disabled={loading.pull}- class="font-medium"- formaction={formAction || "?/pull"}- >- {#if loading.pull}- <Loader2 class="w-4 h-4 animate-spin" />- {:else}- <Download class="w-4 h-4" />- {/if}- Pull- </Button>+ {#if type === 'container'}+ <Button+ type="submit"+ variant="destructive"+ disabled={loading.remove}+ class="font-medium "+ formaction={formAction || '?/remove'}+ onclick={(e) => {+ if (!confirm(`Are you sure you want to remove this ${type}?`)) {+ e.preventDefault();+ return false;+ }+ }}+ >+ {#if loading.remove}+ <Loader2 class="w-4 h-4 animate-spin" />+ {:else}+ <Trash2 class="w-4 h-4" />+ {/if}+ Remove+ </Button>+ {:else}+ <!-- Stack-specific actions -->+ <Button type="submit" variant="outline" disabled={loading.pull} class="font-medium" formaction={formAction || '?/pull'}>+ {#if loading.pull}+ <Loader2 class="w-4 h-4 animate-spin" />+ {:else}+ <Download class="w-4 h-4" />+ {/if}+ Pull+ </Button>- <Button- type="submit"- variant="destructive"- disabled={loading.remove}- class="font-medium "- formaction={formAction || "?/remove"}- onclick={(e) => {- if (!confirm(`Are you sure you want to remove this ${type}?`)) {- e.preventDefault();- return false;- }- }}- >- {#if loading.remove}- <Loader2 class="w-4 h-4 animate-spin" />- {:else}- <Trash2 class="w-4 h-4" />- {/if}- Remove- </Button>- {/if}+ <Button+ type="submit"+ variant="destructive"+ disabled={loading.remove}+ class="font-medium "+ formaction={formAction || '?/remove'}+ onclick={(e) => {+ if (!confirm(`Are you sure you want to remove this ${type}?`)) {+ e.preventDefault();+ return false;+ }+ }}+ >+ {#if loading.remove}+ <Loader2 class="w-4 h-4 animate-spin" />+ {:else}+ <Trash2 class="w-4 h-4" />+ {/if}+ Remove+ </Button>+ {/if}</div>diff --git a/src/lib/components/badges/status-badge.svelte b/src/lib/components/badges/status-badge.svelteindex 33eb40fdd..367c49583 100644--- a/src/lib/components/badges/status-badge.svelte+++ b/src/lib/components/badges/status-badge.svelte@@ -1,44 +1,42 @@<script lang="ts">- interface Props {- text: string;- // Updated variant list- variant?: "red" | "purple" | "green" | "blue" | "gray" | "amber";- }-- let { text, variant = "gray" }: Props = $props();-- // Updated variant classes based on provided RGBA values and Tailwind colors (dark mode removed)- let variantClasses = $derived(- {- // red: bg: rgba(239, 68, 68, 0.15), color: rgb(185, 28, 28), border: rgba(239, 68, 68, 0.15)- // Closest Tailwind: bg-red-500/15, text-red-700, border-red-700- red: "bg-red-500/15 text-red-700 border border-red-700/20",-- // purple: bg: rgba(139, 92, 246, 0.15), color: rgb(107, 33, 168), border: rgba(139, 92, 246, 0.15)- // Closest Tailwind: bg-purple-500/15, text-purple-700, border-purple-700- purple: "bg-purple-500/15 text-purple-700 border border-purple-700/20",-- // green: bg: rgba(34, 197, 94, 0.2), color: rgb(63, 185, 80), border: rgba(34, 197, 94, 0.2)- // Closest Tailwind: bg-green-500/20, text-green-600, border-green-600- green: "bg-green-500/20 text-green-600 border border-green-600/20",-- // blue: bg: rgba(59, 130, 246, 0.15), color: rgb(37, 99, 235), border: rgba(59, 130, 246, 0.15)- // Closest Tailwind: bg-blue-500/15, text-blue-700, border-blue-700- blue: "bg-blue-500/15 text-blue-700 border border-blue-700/20",-- // gray: bg: rgba(156, 163, 175, 0.15), color: rgb(75, 85, 99), border: rgba(156, 163, 175, 0.15)- // Closest Tailwind: bg-gray-400/15, text-gray-600, border-gray-600- gray: "bg-gray-400/15 text-gray-600 border border-gray-600-20",-- // amber: bg: rgba(234, 179, 8, 0.2), color: rgb(210, 153, 34), border: rgba(234, 179, 8, 0.2)- // Closest Tailwind: bg-amber-500/20, text-amber-600, border-amber-600- amber: "bg-amber-500/20 text-amber-600 border border-amber-600/20",- }[variant]- );+ interface Props {+ text: string;+ // Updated variant list+ variant?: 'red' | 'purple' | 'green' | 'blue' | 'gray' | 'amber';+ }++ let { text, variant = 'gray' }: Props = $props();++ // Updated variant classes based on provided RGBA values and Tailwind colors (dark mode removed)+ let variantClasses = $derived(+ {+ // red: bg: rgba(239, 68, 68, 0.15), color: rgb(185, 28, 28), border: rgba(239, 68, 68, 0.15)+ // Closest Tailwind: bg-red-500/15, text-red-700, border-red-700+ red: 'bg-red-500/15 text-red-700 border border-red-700/20',++ // purple: bg: rgba(139, 92, 246, 0.15), color: rgb(107, 33, 168), border: rgba(139, 92, 246, 0.15)+ // Closest Tailwind: bg-purple-500/15, text-purple-700, border-purple-700+ purple: 'bg-purple-500/15 text-purple-700 border border-purple-700/20',++ // green: bg: rgba(34, 197, 94, 0.2), color: rgb(63, 185, 80), border: rgba(34, 197, 94, 0.2)+ // Closest Tailwind: bg-green-500/20, text-green-600, border-green-600+ green: 'bg-green-500/20 text-green-600 border border-green-600/20',++ // blue: bg: rgba(59, 130, 246, 0.15), color: rgb(37, 99, 235), border: rgba(59, 130, 246, 0.15)+ // Closest Tailwind: bg-blue-500/15, text-blue-700, border-blue-700+ blue: 'bg-blue-500/15 text-blue-700 border border-blue-700/20',++ // gray: bg: rgba(156, 163, 175, 0.15), color: rgb(75, 85, 99), border: rgba(156, 163, 175, 0.15)+ // Closest Tailwind: bg-gray-400/15, text-gray-600, border-gray-600+ gray: 'bg-gray-400/15 text-gray-600 border border-gray-600-20',++ // amber: bg: rgba(234, 179, 8, 0.2), color: rgb(210, 153, 34), border: rgba(234, 179, 8, 0.2)+ // Closest Tailwind: bg-amber-500/20, text-amber-600, border-amber-600+ amber: 'bg-amber-500/20 text-amber-600 border border-amber-600/20'+ }[variant]+ );</script>-<span- class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium {variantClasses}"->- {text}+<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium {variantClasses}">+ {text}</span>diff --git a/src/lib/components/badges/unused-text-badge.svelte b/src/lib/components/badges/unused-text-badge.svelteindex 8d7cf5460..beb210fc7 100644--- a/src/lib/components/badges/unused-text-badge.svelte+++ b/src/lib/components/badges/unused-text-badge.svelte@@ -1,17 +1,17 @@<script lang="ts">- import StatusBadge from "./status-badge.svelte";+ import StatusBadge from './status-badge.svelte';- interface Props {- name: string;- inUse: boolean | undefined;- }+ interface Props {+ name: string;+ inUse: boolean | undefined;+ }- let { name, inUse }: Props = $props();+ let { name, inUse }: Props = $props();</script><div class="flex items-center gap-2">- <span class="truncate">{name}</span>- {#if !inUse}- <StatusBadge text="Unused" variant="amber" />- {/if}+ <span class="truncate">{name}</span>+ {#if !inUse}+ <StatusBadge text="Unused" variant="amber" />+ {/if}</div>diff --git a/src/lib/components/docker/ImageRow.svelte b/src/lib/components/docker/ImageRow.svelteindex a20118437..da6f59280 100644--- a/src/lib/components/docker/ImageRow.svelte+++ b/src/lib/components/docker/ImageRow.svelte@@ -1,33 +1,33 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import { Trash2, Info } from "@lucide/svelte";+ import { Button } from '$lib/components/ui/button/index.js';+ import { Trash2, Info } from '@lucide/svelte';- interface Props {- image: {- id: string;- repo: string;- tag: string;- size: string;- created?: string;- };- }+ interface Props {+ image: {+ id: string;+ repo: string;+ tag: string;+ size: string;+ created?: string;+ };+ }- let { image }: Props = $props();+ let { image }: Props = $props();</script><tr class="border-b">- <td class="py-2">{image.repo}</td>- <td>{image.tag}</td>- <td class="font-mono text-xs">{image.id.substring(7, 19)}</td>- <td>{image.size}</td>- <td class="py-2">- <div class="flex gap-2">- <Button variant="ghost" size="sm" href="/images/{image.id}">- <Info class="w-4 h-4" />- </Button>- <Button variant="destructive" size="sm">- <Trash2 class="w-4 h-4" />- </Button>- </div>- </td>+ <td class="py-2">{image.repo}</td>+ <td>{image.tag}</td>+ <td class="font-mono text-xs">{image.id.substring(7, 19)}</td>+ <td>{image.size}</td>+ <td class="py-2">+ <div class="flex gap-2">+ <Button variant="ghost" size="sm" href="/images/{image.id}">+ <Info class="w-4 h-4" />+ </Button>+ <Button variant="destructive" size="sm">+ <Trash2 class="w-4 h-4" />+ </Button>+ </div>+ </td></tr>diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelteindex d5bc2e0e7..2cd7db8de 100644--- a/src/lib/components/navbar.svelte+++ b/src/lib/components/navbar.svelte@@ -1,252 +1,161 @@<script lang="ts">- import {- Home,- Box,- Image,- Network,- HardDrive,- Settings,- Menu,- X,- ChevronRight,- ChevronLeft,- FileStack,- ExternalLink, // Add this for the update link icon- type Icon as IconType,- } from "@lucide/svelte";- import { page } from "$app/state";- import { fly } from "svelte/transition";- import { Button } from "$lib/components/ui/button/index.js";- import { Separator } from "$lib/components/ui/separator/index.js";- import { cn } from "$lib/utils";- import { browser } from "$app/environment";- import type { AppVersionInformation } from "$lib/types/application-configuration";-- // Menu items and version information with proper typing- let {- items = [- { href: "/", label: "Dashboard", icon: Home },- { href: "/containers", label: "Containers", icon: Box },- { href: "/stacks", label: "Stacks", icon: FileStack },- { href: "/images", label: "Images", icon: Image },- { href: "/networks", label: "Networks", icon: Network },- { href: "/volumes", label: "Volumes", icon: HardDrive },- { href: "/settings", label: "Settings", icon: Settings },- ] as MenuItem[],- versionInformation,- } = $props<{- items?: MenuItem[];- versionInformation?: AppVersionInformation;- }>();-- // Define MenuItem type with proper IconType- type MenuItem = {- href: string;- label: string;- icon: typeof IconType;- };-- // State for mobile sidebar- let isOpen = $state(false);-- // State for sidebar collapse (desktop)- let isCollapsed = $state(false);-- // Initialize from localStorage if available- if (browser) {- const savedState = localStorage.getItem("sidebarCollapsed");- isCollapsed = savedState === "true";- }-- // Save collapsed state to localStorage- function toggleCollapse() {- isCollapsed = !isCollapsed;- if (browser) {- localStorage.setItem("sidebarCollapsed", isCollapsed.toString());- }- }-- // Determine if update is available- const updateAvailable = $derived(versionInformation?.updateAvailable);+ import {+ Home,+ Box,+ Image,+ Network,+ HardDrive,+ Settings,+ Menu,+ X,+ ChevronRight,+ ChevronLeft,+ FileStack,+ ExternalLink, // Add this for the update link icon+ type Icon as IconType+ } from '@lucide/svelte';+ import { page } from '$app/state';+ import { fly } from 'svelte/transition';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Separator } from '$lib/components/ui/separator/index.js';+ import { cn } from '$lib/utils';+ import { browser } from '$app/environment';+ import type { AppVersionInformation } from '$lib/types/application-configuration';++ // Menu items and version information with proper typing+ let {+ items = [+ { href: '/', label: 'Dashboard', icon: Home },+ { href: '/containers', label: 'Containers', icon: Box },+ { href: '/stacks', label: 'Stacks', icon: FileStack },+ { href: '/images', label: 'Images', icon: Image },+ { href: '/networks', label: 'Networks', icon: Network },+ { href: '/volumes', label: 'Volumes', icon: HardDrive },+ { href: '/settings', label: 'Settings', icon: Settings }+ ] as MenuItem[],+ versionInformation+ } = $props<{+ items?: MenuItem[];+ versionInformation?: AppVersionInformation;+ }>();++ // Define MenuItem type with proper IconType+ type MenuItem = {+ href: string;+ label: string;+ icon: typeof IconType;+ };++ // State for mobile sidebar+ let isOpen = $state(false);++ // State for sidebar collapse (desktop)+ let isCollapsed = $state(false);++ // Initialize from localStorage if available+ if (browser) {+ const savedState = localStorage.getItem('sidebarCollapsed');+ isCollapsed = savedState === 'true';+ }++ // Save collapsed state to localStorage+ function toggleCollapse() {+ isCollapsed = !isCollapsed;+ if (browser) {+ localStorage.setItem('sidebarCollapsed', isCollapsed.toString());+ }+ }++ // Determine if update is available+ const updateAvailable = $derived(versionInformation?.updateAvailable);</script><!-- Mobile menu button -->-<Button- variant="ghost"- size="icon"- class="md:hidden fixed top-4 right-4 z-50 shadow-sm bg-background"- onclick={() => (isOpen = !isOpen)}- aria-label={isOpen ? "Close menu" : "Open menu"}->- {#if isOpen}- <X size={18} />- {:else}- <Menu size={18} />- {/if}+<Button variant="ghost" size="icon" class="md:hidden fixed top-4 right-4 z-50 shadow-sm bg-background" onclick={() => (isOpen = !isOpen)} aria-label={isOpen ? 'Close menu' : 'Open menu'}>+ {#if isOpen}+ <X size={18} />+ {:else}+ <Menu size={18} />+ {/if}</Button><!-- Sidebar navigation -->-<div- class={cn(- "fixed md:sticky top-0 left-0 h-screen md:h-[100dvh] transition-all duration-300 ease-in-out",- "bg-card border-r shadow-sm z-40",- "flex flex-col",- isCollapsed ? "w-[70px]" : "w-64",- isOpen ? "translate-x-0" : "-translate-x-full md:translate-x-0"- )}->- <!-- Logo/App name -->- <div- class={cn(- "flex items-center h-14 transition-all duration-300",- isCollapsed ? "justify-center px-2" : "gap-3 px-5 p-4"- )}- >- <div class="flex-shrink-0">- <img- src="/img/arcane.png"- alt="Arcane"- class="h-15 w-15"- width="30"- height="30"- />- </div>- {#if !isCollapsed}- <div class="flex flex-col justify-center">- <span class="text-lg font-bold tracking-tight leading-none">Arcane</span- >- <span class="text-xs text-muted-foreground"- >v{versionInformation.currentVersion}</span- >- </div>- {/if}- </div>-- <Separator />-- <!-- Collapse button (positioned between header and navigation) -->- <div class="hidden md:flex justify-end px-2 -mt-1 mb-1 relative">- <Button- variant="outline"- size="icon"- class="h-6 w-6 rounded-full bg-background absolute right-0 translate-x-1/2"- onclick={toggleCollapse}- aria-label={isCollapsed ? "Expand sidebar" : "Collapse sidebar"}- >- {#if isCollapsed}- <ChevronRight size={14} />- {:else}- <ChevronLeft size={14} />- {/if}- </Button>- </div>-- <!-- Navigation links -->- <nav- class={cn(- "p-2 flex-1 overflow-y-auto overflow-x-hidden",- isCollapsed && "py-2 px-1"- )}- >- {#each items as item}- {@const isActive =- page.url.pathname === item.href ||- (page.url.pathname.startsWith(item.href) && item.href !== "/")}- {@const Icon = item.icon}-- <a- href={item.href}- class={cn(- "flex items-center justify-between rounded-md text-sm font-medium transition-all",- isCollapsed ? "px-2 py-2 my-1 flex-col gap-1" : "px-3 py-2 my-0.5",- "transition-colors group",- isActive- ? "bg-primary/10 text-primary"- : "text-muted-foreground hover:bg-muted hover:text-foreground"- )}- aria-current={isActive ? "page" : undefined}- title={isCollapsed ? item.label : undefined}- >- <div- class={cn(- "flex items-center",- isCollapsed ? "justify-center" : "gap-3"- )}- >- <div- class={cn(- "p-1 rounded-md",- isActive- ? "bg-primary/10"- : "bg-transparent group-hover:bg-muted-foreground/10"- )}- >- <Icon- size={16}- class={cn(- isActive- ? "text-primary"- : "text-muted-foreground group-hover:text-foreground"- )}- />- </div>- {#if !isCollapsed}- <span>{item.label}</span>- {/if}- </div>-- {#if !isCollapsed}- {#if isActive}- <ChevronRight size={16} class="text-primary opacity-60" />- {/if}- {/if}- </a>- {/each}- </nav>-- <!-- Only show update section if an update is available -->- {#if updateAvailable}- <Separator />-- <!-- Update available notification -->- <div- class={cn("transition-all px-3 py-2", isCollapsed ? "text-center" : "")}- >- {#if !isCollapsed}- <a- href={versionInformation.releaseUrl}- target="_blank"- rel="noopener noreferrer"- class="flex items-center justify-between text-blue-500 hover:underline text-sm"- >- <span>Update available</span>- <span class="flex items-center">- v{versionInformation.newestVersion}- <ExternalLink class="ml-1 h-3 w-3" />- </span>- </a>- {:else}- <a- href={versionInformation.releaseUrl}- target="_blank"- rel="noopener noreferrer"- title="Update available: v{versionInformation.newestVersion}"- class="flex justify-center text-blue-500"- >- <ExternalLink class="h-4 w-4" />- </a>- {/if}- </div>- {/if}+<div class={cn('fixed md:sticky top-0 left-0 h-screen md:h-[100dvh] transition-all duration-300 ease-in-out', 'bg-card border-r shadow-sm z-40', 'flex flex-col', isCollapsed ? 'w-[70px]' : 'w-64', isOpen ? 'translate-x-0' : '-translate-x-full md:translate-x-0')}>+ <!-- Logo/App name -->+ <div class={cn('flex items-center h-14 transition-all duration-300', isCollapsed ? 'justify-center px-2' : 'gap-3 px-5 p-4')}>+ <div class="flex-shrink-0">+ <img src="/img/arcane.png" alt="Arcane" class="h-15 w-15" width="30" height="30" />+ </div>+ {#if !isCollapsed}+ <div class="flex flex-col justify-center">+ <span class="text-lg font-bold tracking-tight leading-none">Arcane</span>+ <span class="text-xs text-muted-foreground">v{versionInformation.currentVersion}</span>+ </div>+ {/if}+ </div>++ <Separator />++ <!-- Collapse button (positioned between header and navigation) -->+ <div class="hidden md:flex justify-end px-2 -mt-1 mb-1 relative">+ <Button variant="outline" size="icon" class="h-6 w-6 rounded-full bg-background absolute right-0 translate-x-1/2" onclick={toggleCollapse} aria-label={isCollapsed ? 'Expand sidebar' : 'Collapse sidebar'}>+ {#if isCollapsed}+ <ChevronRight size={14} />+ {:else}+ <ChevronLeft size={14} />+ {/if}+ </Button>+ </div>++ <!-- Navigation links -->+ <nav class={cn('p-2 flex-1 overflow-y-auto overflow-x-hidden', isCollapsed && 'py-2 px-1')}>+ {#each items as item}+ {@const isActive = page.url.pathname === item.href || (page.url.pathname.startsWith(item.href) && item.href !== '/')}+ {@const Icon = item.icon}++ <a href={item.href} class={cn('flex items-center justify-between rounded-md text-sm font-medium transition-all', isCollapsed ? 'px-2 py-2 my-1 flex-col gap-1' : 'px-3 py-2 my-0.5', 'transition-colors group', isActive ? 'bg-primary/10 text-primary' : 'text-muted-foreground hover:bg-muted hover:text-foreground')} aria-current={isActive ? 'page' : undefined} title={isCollapsed ? item.label : undefined}>+ <div class={cn('flex items-center', isCollapsed ? 'justify-center' : 'gap-3')}>+ <div class={cn('p-1 rounded-md', isActive ? 'bg-primary/10' : 'bg-transparent group-hover:bg-muted-foreground/10')}>+ <Icon size={16} class={cn(isActive ? 'text-primary' : 'text-muted-foreground group-hover:text-foreground')} />+ </div>+ {#if !isCollapsed}+ <span>{item.label}</span>+ {/if}+ </div>++ {#if !isCollapsed}+ {#if isActive}+ <ChevronRight size={16} class="text-primary opacity-60" />+ {/if}+ {/if}+ </a>+ {/each}+ </nav>++ <!-- Only show update section if an update is available -->+ {#if updateAvailable}+ <Separator />++ <!-- Update available notification -->+ <div class={cn('transition-all px-3 py-2', isCollapsed ? 'text-center' : '')}>+ {#if !isCollapsed}+ <a href={versionInformation.releaseUrl} target="_blank" rel="noopener noreferrer" class="flex items-center justify-between text-blue-500 hover:underline text-sm">+ <span>Update available</span>+ <span class="flex items-center">+ v{versionInformation.newestVersion}+ <ExternalLink class="ml-1 h-3 w-3" />+ </span>+ </a>+ {:else}+ <a href={versionInformation.releaseUrl} target="_blank" rel="noopener noreferrer" title="Update available: v{versionInformation.newestVersion}" class="flex justify-center text-blue-500">+ <ExternalLink class="h-4 w-4" />+ </a>+ {/if}+ </div>+ {/if}</div><!-- Overlay for mobile -->{#if isOpen}- <button- type="button"- class="md:hidden fixed inset-0 w-full h-full bg-background/80 backdrop-blur-sm z-30 border-none"- aria-label="Close menu"- onclick={() => (isOpen = false)}- transition:fly={{ duration: 150, y: -5 }}- ></button>+ <button type="button" class="md:hidden fixed inset-0 w-full h-full bg-background/80 backdrop-blur-sm z-30 border-none" aria-label="Close menu" onclick={() => (isOpen = false)} transition:fly={{ duration: 150, y: -5 }}></button>{/if}diff --git a/src/lib/components/ui/accordion/accordion-content.svelte b/src/lib/components/ui/accordion/accordion-content.svelteindex 4cc5989eb..e0b66e5b8 100644--- a/src/lib/components/ui/accordion/accordion-content.svelte+++ b/src/lib/components/ui/accordion/accordion-content.svelte@@ -1,23 +1,11 @@<script lang="ts">- import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Accordion as AccordionPrimitive, type WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithoutChild<AccordionPrimitive.ContentProps> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<AccordionPrimitive.ContentProps> = $props();</script>-<AccordionPrimitive.Content- bind:ref- class={cn(- "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all",- className- )}- {...restProps}->+<AccordionPrimitive.Content bind:ref class={cn('data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all', className)} {...restProps}><div class="pb-4 pt-0">{@render children?.()}</div>diff --git a/src/lib/components/ui/accordion/accordion-item.svelte b/src/lib/components/ui/accordion/accordion-item.svelteindex 852bcf3e5..a11a6af13 100644--- a/src/lib/components/ui/accordion/accordion-item.svelte+++ b/src/lib/components/ui/accordion/accordion-item.svelte@@ -1,12 +1,8 @@<script lang="ts">- import { Accordion as AccordionPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Accordion as AccordionPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: AccordionPrimitive.ItemProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: AccordionPrimitive.ItemProps = $props();</script>-<AccordionPrimitive.Item bind:ref class={cn("border-b", className)} {...restProps} />+<AccordionPrimitive.Item bind:ref class={cn('border-b', className)} {...restProps} />diff --git a/src/lib/components/ui/accordion/accordion-trigger.svelte b/src/lib/components/ui/accordion/accordion-trigger.svelteindex 54209f210..51d51e29c 100644--- a/src/lib/components/ui/accordion/accordion-trigger.svelte+++ b/src/lib/components/ui/accordion/accordion-trigger.svelte@@ -1,7 +1,7 @@<script lang="ts">- import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";- import ChevronDown from "@lucide/svelte/icons/chevron-down";- import { cn } from "$lib/utils.js";+ import { Accordion as AccordionPrimitive, type WithoutChild } from 'bits-ui';+ import ChevronDown from '@lucide/svelte/icons/chevron-down';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -10,19 +10,12 @@children,...restProps}: WithoutChild<AccordionPrimitive.TriggerProps> & {- level?: AccordionPrimitive.HeaderProps["level"];+ level?: AccordionPrimitive.HeaderProps['level'];} = $props();</script><AccordionPrimitive.Header {level} class="flex">- <AccordionPrimitive.Trigger- bind:ref- class={cn(- "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",- className- )}- {...restProps}- >+ <AccordionPrimitive.Trigger bind:ref class={cn('flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className)} {...restProps}>{@render children?.()}<ChevronDown class="size-4 shrink-0 transition-transform duration-200" /></AccordionPrimitive.Trigger>diff --git a/src/lib/components/ui/accordion/index.ts b/src/lib/components/ui/accordion/index.tsindex ed4921386..0734d4e39 100644--- a/src/lib/components/ui/accordion/index.ts+++ b/src/lib/components/ui/accordion/index.ts@@ -1,7 +1,7 @@-import { Accordion as AccordionPrimitive } from "bits-ui";-import Content from "./accordion-content.svelte";-import Item from "./accordion-item.svelte";-import Trigger from "./accordion-trigger.svelte";+import { Accordion as AccordionPrimitive } from 'bits-ui';+import Content from './accordion-content.svelte';+import Item from './accordion-item.svelte';+import Trigger from './accordion-trigger.svelte';const Root = AccordionPrimitive.Root;export {@@ -13,5 +13,5 @@ export {Root as Accordion,Content as AccordionContent,Item as AccordionItem,- Trigger as AccordionTrigger,+ Trigger as AccordionTrigger};diff --git a/src/lib/components/ui/alert/alert-description.svelte b/src/lib/components/ui/alert/alert-description.svelteindex ef74aa4ec..a2ab61891 100644--- a/src/lib/components/ui/alert/alert-description.svelte+++ b/src/lib/components/ui/alert/alert-description.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div bind:this={ref} class={cn("text-sm [&_p]:leading-relaxed", className)} {...restProps}>+<div bind:this={ref} class={cn('text-sm [&_p]:leading-relaxed', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/alert/alert-title.svelte b/src/lib/components/ui/alert/alert-title.svelteindex 12ec9fc52..890c372ce 100644--- a/src/lib/components/ui/alert/alert-title.svelte+++ b/src/lib/components/ui/alert/alert-title.svelte@@ -1,7 +1,7 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -14,12 +14,6 @@} = $props();</script>-<div- role="heading"- aria-level={level}- bind:this={ref}- class={cn("mb-1 font-medium leading-none tracking-tight", className)}- {...restProps}->+<div role="heading" aria-level={level} bind:this={ref} class={cn('mb-1 font-medium leading-none tracking-tight', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/alert/alert.svelte b/src/lib/components/ui/alert/alert.svelteindex 8b4528f64..b3dbdd046 100644--- a/src/lib/components/ui/alert/alert.svelte+++ b/src/lib/components/ui/alert/alert.svelte@@ -1,32 +1,31 @@<script lang="ts" module>- import { type VariantProps, tv } from "tailwind-variants";+ import { type VariantProps, tv } from 'tailwind-variants';export const alertVariants = tv({- base: "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7",+ base: '[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg~*]:pl-7',variants: {variant: {- default: "bg-background text-foreground",- destructive:- "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",- },+ default: 'bg-background text-foreground',+ destructive: 'border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive'+ }},defaultVariants: {- variant: "default",- },+ variant: 'default'+ }});- export type AlertVariant = VariantProps<typeof alertVariants>["variant"];+ export type AlertVariant = VariantProps<typeof alertVariants>['variant'];</script><script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),class: className,- variant = "default",+ variant = 'default',children,...restProps}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {diff --git a/src/lib/components/ui/alert/index.ts b/src/lib/components/ui/alert/index.tsindex 97e21b4ea..5e0f854da 100644--- a/src/lib/components/ui/alert/index.ts+++ b/src/lib/components/ui/alert/index.ts@@ -1,7 +1,7 @@-import Root from "./alert.svelte";-import Description from "./alert-description.svelte";-import Title from "./alert-title.svelte";-export { alertVariants, type AlertVariant } from "./alert.svelte";+import Root from './alert.svelte';+import Description from './alert-description.svelte';+import Title from './alert-title.svelte';+export { alertVariants, type AlertVariant } from './alert.svelte';export {Root,@@ -10,5 +10,5 @@ export {//Root as Alert,Description as AlertDescription,- Title as AlertTitle,+ Title as AlertTitle};diff --git a/src/lib/components/ui/badge/badge.svelte b/src/lib/components/ui/badge/badge.svelteindex da261046f..1e0ae8116 100644--- a/src/lib/components/ui/badge/badge.svelte+++ b/src/lib/components/ui/badge/badge.svelte@@ -1,37 +1,34 @@<script lang="ts" module>- import { type VariantProps, tv } from "tailwind-variants";+ import { type VariantProps, tv } from 'tailwind-variants';export const badgeVariants = tv({- base: "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",+ base: 'focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2',variants: {variant: {- default:- "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent",- secondary:- "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",- destructive:- "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent",- outline: "text-foreground",- },+ default: 'bg-primary text-primary-foreground hover:bg-primary/80 border-transparent',+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent',+ destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent',+ outline: 'text-foreground'+ }},defaultVariants: {- variant: "default",- },+ variant: 'default'+ }});- export type BadgeVariant = VariantProps<typeof badgeVariants>["variant"];+ export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];</script><script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAnchorAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAnchorAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),href,class: className,- variant = "default",+ variant = 'default',children,...restProps}: WithElementRef<HTMLAnchorAttributes> & {@@ -39,12 +36,6 @@} = $props();</script>-<svelte:element- this={href ? "a" : "span"}- bind:this={ref}- {href}- class={cn(badgeVariants({ variant }), className)}- {...restProps}->+<svelte:element this={href ? 'a' : 'span'} bind:this={ref} {href} class={cn(badgeVariants({ variant }), className)} {...restProps}>{@render children?.()}</svelte:element>diff --git a/src/lib/components/ui/badge/index.ts b/src/lib/components/ui/badge/index.tsindex 64e0aa9b0..f05fb87fa 100644--- a/src/lib/components/ui/badge/index.ts+++ b/src/lib/components/ui/badge/index.ts@@ -1,2 +1,2 @@-export { default as Badge } from "./badge.svelte";-export { badgeVariants, type BadgeVariant } from "./badge.svelte";+export { default as Badge } from './badge.svelte';+export { badgeVariants, type BadgeVariant } from './badge.svelte';diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelteindex 1f649dccd..6fdf6a7fd 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte@@ -1,23 +1,13 @@<script lang="ts">- import Ellipsis from "@lucide/svelte/icons/ellipsis";- import type { WithElementRef, WithoutChildren } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import Ellipsis from '@lucide/svelte/icons/ellipsis';+ import type { WithElementRef, WithoutChildren } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();</script>-<span- bind:this={ref}- role="presentation"- aria-hidden="true"- class={cn("flex size-9 items-center justify-center", className)}- {...restProps}->+<span bind:this={ref} role="presentation" aria-hidden="true" class={cn('flex size-9 items-center justify-center', className)} {...restProps}><Ellipsis class="size-4" /><span class="sr-only">More</span></span>diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-item.svelteindex 4e2a3ed86..b10432f89 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-item.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLLiAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLLiAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLLiAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLLiAttributes> = $props();</script>-<li bind:this={ref} class={cn("inline-flex items-center gap-1.5", className)} {...restProps}>+<li bind:this={ref} class={cn('inline-flex items-center gap-1.5', className)} {...restProps}>{@render children?.()}</li>diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-link.svelteindex c6b10194b..72a33f545 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-link.svelte@@ -1,8 +1,8 @@<script lang="ts">- import type { HTMLAnchorAttributes } from "svelte/elements";- import type { Snippet } from "svelte";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAnchorAttributes } from 'svelte/elements';+ import type { Snippet } from 'svelte';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -16,9 +16,9 @@} = $props();const attrs = $derived({- class: cn("hover:text-foreground transition-colors", className),+ class: cn('hover:text-foreground transition-colors', className),href,- ...restProps,+ ...restProps});</script>diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-list.svelteindex 77c4e327f..3289ac935 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte@@ -1,23 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLOlAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLOlAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLOlAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLOlAttributes> = $props();</script>-<ol- bind:this={ref}- class={cn(- "text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",- className- )}- {...restProps}->+<ol bind:this={ref} class={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5', className)} {...restProps}>{@render children?.()}</ol>diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-page.svelteindex 1db5a0573..84778ea98 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte@@ -1,23 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();</script>-<span- bind:this={ref}- role="link"- aria-disabled="true"- aria-current="page"- class={cn("text-foreground font-normal", className)}- {...restProps}->+<span bind:this={ref} role="link" aria-disabled="true" aria-current="page" class={cn('text-foreground font-normal', className)} {...restProps}>{@render children?.()}</span>diff --git a/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte b/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelteindex afd6f6010..184d5f374 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb-separator.svelte@@ -1,24 +1,13 @@<script lang="ts">- import ChevronRight from "@lucide/svelte/icons/chevron-right";- import type { WithElementRef } from "bits-ui";- import type { HTMLLiAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import ChevronRight from '@lucide/svelte/icons/chevron-right';+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLLiAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLLiAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLLiAttributes> = $props();</script>-<li- role="presentation"- aria-hidden="true"- class={cn("[&>svg]:size-3.5", className)}- bind:this={ref}- {...restProps}->+<li role="presentation" aria-hidden="true" class={cn('[&>svg]:size-3.5', className)} bind:this={ref} {...restProps}>{#if children}{@render children?.()}{:else}diff --git a/src/lib/components/ui/breadcrumb/breadcrumb.svelte b/src/lib/components/ui/breadcrumb/breadcrumb.svelteindex 70be14df4..15d31f97e 100644--- a/src/lib/components/ui/breadcrumb/breadcrumb.svelte+++ b/src/lib/components/ui/breadcrumb/breadcrumb.svelte@@ -1,13 +1,8 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';- let {- ref = $bindable(),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();+ let { ref = $bindable(), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();</script><nav bind:this={ref} class={className} aria-label="breadcrumb" {...restProps}>diff --git a/src/lib/components/ui/breadcrumb/index.ts b/src/lib/components/ui/breadcrumb/index.tsindex dc914ec34..773fd604b 100644--- a/src/lib/components/ui/breadcrumb/index.ts+++ b/src/lib/components/ui/breadcrumb/index.ts@@ -1,10 +1,10 @@-import Root from "./breadcrumb.svelte";-import Ellipsis from "./breadcrumb-ellipsis.svelte";-import Item from "./breadcrumb-item.svelte";-import Separator from "./breadcrumb-separator.svelte";-import Link from "./breadcrumb-link.svelte";-import List from "./breadcrumb-list.svelte";-import Page from "./breadcrumb-page.svelte";+import Root from './breadcrumb.svelte';+import Ellipsis from './breadcrumb-ellipsis.svelte';+import Item from './breadcrumb-item.svelte';+import Separator from './breadcrumb-separator.svelte';+import Link from './breadcrumb-link.svelte';+import List from './breadcrumb-list.svelte';+import Page from './breadcrumb-page.svelte';export {Root,@@ -21,5 +21,5 @@ export {Separator as BreadcrumbSeparator,Link as BreadcrumbLink,List as BreadcrumbList,- Page as BreadcrumbPage,+ Page as BreadcrumbPage};diff --git a/src/lib/components/ui/button/button.svelte b/src/lib/components/ui/button/button.svelteindex 22ab2d0db..7e722304b 100644--- a/src/lib/components/ui/button/button.svelte+++ b/src/lib/components/ui/button/button.svelte@@ -1,35 +1,34 @@<script lang="ts" module>- import type { WithElementRef } from "bits-ui";- import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";- import { type VariantProps, tv } from "tailwind-variants";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';+ import { type VariantProps, tv } from 'tailwind-variants';export const buttonVariants = tv({- base: "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ base: 'ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',variants: {variant: {- default: "bg-primary text-primary-foreground hover:bg-primary/90",- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",- outline:- "border-input bg-background hover:bg-accent hover:text-accent-foreground border",- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",- ghost: "hover:bg-accent hover:text-accent-foreground",- link: "text-primary underline-offset-4 hover:underline",+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',+ destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',+ outline: 'border-input bg-background hover:bg-accent hover:text-accent-foreground border',+ secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',+ ghost: 'hover:bg-accent hover:text-accent-foreground',+ link: 'text-primary underline-offset-4 hover:underline'},size: {- default: "h-10 px-4 py-2",- sm: "h-9 rounded-md px-3",- lg: "h-11 rounded-md px-8",- icon: "h-10 w-10",- },+ default: 'h-10 px-4 py-2',+ sm: 'h-9 rounded-md px-3',+ lg: 'h-11 rounded-md px-8',+ icon: 'h-10 w-10'+ }},defaultVariants: {- variant: "default",- size: "default",- },+ variant: 'default',+ size: 'default'+ }});- export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];- export type ButtonSize = VariantProps<typeof buttonVariants>["size"];+ export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];+ export type ButtonSize = VariantProps<typeof buttonVariants>['size'];export type ButtonProps = WithElementRef<HTMLButtonAttributes> &WithElementRef<HTMLAnchorAttributes> & {@@ -39,36 +38,17 @@</script><script lang="ts">- import { cn } from "$lib/utils.js";+ import { cn } from '$lib/utils.js';- let {- class: className,- variant = "default",- size = "default",- ref = $bindable(null),- href = undefined,- type = "button",- children,- ...restProps- }: ButtonProps = $props();+ let { class: className, variant = 'default', size = 'default', ref = $bindable(null), href = undefined, type = 'button', children, ...restProps }: ButtonProps = $props();</script>{#if href}- <a- bind:this={ref}- class={cn(buttonVariants({ variant, size }), className)}- {href}- {...restProps}- >+ <a bind:this={ref} class={cn(buttonVariants({ variant, size }), className)} {href} {...restProps}>{@render children?.()}</a>{:else}- <button- bind:this={ref}- class={cn(buttonVariants({ variant, size }), className)}- {type}- {...restProps}- >+ <button bind:this={ref} class={cn(buttonVariants({ variant, size }), className)} {type} {...restProps}>{@render children?.()}</button>{/if}diff --git a/src/lib/components/ui/button/index.ts b/src/lib/components/ui/button/index.tsindex fb585d768..3fd7e24ba 100644--- a/src/lib/components/ui/button/index.ts+++ b/src/lib/components/ui/button/index.ts@@ -1,9 +1,4 @@-import Root, {- type ButtonProps,- type ButtonSize,- type ButtonVariant,- buttonVariants,-} from "./button.svelte";+import Root, { type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants } from './button.svelte';export {Root,@@ -13,5 +8,5 @@ export {buttonVariants,type ButtonProps,type ButtonSize,- type ButtonVariant,+ type ButtonVariant};diff --git a/src/lib/components/ui/card/card-content.svelte b/src/lib/components/ui/card/card-content.svelteindex 1f52856c2..e6e18f9d1 100644--- a/src/lib/components/ui/card/card-content.svelte+++ b/src/lib/components/ui/card/card-content.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div bind:this={ref} class={cn("p-6", className)} {...restProps}>+<div bind:this={ref} class={cn('p-6', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/card/card-description.svelte b/src/lib/components/ui/card/card-description.svelteindex da026644a..3ef8380f0 100644--- a/src/lib/components/ui/card/card-description.svelte+++ b/src/lib/components/ui/card/card-description.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();</script>-<p bind:this={ref} class={cn("text-muted-foreground text-sm", className)} {...restProps}>+<p bind:this={ref} class={cn('text-muted-foreground text-sm', className)} {...restProps}>{@render children?.()}</p>diff --git a/src/lib/components/ui/card/card-footer.svelte b/src/lib/components/ui/card/card-footer.svelteindex 6894149ed..f1e5d9e65 100644--- a/src/lib/components/ui/card/card-footer.svelte+++ b/src/lib/components/ui/card/card-footer.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div bind:this={ref} class={cn("flex items-center p-6 pt-0", className)} {...restProps}>+<div bind:this={ref} class={cn('flex items-center p-6 pt-0', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/card/card-header.svelte b/src/lib/components/ui/card/card-header.svelteindex 1baa92cbf..74ebd3f08 100644--- a/src/lib/components/ui/card/card-header.svelte+++ b/src/lib/components/ui/card/card-header.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div bind:this={ref} class={cn("flex flex-col space-y-1.5 p-6 pb-0", className)} {...restProps}>+<div bind:this={ref} class={cn('flex flex-col space-y-1.5 p-6 pb-0', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/card/card-title.svelte b/src/lib/components/ui/card/card-title.svelteindex f7d59c132..4d77be5d9 100644--- a/src/lib/components/ui/card/card-title.svelte+++ b/src/lib/components/ui/card/card-title.svelte@@ -1,7 +1,7 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -14,12 +14,6 @@} = $props();</script>-<div- role="heading"- aria-level={level}- bind:this={ref}- class={cn("text-2xl font-semibold leading-none tracking-tight", className)}- {...restProps}->+<div role="heading" aria-level={level} bind:this={ref} class={cn('text-2xl font-semibold leading-none tracking-tight', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/card/card.svelte b/src/lib/components/ui/card/card.svelteindex 3e3a4ed7e..06068b91b 100644--- a/src/lib/components/ui/card/card.svelte+++ b/src/lib/components/ui/card/card.svelte@@ -1,20 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- class={cn("bg-card text-card-foreground rounded-lg border shadow-sm", className)}- {...restProps}->+<div bind:this={ref} class={cn('bg-card text-card-foreground rounded-lg border shadow-sm', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/card/index.ts b/src/lib/components/ui/card/index.tsindex 0f9084d16..5c11597d9 100644--- a/src/lib/components/ui/card/index.ts+++ b/src/lib/components/ui/card/index.ts@@ -1,9 +1,9 @@-import Root from "./card.svelte";-import Content from "./card-content.svelte";-import Description from "./card-description.svelte";-import Footer from "./card-footer.svelte";-import Header from "./card-header.svelte";-import Title from "./card-title.svelte";+import Root from './card.svelte';+import Content from './card-content.svelte';+import Description from './card-description.svelte';+import Footer from './card-footer.svelte';+import Header from './card-header.svelte';+import Title from './card-title.svelte';export {Root,@@ -18,5 +18,5 @@ export {Description as CardDescription,Footer as CardFooter,Header as CardHeader,- Title as CardTitle,+ Title as CardTitle};diff --git a/src/lib/components/ui/checkbox/checkbox.svelte b/src/lib/components/ui/checkbox/checkbox.svelteindex 2395094c5..94d207e68 100644--- a/src/lib/components/ui/checkbox/checkbox.svelte+++ b/src/lib/components/ui/checkbox/checkbox.svelte@@ -1,34 +1,19 @@<script lang="ts">- import { Checkbox as CheckboxPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import Check from "@lucide/svelte/icons/check";- import Minus from "@lucide/svelte/icons/minus";- import { cn } from "$lib/utils.js";+ import { Checkbox as CheckboxPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import Check from '@lucide/svelte/icons/check';+ import Minus from '@lucide/svelte/icons/minus';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- checked = $bindable(false),- indeterminate = $bindable(false),- class: className,- ...restProps- }: WithoutChildrenOrChild<CheckboxPrimitive.RootProps> = $props();+ let { ref = $bindable(null), checked = $bindable(false), indeterminate = $bindable(false), class: className, ...restProps }: WithoutChildrenOrChild<CheckboxPrimitive.RootProps> = $props();</script>-<CheckboxPrimitive.Root- bind:ref- class={cn(- "border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",- className- )}- bind:checked- bind:indeterminate- {...restProps}->+<CheckboxPrimitive.Root bind:ref class={cn('border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50', className)} bind:checked bind:indeterminate {...restProps}>{#snippet children({ checked, indeterminate })}<div class="flex size-4 items-center justify-center text-current">{#if indeterminate}<Minus class="size-3.5" />{:else}- <Check class={cn("size-3.5", !checked && "text-transparent")} />+ <Check class={cn('size-3.5', !checked && 'text-transparent')} />{/if}</div>{/snippet}diff --git a/src/lib/components/ui/checkbox/index.ts b/src/lib/components/ui/checkbox/index.tsindex 6d92d9458..5c276719b 100644--- a/src/lib/components/ui/checkbox/index.ts+++ b/src/lib/components/ui/checkbox/index.ts@@ -1,6 +1,6 @@-import Root from "./checkbox.svelte";+import Root from './checkbox.svelte';export {Root,//- Root as Checkbox,+ Root as Checkbox};diff --git a/src/lib/components/ui/data-table/data-table.svelte.ts b/src/lib/components/ui/data-table/data-table.svelte.tsindex b4834ce60..4c1aee773 100644--- a/src/lib/components/ui/data-table/data-table.svelte.ts+++ b/src/lib/components/ui/data-table/data-table.svelte.ts@@ -1,10 +1,4 @@-import {- type RowData,- type TableOptions,- type TableOptionsResolved,- type TableState,- createTable,-} from "@tanstack/table-core";+import { type RowData, type TableOptions, type TableOptionsResolved, type TableState, createTable } from '@tanstack/table-core';/*** Creates a reactive TanStack table object for Svelte.@@ -38,12 +32,9 @@ export function createSvelteTable<TData extends RowData>(options: TableOptions<Tstate: {},onStateChange() {},renderFallbackValue: null,- mergeOptions: (- defaultOptions: TableOptions<TData>,- options: Partial<TableOptions<TData>>- ) => {+ mergeOptions: (defaultOptions: TableOptions<TData>, options: Partial<TableOptions<TData>>) => {return mergeObjects(defaultOptions, options);- },+ }},options);@@ -62,7 +53,7 @@ export function createSvelteTable<TData extends RowData>(options: TableOptions<Telse state = mergeObjects(state, updater);options.onStateChange?.(updater);- },+ }});});}@@ -89,7 +80,7 @@ function mergeObjects(...sources: any): any {const target = {};for (let i = 0; i < sources.length; i++) {let source = sources[i];- if (typeof source === "function") source = source();+ if (typeof source === 'function') source = source();if (source) {const descriptors = Object.getOwnPropertyDescriptors(source);for (const key in descriptors) {@@ -99,11 +90,11 @@ function mergeObjects(...sources: any): any {get() {for (let i = sources.length - 1; i >= 0; i--) {let s = sources[i];- if (typeof s === "function") s = s();+ if (typeof s === 'function') s = s();const v = (s || {})[key];if (v !== undefined) return v;}- },+ }});}}diff --git a/src/lib/components/ui/data-table/flex-render.svelte b/src/lib/components/ui/data-table/flex-render.svelteindex 982ced55d..ff24a89ee 100644--- a/src/lib/components/ui/data-table/flex-render.svelte+++ b/src/lib/components/ui/data-table/flex-render.svelte@@ -1,50 +1,36 @@<script lang="ts" module>- import type {- CellContext,- ColumnDefTemplate,- HeaderContext,- } from "@tanstack/table-core";+ import type { CellContext, ColumnDefTemplate, HeaderContext } from '@tanstack/table-core';- type TData = unknown;- type TValue = unknown;- type TContext = unknown;+ type TData = unknown;+ type TValue = unknown;+ type TContext = unknown;</script>-<script- lang="ts"- generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>"->- import {- RenderComponentConfig,- RenderSnippetConfig,- } from "./render-helpers.js";- type Props = {- /** The cell or header field of the current cell's column definition. */- content?: TContext extends HeaderContext<TData, TValue>- ? ColumnDefTemplate<HeaderContext<TData, TValue>>- : TContext extends CellContext<TData, TValue>- ? ColumnDefTemplate<CellContext<TData, TValue>>- : never;- /** The result of the `getContext()` function of the header or cell */- context: TContext;- };+<script lang="ts" generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>">+ import { RenderComponentConfig, RenderSnippetConfig } from './render-helpers.js';+ type Props = {+ /** The cell or header field of the current cell's column definition. */+ content?: TContext extends HeaderContext<TData, TValue> ? ColumnDefTemplate<HeaderContext<TData, TValue>> : TContext extends CellContext<TData, TValue> ? ColumnDefTemplate<CellContext<TData, TValue>> : never;+ /** The result of the `getContext()` function of the header or cell */+ context: TContext;+ };- let { content, context }: Props = $props();+ let { content, context }: Props = $props();</script>-{#if typeof content === "string"}- {content}+{#if typeof content === 'string'}+ {content}{:else if content instanceof Function}- <!-- It's unlikely that a CellContext will be passed to a Header -->- <!-- eslint-disable-next-line @typescript-eslint/no-explicit-any -->- {@const result = content(context as any)}- {#if result instanceof RenderComponentConfig}- {@const { component: Component, props } = result}- <Component {...props} />- {:else if result instanceof RenderSnippetConfig}- {@const { snippet, params } = result}- {@render snippet(params)}- {:else}- {result}- {/if}+ <!-- It's unlikely that a CellContext will be passed to a Header -->+ <!-- eslint-disable-next-line @typescript-eslint/no-explicit-any -->+ {@const result = content(context as any)}+ {#if result instanceof RenderComponentConfig}+ {@const { component: Component, props } = result}+ <Component {...props} />+ {:else if result instanceof RenderSnippetConfig}+ {@const { snippet, params } = result}+ {@render snippet(params)}+ {:else}+ {result}+ {/if}{/if}diff --git a/src/lib/components/ui/data-table/index.ts b/src/lib/components/ui/data-table/index.tsindex 5f4e77ea0..05fb82150 100644--- a/src/lib/components/ui/data-table/index.ts+++ b/src/lib/components/ui/data-table/index.ts@@ -1,3 +1,3 @@-export { default as FlexRender } from "./flex-render.svelte";-export { renderComponent, renderSnippet } from "./render-helpers.js";-export { createSvelteTable } from "./data-table.svelte.js";+export { default as FlexRender } from './flex-render.svelte';+export { renderComponent, renderSnippet } from './render-helpers.js';+export { createSvelteTable } from './data-table.svelte.js';diff --git a/src/lib/components/ui/data-table/render-helpers.ts b/src/lib/components/ui/data-table/render-helpers.tsindex 1984642ee..853e14799 100644--- a/src/lib/components/ui/data-table/render-helpers.ts+++ b/src/lib/components/ui/data-table/render-helpers.ts@@ -1,4 +1,4 @@-import type { Component, ComponentProps, Snippet } from "svelte";+import type { Component, ComponentProps, Snippet } from 'svelte';/*** A helper class to make it easy to identify Svelte components in@@ -19,10 +19,7 @@ import type { Component, ComponentProps, Snippet } from "svelte";export class RenderComponentConfig<TComponent extends Component> {component: TComponent;props: ComponentProps<TComponent> | Record<string, never>;- constructor(- component: TComponent,- props: ComponentProps<TComponent> | Record<string, never> = {}- ) {+ constructor(component: TComponent, props: ComponentProps<TComponent> | Record<string, never> = {}) {this.component = component;this.props = props;}@@ -77,7 +74,7 @@ export class RenderSnippetConfig<TProps> {export function renderComponent<// eslint-disable-next-line @typescript-eslint/no-explicit-anyT extends Component<any>,- Props extends ComponentProps<T>,+ Props extends ComponentProps<T>>(component: T, props: Props) {return new RenderComponentConfig(component, props);}diff --git a/src/lib/components/ui/dialog/dialog-content.svelte b/src/lib/components/ui/dialog/dialog-content.svelteindex c4f81a191..d93f50a59 100644--- a/src/lib/components/ui/dialog/dialog-content.svelte+++ b/src/lib/components/ui/dialog/dialog-content.svelte@@ -1,9 +1,9 @@<script lang="ts">- import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import X from "@lucide/svelte/icons/x";- import type { Snippet } from "svelte";- import * as Dialog from "./index.js";- import { cn } from "$lib/utils.js";+ import { Dialog as DialogPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import X from '@lucide/svelte/icons/x';+ import type { Snippet } from 'svelte';+ import * as Dialog from './index.js';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -19,18 +19,9 @@<Dialog.Portal {...portalProps}><Dialog.Overlay />- <DialogPrimitive.Content- bind:ref- class={cn(- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",- className- )}- {...restProps}- >+ <DialogPrimitive.Content bind:ref class={cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] bg-background fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg', className)} {...restProps}>{@render children?.()}- <DialogPrimitive.Close- class="ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"- >+ <DialogPrimitive.Close class="ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"><X class="size-4" /><span class="sr-only">Close</span></DialogPrimitive.Close>diff --git a/src/lib/components/ui/dialog/dialog-description.svelte b/src/lib/components/ui/dialog/dialog-description.svelteindex bc048e4b6..a0b3f6b47 100644--- a/src/lib/components/ui/dialog/dialog-description.svelte+++ b/src/lib/components/ui/dialog/dialog-description.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { Dialog as DialogPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Dialog as DialogPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: DialogPrimitive.DescriptionProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.DescriptionProps = $props();</script>-<DialogPrimitive.Description- bind:ref- class={cn("text-muted-foreground text-sm", className)}- {...restProps}-/>+<DialogPrimitive.Description bind:ref class={cn('text-muted-foreground text-sm', className)} {...restProps} />diff --git a/src/lib/components/ui/dialog/dialog-footer.svelte b/src/lib/components/ui/dialog/dialog-footer.svelteindex 91ecaba64..24fee61b8 100644--- a/src/lib/components/ui/dialog/dialog-footer.svelte+++ b/src/lib/components/ui/dialog/dialog-footer.svelte@@ -1,20 +1,11 @@<script lang="ts">- import type { WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- class={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)}- {...restProps}->+<div bind:this={ref} class={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/dialog/dialog-header.svelte b/src/lib/components/ui/dialog/dialog-header.svelteindex 8d1abfc4d..798f7e283 100644--- a/src/lib/components/ui/dialog/dialog-header.svelte+++ b/src/lib/components/ui/dialog/dialog-header.svelte@@ -1,20 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- class={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)}- {...restProps}->+<div bind:this={ref} class={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/dialog/dialog-overlay.svelte b/src/lib/components/ui/dialog/dialog-overlay.svelteindex 05c30ac29..298afd7e1 100644--- a/src/lib/components/ui/dialog/dialog-overlay.svelte+++ b/src/lib/components/ui/dialog/dialog-overlay.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { Dialog as DialogPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Dialog as DialogPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: DialogPrimitive.OverlayProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.OverlayProps = $props();</script>-<DialogPrimitive.Overlay- bind:ref- class={cn(- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",- className- )}- {...restProps}-/>+<DialogPrimitive.Overlay bind:ref class={cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80', className)} {...restProps} />diff --git a/src/lib/components/ui/dialog/dialog-title.svelte b/src/lib/components/ui/dialog/dialog-title.svelteindex 9cf592cf1..ba487298d 100644--- a/src/lib/components/ui/dialog/dialog-title.svelte+++ b/src/lib/components/ui/dialog/dialog-title.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { Dialog as DialogPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Dialog as DialogPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: DialogPrimitive.TitleProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.TitleProps = $props();</script>-<DialogPrimitive.Title- bind:ref- class={cn("text-lg font-semibold leading-none tracking-tight", className)}- {...restProps}-/>+<DialogPrimitive.Title bind:ref class={cn('text-lg font-semibold leading-none tracking-tight', className)} {...restProps} />diff --git a/src/lib/components/ui/dialog/index.ts b/src/lib/components/ui/dialog/index.tsindex 3286ab7a5..3b460fb87 100644--- a/src/lib/components/ui/dialog/index.ts+++ b/src/lib/components/ui/dialog/index.ts@@ -1,11 +1,11 @@-import { Dialog as DialogPrimitive } from "bits-ui";+import { Dialog as DialogPrimitive } from 'bits-ui';-import Title from "./dialog-title.svelte";-import Footer from "./dialog-footer.svelte";-import Header from "./dialog-header.svelte";-import Overlay from "./dialog-overlay.svelte";-import Content from "./dialog-content.svelte";-import Description from "./dialog-description.svelte";+import Title from './dialog-title.svelte';+import Footer from './dialog-footer.svelte';+import Header from './dialog-header.svelte';+import Overlay from './dialog-overlay.svelte';+import Content from './dialog-content.svelte';+import Description from './dialog-description.svelte';const Root = DialogPrimitive.Root;const Trigger = DialogPrimitive.Trigger;@@ -33,5 +33,5 @@ export {Overlay as DialogOverlay,Content as DialogContent,Description as DialogDescription,- Close as DialogClose,+ Close as DialogClose};diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelteindex 3f1575a36..a28c7e11b 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte@@ -1,9 +1,9 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import Check from "@lucide/svelte/icons/check";- import Minus from "@lucide/svelte/icons/minus";- import { cn } from "$lib/utils.js";- import type { Snippet } from "svelte";+ import { DropdownMenu as DropdownMenuPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import Check from '@lucide/svelte/icons/check';+ import Minus from '@lucide/svelte/icons/minus';+ import { cn } from '$lib/utils.js';+ import type { Snippet } from 'svelte';let {ref = $bindable(null),@@ -17,22 +17,13 @@} = $props();</script>-<DropdownMenuPrimitive.CheckboxItem- bind:ref- bind:checked- bind:indeterminate- class={cn(- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className- )}- {...restProps}->+<DropdownMenuPrimitive.CheckboxItem bind:ref bind:checked bind:indeterminate class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>{#snippet children({ checked, indeterminate })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if indeterminate}<Minus class="size-4" />{:else}- <Check class={cn("size-4", !checked && "text-transparent")} />+ <Check class={cn('size-4', !checked && 'text-transparent')} />{/if}</span>{@render childrenProp?.()}diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelteindex fdbaa4710..7f953cc11 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn } from "$lib/utils.js";- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";+ import { cn } from '$lib/utils.js';+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';let {ref = $bindable(null),@@ -14,13 +14,5 @@</script><DropdownMenuPrimitive.Portal {...portalProps}>- <DropdownMenuPrimitive.Content- bind:ref- {sideOffset}- class={cn(- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md outline-none",- className- )}- {...restProps}- />+ <DropdownMenuPrimitive.Content bind:ref {sideOffset} class={cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md outline-none', className)} {...restProps} /></DropdownMenuPrimitive.Portal>diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelteindex 84d5cca29..5adebb428 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -12,8 +12,4 @@} = $props();</script>-<DropdownMenuPrimitive.GroupHeading- bind:ref- class={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}- {...restProps}-/>+<DropdownMenuPrimitive.GroupHeading bind:ref class={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)} {...restProps} />diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelteindex 70a523615..618bdfc1c 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn } from "$lib/utils.js";- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";+ import { cn } from '$lib/utils.js';+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';let {ref = $bindable(null),@@ -12,12 +12,4 @@} = $props();</script>-<DropdownMenuPrimitive.Item- bind:ref- class={cn(- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",- inset && "pl-8",- className- )}- {...restProps}-/>+<DropdownMenuPrimitive.Item bind:ref class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className)} {...restProps} />diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelteindex 9837d5a48..b337da672 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte@@ -1,7 +1,7 @@<script lang="ts">- import { cn } from "$lib/utils.js";- import { type WithElementRef } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";+ import { cn } from '$lib/utils.js';+ import { type WithElementRef } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -14,10 +14,6 @@} = $props();</script>-<div- bind:this={ref}- class={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}- {...restProps}->+<div bind:this={ref} class={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)} {...restProps}>{@render children?.()}</div>diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelteindex bcb960db3..02def291b 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte@@ -1,24 +1,12 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from "bits-ui";- import Circle from "@lucide/svelte/icons/circle";- import { cn } from "$lib/utils.js";+ import { DropdownMenu as DropdownMenuPrimitive, type WithoutChild } from 'bits-ui';+ import Circle from '@lucide/svelte/icons/circle';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children: childrenProp,- ...restProps- }: WithoutChild<DropdownMenuPrimitive.RadioItemProps> = $props();+ let { ref = $bindable(null), class: className, children: childrenProp, ...restProps }: WithoutChild<DropdownMenuPrimitive.RadioItemProps> = $props();</script>-<DropdownMenuPrimitive.RadioItem- bind:ref- class={cn(- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className- )}- {...restProps}->+<DropdownMenuPrimitive.RadioItem bind:ref class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>{#snippet children({ checked })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if checked}diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelteindex 32fac4bc5..a61157161 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: DropdownMenuPrimitive.SeparatorProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SeparatorProps = $props();</script>-<DropdownMenuPrimitive.Separator- bind:ref- class={cn("bg-muted -mx-1 my-1 h-px", className)}- {...restProps}-/>+<DropdownMenuPrimitive.Separator bind:ref class={cn('bg-muted -mx-1 my-1 h-px', className)} {...restProps} />diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelteindex 053e2a2c6..a47a6a837 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte@@ -1,20 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import { type WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import { type WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();</script>-<span- bind:this={ref}- class={cn("ml-auto text-xs tracking-widest opacity-60", className)}- {...restProps}->+<span bind:this={ref} class={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...restProps}>{@render children?.()}</span>diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelteindex 0bb6eea45..62525ce82 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: DropdownMenuPrimitive.SubContentProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SubContentProps = $props();</script>-<DropdownMenuPrimitive.SubContent- bind:ref- class={cn(- "bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-lg focus:outline-none",- className- )}- {...restProps}-/>+<DropdownMenuPrimitive.SubContent bind:ref class={cn('bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-lg focus:outline-none', className)} {...restProps} />diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelteindex be175ad31..42f75bcfc 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte@@ -1,7 +1,7 @@<script lang="ts">- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";- import ChevronRight from "@lucide/svelte/icons/chevron-right";- import { cn } from "$lib/utils.js";+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';+ import ChevronRight from '@lucide/svelte/icons/chevron-right';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -14,15 +14,7 @@} = $props();</script>-<DropdownMenuPrimitive.SubTrigger- bind:ref- class={cn(- "data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",- inset && "pl-8",- className- )}- {...restProps}->+<DropdownMenuPrimitive.SubTrigger bind:ref class={cn('data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className)} {...restProps}>{@render children?.()}<ChevronRight class="ml-auto" /></DropdownMenuPrimitive.SubTrigger>diff --git a/src/lib/components/ui/dropdown-menu/index.ts b/src/lib/components/ui/dropdown-menu/index.tsindex 40c450272..85c8b9dc6 100644--- a/src/lib/components/ui/dropdown-menu/index.ts+++ b/src/lib/components/ui/dropdown-menu/index.ts@@ -1,14 +1,14 @@-import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";-import CheckboxItem from "./dropdown-menu-checkbox-item.svelte";-import Content from "./dropdown-menu-content.svelte";-import GroupHeading from "./dropdown-menu-group-heading.svelte";-import Item from "./dropdown-menu-item.svelte";-import Label from "./dropdown-menu-label.svelte";-import RadioItem from "./dropdown-menu-radio-item.svelte";-import Separator from "./dropdown-menu-separator.svelte";-import Shortcut from "./dropdown-menu-shortcut.svelte";-import SubContent from "./dropdown-menu-sub-content.svelte";-import SubTrigger from "./dropdown-menu-sub-trigger.svelte";+import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';+import CheckboxItem from './dropdown-menu-checkbox-item.svelte';+import Content from './dropdown-menu-content.svelte';+import GroupHeading from './dropdown-menu-group-heading.svelte';+import Item from './dropdown-menu-item.svelte';+import Label from './dropdown-menu-label.svelte';+import RadioItem from './dropdown-menu-radio-item.svelte';+import Separator from './dropdown-menu-separator.svelte';+import Shortcut from './dropdown-menu-shortcut.svelte';+import SubContent from './dropdown-menu-sub-content.svelte';+import SubTrigger from './dropdown-menu-sub-trigger.svelte';const Sub = DropdownMenuPrimitive.Sub;const Root = DropdownMenuPrimitive.Root;@@ -46,5 +46,5 @@ export {Sub,SubContent,SubTrigger,- Trigger,+ Trigger};diff --git a/src/lib/components/ui/form/form-button.svelte b/src/lib/components/ui/form/form-button.svelteindex cc0c590da..550f6ace0 100644--- a/src/lib/components/ui/form/form-button.svelte+++ b/src/lib/components/ui/form/form-button.svelte@@ -1,5 +1,5 @@<script lang="ts">- import * as Button from "$lib/components/ui/button/index.js";+ import * as Button from '$lib/components/ui/button/index.js';let { ref = $bindable(null), ...restProps }: Button.Props = $props();</script>diff --git a/src/lib/components/ui/form/form-description.svelte b/src/lib/components/ui/form/form-description.svelteindex 6c70187ae..21a46be84 100644--- a/src/lib/components/ui/form/form-description.svelte+++ b/src/lib/components/ui/form/form-description.svelte@@ -1,17 +1,9 @@<script lang="ts">- import * as FormPrimitive from "formsnap";- import type { WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import * as FormPrimitive from 'formsnap';+ import type { WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChild<FormPrimitive.DescriptionProps> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.DescriptionProps> = $props();</script>-<FormPrimitive.Description- bind:ref- class={cn("text-muted-foreground text-sm", className)}- {...restProps}-/>+<FormPrimitive.Description bind:ref class={cn('text-muted-foreground text-sm', className)} {...restProps} />diff --git a/src/lib/components/ui/form/form-element-field.svelte b/src/lib/components/ui/form/form-element-field.svelteindex 278395c86..1c33df665 100644--- a/src/lib/components/ui/form/form-element-field.svelte+++ b/src/lib/components/ui/form/form-element-field.svelte@@ -1,29 +1,21 @@<script lang="ts" module>- import type { FormPathLeaves as _FormPathLeaves } from "sveltekit-superforms";+ import type { FormPathLeaves as _FormPathLeaves } from 'sveltekit-superforms';type T = Record<string, unknown>;type U = _FormPathLeaves<T>;</script><script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPathLeaves<T>">- import * as FormPrimitive from "formsnap";- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef, WithoutChildren } from "bits-ui";- import { cn } from "$lib/utils.js";+ import * as FormPrimitive from 'formsnap';+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef, WithoutChildren } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- form,- name,- children: childrenProp,- ...restProps- }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> &- FormPrimitive.ElementFieldProps<T, U> = $props();+ let { ref = $bindable(null), class: className, form, name, children: childrenProp, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> & FormPrimitive.ElementFieldProps<T, U> = $props();</script><FormPrimitive.ElementField {form} {name}>{#snippet children({ constraints, errors, tainted, value })}- <div bind:this={ref} class={cn("space-y-2", className)} {...restProps}>+ <div bind:this={ref} class={cn('space-y-2', className)} {...restProps}>{@render childrenProp?.({ constraints, errors, tainted, value: value as T[U] })}</div>{/snippet}diff --git a/src/lib/components/ui/form/form-field-errors.svelte b/src/lib/components/ui/form/form-field-errors.svelteindex a5b52041a..ac19775c0 100644--- a/src/lib/components/ui/form/form-field-errors.svelte+++ b/src/lib/components/ui/form/form-field-errors.svelte@@ -1,7 +1,7 @@<script lang="ts">- import * as FormPrimitive from "formsnap";- import type { WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import * as FormPrimitive from 'formsnap';+ import type { WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -14,11 +14,7 @@} = $props();</script>-<FormPrimitive.FieldErrors- bind:ref- class={cn("text-destructive text-sm font-medium", className)}- {...restProps}->+<FormPrimitive.FieldErrors bind:ref class={cn('text-destructive text-sm font-medium', className)} {...restProps}>{#snippet children({ errors, errorProps })}{#if childrenProp}{@render childrenProp({ errors, errorProps })}diff --git a/src/lib/components/ui/form/form-field.svelte b/src/lib/components/ui/form/form-field.svelteindex 6f7a766f2..af9470df6 100644--- a/src/lib/components/ui/form/form-field.svelte+++ b/src/lib/components/ui/form/form-field.svelte@@ -1,29 +1,21 @@<script lang="ts" module>- import type { FormPath as _FormPath } from "sveltekit-superforms";+ import type { FormPath as _FormPath } from 'sveltekit-superforms';type T = Record<string, unknown>;type U = _FormPath<T>;</script><script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">- import * as FormPrimitive from "formsnap";- import type { WithoutChildren, WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import * as FormPrimitive from 'formsnap';+ import type { WithoutChildren, WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';- let {- ref = $bindable(null),- class: className,- form,- name,- children: childrenProp,- ...restProps- }: FormPrimitive.FieldProps<T, U> &- WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();+ let { ref = $bindable(null), class: className, form, name, children: childrenProp, ...restProps }: FormPrimitive.FieldProps<T, U> & WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();</script><FormPrimitive.Field {form} {name}>{#snippet children({ constraints, errors, tainted, value })}- <div bind:this={ref} class={cn("space-y-2", className)} {...restProps}>+ <div bind:this={ref} class={cn('space-y-2', className)} {...restProps}>{@render childrenProp?.({ constraints, errors, tainted, value: value as T[U] })}</div>{/snippet}diff --git a/src/lib/components/ui/form/form-fieldset.svelte b/src/lib/components/ui/form/form-fieldset.svelteindex bc40a2abd..568aeefc3 100644--- a/src/lib/components/ui/form/form-fieldset.svelte+++ b/src/lib/components/ui/form/form-fieldset.svelte@@ -1,21 +1,15 @@<script lang="ts" module>- import type { FormPath as _FormPath } from "sveltekit-superforms";+ import type { FormPath as _FormPath } from 'sveltekit-superforms';type T = Record<string, unknown>;type U = _FormPath<T>;</script><script lang="ts" generics="T extends Record<string, unknown>, U extends _FormPath<T>">- import * as FormPrimitive from "formsnap";- import type { WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import * as FormPrimitive from 'formsnap';+ import type { WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- form,- name,- ...restProps- }: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();+ let { ref = $bindable(null), class: className, form, name, ...restProps }: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();</script>-<FormPrimitive.Fieldset bind:ref {form} {name} class={cn("space-y-2", className)} {...restProps} />+<FormPrimitive.Fieldset bind:ref {form} {name} class={cn('space-y-2', className)} {...restProps} />diff --git a/src/lib/components/ui/form/form-label.svelte b/src/lib/components/ui/form/form-label.svelteindex dd252f46d..4b79d84f4 100644--- a/src/lib/components/ui/form/form-label.svelte+++ b/src/lib/components/ui/form/form-label.svelte@@ -1,20 +1,15 @@<script lang="ts">- import type { WithoutChild } from "bits-ui";- import * as FormPrimitive from "formsnap";- import { Label } from "$lib/components/ui/label/index.js";- import { cn } from "$lib/utils.js";+ import type { WithoutChild } from 'bits-ui';+ import * as FormPrimitive from 'formsnap';+ import { Label } from '$lib/components/ui/label/index.js';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- children,- class: className,- ...restProps- }: WithoutChild<FormPrimitive.LabelProps> = $props();+ let { ref = $bindable(null), children, class: className, ...restProps }: WithoutChild<FormPrimitive.LabelProps> = $props();</script><FormPrimitive.Label {...restProps} bind:ref>{#snippet child({ props })}- <Label {...props} class={cn("data-[fs-error]:text-destructive", className)}>+ <Label {...props} class={cn('data-[fs-error]:text-destructive', className)}>{@render children?.()}</Label>{/snippet}diff --git a/src/lib/components/ui/form/form-legend.svelte b/src/lib/components/ui/form/form-legend.svelteindex b493821a4..c926d004a 100644--- a/src/lib/components/ui/form/form-legend.svelte+++ b/src/lib/components/ui/form/form-legend.svelte@@ -1,17 +1,9 @@<script lang="ts">- import * as FormPrimitive from "formsnap";- import type { WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import * as FormPrimitive from 'formsnap';+ import type { WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChild<FormPrimitive.LegendProps> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.LegendProps> = $props();</script>-<FormPrimitive.Legend- bind:ref- class={cn("data-[fs-error]:text-destructive text-sm font-medium leading-none", className)}- {...restProps}-/>+<FormPrimitive.Legend bind:ref class={cn('data-[fs-error]:text-destructive text-sm font-medium leading-none', className)} {...restProps} />diff --git a/src/lib/components/ui/form/index.ts b/src/lib/components/ui/form/index.tsindex 0713927c4..2d129aad5 100644--- a/src/lib/components/ui/form/index.ts+++ b/src/lib/components/ui/form/index.ts@@ -1,12 +1,12 @@-import * as FormPrimitive from "formsnap";-import Description from "./form-description.svelte";-import Label from "./form-label.svelte";-import FieldErrors from "./form-field-errors.svelte";-import Field from "./form-field.svelte";-import Fieldset from "./form-fieldset.svelte";-import Legend from "./form-legend.svelte";-import ElementField from "./form-element-field.svelte";-import Button from "./form-button.svelte";+import * as FormPrimitive from 'formsnap';+import Description from './form-description.svelte';+import Label from './form-label.svelte';+import FieldErrors from './form-field-errors.svelte';+import Field from './form-field.svelte';+import Fieldset from './form-fieldset.svelte';+import Legend from './form-legend.svelte';+import ElementField from './form-element-field.svelte';+import Button from './form-button.svelte';const Control = FormPrimitive.Control;@@ -29,5 +29,5 @@ export {Fieldset as FormFieldset,Legend as FormLegend,ElementField as FormElementField,- Button as FormButton,+ Button as FormButton};diff --git a/src/lib/components/ui/input/index.ts b/src/lib/components/ui/input/index.tsindex f47b6d3fb..15c0933dc 100644--- a/src/lib/components/ui/input/index.ts+++ b/src/lib/components/ui/input/index.ts@@ -1,7 +1,7 @@-import Root from "./input.svelte";+import Root from './input.svelte';export {Root,//- Root as Input,+ Root as Input};diff --git a/src/lib/components/ui/input/input.svelte b/src/lib/components/ui/input/input.svelteindex 13fa116d3..4397a3791 100644--- a/src/lib/components/ui/input/input.svelte+++ b/src/lib/components/ui/input/input.svelte@@ -1,46 +1,17 @@<script lang="ts">- import type { HTMLInputAttributes, HTMLInputTypeAttribute } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLInputAttributes, HTMLInputTypeAttribute } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- type InputType = Exclude<HTMLInputTypeAttribute, "file">;+ type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;- type Props = WithElementRef<- Omit<HTMLInputAttributes, "type"> &- ({ type: "file"; files?: FileList } | { type?: InputType; files?: undefined })- >;+ type Props = WithElementRef<Omit<HTMLInputAttributes, 'type'> & ({ type: 'file'; files?: FileList } | { type?: InputType; files?: undefined })>;- let {- ref = $bindable(null),- value = $bindable(),- type,- files = $bindable(),- class: className,- ...restProps- }: Props = $props();+ let { ref = $bindable(null), value = $bindable(), type, files = $bindable(), class: className, ...restProps }: Props = $props();</script>-{#if type === "file"}- <input- bind:this={ref}- class={cn(- "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",- className- )}- type="file"- bind:files- bind:value- {...restProps}- />+{#if type === 'file'}+ <input bind:this={ref} class={cn('border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className)} type="file" bind:files bind:value {...restProps} />{:else}- <input- bind:this={ref}- class={cn(- "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",- className- )}- {type}- bind:value- {...restProps}- />+ <input bind:this={ref} class={cn('border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-base file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className)} {type} bind:value {...restProps} />{/if}diff --git a/src/lib/components/ui/label/index.ts b/src/lib/components/ui/label/index.tsindex 8bfca0b3f..808d14152 100644--- a/src/lib/components/ui/label/index.ts+++ b/src/lib/components/ui/label/index.ts@@ -1,7 +1,7 @@-import Root from "./label.svelte";+import Root from './label.svelte';export {Root,//- Root as Label,+ Root as Label};diff --git a/src/lib/components/ui/label/label.svelte b/src/lib/components/ui/label/label.svelteindex 247d23cc7..48b6e646c 100644--- a/src/lib/components/ui/label/label.svelte+++ b/src/lib/components/ui/label/label.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { Label as LabelPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Label as LabelPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: LabelPrimitive.RootProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: LabelPrimitive.RootProps = $props();</script>-<LabelPrimitive.Root- bind:ref- class={cn(- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",- className- )}- {...restProps}-/>+<LabelPrimitive.Root bind:ref class={cn('text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)} {...restProps} />diff --git a/src/lib/components/ui/pagination/index.ts b/src/lib/components/ui/pagination/index.tsindex d83c7a948..2f5532a21 100644--- a/src/lib/components/ui/pagination/index.ts+++ b/src/lib/components/ui/pagination/index.ts@@ -1,10 +1,10 @@-import Root from "./pagination.svelte";-import Content from "./pagination-content.svelte";-import Item from "./pagination-item.svelte";-import Link from "./pagination-link.svelte";-import PrevButton from "./pagination-prev-button.svelte";-import NextButton from "./pagination-next-button.svelte";-import Ellipsis from "./pagination-ellipsis.svelte";+import Root from './pagination.svelte';+import Content from './pagination-content.svelte';+import Item from './pagination-item.svelte';+import Link from './pagination-link.svelte';+import PrevButton from './pagination-prev-button.svelte';+import NextButton from './pagination-next-button.svelte';+import Ellipsis from './pagination-ellipsis.svelte';export {Root,@@ -21,5 +21,5 @@ export {Link as PaginationLink,PrevButton as PaginationPrevButton,NextButton as PaginationNextButton,- Ellipsis as PaginationEllipsis,+ Ellipsis as PaginationEllipsis};diff --git a/src/lib/components/ui/pagination/pagination-content.svelte b/src/lib/components/ui/pagination/pagination-content.svelteindex 6ba3cd3d7..9dacb9379 100644--- a/src/lib/components/ui/pagination/pagination-content.svelte+++ b/src/lib/components/ui/pagination/pagination-content.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();</script>-<ul bind:this={ref} class={cn("flex flex-row items-center gap-1", className)} {...restProps}>+<ul bind:this={ref} class={cn('flex flex-row items-center gap-1', className)} {...restProps}>{@render children?.()}</ul>diff --git a/src/lib/components/ui/pagination/pagination-ellipsis.svelte b/src/lib/components/ui/pagination/pagination-ellipsis.svelteindex e2155e151..4a4af71c1 100644--- a/src/lib/components/ui/pagination/pagination-ellipsis.svelte+++ b/src/lib/components/ui/pagination/pagination-ellipsis.svelte@@ -1,22 +1,13 @@<script lang="ts">- import Ellipsis from "@lucide/svelte/icons/ellipsis";- import type { WithElementRef, WithoutChildren } from "bits-ui";- import type { HTMLAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import Ellipsis from '@lucide/svelte/icons/ellipsis';+ import type { WithElementRef, WithoutChildren } from 'bits-ui';+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();</script>-<span- bind:this={ref}- aria-hidden="true"- class={cn("flex size-9 items-center justify-center", className)}- {...restProps}->+<span bind:this={ref} aria-hidden="true" class={cn('flex size-9 items-center justify-center', className)} {...restProps}><Ellipsis class="size-4" /><span class="sr-only">More pages</span></span>diff --git a/src/lib/components/ui/pagination/pagination-item.svelte b/src/lib/components/ui/pagination/pagination-item.svelteindex 09c10765c..e62e06ff4 100644--- a/src/lib/components/ui/pagination/pagination-item.svelte+++ b/src/lib/components/ui/pagination/pagination-item.svelte@@ -1,12 +1,8 @@<script lang="ts">- import type { HTMLLiAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";+ import type { HTMLLiAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';- let {- ref = $bindable(null),- children,- ...restProps- }: WithElementRef<HTMLLiAttributes> = $props();+ let { ref = $bindable(null), children, ...restProps }: WithElementRef<HTMLLiAttributes> = $props();</script><li bind:this={ref} {...restProps}>diff --git a/src/lib/components/ui/pagination/pagination-link.svelte b/src/lib/components/ui/pagination/pagination-link.svelteindex 4d7d04a7e..3253cec8c 100644--- a/src/lib/components/ui/pagination/pagination-link.svelte+++ b/src/lib/components/ui/pagination/pagination-link.svelte@@ -1,39 +1,36 @@<script lang="ts">- import { Pagination as PaginationPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";- import {- type Props,- buttonVariants,- } from "$lib/components/ui/button/index.js";+ import { Pagination as PaginationPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';+ import { type Props, buttonVariants } from '$lib/components/ui/button/index.js';- let {- ref = $bindable(null),- class: className,- size = "sm",- isActive = false,- page,- children,- ...restProps- }: PaginationPrimitive.PageProps &- Props & {- isActive: boolean;- } = $props();+ let {+ ref = $bindable(null),+ class: className,+ size = 'sm',+ isActive = false,+ page,+ children,+ ...restProps+ }: PaginationPrimitive.PageProps &+ Props & {+ isActive: boolean;+ } = $props();</script>{#snippet Fallback()}- {page.value}+ {page.value}{/snippet}<PaginationPrimitive.Page- bind:ref- {page}- class={cn(- buttonVariants({- variant: isActive ? "outline" : "ghost",- size,- }),- className- )}- children={children || Fallback}- {...restProps}+ bind:ref+ {page}+ class={cn(+ buttonVariants({+ variant: isActive ? 'outline' : 'ghost',+ size+ }),+ className+ )}+ children={children || Fallback}+ {...restProps}/>diff --git a/src/lib/components/ui/pagination/pagination-next-button.svelte b/src/lib/components/ui/pagination/pagination-next-button.svelteindex f1d2cb863..6a0f6a1c1 100644--- a/src/lib/components/ui/pagination/pagination-next-button.svelte+++ b/src/lib/components/ui/pagination/pagination-next-button.svelte@@ -1,30 +1,25 @@<script lang="ts">- import { Pagination as PaginationPrimitive } from "bits-ui";- import ChevronRight from "@lucide/svelte/icons/chevron-right";- import { buttonVariants } from "$lib/components/ui/button/index.js";- import { cn } from "$lib/utils.js";+ import { Pagination as PaginationPrimitive } from 'bits-ui';+ import ChevronRight from '@lucide/svelte/icons/chevron-right';+ import { buttonVariants } from '$lib/components/ui/button/index.js';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: PaginationPrimitive.NextButtonProps = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: PaginationPrimitive.NextButtonProps = $props();</script>{#snippet Fallback()}- <ChevronRight class="h-4 w-4" />+ <ChevronRight class="h-4 w-4" />{/snippet}<PaginationPrimitive.NextButton- bind:ref- class={cn(- buttonVariants({- variant: "ghost",- class: "gap-1 pr-2.5",- }),- className- )}- children={children || Fallback}- {...restProps}+ bind:ref+ class={cn(+ buttonVariants({+ variant: 'ghost',+ class: 'gap-1 pr-2.5'+ }),+ className+ )}+ children={children || Fallback}+ {...restProps}/>diff --git a/src/lib/components/ui/pagination/pagination-prev-button.svelte b/src/lib/components/ui/pagination/pagination-prev-button.svelteindex 981316e11..04e89e2ca 100644--- a/src/lib/components/ui/pagination/pagination-prev-button.svelte+++ b/src/lib/components/ui/pagination/pagination-prev-button.svelte@@ -1,30 +1,25 @@<script lang="ts">- import { Pagination as PaginationPrimitive } from "bits-ui";- import ChevronLeft from "@lucide/svelte/icons/chevron-left";- import { buttonVariants } from "$lib/components/ui/button/index.js";- import { cn } from "$lib/utils.js";+ import { Pagination as PaginationPrimitive } from 'bits-ui';+ import ChevronLeft from '@lucide/svelte/icons/chevron-left';+ import { buttonVariants } from '$lib/components/ui/button/index.js';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: PaginationPrimitive.PrevButtonProps = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: PaginationPrimitive.PrevButtonProps = $props();</script>{#snippet Fallback()}- <ChevronLeft class="h-4 w-4" />+ <ChevronLeft class="h-4 w-4" />{/snippet}<PaginationPrimitive.PrevButton- bind:ref- class={cn(- buttonVariants({- variant: "ghost",- class: "gap-1 pl-2.5",- }),- className- )}- children={children || Fallback}- {...restProps}+ bind:ref+ class={cn(+ buttonVariants({+ variant: 'ghost',+ class: 'gap-1 pl-2.5'+ }),+ className+ )}+ children={children || Fallback}+ {...restProps}/>diff --git a/src/lib/components/ui/pagination/pagination.svelte b/src/lib/components/ui/pagination/pagination.svelteindex 4cdc9b1cf..c0eda3e6c 100644--- a/src/lib/components/ui/pagination/pagination.svelte+++ b/src/lib/components/ui/pagination/pagination.svelte@@ -1,25 +1,9 @@<script lang="ts">- import { Pagination as PaginationPrimitive } from "bits-ui";+ import { Pagination as PaginationPrimitive } from 'bits-ui';- import { cn } from "$lib/utils.js";+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- count = 0,- perPage = 10,- page = $bindable(1),- siblingCount = 1,- ...restProps- }: PaginationPrimitive.RootProps = $props();+ let { ref = $bindable(null), class: className, count = 0, perPage = 10, page = $bindable(1), siblingCount = 1, ...restProps }: PaginationPrimitive.RootProps = $props();</script>-<PaginationPrimitive.Root- bind:ref- class={cn("mx-auto flex w-full flex-col items-center", className)}- {count}- {perPage}- {siblingCount}- bind:page- {...restProps}-/>+<PaginationPrimitive.Root bind:ref class={cn('mx-auto flex w-full flex-col items-center', className)} {count} {perPage} {siblingCount} bind:page {...restProps} />diff --git a/src/lib/components/ui/progress/index.ts b/src/lib/components/ui/progress/index.tsindex 25eee615a..97f57fcda 100644--- a/src/lib/components/ui/progress/index.ts+++ b/src/lib/components/ui/progress/index.ts@@ -1,7 +1,7 @@-import Root from "./progress.svelte";+import Root from './progress.svelte';export {Root,//- Root as Progress,+ Root as Progress};diff --git a/src/lib/components/ui/progress/progress.svelte b/src/lib/components/ui/progress/progress.svelteindex 5c4777036..79303786a 100644--- a/src/lib/components/ui/progress/progress.svelte+++ b/src/lib/components/ui/progress/progress.svelte@@ -1,25 +1,10 @@<script lang="ts">- import { Progress as ProgressPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Progress as ProgressPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- max = 100,- value,- ...restProps- }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props();+ let { ref = $bindable(null), class: className, max = 100, value, ...restProps }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props();</script>-<ProgressPrimitive.Root- bind:ref- class={cn("bg-secondary relative h-4 w-full overflow-hidden rounded-full", className)}- {value}- {max}- {...restProps}->- <div- class="bg-primary h-full w-full flex-1 transition-all"- style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}- ></div>+<ProgressPrimitive.Root bind:ref class={cn('bg-secondary relative h-4 w-full overflow-hidden rounded-full', className)} {value} {max} {...restProps}>+ <div class="bg-primary h-full w-full flex-1 transition-all" style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}></div></ProgressPrimitive.Root>diff --git a/src/lib/components/ui/radio-group/index.ts b/src/lib/components/ui/radio-group/index.tsindex 90b33fe5b..a8bb80f94 100644--- a/src/lib/components/ui/radio-group/index.ts+++ b/src/lib/components/ui/radio-group/index.ts@@ -1,10 +1,10 @@-import Root from "./radio-group.svelte";-import Item from "./radio-group-item.svelte";+import Root from './radio-group.svelte';+import Item from './radio-group-item.svelte';export {Root,Item,//Root as RadioGroup,- Item as RadioGroupItem,+ Item as RadioGroupItem};diff --git a/src/lib/components/ui/radio-group/radio-group-item.svelte b/src/lib/components/ui/radio-group/radio-group-item.svelteindex bab22c0f1..a795752e9 100644--- a/src/lib/components/ui/radio-group/radio-group-item.svelte+++ b/src/lib/components/ui/radio-group/radio-group-item.svelte@@ -1,23 +1,12 @@<script lang="ts">- import { RadioGroup as RadioGroupPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import Circle from "@lucide/svelte/icons/circle";- import { cn } from "$lib/utils.js";+ import { RadioGroup as RadioGroupPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import Circle from '@lucide/svelte/icons/circle';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();</script>-<RadioGroupPrimitive.Item- bind:ref- class={cn(- "border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",- className- )}- {...restProps}->+<RadioGroupPrimitive.Item bind:ref class={cn('border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className)} {...restProps}>{#snippet children({ checked })}<div class="flex items-center justify-center">{#if checked}diff --git a/src/lib/components/ui/radio-group/radio-group.svelte b/src/lib/components/ui/radio-group/radio-group.svelteindex 5180b313c..89b1d2cac 100644--- a/src/lib/components/ui/radio-group/radio-group.svelte+++ b/src/lib/components/ui/radio-group/radio-group.svelte@@ -1,13 +1,8 @@<script lang="ts">- import { RadioGroup as RadioGroupPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- value = $bindable(""),- ...restProps- }: RadioGroupPrimitive.RootProps = $props();+ let { ref = $bindable(null), class: className, value = $bindable(''), ...restProps }: RadioGroupPrimitive.RootProps = $props();</script>-<RadioGroupPrimitive.Root bind:ref bind:value class={cn("grid gap-2", className)} {...restProps} />+<RadioGroupPrimitive.Root bind:ref bind:value class={cn('grid gap-2', className)} {...restProps} />diff --git a/src/lib/components/ui/select/index.ts b/src/lib/components/ui/select/index.tsindex f31b8aed3..1ba651396 100644--- a/src/lib/components/ui/select/index.ts+++ b/src/lib/components/ui/select/index.ts@@ -1,12 +1,12 @@-import { Select as SelectPrimitive } from "bits-ui";+import { Select as SelectPrimitive } from 'bits-ui';-import GroupHeading from "./select-group-heading.svelte";-import Item from "./select-item.svelte";-import Content from "./select-content.svelte";-import Trigger from "./select-trigger.svelte";-import Separator from "./select-separator.svelte";-import ScrollDownButton from "./select-scroll-down-button.svelte";-import ScrollUpButton from "./select-scroll-up-button.svelte";+import GroupHeading from './select-group-heading.svelte';+import Item from './select-item.svelte';+import Content from './select-content.svelte';+import Trigger from './select-trigger.svelte';+import Separator from './select-separator.svelte';+import ScrollDownButton from './select-scroll-down-button.svelte';+import ScrollUpButton from './select-scroll-up-button.svelte';const Root = SelectPrimitive.Root;const Group = SelectPrimitive.Group;@@ -30,5 +30,5 @@ export {Trigger as SelectTrigger,Separator as SelectSeparator,ScrollDownButton as SelectScrollDownButton,- ScrollUpButton as SelectScrollUpButton,+ ScrollUpButton as SelectScrollUpButton};diff --git a/src/lib/components/ui/select/select-content.svelte b/src/lib/components/ui/select/select-content.svelteindex 56916effe..7c41808b4 100644--- a/src/lib/components/ui/select/select-content.svelte+++ b/src/lib/components/ui/select/select-content.svelte@@ -1,8 +1,8 @@<script lang="ts">- import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";- import SelectScrollUpButton from "./select-scroll-up-button.svelte";- import SelectScrollDownButton from "./select-scroll-down-button.svelte";- import { cn } from "$lib/utils.js";+ import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';+ import SelectScrollUpButton from './select-scroll-up-button.svelte';+ import SelectScrollDownButton from './select-scroll-down-button.svelte';+ import { cn } from '$lib/utils.js';let {ref = $bindable(null),@@ -21,17 +21,13 @@bind:ref{sideOffset}class={cn(- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',className)}{...restProps}><SelectScrollUpButton />- <SelectPrimitive.Viewport- class={cn(- "h-[var(--bits-select-anchor-height)] w-full min-w-[var(--bits-select-anchor-width)] p-1"- )}- >+ <SelectPrimitive.Viewport class={cn('h-[var(--bits-select-anchor-height)] w-full min-w-[var(--bits-select-anchor-width)] p-1')}>{@render children?.()}</SelectPrimitive.Viewport><SelectScrollDownButton />diff --git a/src/lib/components/ui/select/select-group-heading.svelte b/src/lib/components/ui/select/select-group-heading.svelteindex 7984bef24..d977dfeb0 100644--- a/src/lib/components/ui/select/select-group-heading.svelte+++ b/src/lib/components/ui/select/select-group-heading.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { Select as SelectPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Select as SelectPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: SelectPrimitive.GroupHeadingProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: SelectPrimitive.GroupHeadingProps = $props();</script>-<SelectPrimitive.GroupHeading- bind:ref- class={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}- {...restProps}-/>+<SelectPrimitive.GroupHeading bind:ref class={cn('py-1.5 pl-8 pr-2 text-sm font-semibold', className)} {...restProps} />diff --git a/src/lib/components/ui/select/select-item.svelte b/src/lib/components/ui/select/select-item.svelteindex bc7a93056..69aa470dc 100644--- a/src/lib/components/ui/select/select-item.svelte+++ b/src/lib/components/ui/select/select-item.svelte@@ -1,27 +1,12 @@<script lang="ts">- import Check from "@lucide/svelte/icons/check";- import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import Check from '@lucide/svelte/icons/check';+ import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- value,- label,- children: childrenProp,- ...restProps- }: WithoutChild<SelectPrimitive.ItemProps> = $props();+ let { ref = $bindable(null), class: className, value, label, children: childrenProp, ...restProps }: WithoutChild<SelectPrimitive.ItemProps> = $props();</script>-<SelectPrimitive.Item- bind:ref- {value}- class={cn(- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",- className- )}- {...restProps}->+<SelectPrimitive.Item bind:ref {value} class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>{#snippet children({ selected, highlighted })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if selected}diff --git a/src/lib/components/ui/select/select-scroll-down-button.svelte b/src/lib/components/ui/select/select-scroll-down-button.svelteindex c17d5d1d3..aaabf723c 100644--- a/src/lib/components/ui/select/select-scroll-down-button.svelte+++ b/src/lib/components/ui/select/select-scroll-down-button.svelte@@ -1,19 +1,11 @@<script lang="ts">- import ChevronDown from "@lucide/svelte/icons/chevron-down";- import { Select as SelectPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import ChevronDown from '@lucide/svelte/icons/chevron-down';+ import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();</script>-<SelectPrimitive.ScrollDownButton- bind:ref- class={cn("flex cursor-default items-center justify-center py-1", className)}- {...restProps}->+<SelectPrimitive.ScrollDownButton bind:ref class={cn('flex cursor-default items-center justify-center py-1', className)} {...restProps}><ChevronDown class="size-4" /></SelectPrimitive.ScrollDownButton>diff --git a/src/lib/components/ui/select/select-scroll-up-button.svelte b/src/lib/components/ui/select/select-scroll-up-button.svelteindex 8ba08c088..567ef3cf3 100644--- a/src/lib/components/ui/select/select-scroll-up-button.svelte+++ b/src/lib/components/ui/select/select-scroll-up-button.svelte@@ -1,19 +1,11 @@<script lang="ts">- import ChevronUp from "@lucide/svelte/icons/chevron-up";- import { Select as SelectPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import ChevronUp from '@lucide/svelte/icons/chevron-up';+ import { Select as SelectPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();</script>-<SelectPrimitive.ScrollUpButton- bind:ref- class={cn("flex cursor-default items-center justify-center py-1", className)}- {...restProps}->+<SelectPrimitive.ScrollUpButton bind:ref class={cn('flex cursor-default items-center justify-center py-1', className)} {...restProps}><ChevronUp class="size-4" /></SelectPrimitive.ScrollUpButton>diff --git a/src/lib/components/ui/select/select-separator.svelte b/src/lib/components/ui/select/select-separator.svelteindex 38a3ab0bd..b5d11e5b8 100644--- a/src/lib/components/ui/select/select-separator.svelte+++ b/src/lib/components/ui/select/select-separator.svelte@@ -1,13 +1,9 @@<script lang="ts">- import type { Separator as SeparatorPrimitive } from "bits-ui";- import { Separator } from "$lib/components/ui/separator/index.js";- import { cn } from "$lib/utils.js";+ import type { Separator as SeparatorPrimitive } from 'bits-ui';+ import { Separator } from '$lib/components/ui/separator/index.js';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: SeparatorPrimitive.RootProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: SeparatorPrimitive.RootProps = $props();</script>-<Separator bind:ref class={cn("bg-muted -mx-1 my-1 h-px", className)} {...restProps} />+<Separator bind:ref class={cn('bg-muted -mx-1 my-1 h-px', className)} {...restProps} />diff --git a/src/lib/components/ui/select/select-trigger.svelte b/src/lib/components/ui/select/select-trigger.svelteindex a8c0da2fc..3af948d22 100644--- a/src/lib/components/ui/select/select-trigger.svelte+++ b/src/lib/components/ui/select/select-trigger.svelte@@ -1,24 +1,12 @@<script lang="ts">- import { Select as SelectPrimitive, type WithoutChild } from "bits-ui";- import ChevronDown from "@lucide/svelte/icons/chevron-down";- import { cn } from "$lib/utils.js";+ import { Select as SelectPrimitive, type WithoutChild } from 'bits-ui';+ import ChevronDown from '@lucide/svelte/icons/chevron-down';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithoutChild<SelectPrimitive.TriggerProps> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<SelectPrimitive.TriggerProps> = $props();</script>-<SelectPrimitive.Trigger- bind:ref- class={cn(- "border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",- className- )}- {...restProps}->+<SelectPrimitive.Trigger bind:ref class={cn('border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className)} {...restProps}>{@render children?.()}<ChevronDown class="size-4 opacity-50" /></SelectPrimitive.Trigger>diff --git a/src/lib/components/ui/separator/index.ts b/src/lib/components/ui/separator/index.tsindex 82442d2cd..768efac96 100644--- a/src/lib/components/ui/separator/index.ts+++ b/src/lib/components/ui/separator/index.ts@@ -1,7 +1,7 @@-import Root from "./separator.svelte";+import Root from './separator.svelte';export {Root,//- Root as Separator,+ Root as Separator};diff --git a/src/lib/components/ui/separator/separator.svelte b/src/lib/components/ui/separator/separator.svelteindex 839494d8b..00c765f48 100644--- a/src/lib/components/ui/separator/separator.svelte+++ b/src/lib/components/ui/separator/separator.svelte@@ -1,22 +1,8 @@<script lang="ts">- import { Separator as SeparatorPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Separator as SeparatorPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- orientation = "horizontal",- ...restProps- }: SeparatorPrimitive.RootProps = $props();+ let { ref = $bindable(null), class: className, orientation = 'horizontal', ...restProps }: SeparatorPrimitive.RootProps = $props();</script>-<SeparatorPrimitive.Root- bind:ref- class={cn(- "bg-border shrink-0",- orientation === "horizontal" ? "h-[1px] w-full" : "min-h-full w-[1px]",- className- )}- {orientation}- {...restProps}-/>+<SeparatorPrimitive.Root bind:ref class={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-[1px] w-full' : 'min-h-full w-[1px]', className)} {orientation} {...restProps} />diff --git a/src/lib/components/ui/sonner/index.ts b/src/lib/components/ui/sonner/index.tsindex 1ad9f4a2a..fcaf06bfb 100644--- a/src/lib/components/ui/sonner/index.ts+++ b/src/lib/components/ui/sonner/index.ts@@ -1 +1 @@-export { default as Toaster } from "./sonner.svelte";+export { default as Toaster } from './sonner.svelte';diff --git a/src/lib/components/ui/sonner/sonner.svelte b/src/lib/components/ui/sonner/sonner.svelteindex 0631191cb..d650006e2 100644--- a/src/lib/components/ui/sonner/sonner.svelte+++ b/src/lib/components/ui/sonner/sonner.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { Toaster as Sonner, type ToasterProps as SonnerProps } from "svelte-sonner";- import { mode } from "mode-watcher";+ import { Toaster as Sonner, type ToasterProps as SonnerProps } from 'svelte-sonner';+ import { mode } from 'mode-watcher';let { ...restProps }: SonnerProps = $props();</script>@@ -10,11 +10,11 @@class="toaster group"toastOptions={{classes: {- toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",- description: "group-[.toast]:text-muted-foreground",- actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",- cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",- },+ toast: 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',+ description: 'group-[.toast]:text-muted-foreground',+ actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',+ cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground'+ }}}{...restProps}/>diff --git a/src/lib/components/ui/switch/index.ts b/src/lib/components/ui/switch/index.tsindex f5533db72..129f8f5c3 100644--- a/src/lib/components/ui/switch/index.ts+++ b/src/lib/components/ui/switch/index.ts@@ -1,7 +1,7 @@-import Root from "./switch.svelte";+import Root from './switch.svelte';export {Root,//- Root as Switch,+ Root as Switch};diff --git a/src/lib/components/ui/switch/switch.svelte b/src/lib/components/ui/switch/switch.svelteindex 66b8b1eb3..784690cbb 100644--- a/src/lib/components/ui/switch/switch.svelte+++ b/src/lib/components/ui/switch/switch.svelte@@ -1,27 +1,10 @@<script lang="ts">- import { Switch as SwitchPrimitive, type WithoutChildrenOrChild } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Switch as SwitchPrimitive, type WithoutChildrenOrChild } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- checked = $bindable(false),- ...restProps- }: WithoutChildrenOrChild<SwitchPrimitive.RootProps> = $props();+ let { ref = $bindable(null), class: className, checked = $bindable(false), ...restProps }: WithoutChildrenOrChild<SwitchPrimitive.RootProps> = $props();</script>-<SwitchPrimitive.Root- bind:ref- bind:checked- class={cn(- "focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",- className- )}- {...restProps}->- <SwitchPrimitive.Thumb- class={cn(- "bg-background pointer-events-none block size-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"- )}- />+<SwitchPrimitive.Root bind:ref bind:checked class={cn('focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className)} {...restProps}>+ <SwitchPrimitive.Thumb class={cn('bg-background pointer-events-none block size-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0')} /></SwitchPrimitive.Root>diff --git a/src/lib/components/ui/table/index.ts b/src/lib/components/ui/table/index.tsindex 14695c815..99239aeea 100644--- a/src/lib/components/ui/table/index.ts+++ b/src/lib/components/ui/table/index.ts@@ -1,11 +1,11 @@-import Root from "./table.svelte";-import Body from "./table-body.svelte";-import Caption from "./table-caption.svelte";-import Cell from "./table-cell.svelte";-import Footer from "./table-footer.svelte";-import Head from "./table-head.svelte";-import Header from "./table-header.svelte";-import Row from "./table-row.svelte";+import Root from './table.svelte';+import Body from './table-body.svelte';+import Caption from './table-caption.svelte';+import Cell from './table-cell.svelte';+import Footer from './table-footer.svelte';+import Head from './table-head.svelte';+import Header from './table-header.svelte';+import Row from './table-row.svelte';export {Root,@@ -24,5 +24,5 @@ export {Footer as TableFooter,Head as TableHead,Header as TableHeader,- Row as TableRow,+ Row as TableRow};diff --git a/src/lib/components/ui/table/table-body.svelte b/src/lib/components/ui/table/table-body.svelteindex 6c20c017a..b2c62c80f 100644--- a/src/lib/components/ui/table/table-body.svelte+++ b/src/lib/components/ui/table/table-body.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();</script>-<tbody bind:this={ref} class={cn("[&_tr:last-child]:border-0", className)} {...restProps}>+<tbody bind:this={ref} class={cn('[&_tr:last-child]:border-0', className)} {...restProps}>{@render children?.()}</tbody>diff --git a/src/lib/components/ui/table/table-caption.svelte b/src/lib/components/ui/table/table-caption.svelteindex 2b0cba564..f83c51532 100644--- a/src/lib/components/ui/table/table-caption.svelte+++ b/src/lib/components/ui/table/table-caption.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();</script>-<caption bind:this={ref} class={cn("text-muted-foreground mt-4 text-sm", className)} {...restProps}>+<caption bind:this={ref} class={cn('text-muted-foreground mt-4 text-sm', className)} {...restProps}>{@render children?.()}</caption>diff --git a/src/lib/components/ui/table/table-cell.svelte b/src/lib/components/ui/table/table-cell.svelteindex 053655286..b1868edd4 100644--- a/src/lib/components/ui/table/table-cell.svelte+++ b/src/lib/components/ui/table/table-cell.svelte@@ -1,20 +1,11 @@<script lang="ts">- import type { HTMLTdAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLTdAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLTdAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTdAttributes> = $props();</script>-<td- bind:this={ref}- class={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)}- {...restProps}->+<td bind:this={ref} class={cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className)} {...restProps}>{@render children?.()}</td>diff --git a/src/lib/components/ui/table/table-footer.svelte b/src/lib/components/ui/table/table-footer.svelteindex 0267c47e0..2b6c1286f 100644--- a/src/lib/components/ui/table/table-footer.svelte+++ b/src/lib/components/ui/table/table-footer.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();</script>-<tfoot bind:this={ref} class={cn("bg-muted/50 font-medium", className)} {...restProps}>+<tfoot bind:this={ref} class={cn('bg-muted/50 font-medium', className)} {...restProps}>{@render children?.()}</tfoot>diff --git a/src/lib/components/ui/table/table-head.svelte b/src/lib/components/ui/table/table-head.svelteindex 5300ce62c..3097f77a9 100644--- a/src/lib/components/ui/table/table-head.svelte+++ b/src/lib/components/ui/table/table-head.svelte@@ -1,23 +1,11 @@<script lang="ts">- import type { HTMLThAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLThAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLThAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLThAttributes> = $props();</script>-<th- bind:this={ref}- class={cn(- "text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",- className- )}- {...restProps}->+<th bind:this={ref} class={cn('text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0', className)} {...restProps}>{@render children?.()}</th>diff --git a/src/lib/components/ui/table/table-header.svelte b/src/lib/components/ui/table/table-header.svelteindex 684a57b16..4234ee688 100644--- a/src/lib/components/ui/table/table-header.svelte+++ b/src/lib/components/ui/table/table-header.svelte@@ -1,16 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();</script>-<thead bind:this={ref} class={cn("[&_tr]:border-b", className)} {...restProps}>+<thead bind:this={ref} class={cn('[&_tr]:border-b', className)} {...restProps}>{@render children?.()}</thead>diff --git a/src/lib/components/ui/table/table-row.svelte b/src/lib/components/ui/table/table-row.svelteindex 9e693bc1e..c679f34ad 100644--- a/src/lib/components/ui/table/table-row.svelte+++ b/src/lib/components/ui/table/table-row.svelte@@ -1,23 +1,11 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLTableRowElement>> = $props();</script>-<tr- bind:this={ref}- class={cn(- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",- className- )}- {...restProps}->+<tr bind:this={ref} class={cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', className)} {...restProps}>{@render children?.()}</tr>diff --git a/src/lib/components/ui/table/table.svelte b/src/lib/components/ui/table/table.svelteindex e3a95b632..f04da242c 100644--- a/src/lib/components/ui/table/table.svelte+++ b/src/lib/components/ui/table/table.svelte@@ -1,18 +1,13 @@<script lang="ts">- import type { HTMLTableAttributes } from "svelte/elements";- import type { WithElementRef } from "bits-ui";- import { cn } from "$lib/utils.js";+ import type { HTMLTableAttributes } from 'svelte/elements';+ import type { WithElementRef } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLTableAttributes> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTableAttributes> = $props();</script><div class="relative w-full overflow-auto">- <table bind:this={ref} class={cn("w-full caption-bottom text-sm", className)} {...restProps}>+ <table bind:this={ref} class={cn('w-full caption-bottom text-sm', className)} {...restProps}>{@render children?.()}</table></div>diff --git a/src/lib/components/ui/tabs/index.ts b/src/lib/components/ui/tabs/index.tsindex f1ab372c6..00ecd7702 100644--- a/src/lib/components/ui/tabs/index.ts+++ b/src/lib/components/ui/tabs/index.ts@@ -1,7 +1,7 @@-import { Tabs as TabsPrimitive } from "bits-ui";-import Content from "./tabs-content.svelte";-import List from "./tabs-list.svelte";-import Trigger from "./tabs-trigger.svelte";+import { Tabs as TabsPrimitive } from 'bits-ui';+import Content from './tabs-content.svelte';+import List from './tabs-list.svelte';+import Trigger from './tabs-trigger.svelte';const Root = TabsPrimitive.Root;@@ -14,5 +14,5 @@ export {Root as Tabs,Content as TabsContent,List as TabsList,- Trigger as TabsTrigger,+ Trigger as TabsTrigger};diff --git a/src/lib/components/ui/tabs/tabs-content.svelte b/src/lib/components/ui/tabs/tabs-content.svelteindex f1c051570..0239be2a8 100644--- a/src/lib/components/ui/tabs/tabs-content.svelte+++ b/src/lib/components/ui/tabs/tabs-content.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { Tabs as TabsPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Tabs as TabsPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: TabsPrimitive.ContentProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.ContentProps = $props();</script>-<TabsPrimitive.Content- bind:ref- class={cn(- "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",- className- )}- {...restProps}-/>+<TabsPrimitive.Content bind:ref class={cn('ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2', className)} {...restProps} />diff --git a/src/lib/components/ui/tabs/tabs-list.svelte b/src/lib/components/ui/tabs/tabs-list.svelteindex f03e5fc73..23b706fdd 100644--- a/src/lib/components/ui/tabs/tabs-list.svelte+++ b/src/lib/components/ui/tabs/tabs-list.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { Tabs as TabsPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Tabs as TabsPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: TabsPrimitive.ListProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.ListProps = $props();</script>-<TabsPrimitive.List- bind:ref- class={cn(- "bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1",- className- )}- {...restProps}-/>+<TabsPrimitive.List bind:ref class={cn('bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1', className)} {...restProps} />diff --git a/src/lib/components/ui/tabs/tabs-trigger.svelte b/src/lib/components/ui/tabs/tabs-trigger.svelteindex f1f5825ec..c2462fe3f 100644--- a/src/lib/components/ui/tabs/tabs-trigger.svelte+++ b/src/lib/components/ui/tabs/tabs-trigger.svelte@@ -1,19 +1,8 @@<script lang="ts">- import { Tabs as TabsPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Tabs as TabsPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: TabsPrimitive.TriggerProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.TriggerProps = $props();</script>-<TabsPrimitive.Trigger- bind:ref- class={cn(- "ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",- className- )}- {...restProps}-/>+<TabsPrimitive.Trigger bind:ref class={cn('ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm', className)} {...restProps} />diff --git a/src/lib/components/ui/textarea/index.ts b/src/lib/components/ui/textarea/index.tsindex ace797a89..9ccb3bff3 100644--- a/src/lib/components/ui/textarea/index.ts+++ b/src/lib/components/ui/textarea/index.ts@@ -1,7 +1,7 @@-import Root from "./textarea.svelte";+import Root from './textarea.svelte';export {Root,//- Root as Textarea,+ Root as Textarea};diff --git a/src/lib/components/ui/textarea/textarea.svelte b/src/lib/components/ui/textarea/textarea.svelteindex 2616c2c1b..0304b9fa9 100644--- a/src/lib/components/ui/textarea/textarea.svelte+++ b/src/lib/components/ui/textarea/textarea.svelte@@ -1,22 +1,9 @@<script lang="ts">- import type { WithElementRef, WithoutChildren } from "bits-ui";- import type { HTMLTextareaAttributes } from "svelte/elements";- import { cn } from "$lib/utils.js";+ import type { WithElementRef, WithoutChildren } from 'bits-ui';+ import type { HTMLTextareaAttributes } from 'svelte/elements';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- value = $bindable(),- class: className,- ...restProps- }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();+ let { ref = $bindable(null), value = $bindable(), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();</script>-<textarea- bind:this={ref}- class={cn(- "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",- className- )}- bind:value- {...restProps}-></textarea>+<textarea bind:this={ref} class={cn('border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-base focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', className)} bind:value {...restProps}></textarea>diff --git a/src/lib/components/universal-modal.svelte b/src/lib/components/universal-modal.svelteindex 878a3fae7..4c5556085 100644--- a/src/lib/components/universal-modal.svelte+++ b/src/lib/components/universal-modal.svelte@@ -1,92 +1,82 @@<script lang="ts">- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- AlertCircle,- CheckCircle2,- Info,- AlertTriangle,- X,- } from "@lucide/svelte";+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { AlertCircle, CheckCircle2, Info, AlertTriangle, X } from '@lucide/svelte';- type MessageType = "success" | "error" | "warning" | "info";+ type MessageType = 'success' | 'error' | 'warning' | 'info';- let {- open = $bindable(false),- type = "info",- title = "",- message = "",- okText = "OK",- cancelText = "Cancel",- onConfirm = undefined,- showCancel = false,- }: {- open?: boolean;- type?: MessageType;- title?: string;- message?: string;- okText?: string;- cancelText?: string;- onConfirm?: () => void;- showCancel?: boolean;- } = $props();+ let {+ open = $bindable(false),+ type = 'info',+ title = '',+ message = '',+ okText = 'OK',+ cancelText = 'Cancel',+ onConfirm = undefined,+ showCancel = false+ }: {+ open?: boolean;+ type?: MessageType;+ title?: string;+ message?: string;+ okText?: string;+ cancelText?: string;+ onConfirm?: () => void;+ showCancel?: boolean;+ } = $props();- // Determine icon and color based on type- const iconMap = {- success: CheckCircle2,- error: AlertCircle,- warning: AlertTriangle,- info: Info,- };+ // Determine icon and color based on type+ const iconMap = {+ success: CheckCircle2,+ error: AlertCircle,+ warning: AlertTriangle,+ info: Info+ };- const colorMap = {- success: "text-green-500",- error: "text-red-500",- warning: "text-amber-500",- info: "text-blue-500",- };+ const colorMap = {+ success: 'text-green-500',+ error: 'text-red-500',+ warning: 'text-amber-500',+ info: 'text-blue-500'+ };- const Icon = iconMap[type];- const iconColor = colorMap[type];+ const Icon = iconMap[type];+ const iconColor = colorMap[type];- function handleConfirm() {- if (onConfirm) onConfirm();- open = false;- }+ function handleConfirm() {+ if (onConfirm) onConfirm();+ open = false;+ }</script><Dialog.Root bind:open>- <Dialog.Content class="sm:max-w-[425px]">- <div class="flex items-start gap-4">- <div class={`${iconColor} shrink-0`}>- <Icon class="h-6 w-6" />- </div>+ <Dialog.Content class="sm:max-w-[425px]">+ <div class="flex items-start gap-4">+ <div class={`${iconColor} shrink-0`}>+ <Icon class="h-6 w-6" />+ </div>- <div class="flex-1">- <Dialog.Header>- <Dialog.Title>{title}</Dialog.Title>- {#if message}- <Dialog.Description>- {message}- </Dialog.Description>- {/if}- </Dialog.Header>- </div>- </div>+ <div class="flex-1">+ <Dialog.Header>+ <Dialog.Title>{title}</Dialog.Title>+ {#if message}+ <Dialog.Description>+ {message}+ </Dialog.Description>+ {/if}+ </Dialog.Header>+ </div>+ </div>- <Dialog.Footer>- {#if showCancel}- <Button type="button" variant="outline" onclick={() => (open = false)}>- {cancelText}- </Button>- {/if}- <Button- type="button"- onclick={handleConfirm}- variant={type === "error" ? "destructive" : "default"}- >- {okText}- </Button>- </Dialog.Footer>- </Dialog.Content>+ <Dialog.Footer>+ {#if showCancel}+ <Button type="button" variant="outline" onclick={() => (open = false)}>+ {cancelText}+ </Button>+ {/if}+ <Button type="button" onclick={handleConfirm} variant={type === 'error' ? 'destructive' : 'default'}>+ {okText}+ </Button>+ </Dialog.Footer>+ </Dialog.Content></Dialog.Root>diff --git a/src/lib/components/universal-table.svelte b/src/lib/components/universal-table.svelteindex 8323bd2ce..95add9479 100644--- a/src/lib/components/universal-table.svelte+++ b/src/lib/components/universal-table.svelte@@ -1,354 +1,267 @@<script lang="ts" generics="TData extends object">- import {- getCoreRowModel,- getPaginationRowModel,- getSortedRowModel,- type SortingState,- getFilteredRowModel,- type ColumnFiltersState,- type RowData,- } from "@tanstack/table-core";- import {- createSvelteTable,- FlexRender,- } from "$lib/components/ui/data-table/index.js";- import * as Table from "$lib/components/ui/table/index.js";- import * as Pagination from "$lib/components/ui/pagination/index.js";- import * as Select from "$lib/components/ui/select/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { debounced } from "$lib/utils";- import { Checkbox } from "$lib/components/ui/checkbox/index.js";- import { ChevronDown } from "@lucide/svelte";- import { cn } from "$lib/utils";- import type { UniversalTableProps } from "$lib/types/table-types";+ import { getCoreRowModel, getPaginationRowModel, getSortedRowModel, type SortingState, getFilteredRowModel, type ColumnFiltersState, type RowData } from '@tanstack/table-core';+ import { createSvelteTable, FlexRender } from '$lib/components/ui/data-table/index.js';+ import * as Table from '$lib/components/ui/table/index.js';+ import * as Pagination from '$lib/components/ui/pagination/index.js';+ import * as Select from '$lib/components/ui/select/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { debounced } from '$lib/utils';+ import { Checkbox } from '$lib/components/ui/checkbox/index.js';+ import { ChevronDown } from '@lucide/svelte';+ import { cn } from '$lib/utils';+ import type { UniversalTableProps } from '$lib/types/table-types';- let {- data,- columns,- idKey,- features = {},- display = {},- pagination = {},- sort = {},- selectedIds = $bindable<string[]>([]),- }: UniversalTableProps<TData> & { idKey?: keyof TData } = $props();+ let { data, columns, idKey, features = {}, display = {}, pagination = {}, sort = {}, selectedIds = $bindable<string[]>([]) }: UniversalTableProps<TData> & { idKey?: keyof TData } = $props();- let {- sorting: enableSorting = true,- filtering: enableFiltering = true,- selection: enableSelection = true,- } = features;+ let { sorting: enableSorting = true, filtering: enableFiltering = true, selection: enableSelection = true } = features;- let {- pageSize: initialPageSize = 10,- pageSizeOptions = [10, 20, 50, 100],- itemsPerPageLabel = "Items per page",- } = pagination;+ let { pageSize: initialPageSize = 10, pageSizeOptions = [10, 20, 50, 100], itemsPerPageLabel = 'Items per page' } = pagination;- let {- filterPlaceholder = "Search...",- noResultsMessage = "No results found",- isDashboardTable = false,- class: className = "",- } = display;+ let { filterPlaceholder = 'Search...', noResultsMessage = 'No results found', isDashboardTable = false, class: className = '' } = display;- let { defaultSort = { id: "name", desc: false } } = sort;+ let { defaultSort = { id: 'name', desc: false } } = sort;- // Pagination state- let pageSize = $state(initialPageSize);- let pageIndex = $state(0);- let currentPage = $state(1);+ // Pagination state+ let pageSize = $state(initialPageSize);+ let pageIndex = $state(0);+ let currentPage = $state(1);- // Sorting state - Initialize with default sort- let sorting = $state<SortingState>(defaultSort ? [defaultSort] : []);+ // Sorting state - Initialize with default sort+ let sorting = $state<SortingState>(defaultSort ? [defaultSort] : []);- // Filtering state- let columnFilters = $state<ColumnFiltersState>([]);- let globalFilter = $state<string>("");- // Selection state- let selectedRowIds = $state<Record<string, boolean>>({});+ // Filtering state+ let columnFilters = $state<ColumnFiltersState>([]);+ let globalFilter = $state<string>('');+ // Selection state+ let selectedRowIds = $state<Record<string, boolean>>({});- $effect(() => {- // Update selected IDs array when row selection changes- selectedIds = Object.entries(selectedRowIds)- .filter(([_, selected]) => selected)- .map(([id]) => id);- });+ $effect(() => {+ // Update selected IDs array when row selection changes+ selectedIds = Object.entries(selectedRowIds)+ .filter(([_, selected]) => selected)+ .map(([id]) => id);+ });- // Sync pagination states- $effect(() => {- pageIndex = currentPage - 1;- });+ // Sync pagination states+ $effect(() => {+ pageIndex = currentPage - 1;+ });- $effect(() => {- const tablePageIndex = table.getState().pagination.pageIndex;- if (tablePageIndex !== pageIndex) {- currentPage = tablePageIndex + 1;- }- });+ $effect(() => {+ const tablePageIndex = table.getState().pagination.pageIndex;+ if (tablePageIndex !== pageIndex) {+ currentPage = tablePageIndex + 1;+ }+ });- // Create table instance- const table = createSvelteTable({- get data() {- return data;- },- columns,- getRowId: idKey- ? (originalRow: TData, index: number, parent?: RowData) => {- return String(originalRow[idKey]);- }- : undefined,- getCoreRowModel: getCoreRowModel(),- getPaginationRowModel: getPaginationRowModel(),- getSortedRowModel: enableSorting ? getSortedRowModel() : undefined,- getFilteredRowModel: enableFiltering ? getFilteredRowModel() : undefined,- state: {- get pagination() {- return {- pageIndex,- pageSize,- };- },- get sorting() {- return sorting;- },- get columnFilters() {- return columnFilters;- },- get globalFilter() {- return globalFilter;- },- get rowSelection() {- return selectedRowIds;- },- },- onSortingChange: (updater) => {- if (typeof updater === "function") {- sorting = updater(sorting);- } else {- sorting = updater;- }- },- onColumnFiltersChange: (updater) => {- if (typeof updater === "function") {- columnFilters = updater(columnFilters);- } else {- columnFilters = updater;- }- },- onGlobalFilterChange: (value) => {- globalFilter = value;- pageIndex = 0; // Reset to first page when filtering- currentPage = 1;- },- onRowSelectionChange: (updater) => {- if (typeof updater === "function") {- selectedRowIds = updater(selectedRowIds);- } else {- selectedRowIds = updater;- }- },- enableRowSelection: enableSelection,- });+ // Create table instance+ const table = createSvelteTable({+ get data() {+ return data;+ },+ columns,+ getRowId: idKey+ ? (originalRow: TData, index: number, parent?: RowData) => {+ return String(originalRow[idKey]);+ }+ : undefined,+ getCoreRowModel: getCoreRowModel(),+ getPaginationRowModel: getPaginationRowModel(),+ getSortedRowModel: enableSorting ? getSortedRowModel() : undefined,+ getFilteredRowModel: enableFiltering ? getFilteredRowModel() : undefined,+ state: {+ get pagination() {+ return {+ pageIndex,+ pageSize+ };+ },+ get sorting() {+ return sorting;+ },+ get columnFilters() {+ return columnFilters;+ },+ get globalFilter() {+ return globalFilter;+ },+ get rowSelection() {+ return selectedRowIds;+ }+ },+ onSortingChange: (updater) => {+ if (typeof updater === 'function') {+ sorting = updater(sorting);+ } else {+ sorting = updater;+ }+ },+ onColumnFiltersChange: (updater) => {+ if (typeof updater === 'function') {+ columnFilters = updater(columnFilters);+ } else {+ columnFilters = updater;+ }+ },+ onGlobalFilterChange: (value) => {+ globalFilter = value;+ pageIndex = 0; // Reset to first page when filtering+ currentPage = 1;+ },+ onRowSelectionChange: (updater) => {+ if (typeof updater === 'function') {+ selectedRowIds = updater(selectedRowIds);+ } else {+ selectedRowIds = updater;+ }+ },+ enableRowSelection: enableSelection+ });- const pageCount = $derived(table.getPageCount());- const filteredRowCount = $derived(table.getFilteredRowModel().rows.length);+ const pageCount = $derived(table.getPageCount());+ const filteredRowCount = $derived(table.getFilteredRowModel().rows.length);- // Handle global filtering with debounce- const handleFilterChange = debounced((value: string) => {- table.setGlobalFilter(value);- }, 300);+ // Handle global filtering with debounce+ const handleFilterChange = debounced((value: string) => {+ table.setGlobalFilter(value);+ }, 300);- // Check if all rows on current page are selected- const allRowsSelected = $derived(- table.getIsAllPageRowsSelected() && table.getRowModel().rows.length > 0- );+ // Check if all rows on current page are selected+ const allRowsSelected = $derived(table.getIsAllPageRowsSelected() && table.getRowModel().rows.length > 0);- // Handle page size change- function handlePageSizeChange(size: string | number) {- const sizeNumber = typeof size === "string" ? parseInt(size) : size;- pageSize = sizeNumber;- table.setPageSize(sizeNumber);- pageIndex = 0;- currentPage = 1;- }+ // Handle page size change+ function handlePageSizeChange(size: string | number) {+ const sizeNumber = typeof size === 'string' ? parseInt(size) : size;+ pageSize = sizeNumber;+ table.setPageSize(sizeNumber);+ pageIndex = 0;+ currentPage = 1;+ }</script>-<div class={cn("space-y-4", className, isDashboardTable && "dashboard-table")}>- {#if enableFiltering && !isDashboardTable}- <div class="flex items-center">- <Input- placeholder={filterPlaceholder}- value={globalFilter}- oninput={(e) => handleFilterChange(e.currentTarget.value)}- class="max-w-sm"- />- </div>- {/if}+<div class={cn('space-y-4', className, isDashboardTable && 'dashboard-table')}>+ {#if enableFiltering && !isDashboardTable}+ <div class="flex items-center">+ <Input placeholder={filterPlaceholder} value={globalFilter} oninput={(e) => handleFilterChange(e.currentTarget.value)} class="max-w-sm" />+ </div>+ {/if}- <div- class={cn(- "rounded-md border",- isDashboardTable && "border-none rounded-none"- )}- >- <Table.Root>- <Table.Header>- {#each table.getHeaderGroups() as headerGroup (headerGroup.id)}- <Table.Row>- {#if enableSelection}- <Table.Head class="w-12">- <Checkbox- checked={allRowsSelected}- onCheckedChange={(checked) =>- table.toggleAllPageRowsSelected(!!checked)}- />- </Table.Head>- {/if}- {#each headerGroup.headers as header (header.id)}- <Table.Head>- {#if !header.isPlaceholder}- {#if header.column.getCanSort()}- <Button- variant="ghost"- class="flex items-center p-0 hover:bg-transparent"- onclick={() =>- header.column.toggleSorting(- header.column.getIsSorted() === "asc"- )}- >- <FlexRender- content={header.column.columnDef.header}- context={header.getContext()}- />- {#if header.column.getIsSorted()}- <ChevronDown- class={cn(- "ml-2 h-4 w-4",- header.column.getIsSorted() === "asc"- ? "rotate-180"- : ""- )}- />- {/if}- </Button>- {:else}- <FlexRender- content={header.column.columnDef.header}- context={header.getContext()}- />- {/if}- {/if}- </Table.Head>- {/each}- </Table.Row>- {/each}- </Table.Header>- <Table.Body>- {#if table.getRowModel().rows.length > 0}- {#each table.getRowModel().rows as row (row.id)}- {@const isDisabled =- "isExternal" in row.original && !!row.original.isExternal}- <Table.Row data-state={row.getIsSelected() && "selected"}>- {#if enableSelection}- <Table.Cell class="w-12">- <Checkbox- checked={row.getIsSelected()}- disabled={isDisabled}- onCheckedChange={(checked) => {- // Only toggle if not disabled- if (!isDisabled) {- row.toggleSelected(!!checked);- }- }}- aria-label="Select row"- />- </Table.Cell>- {/if}- {#each row.getVisibleCells() as cell (cell.id)}- <Table.Cell>- <FlexRender- content={cell.column.columnDef.cell}- context={cell.getContext()}- />- </Table.Cell>- {/each}- </Table.Row>- {/each}- {:else}- <Table.Row>- <Table.Cell- colspan={enableSelection ? columns.length + 1 : columns.length}- class="h-24 text-center"- >- {noResultsMessage}- </Table.Cell>- </Table.Row>- {/if}- </Table.Body>- </Table.Root>- </div>+ <div class={cn('rounded-md border', isDashboardTable && 'border-none rounded-none')}>+ <Table.Root>+ <Table.Header>+ {#each table.getHeaderGroups() as headerGroup (headerGroup.id)}+ <Table.Row>+ {#if enableSelection}+ <Table.Head class="w-12">+ <Checkbox checked={allRowsSelected} onCheckedChange={(checked) => table.toggleAllPageRowsSelected(!!checked)} />+ </Table.Head>+ {/if}+ {#each headerGroup.headers as header (header.id)}+ <Table.Head>+ {#if !header.isPlaceholder}+ {#if header.column.getCanSort()}+ <Button variant="ghost" class="flex items-center p-0 hover:bg-transparent" onclick={() => header.column.toggleSorting(header.column.getIsSorted() === 'asc')}>+ <FlexRender content={header.column.columnDef.header} context={header.getContext()} />+ {#if header.column.getIsSorted()}+ <ChevronDown class={cn('ml-2 h-4 w-4', header.column.getIsSorted() === 'asc' ? 'rotate-180' : '')} />+ {/if}+ </Button>+ {:else}+ <FlexRender content={header.column.columnDef.header} context={header.getContext()} />+ {/if}+ {/if}+ </Table.Head>+ {/each}+ </Table.Row>+ {/each}+ </Table.Header>+ <Table.Body>+ {#if table.getRowModel().rows.length > 0}+ {#each table.getRowModel().rows as row (row.id)}+ {@const isDisabled = 'isExternal' in row.original && !!row.original.isExternal}+ <Table.Row data-state={row.getIsSelected() && 'selected'}>+ {#if enableSelection}+ <Table.Cell class="w-12">+ <Checkbox+ checked={row.getIsSelected()}+ disabled={isDisabled}+ onCheckedChange={(checked) => {+ // Only toggle if not disabled+ if (!isDisabled) {+ row.toggleSelected(!!checked);+ }+ }}+ aria-label="Select row"+ />+ </Table.Cell>+ {/if}+ {#each row.getVisibleCells() as cell (cell.id)}+ <Table.Cell>+ <FlexRender content={cell.column.columnDef.cell} context={cell.getContext()} />+ </Table.Cell>+ {/each}+ </Table.Row>+ {/each}+ {:else}+ <Table.Row>+ <Table.Cell colspan={enableSelection ? columns.length + 1 : columns.length} class="h-24 text-center">+ {noResultsMessage}+ </Table.Cell>+ </Table.Row>+ {/if}+ </Table.Body>+ </Table.Root>+ </div>- <!-- Pagination Controls -->- {#if (pageCount > 1 || pageSizeOptions.length > 1) && !isDashboardTable}- <div class="flex flex-col sm:flex-row items-center justify-between gap-4">- <div class="flex items-center gap-4">- <span class="text-sm my-auto">{itemsPerPageLabel}</span>- <Select.Root- type="single"- value={pageSize.toString()}- onValueChange={(value) => handlePageSizeChange(value)}- >- <Select.Trigger class="h-8 w-[70px]" id="pageSize">- <span>- {pageSize}- </span>- </Select.Trigger>- <Select.Content>- {#each pageSizeOptions as size}- <Select.Item value={size.toString()}>- {size}- </Select.Item>- {/each}- </Select.Content>- </Select.Root>- </div>+ <!-- Pagination Controls -->+ {#if (pageCount > 1 || pageSizeOptions.length > 1) && !isDashboardTable}+ <div class="flex flex-col sm:flex-row items-center justify-between gap-4">+ <div class="flex items-center gap-4">+ <span class="text-sm my-auto">{itemsPerPageLabel}</span>+ <Select.Root type="single" value={pageSize.toString()} onValueChange={(value) => handlePageSizeChange(value)}>+ <Select.Trigger class="h-8 w-[70px]" id="pageSize">+ <span>+ {pageSize}+ </span>+ </Select.Trigger>+ <Select.Content>+ {#each pageSizeOptions as size}+ <Select.Item value={size.toString()}>+ {size}+ </Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>+ </div>- <div class="ml-auto">- <Pagination.Root- count={filteredRowCount}- perPage={pageSize}- bind:page={currentPage}- >- {#snippet children({ pages, currentPage })}- <Pagination.Content>- <Pagination.Item>- <Pagination.PrevButton />- </Pagination.Item>- {#each pages as page (page.key)}- {#if page.type === "ellipsis"}- <Pagination.Item>- <Pagination.Ellipsis />- </Pagination.Item>- {:else}- <Pagination.Item>- <Pagination.Link- {page}- isActive={currentPage === page.value}- >- {page.value}- </Pagination.Link>- </Pagination.Item>- {/if}- {/each}- <Pagination.Item>- <Pagination.NextButton />- </Pagination.Item>- </Pagination.Content>- {/snippet}- </Pagination.Root>- </div>- </div>- {/if}+ <div class="ml-auto">+ <Pagination.Root count={filteredRowCount} perPage={pageSize} bind:page={currentPage}>+ {#snippet children({ pages, currentPage })}+ <Pagination.Content>+ <Pagination.Item>+ <Pagination.PrevButton />+ </Pagination.Item>+ {#each pages as page (page.key)}+ {#if page.type === 'ellipsis'}+ <Pagination.Item>+ <Pagination.Ellipsis />+ </Pagination.Item>+ {:else}+ <Pagination.Item>+ <Pagination.Link {page} isActive={currentPage === page.value}>+ {page.value}+ </Pagination.Link>+ </Pagination.Item>+ {/if}+ {/each}+ <Pagination.Item>+ <Pagination.NextButton />+ </Pagination.Item>+ </Pagination.Content>+ {/snippet}+ </Pagination.Root>+ </div>+ </div>+ {/if}</div>diff --git a/src/lib/components/yaml-editor.svelte b/src/lib/components/yaml-editor.svelteindex 900be4e50..c5faf1408 100644--- a/src/lib/components/yaml-editor.svelte+++ b/src/lib/components/yaml-editor.svelte@@ -1,92 +1,78 @@<script lang="ts">- import CodeMirror from "svelte-codemirror-editor";- import { yaml } from "@codemirror/lang-yaml";- import { linter, lintGutter } from "@codemirror/lint";- import { browser } from "$app/environment";- import jsyaml from "js-yaml";- import { createEventDispatcher } from "svelte";- import { oneDark } from "@codemirror/theme-one-dark";+ import CodeMirror from 'svelte-codemirror-editor';+ import { yaml } from '@codemirror/lang-yaml';+ import { linter, lintGutter } from '@codemirror/lint';+ import { browser } from '$app/environment';+ import jsyaml from 'js-yaml';+ import { createEventDispatcher } from 'svelte';+ import { oneDark } from '@codemirror/theme-one-dark';- const dispatch = createEventDispatcher();+ const dispatch = createEventDispatcher();- let {- value = $bindable(""),- height = "400px",- placeholder = "Enter YAML content",- forceDarkTheme = true,- readOnly = false,- } = $props();+ let { value = $bindable(''), height = '400px', placeholder = 'Enter YAML content', forceDarkTheme = true, readOnly = false } = $props();- let darkMode = $state(forceDarkTheme || false);+ let darkMode = $state(forceDarkTheme || false);- // Check for dark mode preference- $effect(() => {- if (browser) {- darkMode =- forceDarkTheme ||- window.matchMedia("(prefers-color-scheme: dark)").matches ||- document.documentElement.classList.contains("dark");- }- });+ // Check for dark mode preference+ $effect(() => {+ if (browser) {+ darkMode = forceDarkTheme || window.matchMedia('(prefers-color-scheme: dark)').matches || document.documentElement.classList.contains('dark');+ }+ });- // YAML linting function- function yamlLinter(view: { state: { doc: { toString(): string } } }) {- const diagnostics = [];- try {- jsyaml.load(view.state.doc.toString());- } catch (e: unknown) {- const err = e as { mark?: { position: number }; message: string };- const start = err.mark?.position || 0;- const end = err.mark?.position !== undefined ? err.mark.position + 1 : 1;- diagnostics.push({- from: start,- to: end,- severity: "error" as const,- message: err.message,- });- }- return diagnostics;- }+ // YAML linting function+ function yamlLinter(view: { state: { doc: { toString(): string } } }) {+ const diagnostics = [];+ try {+ jsyaml.load(view.state.doc.toString());+ } catch (e: unknown) {+ const err = e as { mark?: { position: number }; message: string };+ const start = err.mark?.position || 0;+ const end = err.mark?.position !== undefined ? err.mark.position + 1 : 1;+ diagnostics.push({+ from: start,+ to: end,+ severity: 'error' as const,+ message: err.message+ });+ }+ return diagnostics;+ }- const extensions = $derived([- yaml(),- lintGutter(),- linter(yamlLinter),- darkMode ? oneDark : [],- ]);+ const extensions = $derived([yaml(), lintGutter(), linter(yamlLinter), darkMode ? oneDark : []]);- function handleChange(e: Event) {- // No need to dispatch if readOnly- if (readOnly) return;- const target = e.target as HTMLInputElement;- value = target.value;- dispatch("change", { value });- }+ function handleChange(e: Event) {+ // No need to dispatch if readOnly+ if (readOnly) return;+ const target = e.target as HTMLInputElement;+ value = target.value;+ dispatch('change', { value });+ }</script>{#if browser}- <div class="border rounded-md overflow-hidden">- <CodeMirror- bind:value- on:change={handleChange}- {extensions}- styles={{- "&": {- height,- fontSize: "14px",- fontFamily: "JetBrains Mono, Menlo, Monaco, Consolas, monospace",- },- // Optionally add styles for read-only state- "&.cm-editor[contenteditable=false]": {- backgroundColor: "#f8f8f8", // Example: slightly different background- cursor: "not-allowed",- },- ".cm-content[contenteditable=false]": {- cursor: "not-allowed",- },- }}- {placeholder}- readonly={readOnly}- />- </div>+ <div class="border rounded-md overflow-hidden">+ <CodeMirror+ bind:value+ on:change={handleChange}+ {extensions}+ styles={{+ '&': {+ height,+ fontSize: '14px',+ fontFamily: 'JetBrains Mono, Menlo, Monaco, Consolas, monospace'+ },+ // Optionally add styles for read-only state+ '&.cm-editor[contenteditable=false]': {+ backgroundColor: '#f8f8f8', // Example: slightly different background+ cursor: 'not-allowed'+ },+ '.cm-content[contenteditable=false]': {+ cursor: 'not-allowed'+ }+ }}+ {placeholder}+ readonly={readOnly}+ />+ </div>{/if}diff --git a/src/lib/services/app-config-service.ts b/src/lib/services/app-config-service.tsindex a19b4358d..2fde1cf14 100644--- a/src/lib/services/app-config-service.ts+++ b/src/lib/services/app-config-service.ts@@ -1,62 +1,59 @@-import { version as currentVersion } from "$app/environment";-import type { AppVersionInformation } from "$lib/types/application-configuration";+import { version as currentVersion } from '$app/environment';+import type { AppVersionInformation } from '$lib/types/application-configuration';export default class AppConfigService {- /**- * Fetches version information from GitHub or a configured API- */- async getVersionInformation(): Promise<AppVersionInformation> {- try {- // GitHub API URL for releases - adjust with your repository details- const apiUrl = "https://api.github.com/repos/ofkm/arcane/releases/latest";-- const response = await fetch(apiUrl);- if (!response.ok) {- throw new Error(`Failed to fetch version info: ${response.status}`);- }-- const data = await response.json();-- // GitHub release tag usually starts with 'v' (e.g., 'v1.0.0')- // Remove the 'v' prefix if present to compare versions properly- const newestVersion = data.tag_name.replace(/^v/, "");- const currentVersionClean = currentVersion.replace(/^v/, "");-- // Simple version comparison (you might want a more robust solution)- const updateAvailable = this.isNewerVersion(- newestVersion,- currentVersionClean- );-- return {- currentVersion: currentVersion,- newestVersion: newestVersion,- updateAvailable: updateAvailable,- releaseUrl: data.html_url,- releaseNotes: data.body,- };- } catch (error) {- console.error("Error fetching version information:", error);- // Return only current version if fetch fails- return { currentVersion };- }- }-- /**- * Compare versions to determine if an update is available- * Simple version comparison, assumes semantic versioning (x.y.z)- */- private isNewerVersion(latest: string, current: string): boolean {- if (!latest || !current) return false;-- const latestParts = latest.split(".").map(Number);- const currentParts = current.split(".").map(Number);-- for (let i = 0; i < 3; i++) {- if ((latestParts[i] || 0) > (currentParts[i] || 0)) return true;- if ((latestParts[i] || 0) < (currentParts[i] || 0)) return false;- }-- return false; // Versions are equal- }+ /**+ * Fetches version information from GitHub or a configured API+ */+ async getVersionInformation(): Promise<AppVersionInformation> {+ try {+ // GitHub API URL for releases - adjust with your repository details+ const apiUrl = 'https://api.github.com/repos/ofkm/arcane/releases/latest';++ const response = await fetch(apiUrl);+ if (!response.ok) {+ throw new Error(`Failed to fetch version info: ${response.status}`);+ }++ const data = await response.json();++ // GitHub release tag usually starts with 'v' (e.g., 'v1.0.0')+ // Remove the 'v' prefix if present to compare versions properly+ const newestVersion = data.tag_name.replace(/^v/, '');+ const currentVersionClean = currentVersion.replace(/^v/, '');++ // Simple version comparison (you might want a more robust solution)+ const updateAvailable = this.isNewerVersion(newestVersion, currentVersionClean);++ return {+ currentVersion: currentVersion,+ newestVersion: newestVersion,+ updateAvailable: updateAvailable,+ releaseUrl: data.html_url,+ releaseNotes: data.body+ };+ } catch (error) {+ console.error('Error fetching version information:', error);+ // Return only current version if fetch fails+ return { currentVersion };+ }+ }++ /**+ * Compare versions to determine if an update is available+ * Simple version comparison, assumes semantic versioning (x.y.z)+ */+ private isNewerVersion(latest: string, current: string): boolean {+ if (!latest || !current) return false;++ const latestParts = latest.split('.').map(Number);+ const currentParts = current.split('.').map(Number);++ for (let i = 0; i < 3; i++) {+ if ((latestParts[i] || 0) > (currentParts[i] || 0)) return true;+ if ((latestParts[i] || 0) < (currentParts[i] || 0)) return false;+ }++ return false; // Versions are equal+ }}diff --git a/src/lib/services/compose.ts b/src/lib/services/compose.tsindex af6d3ba28..a188b7154 100644--- a/src/lib/services/compose.ts+++ b/src/lib/services/compose.ts@@ -1,37 +1,32 @@-import { promises as fs } from "fs";-import { join } from "path";-import DockerodeCompose from "dockerode-compose";-import { getDockerClient } from "./docker-service";-import { nanoid } from "nanoid";-import type {- Stack,- StackMeta,- StackService,- StackUpdate,-} from "$lib/types/stack";-import yaml from "js-yaml";-import { getSettings, ensureStacksDirectory } from "./settings-service";+import { promises as fs } from 'fs';+import { join } from 'path';+import DockerodeCompose from 'dockerode-compose';+import { getDockerClient } from './docker-service';+import { nanoid } from 'nanoid';+import type { Stack, StackMeta, StackService, StackUpdate } from '$lib/types/stack';+import yaml from 'js-yaml';+import { getSettings, ensureStacksDirectory } from './settings-service';// This will be populated on initialization-let STACKS_DIR = "";+let STACKS_DIR = '';/*** Initialize the compose service with settings* This should be called at app startup*/export async function initComposeService(): Promise<void> {- try {- // Get settings to initialize the stacks directory- const settings = await getSettings();- STACKS_DIR = settings.stacksDirectory;- console.log(`Stacks directory initialized: ${STACKS_DIR}`);-- // Ensure the directory exists- await ensureStacksDir();- } catch (err) {- console.error("Error initializing compose service:", err);- // We'll initialize again when needed in other functions- }+ try {+ // Get settings to initialize the stacks directory+ const settings = await getSettings();+ STACKS_DIR = settings.stacksDirectory;+ console.log(`Stacks directory initialized: ${STACKS_DIR}`);++ // Ensure the directory exists+ await ensureStacksDir();+ } catch (err) {+ console.error('Error initializing compose service:', err);+ // We'll initialize again when needed in other functions+ }}/**@@ -39,30 +34,30 @@ export async function initComposeService(): Promise<void> {* @param {string} directory New stacks directory path*/export function updateStacksDirectory(directory: string): void {- if (directory) {- STACKS_DIR = directory;- console.log(`Stacks directory updated to: ${STACKS_DIR}`);- }+ if (directory) {+ STACKS_DIR = directory;+ console.log(`Stacks directory updated to: ${STACKS_DIR}`);+ }}/*** Ensure stacks directory exists and return the path*/async function ensureStacksDir(): Promise<string> {- try {- // If STACKS_DIR is empty, initialize from settings- if (!STACKS_DIR) {- // Get from settings service- STACKS_DIR = await ensureStacksDirectory();- } else {- // Just ensure the directory exists- await fs.mkdir(STACKS_DIR, { recursive: true });- }- return STACKS_DIR;- } catch (err) {- console.error("Error creating stacks directory:", err);- throw new Error("Failed to create stacks storage directory");- }+ try {+ // If STACKS_DIR is empty, initialize from settings+ if (!STACKS_DIR) {+ // Get from settings service+ STACKS_DIR = await ensureStacksDirectory();+ } else {+ // Just ensure the directory exists+ await fs.mkdir(STACKS_DIR, { recursive: true });+ }+ return STACKS_DIR;+ } catch (err) {+ console.error('Error creating stacks directory:', err);+ throw new Error('Failed to create stacks storage directory');+ }}/**@@ -70,8 +65,8 @@ async function ensureStacksDir(): Promise<string> {* @param {string} stackId*/async function getStackDir(stackId: string): Promise<string> {- const stacksDir = await ensureStacksDir();- return join(stacksDir, stackId);+ const stacksDir = await ensureStacksDir();+ return join(stacksDir, stackId);}/**@@ -79,8 +74,8 @@ async function getStackDir(stackId: string): Promise<string> {* @param {string} stackId*/async function getComposeFilePath(stackId: string): Promise<string> {- const stackDir = await getStackDir(stackId);- return join(stackDir, "docker-compose.yml");+ const stackDir = await getStackDir(stackId);+ return join(stackDir, 'docker-compose.yml');}/**@@ -88,8 +83,8 @@ async function getComposeFilePath(stackId: string): Promise<string> {* @param {string} stackId*/async function getStackMetaPath(stackId: string): Promise<string> {- const stackDir = await getStackDir(stackId);- return join(stackDir, "meta.json");+ const stackDir = await getStackDir(stackId);+ return join(stackDir, 'meta.json');}/**@@ -97,9 +92,9 @@ async function getStackMetaPath(stackId: string): Promise<string> {* @param {string} stackId*/async function getComposeInstance(stackId: string): Promise<DockerodeCompose> {- const docker = getDockerClient();- const composePath = await getComposeFilePath(stackId);- return new DockerodeCompose(docker, composePath, stackId);+ const docker = getDockerClient();+ const composePath = await getComposeFilePath(stackId);+ return new DockerodeCompose(docker, composePath, stackId);}/**@@ -107,91 +102,85 @@ async function getComposeInstance(stackId: string): Promise<DockerodeCompose> {* @param {string} stackId Stack ID* @param {string} composeContent Compose file content*/-async function getStackServices(- stackId: string,- composeContent: string-): Promise<StackService[]> {- const docker = getDockerClient();-- try {- // Parse the compose file to get service names- const composeData = yaml.load(composeContent) as any;- if (!composeData || !composeData.services) {- return [];- }-- const serviceNames = Object.keys(composeData.services);-- // First, list all containers- const containers = await docker.listContainers({ all: true });-- // Filter containers related to this stack based on naming convention- // DockerodeCompose prepends the project name to container names- const stackPrefix = `${stackId}_`;- const stackContainers = containers.filter((container) => {- const names = container.Names || [];- return names.some((name) => name.startsWith(`/${stackPrefix}`));- });-- // Map containerData to our StackService format- const services: StackService[] = [];-- for (const containerData of stackContainers) {- // Extract service name by removing stack prefix from container name- let containerName = containerData.Names?.[0] || "";- // Remove the leading slash and the stack prefix- containerName = containerName.substring(1); // Remove the leading slash-- // Find the service name by removing prefix- let serviceName = "";- for (const name of serviceNames) {- if (- containerName.startsWith(`${stackId}_${name}_`) ||- containerName === `${stackId}_${name}`- ) {- serviceName = name;- break;- }- }-- if (!serviceName) {- // In case we can't determine the service name, use the container name- serviceName = containerName;- }-- const service: StackService = {- id: containerData.Id,- name: serviceName,- state: {- Running: containerData.State === "running",- Status: containerData.State,- ExitCode: 0, // Would need to get container inspect data for this- },- };-- services.push(service);- }-- // Add services from compose file that don't have containers yet- for (const name of serviceNames) {- if (!services.some((s) => s.name === name)) {- services.push({- id: "",- name: name,- state: {- Running: false,- Status: "not created",- ExitCode: 0,- },- });- }- }-- return services;- } catch (err) {- console.error(`Error getting services for stack ${stackId}:`, err);- return [];- }+async function getStackServices(stackId: string, composeContent: string): Promise<StackService[]> {+ const docker = getDockerClient();++ try {+ // Parse the compose file to get service names+ const composeData = yaml.load(composeContent) as any;+ if (!composeData || !composeData.services) {+ return [];+ }++ const serviceNames = Object.keys(composeData.services);++ // First, list all containers+ const containers = await docker.listContainers({ all: true });++ // Filter containers related to this stack based on naming convention+ // DockerodeCompose prepends the project name to container names+ const stackPrefix = `${stackId}_`;+ const stackContainers = containers.filter((container) => {+ const names = container.Names || [];+ return names.some((name) => name.startsWith(`/${stackPrefix}`));+ });++ // Map containerData to our StackService format+ const services: StackService[] = [];++ for (const containerData of stackContainers) {+ // Extract service name by removing stack prefix from container name+ let containerName = containerData.Names?.[0] || '';+ // Remove the leading slash and the stack prefix+ containerName = containerName.substring(1); // Remove the leading slash++ // Find the service name by removing prefix+ let serviceName = '';+ for (const name of serviceNames) {+ if (containerName.startsWith(`${stackId}_${name}_`) || containerName === `${stackId}_${name}`) {+ serviceName = name;+ break;+ }+ }++ if (!serviceName) {+ // In case we can't determine the service name, use the container name+ serviceName = containerName;+ }++ const service: StackService = {+ id: containerData.Id,+ name: serviceName,+ state: {+ Running: containerData.State === 'running',+ Status: containerData.State,+ ExitCode: 0 // Would need to get container inspect data for this+ }+ };++ services.push(service);+ }++ // Add services from compose file that don't have containers yet+ for (const name of serviceNames) {+ if (!services.some((s) => s.name === name)) {+ services.push({+ id: '',+ name: name,+ state: {+ Running: false,+ Status: 'not created',+ ExitCode: 0+ }+ });+ }+ }++ return services;+ } catch (err) {+ console.error(`Error getting services for stack ${stackId}:`, err);+ return [];+ }}/**@@ -199,57 +188,54 @@ async function getStackServices(* @returns {Promise<Array<Stack>>} List of stacks*/export async function loadComposeStacks(): Promise<Stack[]> {- const stacksDir = await ensureStacksDir();-- try {- const stackDirs = await fs.readdir(stacksDir);- const stacks: Stack[] = [];-- for (const dir of stackDirs) {- try {- const metaPath = await getStackMetaPath(dir);- const composePath = await getComposeFilePath(dir);-- const [metaContent, composeContent] = await Promise.all([- fs.readFile(metaPath, "utf8"),- fs.readFile(composePath, "utf8"),- ]);-- const meta = JSON.parse(metaContent) as StackMeta;-- // Get services and their status- const services = await getStackServices(dir, composeContent);-- const serviceCount = services.length;- const runningCount = services.filter((s) => s.state?.Running).length;-- let status: Stack["status"] = "stopped";- if (runningCount === serviceCount && serviceCount > 0) {- status = "running";- } else if (runningCount > 0) {- status = "partially running";- }-- stacks.push({- id: dir,- name: meta.name,- serviceCount,- runningCount,- status,- createdAt: meta.createdAt,- updatedAt: meta.updatedAt,- });- } catch (err) {- console.warn(`Error loading stack ${dir}:`, err);- // Skip this stack if we can't load it- }- }-- return stacks;- } catch (err) {- console.error("Error loading stacks:", err);- throw new Error("Failed to load compose stacks");- }+ const stacksDir = await ensureStacksDir();++ try {+ const stackDirs = await fs.readdir(stacksDir);+ const stacks: Stack[] = [];++ for (const dir of stackDirs) {+ try {+ const metaPath = await getStackMetaPath(dir);+ const composePath = await getComposeFilePath(dir);++ const [metaContent, composeContent] = await Promise.all([fs.readFile(metaPath, 'utf8'), fs.readFile(composePath, 'utf8')]);++ const meta = JSON.parse(metaContent) as StackMeta;++ // Get services and their status+ const services = await getStackServices(dir, composeContent);++ const serviceCount = services.length;+ const runningCount = services.filter((s) => s.state?.Running).length;++ let status: Stack['status'] = 'stopped';+ if (runningCount === serviceCount && serviceCount > 0) {+ status = 'running';+ } else if (runningCount > 0) {+ status = 'partially running';+ }++ stacks.push({+ id: dir,+ name: meta.name,+ serviceCount,+ runningCount,+ status,+ createdAt: meta.createdAt,+ updatedAt: meta.updatedAt+ });+ } catch (err) {+ console.warn(`Error loading stack ${dir}:`, err);+ // Skip this stack if we can't load it+ }+ }++ return stacks;+ } catch (err) {+ console.error('Error loading stacks:', err);+ throw new Error('Failed to load compose stacks');+ }}/**@@ -257,48 +243,45 @@ export async function loadComposeStacks(): Promise<Stack[]> {* @param {string} stackId*/export async function getStack(stackId: string): Promise<Stack> {- try {- const metaPath = await getStackMetaPath(stackId);- const composePath = await getComposeFilePath(stackId);-- const [metaContent, composeContent] = await Promise.all([- fs.readFile(metaPath, "utf8"),- fs.readFile(composePath, "utf8"),- ]);-- const meta = JSON.parse(metaContent) as StackMeta;-- // Get services status- const services = await getStackServices(stackId, composeContent);- const compose = await getComposeInstance(stackId);-- const serviceCount = services.length;- const runningCount = services.filter((s) => s.state?.Running).length;-- let status: Stack["status"] = "stopped";- if (runningCount === serviceCount && serviceCount > 0) {- status = "running";- } else if (runningCount > 0) {- status = "partially running";- }-- return {- id: stackId,- name: meta.name,- services,- serviceCount,- runningCount,- status,- createdAt: meta.createdAt,- updatedAt: meta.updatedAt,- composeContent,- // We don't include the compose instance directly in the returned object- // as it may not serialize properly and isn't needed in the UI- };- } catch (err) {- console.error(`Error getting stack ${stackId}:`, err);- throw new Error(`Stack not found or cannot be accessed`);- }+ try {+ const metaPath = await getStackMetaPath(stackId);+ const composePath = await getComposeFilePath(stackId);++ const [metaContent, composeContent] = await Promise.all([fs.readFile(metaPath, 'utf8'), fs.readFile(composePath, 'utf8')]);++ const meta = JSON.parse(metaContent) as StackMeta;++ // Get services status+ const services = await getStackServices(stackId, composeContent);+ const compose = await getComposeInstance(stackId);++ const serviceCount = services.length;+ const runningCount = services.filter((s) => s.state?.Running).length;++ let status: Stack['status'] = 'stopped';+ if (runningCount === serviceCount && serviceCount > 0) {+ status = 'running';+ } else if (runningCount > 0) {+ status = 'partially running';+ }++ return {+ id: stackId,+ name: meta.name,+ services,+ serviceCount,+ runningCount,+ status,+ createdAt: meta.createdAt,+ updatedAt: meta.updatedAt,+ composeContent+ // We don't include the compose instance directly in the returned object+ // as it may not serialize properly and isn't needed in the UI+ };+ } catch (err) {+ console.error(`Error getting stack ${stackId}:`, err);+ throw new Error(`Stack not found or cannot be accessed`);+ }}/**@@ -306,65 +289,53 @@ export async function getStack(stackId: string): Promise<Stack> {* @param {string} name Stack name* @param {string} composeContent Compose file content*/-export async function createStack(- name: string,- composeContent: string-): Promise<Stack> {- const stackId = nanoid(); // Generate ID here- const stackDir = await getStackDir(stackId); // Use the generated ID- const composePath = join(stackDir, "docker-compose.yml");- const metaPath = join(stackDir, "meta.json");-- const meta: StackMeta = {- name,- createdAt: new Date().toISOString(),- updatedAt: new Date().toISOString(),- };-- try {- await fs.mkdir(stackDir, { recursive: true });- await Promise.all([- fs.writeFile(composePath, composeContent, "utf8"),- fs.writeFile(metaPath, JSON.stringify(meta, null, 2), "utf8"),- ]);-- // Parse the compose content to estimate service count initially- let serviceCount = 0;- try {- const composeData = yaml.load(composeContent) as any;- if (composeData && composeData.services) {- serviceCount = Object.keys(composeData.services).length;- }- } catch (parseErr) {- console.warn(- `Could not parse compose file during creation for stack ${stackId}:`,- parseErr- );- }-- return {- id: stackId, // Return the generated ID- name: meta.name,- serviceCount: serviceCount, // Initial estimate- runningCount: 0,- status: "stopped",- createdAt: meta.createdAt,- updatedAt: meta.updatedAt,- composeContent: composeContent, // Include content for immediate use if needed- };- } catch (err) {- console.error("Error creating stack:", err);- // Attempt to clean up if creation failed partially- try {- await fs.rm(stackDir, { recursive: true, force: true });- } catch (cleanupErr) {- console.error(- `Failed to cleanup partially created stack directory ${stackDir}:`,- cleanupErr- );- }- throw new Error("Failed to create stack files");- }+export async function createStack(name: string, composeContent: string): Promise<Stack> {+ const stackId = nanoid(); // Generate ID here+ const stackDir = await getStackDir(stackId); // Use the generated ID+ const composePath = join(stackDir, 'docker-compose.yml');+ const metaPath = join(stackDir, 'meta.json');++ const meta: StackMeta = {+ name,+ createdAt: new Date().toISOString(),+ updatedAt: new Date().toISOString()+ };++ try {+ await fs.mkdir(stackDir, { recursive: true });+ await Promise.all([fs.writeFile(composePath, composeContent, 'utf8'), fs.writeFile(metaPath, JSON.stringify(meta, null, 2), 'utf8')]);++ // Parse the compose content to estimate service count initially+ let serviceCount = 0;+ try {+ const composeData = yaml.load(composeContent) as any;+ if (composeData && composeData.services) {+ serviceCount = Object.keys(composeData.services).length;+ }+ } catch (parseErr) {+ console.warn(`Could not parse compose file during creation for stack ${stackId}:`, parseErr);+ }++ return {+ id: stackId, // Return the generated ID+ name: meta.name,+ serviceCount: serviceCount, // Initial estimate+ runningCount: 0,+ status: 'stopped',+ createdAt: meta.createdAt,+ updatedAt: meta.updatedAt,+ composeContent: composeContent // Include content for immediate use if needed+ };+ } catch (err) {+ console.error('Error creating stack:', err);+ // Attempt to clean up if creation failed partially+ try {+ await fs.rm(stackDir, { recursive: true, force: true });+ } catch (cleanupErr) {+ console.error(`Failed to cleanup partially created stack directory ${stackDir}:`, cleanupErr);+ }+ throw new Error('Failed to create stack files');+ }}/**@@ -372,64 +343,58 @@ export async function createStack(* @param {string} stackId Stack ID* @param {StackUpdate} updates Updates to apply*/-export async function updateStack(- stackId: string,- updates: StackUpdate-): Promise<Stack> {- const metaPath = await getStackMetaPath(stackId);- const composePath = await getComposeFilePath(stackId);-- try {- // Read existing meta- const metaContent = await fs.readFile(metaPath, "utf8");- const meta = JSON.parse(metaContent) as StackMeta;-- // Update meta- const updatedMeta: StackMeta = {- ...meta,- name: updates.name || meta.name,- updatedAt: new Date().toISOString(),- };-- // Write updated files- const promises = [- fs.writeFile(metaPath, JSON.stringify(updatedMeta, null, 2), "utf8"),- ];-- if (updates.composeContent) {- promises.push(fs.writeFile(composePath, updates.composeContent, "utf8"));- }-- await Promise.all(promises);-- // Now get the updated stack status- const composeContent =- updates.composeContent || (await fs.readFile(composePath, "utf8"));- const services = await getStackServices(stackId, composeContent);-- const serviceCount = services.length;- const runningCount = services.filter((s) => s.state?.Running).length;-- let status: Stack["status"] = "stopped";- if (runningCount === serviceCount && serviceCount > 0) {- status = "running";- } else if (runningCount > 0) {- status = "partially running";- }-- return {- id: stackId,- name: updatedMeta.name,- serviceCount,- runningCount,- status,- createdAt: updatedMeta.createdAt,- updatedAt: updatedMeta.updatedAt,- };- } catch (err) {- console.error(`Error updating stack ${stackId}:`, err);- throw new Error("Failed to update stack");- }+export async function updateStack(stackId: string, updates: StackUpdate): Promise<Stack> {+ const metaPath = await getStackMetaPath(stackId);+ const composePath = await getComposeFilePath(stackId);++ try {+ // Read existing meta+ const metaContent = await fs.readFile(metaPath, 'utf8');+ const meta = JSON.parse(metaContent) as StackMeta;++ // Update meta+ const updatedMeta: StackMeta = {+ ...meta,+ name: updates.name || meta.name,+ updatedAt: new Date().toISOString()+ };++ // Write updated files+ const promises = [fs.writeFile(metaPath, JSON.stringify(updatedMeta, null, 2), 'utf8')];++ if (updates.composeContent) {+ promises.push(fs.writeFile(composePath, updates.composeContent, 'utf8'));+ }++ await Promise.all(promises);++ // Now get the updated stack status+ const composeContent = updates.composeContent || (await fs.readFile(composePath, 'utf8'));+ const services = await getStackServices(stackId, composeContent);++ const serviceCount = services.length;+ const runningCount = services.filter((s) => s.state?.Running).length;++ let status: Stack['status'] = 'stopped';+ if (runningCount === serviceCount && serviceCount > 0) {+ status = 'running';+ } else if (runningCount > 0) {+ status = 'partially running';+ }++ return {+ id: stackId,+ name: updatedMeta.name,+ serviceCount,+ runningCount,+ status,+ createdAt: updatedMeta.createdAt,+ updatedAt: updatedMeta.updatedAt+ };+ } catch (err) {+ console.error(`Error updating stack ${stackId}:`, err);+ throw new Error('Failed to update stack');+ }}/**@@ -437,16 +402,16 @@ export async function updateStack(* @param {string} stackId Stack ID*/export async function startStack(stackId: string): Promise<boolean> {- try {- const compose = await getComposeInstance(stackId);- await compose.pull();- await compose.up();- return true;- } catch (err: unknown) {- console.error(`Error starting stack ${stackId}:`, err);- const errorMessage = err instanceof Error ? err.message : String(err);- throw new Error(`Failed to start stack: ${errorMessage}`);- }+ try {+ const compose = await getComposeInstance(stackId);+ await compose.pull();+ await compose.up();+ return true;+ } catch (err: unknown) {+ console.error(`Error starting stack ${stackId}:`, err);+ const errorMessage = err instanceof Error ? err.message : String(err);+ throw new Error(`Failed to start stack: ${errorMessage}`);+ }}/**@@ -454,15 +419,15 @@ export async function startStack(stackId: string): Promise<boolean> {* @param {string} stackId Stack ID*/export async function stopStack(stackId: string): Promise<boolean> {- try {- const compose = await getComposeInstance(stackId);- await compose.down();- return true;- } catch (err: unknown) {- console.error(`Error stopping stack ${stackId}:`, err);- const errorMessage = err instanceof Error ? err.message : String(err);- throw new Error(`Failed to stop stack: ${errorMessage}`);- }+ try {+ const compose = await getComposeInstance(stackId);+ await compose.down();+ return true;+ } catch (err: unknown) {+ console.error(`Error stopping stack ${stackId}:`, err);+ const errorMessage = err instanceof Error ? err.message : String(err);+ throw new Error(`Failed to stop stack: ${errorMessage}`);+ }}/**@@ -470,18 +435,18 @@ export async function stopStack(stackId: string): Promise<boolean> {* @param {string} stackId Stack ID*/export async function restartStack(stackId: string): Promise<boolean> {- try {- // DockerodeCompose doesn't have a restart method, so we'll implement it- // by stopping and starting the stack- const compose = await getComposeInstance(stackId);- await compose.down();- await compose.up();- return true;- } catch (err: unknown) {- console.error(`Error restarting stack ${stackId}:`, err);- const errorMessage = err instanceof Error ? err.message : String(err);- throw new Error(`Failed to restart stack: ${errorMessage}`);- }+ try {+ // DockerodeCompose doesn't have a restart method, so we'll implement it+ // by stopping and starting the stack+ const compose = await getComposeInstance(stackId);+ await compose.down();+ await compose.up();+ return true;+ } catch (err: unknown) {+ console.error(`Error restarting stack ${stackId}:`, err);+ const errorMessage = err instanceof Error ? err.message : String(err);+ throw new Error(`Failed to restart stack: ${errorMessage}`);+ }}/**@@ -489,21 +454,21 @@ export async function restartStack(stackId: string): Promise<boolean> {* @param {string} stackId Stack ID*/export async function removeStack(stackId: string): Promise<boolean> {- try {- // First stop all services- const compose = await getComposeInstance(stackId);- await compose.down();-- // Then delete the stack files- const stackDir = await getStackDir(stackId);- await fs.rm(stackDir, { recursive: true, force: true });-- return true;- } catch (err: unknown) {- console.error(`Error removing stack ${stackId}:`, err);- const errorMessage = err instanceof Error ? err.message : String(err);- throw new Error(`Failed to remove stack: ${errorMessage}`);- }+ try {+ // First stop all services+ const compose = await getComposeInstance(stackId);+ await compose.down();++ // Then delete the stack files+ const stackDir = await getStackDir(stackId);+ await fs.rm(stackDir, { recursive: true, force: true });++ return true;+ } catch (err: unknown) {+ console.error(`Error removing stack ${stackId}:`, err);+ const errorMessage = err instanceof Error ? err.message : String(err);+ throw new Error(`Failed to remove stack: ${errorMessage}`);+ }}/**@@ -511,80 +476,80 @@ export async function removeStack(stackId: string): Promise<boolean> {* @returns {Promise<Stack[]>} External stacks discovered*/export async function discoverExternalStacks(): Promise<Stack[]> {- try {- const docker = getDockerClient();- const containers = await docker.listContainers({ all: true });-- // Docker Compose adds these labels to managed containers- const composeProjectLabel = "com.docker.compose.project";- const composeServiceLabel = "com.docker.compose.service";-- // Group containers by project- const projectMap: Record<string, any[]> = {};-- containers.forEach((container) => {- const labels = container.Labels || {};- const projectName = labels[composeProjectLabel];-- if (projectName) {- if (!projectMap[projectName]) {- projectMap[projectName] = [];- }-- projectMap[projectName].push({- id: container.Id,- name: labels[composeServiceLabel] || container.Names[0]?.substring(1),- state: {- Running: container.State === "running",- Status: container.State,- ExitCode: 0,- },- });- }- });-- // Convert to our Stack format- const externalStacks: Stack[] = [];-- for (const [projectName, services] of Object.entries(projectMap)) {- // Check if this stack is already in our managed stacks- const stackDir = await getStackDir(projectName);- try {- await fs.access(stackDir);- // Stack is managed by Arcane, skip it- continue;- } catch {- // Stack is not managed by Arcane, include it- }-- const serviceCount = services.length;- const runningCount = services.filter((s) => s.state.Running).length;-- let status: Stack["status"] = "stopped";- if (runningCount === serviceCount && serviceCount > 0) {- status = "running";- } else if (runningCount > 0) {- status = "partially running";- }-- externalStacks.push({- id: projectName,- name: projectName,- services,- serviceCount,- runningCount,- status,- isExternal: true,- createdAt: new Date().toISOString(),- updatedAt: new Date().toISOString(),- });- }-- return externalStacks;- } catch (err) {- console.error("Error discovering external stacks:", err);- return [];- }+ try {+ const docker = getDockerClient();+ const containers = await docker.listContainers({ all: true });++ // Docker Compose adds these labels to managed containers+ const composeProjectLabel = 'com.docker.compose.project';+ const composeServiceLabel = 'com.docker.compose.service';++ // Group containers by project+ const projectMap: Record<string, any[]> = {};++ containers.forEach((container) => {+ const labels = container.Labels || {};+ const projectName = labels[composeProjectLabel];++ if (projectName) {+ if (!projectMap[projectName]) {+ projectMap[projectName] = [];+ }++ projectMap[projectName].push({+ id: container.Id,+ name: labels[composeServiceLabel] || container.Names[0]?.substring(1),+ state: {+ Running: container.State === 'running',+ Status: container.State,+ ExitCode: 0+ }+ });+ }+ });++ // Convert to our Stack format+ const externalStacks: Stack[] = [];++ for (const [projectName, services] of Object.entries(projectMap)) {+ // Check if this stack is already in our managed stacks+ const stackDir = await getStackDir(projectName);+ try {+ await fs.access(stackDir);+ // Stack is managed by Arcane, skip it+ continue;+ } catch {+ // Stack is not managed by Arcane, include it+ }++ const serviceCount = services.length;+ const runningCount = services.filter((s) => s.state.Running).length;++ let status: Stack['status'] = 'stopped';+ if (runningCount === serviceCount && serviceCount > 0) {+ status = 'running';+ } else if (runningCount > 0) {+ status = 'partially running';+ }++ externalStacks.push({+ id: projectName,+ name: projectName,+ services,+ serviceCount,+ runningCount,+ status,+ isExternal: true,+ createdAt: new Date().toISOString(),+ updatedAt: new Date().toISOString()+ });+ }++ return externalStacks;+ } catch (err) {+ console.error('Error discovering external stacks:', err);+ return [];+ }}/**@@ -594,74 +559,69 @@ export async function discoverExternalStacks(): Promise<Stack[]> {* @returns The newly imported stack object*/export async function importExternalStack(stackId: string): Promise<Stack> {- // 1. First, check if we can find the stack by ID- const docker = getDockerClient();- const containers = await docker.listContainers({ all: true });-- // Filter containers that belong to this stack- const stackContainers = containers.filter((container) => {- const labels = container.Labels || {};- return labels["com.docker.compose.project"] === stackId;- });-- if (stackContainers.length === 0) {- throw new Error(`No containers found for stack '${stackId}'`);- }-- // 2. Try to locate the compose file (if available)- let composeFilePath = "";- const container = stackContainers[0];- const labels = container.Labels || {};-- if (labels["com.docker.compose.project.config_files"]) {- composeFilePath = labels["com.docker.compose.project.config_files"];- }-- // 3. Read the compose file if available, or create a new one- let composeContent = "";-- if (composeFilePath) {- try {- composeContent = await fs.readFile(composeFilePath, "utf8");- } catch (err) {- console.warn(`Couldn't read compose file at ${composeFilePath}:`, err);- // Will generate a new one below- }- }-- // 4. If we couldn't read the compose file, generate one based on container inspection- if (!composeContent) {- // Create a basic compose file from container inspection- const services: Record<string, any> = {};-- for (const container of stackContainers) {- const containerLabels = container.Labels || {};- const serviceName =- containerLabels["com.docker.compose.service"] ||- container.Names[0]?.replace(`/${stackId}_`, "").replace("_1", "") ||- `service_${container.Id.substring(0, 8)}`;-- // Inspect the container to get more details- const containerDetails = await docker- .getContainer(container.Id)- .inspect();-- services[serviceName] = {- image: container.Image,- // Add other properties based on containerDetails- };- }-- // Generate the compose file content- composeContent = `# Generated compose file for imported stack: ${stackId}+ // 1. First, check if we can find the stack by ID+ const docker = getDockerClient();+ const containers = await docker.listContainers({ all: true });++ // Filter containers that belong to this stack+ const stackContainers = containers.filter((container) => {+ const labels = container.Labels || {};+ return labels['com.docker.compose.project'] === stackId;+ });++ if (stackContainers.length === 0) {+ throw new Error(`No containers found for stack '${stackId}'`);+ }++ // 2. Try to locate the compose file (if available)+ let composeFilePath = '';+ const container = stackContainers[0];+ const labels = container.Labels || {};++ if (labels['com.docker.compose.project.config_files']) {+ composeFilePath = labels['com.docker.compose.project.config_files'];+ }++ // 3. Read the compose file if available, or create a new one+ let composeContent = '';++ if (composeFilePath) {+ try {+ composeContent = await fs.readFile(composeFilePath, 'utf8');+ } catch (err) {+ console.warn(`Couldn't read compose file at ${composeFilePath}:`, err);+ // Will generate a new one below+ }+ }++ // 4. If we couldn't read the compose file, generate one based on container inspection+ if (!composeContent) {+ // Create a basic compose file from container inspection+ const services: Record<string, any> = {};++ for (const container of stackContainers) {+ const containerLabels = container.Labels || {};+ const serviceName = containerLabels['com.docker.compose.service'] || container.Names[0]?.replace(`/${stackId}_`, '').replace('_1', '') || `service_${container.Id.substring(0, 8)}`;++ // Inspect the container to get more details+ const containerDetails = await docker.getContainer(container.Id).inspect();++ services[serviceName] = {+ image: container.Image+ // Add other properties based on containerDetails+ };+ }++ // Generate the compose file content+ composeContent = `# Generated compose file for imported stack: ${stackId}# This was automatically generated by Arcane from an external stack# You may need to adjust it manually for correct operationversion: '3'services:${yaml.dump({ services }).substring(10)}`; // Remove the services: line- }+ }- // 5. Create a new stack in Arcane's managed stacks- return await createStack(stackId, composeContent);+ // 5. Create a new stack in Arcane's managed stacks+ return await createStack(stackId, composeContent);}diff --git a/src/lib/services/docker-service.ts b/src/lib/services/docker-service.tsindex 52357d1de..db64278fc 100644--- a/src/lib/services/docker-service.ts+++ b/src/lib/services/docker-service.ts@@ -1,42 +1,37 @@-import Docker from "dockerode";-import type { VolumeInspectInfo, VolumeCreateOptions } from "dockerode";-import type { NetworkInspectInfo, NetworkCreateOptions } from "dockerode"; // Add NetworkCreateOptions-import { getSettings } from "$lib/services/settings-service";-import type {- DockerConnectionOptions,- ContainerConfig,- ContainerDetails,- ContainerCreate,-} from "$lib/types/docker";+import Docker from 'dockerode';+import type { VolumeInspectInfo, VolumeCreateOptions } from 'dockerode';+import type { NetworkInspectInfo, NetworkCreateOptions } from 'dockerode'; // Add NetworkCreateOptions+import { getSettings } from '$lib/services/settings-service';+import type { DockerConnectionOptions, ContainerConfig, ContainerDetails, ContainerCreate } from '$lib/types/docker';let dockerClient: Docker | null = null;-let dockerHost: string = "unix:///var/run/docker.sock"; // Default value+let dockerHost: string = 'unix:///var/run/docker.sock'; // Default value/*** Initialize Docker connection with the given options* @param options Docker connection options*/export function initializeDocker(options: DockerConnectionOptions): Docker {- let connectionOpts: any = {};-- // Handle different connection types (socket, tcp, etc.)- if (options.socketPath) {- connectionOpts.socketPath = options.socketPath;- dockerHost = options.socketPath;- } else if (options.host && options.port) {- connectionOpts.host = options.host;- connectionOpts.port = options.port;- dockerHost = `${options.host}:${options.port}`;-- if (options.ca || options.cert || options.key) {- connectionOpts.ca = options.ca;- connectionOpts.cert = options.cert;- connectionOpts.key = options.key;- }- }-- dockerClient = new Docker(connectionOpts);- return dockerClient;+ let connectionOpts: any = {};++ // Handle different connection types (socket, tcp, etc.)+ if (options.socketPath) {+ connectionOpts.socketPath = options.socketPath;+ dockerHost = options.socketPath;+ } else if (options.host && options.port) {+ connectionOpts.host = options.host;+ connectionOpts.port = options.port;+ dockerHost = `${options.host}:${options.port}`;++ if (options.ca || options.cert || options.key) {+ connectionOpts.ca = options.ca;+ connectionOpts.cert = options.cert;+ connectionOpts.key = options.key;+ }+ }++ dockerClient = new Docker(connectionOpts);+ return dockerClient;}/**@@ -44,75 +39,72 @@ export function initializeDocker(options: DockerConnectionOptions): Docker {* @param host Docker host connection string*/export function updateDockerConnection(host: string): void {- try {- // Only create a new connection if we have a valid host- if (!host) {- console.warn("No Docker host specified, connection not established");- return;- }-- console.log(`Connecting to Docker at ${host}`);- let connectionOpts: any = {};-- // Parse the host string to determine connection type- if (host.startsWith("unix://")) {- // Unix socket connection - remove the unix:// prefix- connectionOpts.socketPath = host.replace("unix://", "");- } else if (host.startsWith("tcp://")) {- // TCP connection (no TLS)- const url = new URL(host);- connectionOpts.host = url.hostname;- connectionOpts.port = parseInt(url.port || "2375", 10);- } else if (host.startsWith("https://")) {- // HTTPS connection (TLS)- const url = new URL(host);- connectionOpts.host = url.hostname;- connectionOpts.port = parseInt(url.port || "2376", 10);- connectionOpts.protocol = "https";- } else {- // If it doesn't have a prefix, assume it's a direct socket path- connectionOpts.socketPath = host;- }-- dockerClient = new Docker(connectionOpts);- dockerHost = host;- console.log("Docker connection updated with options:", connectionOpts);- } catch (error) {- console.error("Error connecting to Docker:", error);- }+ try {+ // Only create a new connection if we have a valid host+ if (!host) {+ console.warn('No Docker host specified, connection not established');+ return;+ }++ console.log(`Connecting to Docker at ${host}`);+ let connectionOpts: any = {};++ // Parse the host string to determine connection type+ if (host.startsWith('unix://')) {+ // Unix socket connection - remove the unix:// prefix+ connectionOpts.socketPath = host.replace('unix://', '');+ } else if (host.startsWith('tcp://')) {+ // TCP connection (no TLS)+ const url = new URL(host);+ connectionOpts.host = url.hostname;+ connectionOpts.port = parseInt(url.port || '2375', 10);+ } else if (host.startsWith('https://')) {+ // HTTPS connection (TLS)+ const url = new URL(host);+ connectionOpts.host = url.hostname;+ connectionOpts.port = parseInt(url.port || '2376', 10);+ connectionOpts.protocol = 'https';+ } else {+ // If it doesn't have a prefix, assume it's a direct socket path+ connectionOpts.socketPath = host;+ }++ dockerClient = new Docker(connectionOpts);+ dockerHost = host;+ console.log('Docker connection updated with options:', connectionOpts);+ } catch (error) {+ console.error('Error connecting to Docker:', error);+ }}/*** Get the Docker client instance. Initialize with default options if not already initialized.*/export function getDockerClient(): Docker {- if (!dockerClient) {- let connectionOpts: any = {};-- // Parse the dockerHost to get the proper connection options- if (dockerHost.startsWith("unix://")) {- connectionOpts.socketPath = dockerHost.replace("unix://", "");- } else if (dockerHost.startsWith("tcp://")) {- const url = new URL(dockerHost);- connectionOpts.host = url.hostname;- connectionOpts.port = parseInt(url.port || "2375", 10);- } else if (dockerHost.startsWith("https://")) {- const url = new URL(dockerHost);- connectionOpts.host = url.hostname;- connectionOpts.port = parseInt(url.port || "2376", 10);- connectionOpts.protocol = "https";- } else {- // If it doesn't have a prefix, assume it's a direct socket path- connectionOpts.socketPath = dockerHost;- }-- dockerClient = new Docker(connectionOpts);- console.log(- `Initialized Docker client with host: ${dockerHost}`,- connectionOpts- );- }- return dockerClient;+ if (!dockerClient) {+ let connectionOpts: any = {};++ // Parse the dockerHost to get the proper connection options+ if (dockerHost.startsWith('unix://')) {+ connectionOpts.socketPath = dockerHost.replace('unix://', '');+ } else if (dockerHost.startsWith('tcp://')) {+ const url = new URL(dockerHost);+ connectionOpts.host = url.hostname;+ connectionOpts.port = parseInt(url.port || '2375', 10);+ } else if (dockerHost.startsWith('https://')) {+ const url = new URL(dockerHost);+ connectionOpts.host = url.hostname;+ connectionOpts.port = parseInt(url.port || '2376', 10);+ connectionOpts.protocol = 'https';+ } else {+ // If it doesn't have a prefix, assume it's a direct socket path+ connectionOpts.socketPath = dockerHost;+ }++ dockerClient = new Docker(connectionOpts);+ console.log(`Initialized Docker client with host: ${dockerHost}`, connectionOpts);+ }+ return dockerClient;}/**@@ -120,99 +112,92 @@ export function getDockerClient(): Docker {* @returns Promise resolving to true if connection is successful*/export async function testDockerConnection(): Promise<boolean> {- try {- const docker = getDockerClient();- const info = await docker.info();- return !!info;- } catch (err) {- console.error("Docker connection test failed:", err);- return false;- }+ try {+ const docker = getDockerClient();+ const info = await docker.info();+ return !!info;+ } catch (err) {+ console.error('Docker connection test failed:', err);+ return false;+ }}/*** Get Docker system information*/export async function getDockerInfo() {- const docker = getDockerClient();- return await docker.info();+ const docker = getDockerClient();+ return await docker.info();}// Define and export the type returned by listContainersexport type ServiceContainer = {- id: string;- names: string[];- name: string; // Your derived name- image: string;- imageId: string;- command: string;- created: number;- state: string; // 'created', 'running', 'paused', 'restarting', 'removing', 'exited', 'dead'- status: string; // e.g., "Up 2 hours"- ports: Docker.Port[];+ id: string;+ names: string[];+ name: string; // Your derived name+ image: string;+ imageId: string;+ command: string;+ created: number;+ state: string; // 'created', 'running', 'paused', 'restarting', 'removing', 'exited', 'dead'+ status: string; // e.g., "Up 2 hours"+ ports: Docker.Port[];};/*** Lists Docker containers.*/export async function listContainers(all = true): Promise<ServiceContainer[]> {- try {- const docker = getDockerClient();- const containers = await docker.listContainers({ all });- return containers.map(- (c): ServiceContainer => ({- id: c.Id,- names: c.Names,- name: c.Names[0]?.substring(1) || c.Id.substring(0, 12),- image: c.Image,- imageId: c.ImageID,- command: c.Command,- created: c.Created,- state: c.State,- status: c.Status,- ports: c.Ports,- })- );- } catch (error: any) {- console.error("Docker Service: Error listing containers:", error);- throw new Error(- `Failed to list Docker containers using host "${dockerHost}".`- );- }+ try {+ const docker = getDockerClient();+ const containers = await docker.listContainers({ all });+ return containers.map(+ (c): ServiceContainer => ({+ id: c.Id,+ names: c.Names,+ name: c.Names[0]?.substring(1) || c.Id.substring(0, 12),+ image: c.Image,+ imageId: c.ImageID,+ command: c.Command,+ created: c.Created,+ state: c.State,+ status: c.Status,+ ports: c.Ports+ })+ );+ } catch (error: any) {+ console.error('Docker Service: Error listing containers:', error);+ throw new Error(`Failed to list Docker containers using host "${dockerHost}".`);+ }}/*** Gets details for a specific container.*/export async function getContainer(containerId: string) {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);- const inspectData = await container.inspect();- return {- id: inspectData.Id,- name: inspectData.Name.substring(1),- created: inspectData.Created,- path: inspectData.Path,- args: inspectData.Args,- state: inspectData.State,- image: inspectData.Image,- config: inspectData.Config,- networkSettings: inspectData.NetworkSettings,- mounts: inspectData.Mounts,- };- } catch (error: any) {- console.error(- `Docker Service: Error getting container ${containerId}:`,- error- );- if (error.statusCode === 404) {- return null;- }- throw new Error(- `Failed to get container details for ${containerId} using host "${dockerHost}".`- );- }+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);+ const inspectData = await container.inspect();+ return {+ id: inspectData.Id,+ name: inspectData.Name.substring(1),+ created: inspectData.Created,+ path: inspectData.Path,+ args: inspectData.Args,+ state: inspectData.State,+ image: inspectData.Image,+ config: inspectData.Config,+ networkSettings: inspectData.NetworkSettings,+ mounts: inspectData.Mounts+ };+ } catch (error: any) {+ console.error(`Docker Service: Error getting container ${containerId}:`, error);+ if (error.statusCode === 404) {+ return null;+ }+ throw new Error(`Failed to get container details for ${containerId} using host "${dockerHost}".`);+ }}/**@@ -220,21 +205,14 @@ export async function getContainer(containerId: string) {* @param containerId - The ID of the container.*/export async function startContainer(containerId: string): Promise<void> {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);- await container.start();- } catch (error: any) {- console.error(- `Docker Service: Error starting container ${containerId}:`,- error- );- throw new Error(- `Failed to start container ${containerId} using host "${dockerHost}". ${- error.message || ""- }`- );- }+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);+ await container.start();+ } catch (error: any) {+ console.error(`Docker Service: Error starting container ${containerId}:`, error);+ throw new Error(`Failed to start container ${containerId} using host "${dockerHost}". ${error.message || ''}`);+ }}/**@@ -242,21 +220,14 @@ export async function startContainer(containerId: string): Promise<void> {* @param containerId - The ID of the container.*/export async function stopContainer(containerId: string): Promise<void> {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);- await container.stop();- } catch (error: any) {- console.error(- `Docker Service: Error stopping container ${containerId}:`,- error- );- throw new Error(- `Failed to stop container ${containerId} using host "${dockerHost}". ${- error.message || ""- }`- );- }+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);+ await container.stop();+ } catch (error: any) {+ console.error(`Docker Service: Error stopping container ${containerId}:`, error);+ throw new Error(`Failed to stop container ${containerId} using host "${dockerHost}". ${error.message || ''}`);+ }}/**@@ -264,21 +235,14 @@ export async function stopContainer(containerId: string): Promise<void> {* @param containerId - The ID of the container.*/export async function restartContainer(containerId: string): Promise<void> {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);- await container.restart();- } catch (error: any) {- console.error(- `Docker Service: Error restarting container ${containerId}:`,- error- );- throw new Error(- `Failed to restart container ${containerId} using host "${dockerHost}". ${- error.message || ""- }`- );- }+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);+ await container.restart();+ } catch (error: any) {+ console.error(`Docker Service: Error restarting container ${containerId}:`, error);+ throw new Error(`Failed to restart container ${containerId} using host "${dockerHost}". ${error.message || ''}`);+ }}/**@@ -286,33 +250,21 @@ export async function restartContainer(containerId: string): Promise<void> {* @param containerId - The ID of the container.* @param force - Force removal even if running (default: false).*/-export async function removeContainer(- containerId: string,- force = false-): Promise<void> {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);- await container.remove({ force });- } catch (error: any) {- console.error(- `Docker Service: Error removing container ${containerId}:`,- error- );- if (error.statusCode === 404) {- throw new Error(`Container ${containerId} not found.`);- }- if (error.statusCode === 409) {- throw new Error(- `Cannot remove running container ${containerId}. Stop it first or use force.`- );- }- throw new Error(- `Failed to remove container ${containerId} using host "${dockerHost}". ${- error.message || ""- }`- );- }+export async function removeContainer(containerId: string, force = false): Promise<void> {+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);+ await container.remove({ force });+ } catch (error: any) {+ console.error(`Docker Service: Error removing container ${containerId}:`, error);+ if (error.statusCode === 404) {+ throw new Error(`Container ${containerId} not found.`);+ }+ if (error.statusCode === 409) {+ throw new Error(`Cannot remove running container ${containerId}. Stop it first or use force.`);+ }+ throw new Error(`Failed to remove container ${containerId} using host "${dockerHost}". ${error.message || ''}`);+ }}/**@@ -325,62 +277,52 @@ export async function removeContainer(* @throws {Error} If log retrieval fails for the specified container.*/export async function getContainerLogs(- containerId: string,- options: {- tail?: number | "all";- since?: number;- until?: number;- follow?: boolean;- stdout?: boolean;- stderr?: boolean;- } = {}+ containerId: string,+ options: {+ tail?: number | 'all';+ since?: number;+ until?: number;+ follow?: boolean;+ stdout?: boolean;+ stderr?: boolean;+ } = {}): Promise<string> {- try {- const docker = getDockerClient();- const container = docker.getContainer(containerId);-- const logOptions = {- tail: options.tail === "all" ? undefined : options.tail || 100,- stdout: options.stdout !== false,- stderr: options.stderr !== false,- timestamps: true,- since: options.since || 0,- until: options.until || undefined,- };-- const logsBuffer =- options.follow === true- ? await container.logs({ ...logOptions, follow: true })- : await container.logs({ ...logOptions, follow: false });- let logString = logsBuffer.toString();-- if (logOptions.stdout || logOptions.stderr) {- const lines = logString.split("\n");- const processedLines = lines- .map((line) => {- if (!line) return "";- if (line.length > 8) {- return line.substring(8);- }- return line;- })- .filter(Boolean);-- logString = processedLines.join("\n");- }-- return logString;- } catch (error: any) {- console.error(- `Docker Service: Error getting logs for container ${containerId}:`,- error- );- throw new Error(- `Failed to get logs for container ${containerId} using host "${dockerHost}". ${- error.message || ""- }`- );- }+ try {+ const docker = getDockerClient();+ const container = docker.getContainer(containerId);++ const logOptions = {+ tail: options.tail === 'all' ? undefined : options.tail || 100,+ stdout: options.stdout !== false,+ stderr: options.stderr !== false,+ timestamps: true,+ since: options.since || 0,+ until: options.until || undefined+ };++ const logsBuffer = options.follow === true ? await container.logs({ ...logOptions, follow: true }) : await container.logs({ ...logOptions, follow: false });+ let logString = logsBuffer.toString();++ if (logOptions.stdout || logOptions.stderr) {+ const lines = logString.split('\n');+ const processedLines = lines+ .map((line) => {+ if (!line) return '';+ if (line.length > 8) {+ return line.substring(8);+ }+ return line;+ })+ .filter(Boolean);++ logString = processedLines.join('\n');+ }++ return logString;+ } catch (error: any) {+ console.error(`Docker Service: Error getting logs for container ${containerId}:`, error);+ throw new Error(`Failed to get logs for container ${containerId} using host "${dockerHost}". ${error.message || ''}`);+ }}/**@@ -392,174 +334,157 @@ export async function getContainerLogs(* @throws {Error} If the container cannot be created or started.*/export async function createContainer(config: ContainerConfig) {- try {- const docker = getDockerClient();-- const containerOptions: ContainerCreate = {- name: config.name,- Image: config.image,- Env: config.envVars?.map((env) => `${env.key}=${env.value}`) || [],- Labels: config.labels || {},- Cmd: config.command,- User: config.user,- Healthcheck: config.healthcheck- ? {- Test: config.healthcheck.Test,- Interval: config.healthcheck.Interval,- Timeout: config.healthcheck.Timeout,- Retries: config.healthcheck.Retries,- StartPeriod: config.healthcheck.StartPeriod,- }- : undefined,- HostConfig: {- RestartPolicy: {- Name: config.restart || "no",- },- Memory: config.memoryLimit,- NanoCpus: config.cpuLimit- ? Math.round(config.cpuLimit * 1_000_000_000)- : undefined,- },- };-- // Set up port bindings if provided- if (config.ports && config.ports.length > 0) {- containerOptions.ExposedPorts = {};- containerOptions.HostConfig = containerOptions.HostConfig || {};- containerOptions.HostConfig.PortBindings = {};-- config.ports.forEach((port) => {- const containerPort = `${port.containerPort}/tcp`;- containerOptions.ExposedPorts![containerPort] = {};- containerOptions.HostConfig!.PortBindings![containerPort] = [- { HostPort: port.hostPort },- ];- });- }-- // Set up volume mounts if provided- if (config.volumes && config.volumes.length > 0) {- containerOptions.HostConfig = containerOptions.HostConfig || {};- containerOptions.HostConfig.Binds = config.volumes.map(- (vol) => `${vol.source}:${vol.target}${vol.readOnly ? ":ro" : ""}`- );- }-- // Set up network if provided- if (config.network) {- containerOptions.HostConfig = containerOptions.HostConfig || {};- if (!containerOptions.NetworkingConfig) {- containerOptions.HostConfig.NetworkMode = config.network;- }-- if (- config.networkConfig &&- config.network !== "host" &&- config.network !== "none" &&- config.network !== "bridge"- ) {- containerOptions.NetworkingConfig = {- EndpointsConfig: {- [config.network]: {- IPAMConfig: {- IPv4Address: config.networkConfig.ipv4Address || undefined,- IPv6Address: config.networkConfig.ipv6Address || undefined,- },- },- },- };- delete containerOptions.HostConfig.NetworkMode;- }- }-- // Create and start the container- const container = await docker.createContainer(containerOptions);- await container.start();-- // Get the container details- const containerInfo = await container.inspect();-- return {- id: containerInfo.Id,- name: containerInfo.Name.substring(1),- state: containerInfo.State.Status,- status: containerInfo.State.Running ? "running" : "stopped",- created: containerInfo.Created,- };- } catch (error: any) {- console.error("Error creating container:", error);- if (error.message && error.message.includes("IPAMConfig")) {- throw new Error(- `Failed to create container: Invalid IP address configuration for network "${config.network}". ${error.message}`- );- }- // Add more specific error handling for resource limits if needed- if (error.message && error.message.includes("NanoCpus")) {- throw new Error(`Invalid CPU limit specified: ${error.message}`);- }- if (error.message && error.message.includes("Memory")) {- throw new Error(`Invalid Memory limit specified: ${error.message}`);- }- throw new Error(- `Failed to create container with image "${config.image}": ${error.message}`- );- }+ try {+ const docker = getDockerClient();++ const containerOptions: ContainerCreate = {+ name: config.name,+ Image: config.image,+ Env: config.envVars?.map((env) => `${env.key}=${env.value}`) || [],+ Labels: config.labels || {},+ Cmd: config.command,+ User: config.user,+ Healthcheck: config.healthcheck+ ? {+ Test: config.healthcheck.Test,+ Interval: config.healthcheck.Interval,+ Timeout: config.healthcheck.Timeout,+ Retries: config.healthcheck.Retries,+ StartPeriod: config.healthcheck.StartPeriod+ }+ : undefined,+ HostConfig: {+ RestartPolicy: {+ Name: config.restart || 'no'+ },+ Memory: config.memoryLimit,+ NanoCpus: config.cpuLimit ? Math.round(config.cpuLimit * 1_000_000_000) : undefined+ }+ };++ // Set up port bindings if provided+ if (config.ports && config.ports.length > 0) {+ containerOptions.ExposedPorts = {};+ containerOptions.HostConfig = containerOptions.HostConfig || {};+ containerOptions.HostConfig.PortBindings = {};++ config.ports.forEach((port) => {+ const containerPort = `${port.containerPort}/tcp`;+ containerOptions.ExposedPorts![containerPort] = {};+ containerOptions.HostConfig!.PortBindings![containerPort] = [{ HostPort: port.hostPort }];+ });+ }++ // Set up volume mounts if provided+ if (config.volumes && config.volumes.length > 0) {+ containerOptions.HostConfig = containerOptions.HostConfig || {};+ containerOptions.HostConfig.Binds = config.volumes.map((vol) => `${vol.source}:${vol.target}${vol.readOnly ? ':ro' : ''}`);+ }++ // Set up network if provided+ if (config.network) {+ containerOptions.HostConfig = containerOptions.HostConfig || {};+ if (!containerOptions.NetworkingConfig) {+ containerOptions.HostConfig.NetworkMode = config.network;+ }++ if (config.networkConfig && config.network !== 'host' && config.network !== 'none' && config.network !== 'bridge') {+ containerOptions.NetworkingConfig = {+ EndpointsConfig: {+ [config.network]: {+ IPAMConfig: {+ IPv4Address: config.networkConfig.ipv4Address || undefined,+ IPv6Address: config.networkConfig.ipv6Address || undefined+ }+ }+ }+ };+ delete containerOptions.HostConfig.NetworkMode;+ }+ }++ // Create and start the container+ const container = await docker.createContainer(containerOptions);+ await container.start();++ // Get the container details+ const containerInfo = await container.inspect();++ return {+ id: containerInfo.Id,+ name: containerInfo.Name.substring(1),+ state: containerInfo.State.Status,+ status: containerInfo.State.Running ? 'running' : 'stopped',+ created: containerInfo.Created+ };+ } catch (error: any) {+ console.error('Error creating container:', error);+ if (error.message && error.message.includes('IPAMConfig')) {+ throw new Error(`Failed to create container: Invalid IP address configuration for network "${config.network}". ${error.message}`);+ }+ // Add more specific error handling for resource limits if needed+ if (error.message && error.message.includes('NanoCpus')) {+ throw new Error(`Invalid CPU limit specified: ${error.message}`);+ }+ if (error.message && error.message.includes('Memory')) {+ throw new Error(`Invalid Memory limit specified: ${error.message}`);+ }+ throw new Error(`Failed to create container with image "${config.image}": ${error.message}`);+ }}// Define and export the type returned by listImagesexport type ServiceImage = {- id: string;- repoTags: string[] | undefined;- repoDigests: string[] | undefined;- created: number;- size: number;- virtualSize: number;- labels: { [label: string]: string } | undefined;- repo: string;- tag: string;+ id: string;+ repoTags: string[] | undefined;+ repoDigests: string[] | undefined;+ created: number;+ size: number;+ virtualSize: number;+ labels: { [label: string]: string } | undefined;+ repo: string;+ tag: string;};/*** Lists Docker images.*/export async function listImages(): Promise<ServiceImage[]> {- try {- const docker = getDockerClient();- const images = await docker.listImages({ all: false });-- const parseRepoTag = (- tag: string | undefined- ): { repo: string; tag: string } => {- if (!tag || tag === "<none>:<none>") {- return { repo: "<none>", tag: "<none>" };- }- const parts = tag.split(":");- if (parts.length === 1) {- return { repo: parts[0], tag: "latest" };- }- const tagPart = parts.pop() || "latest";- const repoPart = parts.join(":");- return { repo: repoPart, tag: tagPart };- };-- return images.map((img): ServiceImage => {- const { repo, tag } = parseRepoTag(img.RepoTags?.[0]);- return {- id: img.Id,- repoTags: img.RepoTags,- repoDigests: img.RepoDigests,- created: img.Created,- size: img.Size,- virtualSize: img.VirtualSize,- labels: img.Labels,- repo: repo,- tag: tag,- };- });- } catch (error: any) {- console.error("Docker Service: Error listing images:", error);- throw new Error(`Failed to list Docker images using host "${dockerHost}".`);- }+ try {+ const docker = getDockerClient();+ const images = await docker.listImages({ all: false });++ const parseRepoTag = (tag: string | undefined): { repo: string; tag: string } => {+ if (!tag || tag === '<none>:<none>') {+ return { repo: '<none>', tag: '<none>' };+ }+ const parts = tag.split(':');+ if (parts.length === 1) {+ return { repo: parts[0], tag: 'latest' };+ }+ const tagPart = parts.pop() || 'latest';+ const repoPart = parts.join(':');+ return { repo: repoPart, tag: tagPart };+ };++ return images.map((img): ServiceImage => {+ const { repo, tag } = parseRepoTag(img.RepoTags?.[0]);+ return {+ id: img.Id,+ repoTags: img.RepoTags,+ repoDigests: img.RepoDigests,+ created: img.Created,+ size: img.Size,+ virtualSize: img.VirtualSize,+ labels: img.Labels,+ repo: repo,+ tag: tag+ };+ });+ } catch (error: any) {+ console.error('Docker Service: Error listing images:', error);+ throw new Error(`Failed to list Docker images using host "${dockerHost}".`);+ }}/**@@ -567,28 +492,19 @@ export async function listImages(): Promise<ServiceImage[]> {* @param imageId - The ID or name of the image to remove.* @param force - Whether to force removal (default: false).*/-export async function removeImage(- imageId: string,- force: boolean = false-): Promise<void> {- try {- const docker = getDockerClient();- const image = docker.getImage(imageId);- await image.remove({ force });- console.log(`Docker Service: Image "${imageId}" removed successfully.`);- } catch (error: any) {- console.error(`Docker Service: Error removing image "${imageId}":`, error);- if (error.statusCode === 409) {- throw new Error(- `Image "${imageId}" is being used by a container. Use force option to remove.`- );- }- throw new Error(- `Failed to remove image "${imageId}" using host "${dockerHost}". ${- error.message || error.reason || ""- }`- );- }+export async function removeImage(imageId: string, force: boolean = false): Promise<void> {+ try {+ const docker = getDockerClient();+ const image = docker.getImage(imageId);+ await image.remove({ force });+ console.log(`Docker Service: Image "${imageId}" removed successfully.`);+ } catch (error: any) {+ console.error(`Docker Service: Error removing image "${imageId}":`, error);+ if (error.statusCode === 409) {+ throw new Error(`Image "${imageId}" is being used by a container. Use force option to remove.`);+ }+ throw new Error(`Failed to remove image "${imageId}" using host "${dockerHost}". ${error.message || error.reason || ''}`);+ }}/**@@ -597,20 +513,17 @@ export async function removeImage(* @returns Boolean indicating if the image is in use*/export async function isImageInUse(imageId: string): Promise<boolean> {- try {- const docker = getDockerClient();- const containers = await docker.listContainers({ all: true });-- // Look for containers using this image- return containers.some(- (container) =>- container.ImageID === imageId || container.Image === imageId- );- } catch (error) {- console.error(`Error checking if image ${imageId} is in use:`, error);- // Default to assuming it's in use for safety- return true;- }+ try {+ const docker = getDockerClient();+ const containers = await docker.listContainers({ all: true });++ // Look for containers using this image+ return containers.some((container) => container.ImageID === imageId || container.Image === imageId);+ } catch (error) {+ console.error(`Error checking if image ${imageId} is in use:`, error);+ // Default to assuming it's in use for safety+ return true;+ }}/**@@ -618,75 +531,64 @@ export async function isImageInUse(imageId: string): Promise<boolean> {* @param mode - Mode of pruning ('all' or 'dangling').* @returns Information about reclaimed space.*/-export async function pruneImages(mode: "all" | "dangling" = "all"): Promise<{- ImagesDeleted: Docker.ImageRemoveInfo[] | null;- SpaceReclaimed: number;+export async function pruneImages(mode: 'all' | 'dangling' = 'all'): Promise<{+ ImagesDeleted: Docker.ImageRemoveInfo[] | null;+ SpaceReclaimed: number;}> {- try {- const docker = getDockerClient();- const filterValue = mode === "all" ? "false" : "true";- const logMessage =- mode === "all"- ? "Pruning all unused images (docker image prune -a)..."- : "Pruning dangling images (docker image prune)...";-- console.log(`Docker Service: ${logMessage}`);-- const pruneOptions = {- filters: { dangling: [filterValue] },- };-- const result = await docker.pruneImages(pruneOptions); // Use the options object-- console.log(- `Docker Service: Image prune complete. Space reclaimed: ${result.SpaceReclaimed}`- );- return result;- } catch (error: any) {- console.error("Docker Service: Error pruning images:", error);- throw new Error(- `Failed to prune images using host "${dockerHost}". ${- error.message || error.reason || ""- }`- );- }+ try {+ const docker = getDockerClient();+ const filterValue = mode === 'all' ? 'false' : 'true';+ const logMessage = mode === 'all' ? 'Pruning all unused images (docker image prune -a)...' : 'Pruning dangling images (docker image prune)...';++ console.log(`Docker Service: ${logMessage}`);++ const pruneOptions = {+ filters: { dangling: [filterValue] }+ };++ const result = await docker.pruneImages(pruneOptions); // Use the options object++ console.log(`Docker Service: Image prune complete. Space reclaimed: ${result.SpaceReclaimed}`);+ return result;+ } catch (error: any) {+ console.error('Docker Service: Error pruning images:', error);+ throw new Error(`Failed to prune images using host "${dockerHost}". ${error.message || error.reason || ''}`);+ }}// Define and export the type returned by listNetworksexport type ServiceNetwork = {- id: string;- name: string;- driver: string;- scope: string;- subnet: string | null;- gateway: string | null;- created: string;+ id: string;+ name: string;+ driver: string;+ scope: string;+ subnet: string | null;+ gateway: string | null;+ created: string;};/*** Lists Docker networks.*/export async function listNetworks(): Promise<ServiceNetwork[]> {- try {- const docker = getDockerClient();- const networks = await docker.listNetworks();- return networks.map(- (net): ServiceNetwork => ({- id: net.Id,- name: net.Name,- driver: net.Driver,- scope: net.Scope,- subnet: net.IPAM?.Config?.[0]?.Subnet ?? null,- gateway: net.IPAM?.Config?.[0]?.Gateway ?? null,- created: net.Created,- })- );- } catch (error: any) {- console.error("Docker Service: Error listing networks:", error);- throw new Error(- `Failed to list Docker networks using host "${dockerHost}".`- );- }+ try {+ const docker = getDockerClient();+ const networks = await docker.listNetworks();+ return networks.map(+ (net): ServiceNetwork => ({+ id: net.Id,+ name: net.Name,+ driver: net.Driver,+ scope: net.Scope,+ subnet: net.IPAM?.Config?.[0]?.Subnet ?? null,+ gateway: net.IPAM?.Config?.[0]?.Gateway ?? null,+ created: net.Created+ })+ );+ } catch (error: any) {+ console.error('Docker Service: Error listing networks:', error);+ throw new Error(`Failed to list Docker networks using host "${dockerHost}".`);+ }}/**@@ -694,116 +596,87 @@ export async function listNetworks(): Promise<ServiceNetwork[]> {* @param networkId - The ID or name of the network to remove.*/export async function removeNetwork(networkId: string): Promise<void> {- try {- const DEFAULT_NETWORKS = new Set(["host", "bridge", "none", "ingress"]);- if (DEFAULT_NETWORKS.has(networkId)) {- throw new Error(- `Network "${networkId}" is managed by Docker and cannot be removed.`- );- }- const docker = getDockerClient();- const network = docker.getNetwork(networkId);- await network.remove();- console.log(`Docker Service: Network "${networkId}" removed successfully.`);- } catch (error: any) {- console.error(- `Docker Service: Error removing network "${networkId}":`,- error- );- if (error.statusCode === 404) {- throw new Error(`Network "${networkId}" not found.`);- }- if (error.statusCode === 409) {- // 409 Conflict usually means it's in use or predefined- throw new Error(- `Network "${networkId}" cannot be removed (possibly in use or predefined).`- );- }- throw new Error(- `Failed to remove network "${networkId}" using host "${dockerHost}". ${- error.message || error.reason || ""- }`- );- }+ try {+ const DEFAULT_NETWORKS = new Set(['host', 'bridge', 'none', 'ingress']);+ if (DEFAULT_NETWORKS.has(networkId)) {+ throw new Error(`Network "${networkId}" is managed by Docker and cannot be removed.`);+ }+ const docker = getDockerClient();+ const network = docker.getNetwork(networkId);+ await network.remove();+ console.log(`Docker Service: Network "${networkId}" removed successfully.`);+ } catch (error: any) {+ console.error(`Docker Service: Error removing network "${networkId}":`, error);+ if (error.statusCode === 404) {+ throw new Error(`Network "${networkId}" not found.`);+ }+ if (error.statusCode === 409) {+ // 409 Conflict usually means it's in use or predefined+ throw new Error(`Network "${networkId}" cannot be removed (possibly in use or predefined).`);+ }+ throw new Error(`Failed to remove network "${networkId}" using host "${dockerHost}". ${error.message || error.reason || ''}`);+ }}/*** Creates a Docker network.* @param options - Options for creating the network (e.g., Name, Driver, Labels, CheckDuplicate, Internal, IPAM).*/-export async function createNetwork(- options: NetworkCreateOptions-): Promise<NetworkInspectInfo> {- try {- const docker = getDockerClient();- console.log(- `Docker Service: Creating network "${options.Name}"...`,- options- );-- // Dockerode's createNetwork returns the Network object, we need to inspect it after creation- const network = await docker.createNetwork(options);-- // Inspect the newly created network to get full details- const inspectInfo = await network.inspect();-- console.log(- `Docker Service: Network "${options.Name}" (ID: ${inspectInfo.Id}) created successfully.`- );- return inspectInfo; // Return the detailed inspect info- } catch (error: any) {- console.error(- `Docker Service: Error creating network "${options.Name}":`,- error- );- // Check for specific Docker errors- if (error.statusCode === 409) {- // Could be duplicate name if CheckDuplicate was true, or other conflicts- throw new Error(- `Network "${options.Name}" may already exist or conflict with an existing configuration.`- );- }- throw new Error(- `Failed to create network "${options.Name}" using host "${dockerHost}". ${- error.message || error.reason || ""- }`- );- }+export async function createNetwork(options: NetworkCreateOptions): Promise<NetworkInspectInfo> {+ try {+ const docker = getDockerClient();+ console.log(`Docker Service: Creating network "${options.Name}"...`, options);++ // Dockerode's createNetwork returns the Network object, we need to inspect it after creation+ const network = await docker.createNetwork(options);++ // Inspect the newly created network to get full details+ const inspectInfo = await network.inspect();++ console.log(`Docker Service: Network "${options.Name}" (ID: ${inspectInfo.Id}) created successfully.`);+ return inspectInfo; // Return the detailed inspect info+ } catch (error: any) {+ console.error(`Docker Service: Error creating network "${options.Name}":`, error);+ // Check for specific Docker errors+ if (error.statusCode === 409) {+ // Could be duplicate name if CheckDuplicate was true, or other conflicts+ throw new Error(`Network "${options.Name}" may already exist or conflict with an existing configuration.`);+ }+ throw new Error(`Failed to create network "${options.Name}" using host "${dockerHost}". ${error.message || error.reason || ''}`);+ }}// Define and export the type returned by listVolumesexport type ServiceVolume = {- name: string;- driver: string;- scope: string;- mountpoint: string;- labels: { [label: string]: string } | null;+ name: string;+ driver: string;+ scope: string;+ mountpoint: string;+ labels: { [label: string]: string } | null;};/*** Lists Docker volumes.*/export async function listVolumes(): Promise<ServiceVolume[]> {- try {- const docker = getDockerClient();- const volumeResponse = await docker.listVolumes();- const volumes = volumeResponse.Volumes || [];-- return volumes.map(- (vol): ServiceVolume => ({- name: vol.Name,- driver: vol.Driver,- scope: vol.Scope,- mountpoint: vol.Mountpoint,- labels: vol.Labels,- })- );- } catch (error: any) {- console.error("Docker Service: Error listing volumes:", error);- throw new Error(- `Failed to list Docker volumes using host "${dockerHost}".`- );- }+ try {+ const docker = getDockerClient();+ const volumeResponse = await docker.listVolumes();+ const volumes = volumeResponse.Volumes || [];++ return volumes.map(+ (vol): ServiceVolume => ({+ name: vol.Name,+ driver: vol.Driver,+ scope: vol.Scope,+ mountpoint: vol.Mountpoint,+ labels: vol.Labels+ })+ );+ } catch (error: any) {+ console.error('Docker Service: Error listing volumes:', error);+ throw new Error(`Failed to list Docker volumes using host "${dockerHost}".`);+ }}/**@@ -812,31 +685,29 @@ export async function listVolumes(): Promise<ServiceVolume[]> {* @returns Boolean indicating if the volume is in use*/export async function isVolumeInUse(volumeName: string): Promise<boolean> {- try {- const docker = getDockerClient();- const containers = await docker.listContainers({ all: true });-- // Inspect each container to check its mounts- for (const containerInfo of containers) {- const container = docker.getContainer(containerInfo.Id);- const details = await container.inspect();-- // Check if any mount points to our volume- const volumeMounts = details.Mounts.filter(- (mount) => mount.Type === "volume" && mount.Name === volumeName- );-- if (volumeMounts.length > 0) {- return true;- }- }-- return false;- } catch (error) {- console.error(`Error checking if volume ${volumeName} is in use:`, error);- // Default to assuming it's in use for safety- return true;- }+ try {+ const docker = getDockerClient();+ const containers = await docker.listContainers({ all: true });++ // Inspect each container to check its mounts+ for (const containerInfo of containers) {+ const container = docker.getContainer(containerInfo.Id);+ const details = await container.inspect();++ // Check if any mount points to our volume+ const volumeMounts = details.Mounts.filter((mount) => mount.Type === 'volume' && mount.Name === volumeName);++ if (volumeMounts.length > 0) {+ return true;+ }+ }++ return false;+ } catch (error) {+ console.error(`Error checking if volume ${volumeName} is in use:`, error);+ // Default to assuming it's in use for safety+ return true;+ }}/**@@ -844,39 +715,34 @@ export async function isVolumeInUse(volumeName: string): Promise<boolean> {* @param options - Options for creating the volume (e.g., Name, Driver, Labels).*/export async function createVolume(options: VolumeCreateOptions): Promise<any> {- try {- const docker = getDockerClient();- // createVolume returns the volume data directly - no need to inspect- const volume = await docker.createVolume(options);-- console.log(- `Docker Service: Volume "${options.Name}" created successfully.`- );-- // Return the creation response which contains basic info- return {- Name: volume.Name,- Driver: volume.Driver,- Mountpoint: volume.Mountpoint,- Labels: volume.Labels || {},- Scope: volume.Scope || "local",- CreatedAt: new Date().toISOString(), // Since inspect would give us this- };- } catch (error: any) {- console.error(- `Docker Service: Error creating volume "${options.Name}":`,- error- );- // Check for specific Docker errors, like volume already exists (often 409)- if (error.statusCode === 409) {- throw new Error(`Volume "${options.Name}" already exists.`);- }- throw new Error(- `Failed to create volume "${options.Name}" using host "${dockerHost}". ${- error.message || error.reason || "" // Include reason if available- }`- );- }+ try {+ const docker = getDockerClient();+ // createVolume returns the volume data directly - no need to inspect+ const volume = await docker.createVolume(options);++ console.log(`Docker Service: Volume "${options.Name}" created successfully.`);++ // Return the creation response which contains basic info+ return {+ Name: volume.Name,+ Driver: volume.Driver,+ Mountpoint: volume.Mountpoint,+ Labels: volume.Labels || {},+ Scope: volume.Scope || 'local',+ CreatedAt: new Date().toISOString() // Since inspect would give us this+ };+ } catch (error: any) {+ console.error(`Docker Service: Error creating volume "${options.Name}":`, error);+ // Check for specific Docker errors, like volume already exists (often 409)+ if (error.statusCode === 409) {+ throw new Error(`Volume "${options.Name}" already exists.`);+ }+ throw new Error(+ `Failed to create volume "${options.Name}" using host "${dockerHost}". ${+ error.message || error.reason || '' // Include reason if available+ }`+ );+ }}/**@@ -884,28 +750,19 @@ export async function createVolume(options: VolumeCreateOptions): Promise<any> {* @param name - The name of the volume to remove.* @param force - Whether to force removal if the volume is in use.*/-export async function removeVolume(- name: string,- force: boolean = false-): Promise<void> {- try {- const docker = getDockerClient();- const volume = docker.getVolume(name);- await volume.remove({ force });- console.log(`Docker Service: Volume "${name}" removed successfully.`);- } catch (error: any) {- console.error(`Docker Service: Error removing volume "${name}":`, error);- if (error.statusCode === 409) {- throw new Error(- `Volume "${name}" is in use by a container. Use force option to remove.`- );- }- throw new Error(- `Failed to remove volume "${name}" using host "${dockerHost}". ${- error.message || error.reason || ""- }`- );- }+export async function removeVolume(name: string, force: boolean = false): Promise<void> {+ try {+ const docker = getDockerClient();+ const volume = docker.getVolume(name);+ await volume.remove({ force });+ console.log(`Docker Service: Volume "${name}" removed successfully.`);+ } catch (error: any) {+ console.error(`Docker Service: Error removing volume "${name}":`, error);+ if (error.statusCode === 409) {+ throw new Error(`Volume "${name}" is in use by a container. Use force option to remove.`);+ }+ throw new Error(`Failed to remove volume "${name}" using host "${dockerHost}". ${error.message || error.reason || ''}`);+ }}/**@@ -913,49 +770,42 @@ export async function removeVolume(* @param imageRef - The image reference to pull (e.g., 'nginx:latest')* @param platform - Optional platform specification (e.g., 'linux/amd64')*/-export async function pullImage(- imageRef: string,- platform?: string-): Promise<void> {- try {- const docker = getDockerClient();-- const pullOptions: any = {};- if (platform) {- pullOptions.platform = platform;- }-- console.log(`Docker Service: Pulling image "${imageRef}"...`);-- // Pull the image - this returns a stream- const stream = await docker.pull(imageRef, pullOptions);-- // Wait for the pull to complete by consuming the stream- await new Promise((resolve, reject) => {- docker.modem.followProgress(stream, (err: any, output: any) => {- if (err) {- reject(err);- } else {- resolve(output);- }- });- });-- console.log(`Docker Service: Image "${imageRef}" pulled successfully.`);- } catch (error: any) {- console.error(`Docker Service: Error pulling image "${imageRef}":`, error);-- // Handle specific error cases- if (error.statusCode === 404) {- throw new Error(`Image "${imageRef}" not found in registry.`);- }-- throw new Error(- `Failed to pull image "${imageRef}". ${- error.message || error.reason || ""- }`- );- }+export async function pullImage(imageRef: string, platform?: string): Promise<void> {+ try {+ const docker = getDockerClient();++ const pullOptions: any = {};+ if (platform) {+ pullOptions.platform = platform;+ }++ console.log(`Docker Service: Pulling image "${imageRef}"...`);++ // Pull the image - this returns a stream+ const stream = await docker.pull(imageRef, pullOptions);++ // Wait for the pull to complete by consuming the stream+ await new Promise((resolve, reject) => {+ docker.modem.followProgress(stream, (err: any, output: any) => {+ if (err) {+ reject(err);+ } else {+ resolve(output);+ }+ });+ });++ console.log(`Docker Service: Image "${imageRef}" pulled successfully.`);+ } catch (error: any) {+ console.error(`Docker Service: Error pulling image "${imageRef}":`, error);++ // Handle specific error cases+ if (error.statusCode === 404) {+ throw new Error(`Image "${imageRef}" not found in registry.`);+ }++ throw new Error(`Failed to pull image "${imageRef}". ${error.message || error.reason || ''}`);+ }}export default getDockerClient;diff --git a/src/lib/services/settings-service.ts b/src/lib/services/settings-service.tsindex 17b2d22a4..45047222d 100644--- a/src/lib/services/settings-service.ts+++ b/src/lib/services/settings-service.ts@@ -1,59 +1,53 @@-import fs from "fs/promises";-import path from "path";-import proper from "proper-lockfile";-import type { SettingsData } from "$lib/types/settings";+import fs from 'fs/promises';+import path from 'path';+import proper from 'proper-lockfile';+import type { SettingsData } from '$lib/types/settings';// Determine if we're in development or production-const isDev = process.env.NODE_ENV === "development";+const isDev = process.env.NODE_ENV === 'development';// Configure paths based on environment-const BASE_PATH = isDev- ? path.resolve(process.cwd(), ".dev-data")- : "/app/data";+const BASE_PATH = isDev ? path.resolve(process.cwd(), '.dev-data') : '/app/data';-const SETTINGS_FILE = path.join(BASE_PATH, "app-settings.json");-const SETTINGS_FOLDER = path.join(BASE_PATH, "settings");+const SETTINGS_FILE = path.join(BASE_PATH, 'app-settings.json');+const SETTINGS_FOLDER = path.join(BASE_PATH, 'settings');// Default settings - also adapt paths for development environmentexport const DEFAULT_SETTINGS: SettingsData = {- dockerHost: isDev- ? process.platform === "win32"- ? "npipe:////./pipe/docker_engine"- : "unix:///var/run/docker.sock"- : "unix:///var/run/docker.sock",- autoUpdate: false,- pollingEnabled: true,- pollingInterval: 10,- pruneMode: "all",- stacksDirectory: path.resolve(BASE_PATH, "stacks"),- externalServices: {- valkey: {- enabled: false,- host: "localhost",- port: 6379,- username: "",- password: "",- keyPrefix: "arcane:settings:",- },- },+ dockerHost: isDev ? (process.platform === 'win32' ? 'npipe:////./pipe/docker_engine' : 'unix:///var/run/docker.sock') : 'unix:///var/run/docker.sock',+ autoUpdate: false,+ pollingEnabled: true,+ pollingInterval: 10,+ pruneMode: 'all',+ stacksDirectory: path.resolve(BASE_PATH, 'stacks'),+ externalServices: {+ valkey: {+ enabled: false,+ host: 'localhost',+ port: 6379,+ username: '',+ password: '',+ keyPrefix: 'arcane:settings:'+ }+ }};// Path getter functionsexport function getBasePath(): string {- return BASE_PATH;+ return BASE_PATH;}export function getSettingsFilePath(): string {- return SETTINGS_FILE;+ return SETTINGS_FILE;}export function getStacksDirectory(): string {- return DEFAULT_SETTINGS.stacksDirectory;+ return DEFAULT_SETTINGS.stacksDirectory;}// Log configured paths on startupconsole.log(`Settings service configured with:-- Environment: ${isDev ? "Development" : "Production"}+- Environment: ${isDev ? 'Development' : 'Production'}- Settings file: ${SETTINGS_FILE}- Settings folder: ${SETTINGS_FOLDER}- Default stacks directory: ${DEFAULT_SETTINGS.stacksDirectory}@@ -61,194 +55,181 @@ console.log(`Settings service configured with:// Make sure directories existasync function ensureDirs() {- await fs.mkdir(path.dirname(SETTINGS_FILE), { recursive: true });- await fs.mkdir(SETTINGS_FOLDER, { recursive: true });+ await fs.mkdir(path.dirname(SETTINGS_FILE), { recursive: true });+ await fs.mkdir(SETTINGS_FOLDER, { recursive: true });}/*** Create stacks directory if it doesn't exist*/export async function ensureStacksDirectory(): Promise<string> {- try {- const settings = await getSettings();- const stacksDir = settings.stacksDirectory;-- await fs.mkdir(stacksDir, { recursive: true });- return stacksDir;- } catch (err) {- console.error("Error ensuring stacks directory:", err);- // Fall back to default- try {- await fs.mkdir(DEFAULT_SETTINGS.stacksDirectory, { recursive: true });- return DEFAULT_SETTINGS.stacksDirectory;- } catch (innerErr) {- console.error("Failed to create default stacks directory:", innerErr);- throw new Error("Unable to create stacks directory");- }- }+ try {+ const settings = await getSettings();+ const stacksDir = settings.stacksDirectory;++ await fs.mkdir(stacksDir, { recursive: true });+ return stacksDir;+ } catch (err) {+ console.error('Error ensuring stacks directory:', err);+ // Fall back to default+ try {+ await fs.mkdir(DEFAULT_SETTINGS.stacksDirectory, { recursive: true });+ return DEFAULT_SETTINGS.stacksDirectory;+ } catch (innerErr) {+ console.error('Failed to create default stacks directory:', innerErr);+ throw new Error('Unable to create stacks directory');+ }+ }}// Save a setting to its own fileasync function saveSetting(key: string, value: any): Promise<void> {- const filePath = path.join(SETTINGS_FOLDER, `${key}.json`);-- // Make sure the directory exists- await fs.mkdir(path.dirname(filePath), { recursive: true });-- try {- // Create the file if it doesn't exist- try {- await fs.access(filePath);- } catch {- await fs.writeFile(filePath, "{}");- }-- // Acquire a lock- const release = await proper.lock(filePath, { retries: 5 });-- try {- await fs.writeFile(filePath, JSON.stringify(value));- } finally {- // Release the lock- await release();- }- } catch (error) {- console.error(`Error saving setting ${key}:`, error);- throw error;- }+ const filePath = path.join(SETTINGS_FOLDER, `${key}.json`);++ // Make sure the directory exists+ await fs.mkdir(path.dirname(filePath), { recursive: true });++ try {+ // Create the file if it doesn't exist+ try {+ await fs.access(filePath);+ } catch {+ await fs.writeFile(filePath, '{}');+ }++ // Acquire a lock+ const release = await proper.lock(filePath, { retries: 5 });++ try {+ await fs.writeFile(filePath, JSON.stringify(value));+ } finally {+ // Release the lock+ await release();+ }+ } catch (error) {+ console.error(`Error saving setting ${key}:`, error);+ throw error;+ }}// Get a setting from its own fileasync function getSetting(key: string): Promise<any | null> {- const filePath = path.join(SETTINGS_FOLDER, `${key}.json`);-- try {- const data = await fs.readFile(filePath, "utf-8");- return JSON.parse(data);- } catch (error) {- return null;- }+ const filePath = path.join(SETTINGS_FOLDER, `${key}.json`);++ try {+ const data = await fs.readFile(filePath, 'utf-8');+ return JSON.parse(data);+ } catch (error) {+ return null;+ }}// Get all settingsexport async function getSettings(): Promise<SettingsData> {- try {- await ensureDirs();-- // Try to load the main settings file first (as override)- let fileSettings: Partial<SettingsData> = {};- try {- const data = await fs.readFile(SETTINGS_FILE, "utf-8");- fileSettings = JSON.parse(data);-- // If in development and paths are production paths, convert them- if (isDev) {- // Convert any absolute /app/data paths to local development paths- if (- fileSettings.stacksDirectory &&- fileSettings.stacksDirectory.startsWith("/app/data")- ) {- fileSettings.stacksDirectory = fileSettings.stacksDirectory.replace(- "/app/data",- BASE_PATH- );- }- }- } catch (error) {- console.log("No main settings file found");- }-- // Load individual settings- const individualSettings: Record<string, any> = {};- try {- const files = await fs.readdir(SETTINGS_FOLDER);- for (const file of files) {- if (file.endsWith(".json")) {- const key = file.replace(".json", "");- const value = await getSetting(key);- if (value !== null) {- individualSettings[key] = value;- }- }- }- } catch (error) {- console.error("Error reading individual settings:", error);- }-- // Merge in order: defaults < individual < file- const mergedSettings = {- ...DEFAULT_SETTINGS,- ...individualSettings,- ...fileSettings,- };-- // Ensure stacks directory exists- await fs.mkdir(mergedSettings.stacksDirectory, { recursive: true });-- return mergedSettings;- } catch (error) {- console.error("Error loading settings:", error);- return DEFAULT_SETTINGS;- }+ try {+ await ensureDirs();++ // Try to load the main settings file first (as override)+ let fileSettings: Partial<SettingsData> = {};+ try {+ const data = await fs.readFile(SETTINGS_FILE, 'utf-8');+ fileSettings = JSON.parse(data);++ // If in development and paths are production paths, convert them+ if (isDev) {+ // Convert any absolute /app/data paths to local development paths+ if (fileSettings.stacksDirectory && fileSettings.stacksDirectory.startsWith('/app/data')) {+ fileSettings.stacksDirectory = fileSettings.stacksDirectory.replace('/app/data', BASE_PATH);+ }+ }+ } catch (error) {+ console.log('No main settings file found');+ }++ // Load individual settings+ const individualSettings: Record<string, any> = {};+ try {+ const files = await fs.readdir(SETTINGS_FOLDER);+ for (const file of files) {+ if (file.endsWith('.json')) {+ const key = file.replace('.json', '');+ const value = await getSetting(key);+ if (value !== null) {+ individualSettings[key] = value;+ }+ }+ }+ } catch (error) {+ console.error('Error reading individual settings:', error);+ }++ // Merge in order: defaults < individual < file+ const mergedSettings = {+ ...DEFAULT_SETTINGS,+ ...individualSettings,+ ...fileSettings+ };++ // Ensure stacks directory exists+ await fs.mkdir(mergedSettings.stacksDirectory, { recursive: true });++ return mergedSettings;+ } catch (error) {+ console.error('Error loading settings:', error);+ return DEFAULT_SETTINGS;+ }}// Save all settingsexport async function saveSettings(settings: SettingsData): Promise<void> {- await ensureDirs();-- try {- // In development mode, ensure paths are relative to the current environment- let settingsToSave = { ...settings };-- // If we're in development and the stacks directory is still a production path- if (isDev && settingsToSave.stacksDirectory?.startsWith("/app/data")) {- settingsToSave.stacksDirectory = settingsToSave.stacksDirectory.replace(- "/app/data",- BASE_PATH- );- }-- // Save each setting to its own file for granular access- const flatSettings = flattenObject(settingsToSave);- for (const [key, value] of Object.entries(flatSettings)) {- await saveSetting(key, value);- }-- // Also save the complete settings as a snapshot- await fs.writeFile(SETTINGS_FILE, JSON.stringify(settingsToSave, null, 2));-- // Ensure the stacks directory exists- await fs.mkdir(settingsToSave.stacksDirectory, { recursive: true });-- console.log("Settings saved successfully");- } catch (error) {- console.error("Error saving settings:", error);- throw new Error("Failed to save settings");- }+ await ensureDirs();++ try {+ // In development mode, ensure paths are relative to the current environment+ let settingsToSave = { ...settings };++ // If we're in development and the stacks directory is still a production path+ if (isDev && settingsToSave.stacksDirectory?.startsWith('/app/data')) {+ settingsToSave.stacksDirectory = settingsToSave.stacksDirectory.replace('/app/data', BASE_PATH);+ }++ // Save each setting to its own file for granular access+ const flatSettings = flattenObject(settingsToSave);+ for (const [key, value] of Object.entries(flatSettings)) {+ await saveSetting(key, value);+ }++ // Also save the complete settings as a snapshot+ await fs.writeFile(SETTINGS_FILE, JSON.stringify(settingsToSave, null, 2));++ // Ensure the stacks directory exists+ await fs.mkdir(settingsToSave.stacksDirectory, { recursive: true });++ console.log('Settings saved successfully');+ } catch (error) {+ console.error('Error saving settings:', error);+ throw new Error('Failed to save settings');+ }}// Helper function to flatten nested objects-function flattenObject(obj: any, prefix = ""): Record<string, any> {- return Object.keys(obj).reduce((acc: Record<string, any>, k: string) => {- const pre = prefix.length ? `${prefix}.` : "";- if (- typeof obj[k] === "object" &&- obj[k] !== null &&- !Array.isArray(obj[k])- ) {- Object.assign(acc, flattenObject(obj[k], `${pre}${k}`));- } else {- acc[`${pre}${k}`] = obj[k];- }- return acc;- }, {});+function flattenObject(obj: any, prefix = ''): Record<string, any> {+ return Object.keys(obj).reduce((acc: Record<string, any>, k: string) => {+ const pre = prefix.length ? `${prefix}.` : '';+ if (typeof obj[k] === 'object' && obj[k] !== null && !Array.isArray(obj[k])) {+ Object.assign(acc, flattenObject(obj[k], `${pre}${k}`));+ } else {+ acc[`${pre}${k}`] = obj[k];+ }+ return acc;+ }, {});}// Helper to parse JSON valuesfunction tryParse(value: string): any {- try {- return JSON.parse(value);- } catch {- return value;- }+ try {+ return JSON.parse(value);+ } catch {+ return value;+ }}diff --git a/src/lib/services/valkey-service.ts b/src/lib/services/valkey-service.tsindex 9320c4e48..c8fb0369e 100644--- a/src/lib/services/valkey-service.ts+++ b/src/lib/services/valkey-service.ts@@ -1,151 +1,141 @@-import { createClient, type RedisClientType } from "redis";-import { getSettings } from "./settings-service";+import { createClient, type RedisClientType } from 'redis';+import { getSettings } from './settings-service';let client: RedisClientType | null = null;let isConnected = false;type ValKeyConfig = {- host: string;- port: number;- password?: string;- username?: string;+ host: string;+ port: number;+ password?: string;+ username?: string;};const DEFAULT_CONFIG: ValKeyConfig = {- host: "localhost",- port: 6379,+ host: 'localhost',+ port: 6379};/*** Initialize the Valkey client connection*/-export async function initValKeyClient(- config: ValKeyConfig = DEFAULT_CONFIG-): Promise<void> {- try {- // Close any existing connection- if (client) {- await client.quit();- isConnected = false;- }-- // Create connection URL- const url = `redis://${- config.username ? `${config.username}:${config.password}@` : ""- }${config.host}:${config.port}`;-- client = createClient({- url,- socket: {- reconnectStrategy: (retries: number): number =>- Math.min(retries * 50, 1000),- },- });-- client.on("error", (err: Error) => {- console.error("Valkey/Redis Client Error:", err);- isConnected = false;- });-- client.on("connect", () => {- console.log("Connected to Valkey/Redis server");- isConnected = true;- });-- await client.connect();- } catch (error) {- console.error("Failed to initialize Valkey connection:", error);- isConnected = false;- }+export async function initValKeyClient(config: ValKeyConfig = DEFAULT_CONFIG): Promise<void> {+ try {+ // Close any existing connection+ if (client) {+ await client.quit();+ isConnected = false;+ }++ // Create connection URL+ const url = `redis://${config.username ? `${config.username}:${config.password}@` : ''}${config.host}:${config.port}`;++ client = createClient({+ url,+ socket: {+ reconnectStrategy: (retries: number): number => Math.min(retries * 50, 1000)+ }+ });++ client.on('error', (err: Error) => {+ console.error('Valkey/Redis Client Error:', err);+ isConnected = false;+ });++ client.on('connect', () => {+ console.log('Connected to Valkey/Redis server');+ isConnected = true;+ });++ await client.connect();+ } catch (error) {+ console.error('Failed to initialize Valkey connection:', error);+ isConnected = false;+ }}/*** Initialize Valkey client based on application settings*/export async function initValKeyFromSettings(): Promise<boolean> {- try {- const settings = await getSettings();-- // If Valkey is not enabled in settings, return false- if (!settings.externalServices?.valkey?.enabled) {- return false;- }-- const valkeySettings = settings.externalServices.valkey;-- await initValKeyClient({- host: valkeySettings.host,- port: valkeySettings.port,- username: valkeySettings.username,- password: valkeySettings.password,- });-- return isConnected;- } catch (error) {- console.error("Failed to initialize Valkey from settings:", error);- return false;- }+ try {+ const settings = await getSettings();++ // If Valkey is not enabled in settings, return false+ if (!settings.externalServices?.valkey?.enabled) {+ return false;+ }++ const valkeySettings = settings.externalServices.valkey;++ await initValKeyClient({+ host: valkeySettings.host,+ port: valkeySettings.port,+ username: valkeySettings.username,+ password: valkeySettings.password+ });++ return isConnected;+ } catch (error) {+ console.error('Failed to initialize Valkey from settings:', error);+ return false;+ }}/*** Check if the client is connected*/export function isValKeyConnected(): boolean {- return isConnected && client !== null;+ return isConnected && client !== null;}/*** Get a value from Valkey*/export async function getValue(key: string): Promise<string | null> {- if (!isConnected || !client) return null;-- try {- return await client.get(key);- } catch (error) {- console.error(`Error retrieving key ${key} from Valkey:`, error);- return null;- }+ if (!isConnected || !client) return null;++ try {+ return await client.get(key);+ } catch (error) {+ console.error(`Error retrieving key ${key} from Valkey:`, error);+ return null;+ }}/*** Set a value in Valkey*/export async function setValue(key: string, value: string): Promise<boolean> {- if (!isConnected || !client) return false;-- try {- await client.set(key, value);- return true;- } catch (error) {- console.error(`Error setting key ${key} in Valkey:`, error);- return false;- }+ if (!isConnected || !client) return false;++ try {+ await client.set(key, value);+ return true;+ } catch (error) {+ console.error(`Error setting key ${key} in Valkey:`, error);+ return false;+ }}/*** Get all values matching a pattern*/-export async function getKeysValues(- pattern: string-): Promise<Record<string, string>> {- if (!isConnected || !client) return {};-- try {- const keys = await client.keys(pattern);- const result: Record<string, string> = {};-- for (const key of keys) {- const value = await client.get(key);- if (value) result[key] = value;- }-- return result;- } catch (error) {- console.error(- `Error retrieving keys matching ${pattern} from Valkey:`,- error- );- return {};- }+export async function getKeysValues(pattern: string): Promise<Record<string, string>> {+ if (!isConnected || !client) return {};++ try {+ const keys = await client.keys(pattern);+ const result: Record<string, string> = {};++ for (const key of keys) {+ const value = await client.get(key);+ if (value) result[key] = value;+ }++ return result;+ } catch (error) {+ console.error(`Error retrieving keys matching ${pattern} from Valkey:`, error);+ return {};+ }}diff --git a/src/lib/types/application-configuration.ts b/src/lib/types/application-configuration.tsindex ba3f7dc5b..314c31df6 100644--- a/src/lib/types/application-configuration.ts+++ b/src/lib/types/application-configuration.ts@@ -1,7 +1,7 @@export interface AppVersionInformation {- currentVersion: string;- newestVersion?: string;- updateAvailable?: boolean;- releaseUrl?: string;- releaseNotes?: string;+ currentVersion: string;+ newestVersion?: string;+ updateAvailable?: boolean;+ releaseUrl?: string;+ releaseNotes?: string;}diff --git a/src/lib/types/docker.ts b/src/lib/types/docker.tsindex a232b4bf6..542f383a6 100644--- a/src/lib/types/docker.ts+++ b/src/lib/types/docker.ts@@ -1,104 +1,104 @@-import type { ContainerCreateOptions, HealthConfig } from "dockerode";+import type { ContainerCreateOptions, HealthConfig } from 'dockerode';export interface DockerConnectionOptions {- socketPath?: string;- host?: string;- port?: number;- ca?: string;- cert?: string;- key?: string;+ socketPath?: string;+ host?: string;+ port?: number;+ ca?: string;+ cert?: string;+ key?: string;}// Container typesexport interface ContainerCreate extends ContainerCreateOptions {- name?: string; // Container name+ name?: string; // Container name}// Container configuration for creating containersexport interface ContainerConfig {- name: string;- image: string;- ports?: Array<{- hostPort: string;- containerPort: string;- }>;- volumes?: Array<{- source: string;- target: string;- readOnly?: boolean;- }>;- envVars?: Array<{- key: string;- value: string;- }>;- network?: string;- restart?: "no" | "always" | "on-failure" | "unless-stopped";- networkConfig?: {- ipv4Address?: string;- ipv6Address?: string;- };- healthcheck?: HealthConfig;- labels?: { [key: string]: string };- command?: string[];- user?: string;- memoryLimit?: number;- cpuLimit?: number;+ name: string;+ image: string;+ ports?: Array<{+ hostPort: string;+ containerPort: string;+ }>;+ volumes?: Array<{+ source: string;+ target: string;+ readOnly?: boolean;+ }>;+ envVars?: Array<{+ key: string;+ value: string;+ }>;+ network?: string;+ restart?: 'no' | 'always' | 'on-failure' | 'unless-stopped';+ networkConfig?: {+ ipv4Address?: string;+ ipv6Address?: string;+ };+ healthcheck?: HealthConfig;+ labels?: { [key: string]: string };+ command?: string[];+ user?: string;+ memoryLimit?: number;+ cpuLimit?: number;}// Container port mappingexport interface ContainerPort {- IP?: string;- PrivatePort: number;- PublicPort?: number;- Type: string;+ IP?: string;+ PrivatePort: number;+ PublicPort?: number;+ Type: string;}// Container stateexport interface ContainerState {- Status: string;- Running: boolean;- Paused: boolean;- Restarting: boolean;- OOMKilled: boolean;- Dead: boolean;- Pid: number;- ExitCode: number;- Error: string;- StartedAt: string;- FinishedAt: string;+ Status: string;+ Running: boolean;+ Paused: boolean;+ Restarting: boolean;+ OOMKilled: boolean;+ Dead: boolean;+ Pid: number;+ ExitCode: number;+ Error: string;+ StartedAt: string;+ FinishedAt: string;}// Container detailsexport interface ContainerDetails {- Id: string;- Names: string[];- Image: string;- ImageID: string;- Command: string;- Created: number;- Ports: ContainerPort[];- Labels: { [label: string]: string };- State: string;- Status: string;- HostConfig: {- NetworkMode: string;- };- NetworkSettings: {- Networks: {- [networkName: string]: {- IPAddress: string;- Gateway: string;- MacAddress: string;- };- };- };- Mounts: Array<{- Type: string;- Name?: string;- Source: string;- Destination: string;- Mode: string;- RW: boolean;- Propagation: string;- }>;+ Id: string;+ Names: string[];+ Image: string;+ ImageID: string;+ Command: string;+ Created: number;+ Ports: ContainerPort[];+ Labels: { [label: string]: string };+ State: string;+ Status: string;+ HostConfig: {+ NetworkMode: string;+ };+ NetworkSettings: {+ Networks: {+ [networkName: string]: {+ IPAddress: string;+ Gateway: string;+ MacAddress: string;+ };+ };+ };+ Mounts: Array<{+ Type: string;+ Name?: string;+ Source: string;+ Destination: string;+ Mode: string;+ RW: boolean;+ Propagation: string;+ }>;}diff --git a/src/lib/types/image.ts b/src/lib/types/image.tsindex 802c7c599..52b5b7b10 100644--- a/src/lib/types/image.ts+++ b/src/lib/types/image.ts@@ -1,5 +1,5 @@-import type { ServiceImage } from "$lib/services/docker-service";+import type { ServiceImage } from '$lib/services/docker-service';export type EnhancedImageInfo = ServiceImage & {- inUse: boolean;+ inUse: boolean;};diff --git a/src/lib/types/settings.ts b/src/lib/types/settings.tsindex 0314c872d..731c99658 100644--- a/src/lib/types/settings.ts+++ b/src/lib/types/settings.ts@@ -1,24 +1,24 @@export interface SettingsData {- dockerHost: string;- autoUpdate: boolean;- pollingEnabled: boolean;- pollingInterval: number;- stacksDirectory: string;- pruneMode: "all" | "dangling";- registryCredentials?: Array<{- url: string;- username: string;- password: string;- }>;- externalServices: {- valkey?: {- enabled: boolean;- host: string;- port: number;- username?: string;- password?: string;- keyPrefix: string;- };- // Other services can be added here in the future- };+ dockerHost: string;+ autoUpdate: boolean;+ pollingEnabled: boolean;+ pollingInterval: number;+ stacksDirectory: string;+ pruneMode: 'all' | 'dangling';+ registryCredentials?: Array<{+ url: string;+ username: string;+ password: string;+ }>;+ externalServices: {+ valkey?: {+ enabled: boolean;+ host: string;+ port: number;+ username?: string;+ password?: string;+ keyPrefix: string;+ };+ // Other services can be added here in the future+ };}diff --git a/src/lib/types/stack.ts b/src/lib/types/stack.tsindex 164fefaa8..79c160077 100644--- a/src/lib/types/stack.ts+++ b/src/lib/types/stack.ts@@ -1,35 +1,35 @@export interface StackMeta {- name: string;- createdAt: string;- updatedAt: string;+ name: string;+ createdAt: string;+ updatedAt: string;}export interface StackService {- id: string;- name: string;- state?: {- Running: boolean;- Status: string;- ExitCode: number;- };- ports?: string[];+ id: string;+ name: string;+ state?: {+ Running: boolean;+ Status: string;+ ExitCode: number;+ };+ ports?: string[];}export interface Stack {- id: string;- name: string;- services?: StackService[];- serviceCount: number;- runningCount: number;- status: "running" | "partially running" | "stopped";- createdAt: string;- updatedAt: string;- composeContent?: string;- isExternal?: boolean;- compose?: any;+ id: string;+ name: string;+ services?: StackService[];+ serviceCount: number;+ runningCount: number;+ status: 'running' | 'partially running' | 'stopped';+ createdAt: string;+ updatedAt: string;+ composeContent?: string;+ isExternal?: boolean;+ compose?: any;}export interface StackUpdate {- name?: string;- composeContent?: string;+ name?: string;+ composeContent?: string;}diff --git a/src/lib/types/statuses.ts b/src/lib/types/statuses.tsindex 312b68536..c2dcb0883 100644--- a/src/lib/types/statuses.ts+++ b/src/lib/types/statuses.ts@@ -1,13 +1,10 @@-export const statusVariantMap: Record<- string,- "red" | "purple" | "green" | "blue" | "gray" | "amber"-> = {- running: "green",- deployed: "green",- stopped: "red",- failed: "red",- pending: "amber",- creating: "blue",- updating: "blue",- deleting: "purple",+export const statusVariantMap: Record<string, 'red' | 'purple' | 'green' | 'blue' | 'gray' | 'amber'> = {+ running: 'green',+ deployed: 'green',+ stopped: 'red',+ failed: 'red',+ pending: 'amber',+ creating: 'blue',+ updating: 'blue',+ deleting: 'purple'};diff --git a/src/lib/types/table-types.ts b/src/lib/types/table-types.tsindex 691f677c9..e68a93fc2 100644--- a/src/lib/types/table-types.ts+++ b/src/lib/types/table-types.ts@@ -1,34 +1,34 @@-import { type ColumnDef } from "@tanstack/table-core";+import { type ColumnDef } from '@tanstack/table-core';export type FeatureFlags = {- sorting?: boolean;- filtering?: boolean;- selection?: boolean;+ sorting?: boolean;+ filtering?: boolean;+ selection?: boolean;};export type PaginationOptions = {- pageSize?: number;- pageSizeOptions?: number[];- itemsPerPageLabel?: string;+ pageSize?: number;+ pageSizeOptions?: number[];+ itemsPerPageLabel?: string;};export type DisplayOptions = {- filterPlaceholder?: string;- noResultsMessage?: string;- isDashboardTable?: boolean;- class?: string;+ filterPlaceholder?: string;+ noResultsMessage?: string;+ isDashboardTable?: boolean;+ class?: string;};export type SortOptions = {- defaultSort?: { id: string; desc: boolean };+ defaultSort?: { id: string; desc: boolean };};export type UniversalTableProps<TData> = {- columns: ColumnDef<TData, any>[];- data: TData[];- features?: FeatureFlags;- display?: DisplayOptions;- pagination?: PaginationOptions;- sort?: SortOptions;- selectedIds?: string[];+ columns: ColumnDef<TData, any>[];+ data: TData[];+ features?: FeatureFlags;+ display?: DisplayOptions;+ pagination?: PaginationOptions;+ sort?: SortOptions;+ selectedIds?: string[];};diff --git a/src/lib/utils.ts b/src/lib/utils.tsindex 2f59459a0..1d9ab947e 100644--- a/src/lib/utils.ts+++ b/src/lib/utils.ts@@ -1,61 +1,54 @@-import { type ClassValue, clsx } from "clsx";-import { twMerge } from "tailwind-merge";+import { type ClassValue, clsx } from 'clsx';+import { twMerge } from 'tailwind-merge';export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));+ return twMerge(clsx(inputs));}-export function debounced<T extends (...args: any[]) => void>(- func: T,- delay: number-) {- let debounceTimeout: ReturnType<typeof setTimeout>;-- return (...args: Parameters<T>) => {- if (debounceTimeout !== undefined) {- clearTimeout(debounceTimeout);- }-- debounceTimeout = setTimeout(() => {- func(...args);- }, delay);- };+export function debounced<T extends (...args: any[]) => void>(func: T, delay: number) {+ let debounceTimeout: ReturnType<typeof setTimeout>;++ return (...args: Parameters<T>) => {+ if (debounceTimeout !== undefined) {+ clearTimeout(debounceTimeout);+ }++ debounceTimeout = setTimeout(() => {+ func(...args);+ }, delay);+ };}export function formatBytes(bytes: number, decimals = 2): string {- if (!+bytes) return "0 Bytes";- const k = 1024;- const dm = decimals < 0 ? 0 : decimals;- const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];- const i = Math.floor(Math.log(bytes) / Math.log(k));- return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;+ if (!+bytes) return '0 Bytes';+ const k = 1024;+ const dm = decimals < 0 ? 0 : decimals;+ const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];+ const i = Math.floor(Math.log(bytes) / Math.log(k));+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;}export const capitalizeFirstLetter = (text: string) => {- if (!text) return "";- return text.charAt(0).toUpperCase() + text.slice(1);+ if (!text) return '';+ return text.charAt(0).toUpperCase() + text.slice(1);};export function formatDate(dateString: string | undefined | null): string {- if (!dateString) return "Unknown";- try {- return new Date(dateString).toLocaleString();- } catch (e) {- return "Invalid Date";- }+ if (!dateString) return 'Unknown';+ try {+ return new Date(dateString).toLocaleString();+ } catch (e) {+ return 'Invalid Date';+ }}// Function to format logs with some basic highlightingexport function formatLogLine(line: string): string {- if (- line.includes("ERROR") ||- line.includes("FATAL") ||- line.includes("WARN")- ) {- return `<span class="text-red-400">${line}</span>`;- }- if (line.includes("INFO")) {- return `<span class="text-blue-400">${line}</span>`;- }- return line;+ if (line.includes('ERROR') || line.includes('FATAL') || line.includes('WARN')) {+ return `<span class="text-red-400">${line}</span>`;+ }+ if (line.includes('INFO')) {+ return `<span class="text-blue-400">${line}</span>`;+ }+ return line;}diff --git a/src/lib/utils/bytes.ts b/src/lib/utils/bytes.tsindex 2cadf80bb..b78acd21a 100644--- a/src/lib/utils/bytes.ts+++ b/src/lib/utils/bytes.ts@@ -1,26 +1,26 @@// filepath: /Users/kylemendell/dev/ofkm/arcane/src/lib/utils/bytes.tsconst units: { [key: string]: number } = {- b: 1,- k: 1024,- m: 1024 * 1024,- g: 1024 * 1024 * 1024,+ b: 1,+ k: 1024,+ m: 1024 * 1024,+ g: 1024 * 1024 * 1024};export function parseBytes(input: string): number {- const valueStr = input.toLowerCase().trim();- const unit = valueStr.charAt(valueStr.length - 1);- const value = parseFloat(valueStr.substring(0, valueStr.length - 1));+ const valueStr = input.toLowerCase().trim();+ const unit = valueStr.charAt(valueStr.length - 1);+ const value = parseFloat(valueStr.substring(0, valueStr.length - 1));- if (isNaN(value)) {- throw new Error(`Invalid numeric value in memory string: ${input}`);- }+ if (isNaN(value)) {+ throw new Error(`Invalid numeric value in memory string: ${input}`);+ }- if (units[unit]) {- return Math.floor(value * units[unit]);- } else if (!isNaN(parseFloat(valueStr))) {- // Assume bytes if no unit- return Math.floor(parseFloat(valueStr));- } else {- throw new Error(`Invalid memory unit: ${unit}. Use b, k, m, or g.`);- }+ if (units[unit]) {+ return Math.floor(value * units[unit]);+ } else if (!isNaN(parseFloat(valueStr))) {+ // Assume bytes if no unit+ return Math.floor(parseFloat(valueStr));+ } else {+ throw new Error(`Invalid memory unit: ${unit}. Use b, k, m, or g.`);+ }}diff --git a/src/lib/utils/form.utils.ts b/src/lib/utils/form.utils.tsindex 0be79594a..a35395a51 100644--- a/src/lib/utils/form.utils.ts+++ b/src/lib/utils/form.utils.ts@@ -1,6 +1,6 @@export function preventDefault(fn: (event: Event) => any) {- return function (this: any, event: Event) {- event.preventDefault();- fn.call(this, event);- };+ return function (this: any, event: Event) {+ event.preventDefault();+ fn.call(this, event);+ };}diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.tsindex aaccfd8f2..5b9f746be 100644--- a/src/routes/+layout.server.ts+++ b/src/routes/+layout.server.ts@@ -1,43 +1,41 @@-import { version as currentVersion } from "$app/environment";-import { env } from "$env/dynamic/private";-import AppConfigService from "$lib/services/app-config-service";-import type { AppVersionInformation } from "$lib/types/application-configuration";-import type { LayoutServerLoad } from "./$types";+import { version as currentVersion } from '$app/environment';+import { env } from '$env/dynamic/private';+import AppConfigService from '$lib/services/app-config-service';+import type { AppVersionInformation } from '$lib/types/application-configuration';+import type { LayoutServerLoad } from './$types';// Cache the version informationlet versionInformation: AppVersionInformation;let versionInformationLastUpdated: number;export const load = (async () => {- // If update checks are disabled via env var, return only current version- const updateCheckDisabled = env.UPDATE_CHECK_DISABLED === "true";+ // If update checks are disabled via env var, return only current version+ const updateCheckDisabled = env.UPDATE_CHECK_DISABLED === 'true';- if (updateCheckDisabled) {- return {- versionInformation: {- currentVersion,- } as AppVersionInformation,- };- }+ if (updateCheckDisabled) {+ return {+ versionInformation: {+ currentVersion+ } as AppVersionInformation+ };+ }- const appConfigService = new AppConfigService();+ const appConfigService = new AppConfigService();- // Cache the version information for 3 hours- const cacheExpired =- versionInformationLastUpdated &&- Date.now() - versionInformationLastUpdated > 1000 * 60 * 60 * 3;+ // Cache the version information for 3 hours+ const cacheExpired = versionInformationLastUpdated && Date.now() - versionInformationLastUpdated > 1000 * 60 * 60 * 3;- if (!versionInformation || cacheExpired) {- try {- versionInformation = await appConfigService.getVersionInformation();- versionInformationLastUpdated = Date.now();- } catch (error) {- console.error("Error fetching version information:", error);- versionInformation = { currentVersion } as AppVersionInformation;- }- }+ if (!versionInformation || cacheExpired) {+ try {+ versionInformation = await appConfigService.getVersionInformation();+ versionInformationLastUpdated = Date.now();+ } catch (error) {+ console.error('Error fetching version information:', error);+ versionInformation = { currentVersion } as AppVersionInformation;+ }+ }- return {- versionInformation,- };+ return {+ versionInformation+ };}) satisfies LayoutServerLoad;diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelteindex fcd3f165e..0724b6eba 100644--- a/src/routes/+layout.svelte+++ b/src/routes/+layout.svelte@@ -1,16 +1,16 @@<!-- @migration task: review uses of `navigating` --><script lang="ts">- import "../app.css";- import { ModeWatcher } from "mode-watcher";- import Nav from "$lib/components/navbar.svelte";- import { Toaster } from "$lib/components/ui/sonner/index.js";- import { navigating } from "$app/state";+ import '../app.css';+ import { ModeWatcher } from 'mode-watcher';+ import Nav from '$lib/components/navbar.svelte';+ import { Toaster } from '$lib/components/ui/sonner/index.js';+ import { navigating } from '$app/state';- let { children, data } = $props();+ let { children, data } = $props();- const versionInformation = data.versionInformation;+ const versionInformation = data.versionInformation;- const isNavigating = $derived(navigating !== null);+ const isNavigating = $derived(navigating !== null);</script><svelte:head><title>Arcane</title></svelte:head>@@ -20,15 +20,15 @@<!-- Apply a loading state to the page during navigation -->{#if isNavigating}- <!-- add a loading indicator heret -->+ <!-- add a loading indicator heret -->{/if}<div class="flex min-h-screen bg-background">- <Nav {versionInformation} />+ <Nav {versionInformation} />- <main class="flex-1">- <section class="p-6">- {@render children()}- </section>- </main>+ <main class="flex-1">+ <section class="p-6">+ {@render children()}+ </section>+ </main></div>diff --git a/src/routes/+page.server.ts b/src/routes/+page.server.tsindex 56b54852f..d8ed2f776 100644--- a/src/routes/+page.server.ts+++ b/src/routes/+page.server.ts@@ -1,69 +1,59 @@-import type { PageServerLoad } from "./$types";-import {- getDockerInfo,- listContainers,- listImages,-} from "$lib/services/docker-service";-import type {- ServiceContainer,- ServiceImage,-} from "$lib/services/docker-service";+import type { PageServerLoad } from './$types';+import { getDockerInfo, listContainers, listImages } from '$lib/services/docker-service';+import type { ServiceContainer, ServiceImage } from '$lib/services/docker-service';// Infer the Docker Info type from the return type of getDockerInfotype DockerInfoType = Awaited<ReturnType<typeof getDockerInfo>>;// Define a type for the combined data using the inferred typetype DashboardData = {- dockerInfo: DockerInfoType | null; // Use the inferred type- containers: ServiceContainer[];- images: ServiceImage[];- error?: string;+ dockerInfo: DockerInfoType | null; // Use the inferred type+ containers: ServiceContainer[];+ images: ServiceImage[];+ error?: string;};export const load: PageServerLoad = async (): Promise<DashboardData> => {- try {- // Fetch all data concurrently- const [dockerInfo, containers, images] = await Promise.all([- getDockerInfo().catch((e) => {- console.error("Dashboard: Failed to get Docker info:", e.message);- return null; // Return null on error for this specific piece- }),- listContainers(true).catch((e) => {- console.error("Dashboard: Failed to list containers:", e.message);- return []; // Return empty array on error- }),- listImages().catch((e) => {- console.error("Dashboard: Failed to list images:", e.message);- return []; // Return empty array on error- }),- ]);+ try {+ // Fetch all data concurrently+ const [dockerInfo, containers, images] = await Promise.all([+ getDockerInfo().catch((e) => {+ console.error('Dashboard: Failed to get Docker info:', e.message);+ return null; // Return null on error for this specific piece+ }),+ listContainers(true).catch((e) => {+ console.error('Dashboard: Failed to list containers:', e.message);+ return []; // Return empty array on error+ }),+ listImages().catch((e) => {+ console.error('Dashboard: Failed to list images:', e.message);+ return []; // Return empty array on error+ })+ ]);- // Check if the primary connection failed- if (!dockerInfo) {- return {- dockerInfo: null,- containers: [],- images: [],- error:- "Failed to connect to Docker Engine. Please check settings and ensure Docker is running.",- };- }+ // Check if the primary connection failed+ if (!dockerInfo) {+ return {+ dockerInfo: null,+ containers: [],+ images: [],+ error: 'Failed to connect to Docker Engine. Please check settings and ensure Docker is running.'+ };+ }- return {- dockerInfo,- containers,- images,- };- } catch (err: any) {- // Catch any unexpected errors during Promise.all or processing- console.error("Dashboard: Unexpected error loading data:", err);- return {- dockerInfo: null,- containers: [],- images: [],- error:- err.message ||- "An unexpected error occurred while loading dashboard data.",- };- }+ return {+ dockerInfo,+ containers,+ images+ };+ } catch (err: any) {+ // Catch any unexpected errors during Promise.all or processing+ console.error('Dashboard: Unexpected error loading data:', err);+ return {+ dockerInfo: null,+ containers: [],+ images: [],+ error: err.message || 'An unexpected error occurred while loading dashboard data.'+ };+ }};diff --git a/src/routes/+page.svelte b/src/routes/+page.svelteindex 3cf1892dd..4c2040d92 100644--- a/src/routes/+page.svelte+++ b/src/routes/+page.svelte@@ -1,58 +1,39 @@<script lang="ts">- import type { PageData } from "./$types";- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import UniversalTable from "$lib/components/universal-table.svelte";- import { dashboardContainerColumns, dashboardImageColumns } from "./columns";- import {- AlertCircle,- Box,- HardDrive,- Cpu,- MemoryStick,- ArrowRight,- PlayCircle,- StopCircle,- Trash2,- Settings,- } from "@lucide/svelte";- import * as Alert from "$lib/components/ui/alert/index.js";- import { Progress } from "$lib/components/ui/progress/index.js";- import { Badge } from "$lib/components/ui/badge/index.js";- import { formatBytes } from "$lib/utils";- import StatusBadge from "$lib/components/badges/status-badge.svelte";+ import type { PageData } from './$types';+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { dashboardContainerColumns, dashboardImageColumns } from './columns';+ import { AlertCircle, Box, HardDrive, Cpu, MemoryStick, ArrowRight, PlayCircle, StopCircle, Trash2, Settings } from '@lucide/svelte';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { Progress } from '$lib/components/ui/progress/index.js';+ import { Badge } from '$lib/components/ui/badge/index.js';+ import { formatBytes } from '$lib/utils';+ import StatusBadge from '$lib/components/badges/status-badge.svelte';- let { data }: { data: PageData } = $props();- const { dockerInfo, containers, images, error } = data;- let isRefreshing = $state(false);+ let { data }: { data: PageData } = $props();+ const { dockerInfo, containers, images, error } = data;+ let isRefreshing = $state(false);- // Calculate running containers count- const runningContainers = $derived(- containers?.filter((c) => c.state === "running").length ?? 0- );+ // Calculate running containers count+ const runningContainers = $derived(containers?.filter((c) => c.state === 'running').length ?? 0);- // Calculate stopped containers count- const stoppedContainers = $derived(- containers?.filter((c) => c.state === "exited").length ?? 0- );+ // Calculate stopped containers count+ const stoppedContainers = $derived(containers?.filter((c) => c.state === 'exited').length ?? 0);- // Calculate total image size- const totalImageSize = $derived(- images?.reduce((sum, image) => sum + (image.size || 0), 0) ?? 0- );+ // Calculate total image size+ const totalImageSize = $derived(images?.reduce((sum, image) => sum + (image.size || 0), 0) ?? 0);</script><div class="space-y-8">- <!-- Header with refresh button -->- <div class="flex justify-between items-center">- <div>- <h1 class="text-3xl font-bold tracking-tight">Dashboard</h1>- <p class="text-sm text-muted-foreground mt-1">- Overview of your Docker environment- </p>- </div>- <!-- Dont remove this button -->- <!-- <Button+ <!-- Header with refresh button -->+ <div class="flex justify-between items-center">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Dashboard</h1>+ <p class="text-sm text-muted-foreground mt-1">Overview of your Docker environment</p>+ </div>+ <!-- Dont remove this button -->+ <!-- <Buttonvariant="outline"size="sm"class="h-9"@@ -62,340 +43,277 @@<RefreshCw class={`h-4 w-4 mr-2 ${isRefreshing ? "animate-spin" : ""}`} />Refresh</Button> -->- </div>+ </div>- {#if error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Connection Error</Alert.Title>- <Alert.Description>- {error} Please check your Docker connection in- <a href="/settings" class="underline">Settings</a>.- </Alert.Description>- </Alert.Root>- {/if}+ {#if error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Connection Error</Alert.Title>+ <Alert.Description>+ {error} Please check your Docker connection in+ <a href="/settings" class="underline">Settings</a>.+ </Alert.Description>+ </Alert.Root>+ {/if}- <!-- Engine Overview Section -->- <section>- <div class="flex items-center justify-between mb-4">- <h2 class="text-lg font-semibold tracking-tight">Engine Overview</h2>- </div>+ <!-- Engine Overview Section -->+ <section>+ <div class="flex items-center justify-between mb-4">+ <h2 class="text-lg font-semibold tracking-tight">Engine Overview</h2>+ </div>- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">- <!-- Running Containers Card -->- <Card.Root class="overflow-hidden border-l-4 border-l-green-500">- <Card.Content class="p-6">- <div class="flex justify-between items-start">- <div>- <p class="text-sm font-medium text-muted-foreground">- Running Containers- </p>- <div class="mt-1">- <p class="text-2xl font-bold">- {runningContainers}- <span class="text-xs font-normal text-muted-foreground ml-1"- >/ {containers?.length || 0}</span- >- </p>- </div>- </div>- <div class="bg-green-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-green-500" />- </div>- </div>- {#if containers?.length}- <Progress- value={(runningContainers / containers.length) * 100}- class="h-1 mt-4"- />- {/if}- </Card.Content>- </Card.Root>+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">+ <!-- Running Containers Card -->+ <Card.Root class="overflow-hidden border-l-4 border-l-green-500">+ <Card.Content class="p-6">+ <div class="flex justify-between items-start">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Running Containers</p>+ <div class="mt-1">+ <p class="text-2xl font-bold">+ {runningContainers}+ <span class="text-xs font-normal text-muted-foreground ml-1">/ {containers?.length || 0}</span>+ </p>+ </div>+ </div>+ <div class="bg-green-500/10 p-2 rounded-full">+ <Box class="h-5 w-5 text-green-500" />+ </div>+ </div>+ {#if containers?.length}+ <Progress value={(runningContainers / containers.length) * 100} class="h-1 mt-4" />+ {/if}+ </Card.Content>+ </Card.Root>- <!-- Images Card -->- <Card.Root class="overflow-hidden border-l-4 border-l-blue-500">- <Card.Content class="p-6">- <div class="flex justify-between items-start">- <div>- <p class="text-sm font-medium text-muted-foreground">Images</p>- <p class="text-2xl font-bold mt-1">{dockerInfo?.Images || 0}</p>- </div>- <div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />- </div>- </div>- {#if totalImageSize > 0}- <div class="mt-4 text-xs text-muted-foreground">- Total size: {formatBytes(totalImageSize)}- </div>- {:else if dockerInfo?.Images === 0}- <div class="mt-4 text-xs text-muted-foreground">- No images stored- </div>- {/if}- </Card.Content>- </Card.Root>+ <!-- Images Card -->+ <Card.Root class="overflow-hidden border-l-4 border-l-blue-500">+ <Card.Content class="p-6">+ <div class="flex justify-between items-start">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Images</p>+ <p class="text-2xl font-bold mt-1">{dockerInfo?.Images || 0}</p>+ </div>+ <div class="bg-blue-500/10 p-2 rounded-full">+ <HardDrive class="h-5 w-5 text-blue-500" />+ </div>+ </div>+ {#if totalImageSize > 0}+ <div class="mt-4 text-xs text-muted-foreground">+ Total size: {formatBytes(totalImageSize)}+ </div>+ {:else if dockerInfo?.Images === 0}+ <div class="mt-4 text-xs text-muted-foreground">No images stored</div>+ {/if}+ </Card.Content>+ </Card.Root>- <!-- CPU Card -->- <Card.Root class="overflow-hidden border-l-4 border-l-purple-500">- <Card.Content class="p-6">- <div class="flex justify-between items-start">- <div>- <p class="text-sm font-medium text-muted-foreground">CPU</p>- <p class="text-2xl font-bold mt-1">{dockerInfo?.NCPU || "N/A"}</p>- </div>- <div class="bg-purple-500/10 p-2 rounded-full">- <Cpu class="h-5 w-5 text-purple-500" />- </div>- </div>- <div class="mt-4 text-xs text-muted-foreground">- {dockerInfo?.Architecture || "Unknown architecture"}- </div>- </Card.Content>- </Card.Root>+ <!-- CPU Card -->+ <Card.Root class="overflow-hidden border-l-4 border-l-purple-500">+ <Card.Content class="p-6">+ <div class="flex justify-between items-start">+ <div>+ <p class="text-sm font-medium text-muted-foreground">CPU</p>+ <p class="text-2xl font-bold mt-1">{dockerInfo?.NCPU || 'N/A'}</p>+ </div>+ <div class="bg-purple-500/10 p-2 rounded-full">+ <Cpu class="h-5 w-5 text-purple-500" />+ </div>+ </div>+ <div class="mt-4 text-xs text-muted-foreground">+ {dockerInfo?.Architecture || 'Unknown architecture'}+ </div>+ </Card.Content>+ </Card.Root>- <!-- Memory Card -->- <Card.Root class="overflow-hidden border-l-4 border-l-amber-500">- <Card.Content class="p-6">- <div class="flex justify-between items-start">- <div>- <p class="text-sm font-medium text-muted-foreground">Memory</p>- <p class="text-2xl font-bold mt-1">- {formatBytes(dockerInfo?.MemTotal, 0)}- </p>- </div>- <div class="bg-amber-500/10 p-2 rounded-full">- <MemoryStick class="h-5 w-5 text-amber-500" />- </div>- </div>- <div class="mt-4 text-xs text-muted-foreground">- {dockerInfo?.OperatingSystem || "Unknown OS"}- {#if dockerInfo?.ServerVersion}- <span class="ml-1">• v{dockerInfo.ServerVersion}</span>- {/if}- </div>- </Card.Content>- </Card.Root>- </div>- </section>+ <!-- Memory Card -->+ <Card.Root class="overflow-hidden border-l-4 border-l-amber-500">+ <Card.Content class="p-6">+ <div class="flex justify-between items-start">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Memory</p>+ <p class="text-2xl font-bold mt-1">+ {formatBytes(dockerInfo?.MemTotal, 0)}+ </p>+ </div>+ <div class="bg-amber-500/10 p-2 rounded-full">+ <MemoryStick class="h-5 w-5 text-amber-500" />+ </div>+ </div>+ <div class="mt-4 text-xs text-muted-foreground">+ {dockerInfo?.OperatingSystem || 'Unknown OS'}+ {#if dockerInfo?.ServerVersion}+ <span class="ml-1">• v{dockerInfo.ServerVersion}</span>+ {/if}+ </div>+ </Card.Content>+ </Card.Root>+ </div>+ </section>- <!-- Quick Actions Section -->- <section>- <h2 class="text-lg font-semibold tracking-tight mb-4">Quick Actions</h2>- <div class="grid grid-cols-1 sm:grid-cols-3 gap-3">- <Card.Root class="flex flex-col justify-center items-center p-5 h-full">- <Button- class="w-full"- disabled={!dockerInfo || stoppedContainers === 0}- variant="default"- >- <PlayCircle class="h-4 w-4 mr-2" />- Start All Stopped- <StatusBadge variant="amber" text={stoppedContainers.toString()} />- </Button>- <p class="text-xs text-muted-foreground mt-2">- Start all stopped containers- </p>- </Card.Root>+ <!-- Quick Actions Section -->+ <section>+ <h2 class="text-lg font-semibold tracking-tight mb-4">Quick Actions</h2>+ <div class="grid grid-cols-1 sm:grid-cols-3 gap-3">+ <Card.Root class="flex flex-col justify-center items-center p-5 h-full">+ <Button class="w-full" disabled={!dockerInfo || stoppedContainers === 0} variant="default">+ <PlayCircle class="h-4 w-4 mr-2" />+ Start All Stopped+ <StatusBadge variant="amber" text={stoppedContainers.toString()} />+ </Button>+ <p class="text-xs text-muted-foreground mt-2">Start all stopped containers</p>+ </Card.Root>- <Card.Root class="flex flex-col justify-center items-center p-5 h-full">- <Button- class="w-full"- variant="secondary"- disabled={!dockerInfo || runningContainers === 0}- >- <StopCircle class="h-4 w-4 mr-2" />- Stop All Running- <StatusBadge variant="amber" text={runningContainers.toString()} />- </Button>- <p class="text-xs text-muted-foreground mt-2">- Stop all running containers- </p>- </Card.Root>+ <Card.Root class="flex flex-col justify-center items-center p-5 h-full">+ <Button class="w-full" variant="secondary" disabled={!dockerInfo || runningContainers === 0}>+ <StopCircle class="h-4 w-4 mr-2" />+ Stop All Running+ <StatusBadge variant="amber" text={runningContainers.toString()} />+ </Button>+ <p class="text-xs text-muted-foreground mt-2">Stop all running containers</p>+ </Card.Root>- <Card.Root class="flex flex-col justify-center items-center p-5 h-full">- <Button class="w-full" variant="destructive" disabled={!dockerInfo}>- <Trash2 class="h-4 w-4 mr-2" />- Prune System- </Button>- <p class="text-xs text-muted-foreground mt-2">Remove unused data</p>- </Card.Root>- </div>- </section>+ <Card.Root class="flex flex-col justify-center items-center p-5 h-full">+ <Button class="w-full" variant="destructive" disabled={!dockerInfo}>+ <Trash2 class="h-4 w-4 mr-2" />+ Prune System+ </Button>+ <p class="text-xs text-muted-foreground mt-2">Remove unused data</p>+ </Card.Root>+ </div>+ </section>- <!-- Resources Section -->- <section>- <h2 class="text-lg font-semibold tracking-tight mb-4">Resources</h2>- <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">- <!-- Containers List -->- <Card.Root class="border shadow-sm relative flex flex-col">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Containers</Card.Title>- <Card.Description class="pb-3">Recent containers</Card.Description- >- </div>- <Button- variant="ghost"- size="sm"- href="/containers"- disabled={!dockerInfo}- >- View All- <ArrowRight class="ml-2 h-4 w-4" />- </Button>- </div>- </Card.Header>- <Card.Content class="p-0 flex-1">- {#if containers?.length > 0}- <div class="flex flex-col h-full">- <div class="flex-1">- <UniversalTable- data={containers.slice(0, 5)}- columns={dashboardContainerColumns}- features={{- filtering: false,- selection: false,- }}- pagination={{- pageSize: 5,- pageSizeOptions: [5],- }}- display={{- isDashboardTable: true,- }}- />- </div>- {#if containers.length > 5}- <div- class="bg-muted/40 py-2 px-6 text-xs text-muted-foreground border-t"- >- Showing 5 of {containers.length} containers- </div>- {/if}- </div>- {:else if !error}- <div- class="flex flex-col items-center justify-center py-10 px-6 text-center"- >- <Box class="h-8 w-8 text-muted-foreground mb-2 opacity-40" />- <p class="text-sm text-muted-foreground">No containers found</p>- <p class="text-xs text-muted-foreground mt-1">- Use Docker CLI or another tool to create containers- </p>- </div>- {/if}- </Card.Content>- </Card.Root>+ <!-- Resources Section -->+ <section>+ <h2 class="text-lg font-semibold tracking-tight mb-4">Resources</h2>+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">+ <!-- Containers List -->+ <Card.Root class="border shadow-sm relative flex flex-col">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Containers</Card.Title>+ <Card.Description class="pb-3">Recent containers</Card.Description>+ </div>+ <Button variant="ghost" size="sm" href="/containers" disabled={!dockerInfo}>+ View All+ <ArrowRight class="ml-2 h-4 w-4" />+ </Button>+ </div>+ </Card.Header>+ <Card.Content class="p-0 flex-1">+ {#if containers?.length > 0}+ <div class="flex flex-col h-full">+ <div class="flex-1">+ <UniversalTable+ data={containers.slice(0, 5)}+ columns={dashboardContainerColumns}+ features={{+ filtering: false,+ selection: false+ }}+ pagination={{+ pageSize: 5,+ pageSizeOptions: [5]+ }}+ display={{+ isDashboardTable: true+ }}+ />+ </div>+ {#if containers.length > 5}+ <div class="bg-muted/40 py-2 px-6 text-xs text-muted-foreground border-t">+ Showing 5 of {containers.length} containers+ </div>+ {/if}+ </div>+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-10 px-6 text-center">+ <Box class="h-8 w-8 text-muted-foreground mb-2 opacity-40" />+ <p class="text-sm text-muted-foreground">No containers found</p>+ <p class="text-xs text-muted-foreground mt-1">Use Docker CLI or another tool to create containers</p>+ </div>+ {/if}+ </Card.Content>+ </Card.Root>- <!-- Images List -->- <Card.Root class="border shadow-sm relative flex flex-col">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Images</Card.Title>- <Card.Description class="pb-3">Recent images</Card.Description>- </div>- <Button- variant="ghost"- size="sm"- href="/images"- disabled={!dockerInfo}- >- View All- <ArrowRight class="ml-2 h-4 w-4" />- </Button>- </div>- </Card.Header>- <Card.Content class="p-0 flex-1">- {#if images?.length > 0}- <div class="flex flex-col h-full">- <div class="flex-1">- <UniversalTable- data={images.slice(0, 5)}- columns={dashboardImageColumns}- features={{- filtering: false,- selection: false,- }}- pagination={{- pageSize: 5,- pageSizeOptions: [5],- }}- display={{- isDashboardTable: true,- }}- sort={{- defaultSort: { id: "repo", desc: false },- }}- />- </div>- {#if images.length > 5}- <div- class="bg-muted/40 py-2 px-6 text-xs text-muted-foreground border-t"- >- Showing 5 of {images.length} images- </div>- {/if}- </div>- {:else if !error}- <div- class="flex flex-col items-center justify-center py-10 px-6 text-center"- >- <HardDrive- class="h-8 w-8 text-muted-foreground mb-2 opacity-40"- />- <p class="text-sm text-muted-foreground">No images found</p>- <p class="text-xs text-muted-foreground mt-1">- Pull images using Docker CLI or another tool- </p>- </div>- {/if}- </Card.Content>- </Card.Root>- </div>- </section>+ <!-- Images List -->+ <Card.Root class="border shadow-sm relative flex flex-col">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Images</Card.Title>+ <Card.Description class="pb-3">Recent images</Card.Description>+ </div>+ <Button variant="ghost" size="sm" href="/images" disabled={!dockerInfo}>+ View All+ <ArrowRight class="ml-2 h-4 w-4" />+ </Button>+ </div>+ </Card.Header>+ <Card.Content class="p-0 flex-1">+ {#if images?.length > 0}+ <div class="flex flex-col h-full">+ <div class="flex-1">+ <UniversalTable+ data={images.slice(0, 5)}+ columns={dashboardImageColumns}+ features={{+ filtering: false,+ selection: false+ }}+ pagination={{+ pageSize: 5,+ pageSizeOptions: [5]+ }}+ display={{+ isDashboardTable: true+ }}+ sort={{+ defaultSort: { id: 'repo', desc: false }+ }}+ />+ </div>+ {#if images.length > 5}+ <div class="bg-muted/40 py-2 px-6 text-xs text-muted-foreground border-t">+ Showing 5 of {images.length} images+ </div>+ {/if}+ </div>+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-10 px-6 text-center">+ <HardDrive class="h-8 w-8 text-muted-foreground mb-2 opacity-40" />+ <p class="text-sm text-muted-foreground">No images found</p>+ <p class="text-xs text-muted-foreground mt-1">Pull images using Docker CLI or another tool</p>+ </div>+ {/if}+ </Card.Content>+ </Card.Root>+ </div>+ </section>- <!-- Footer Links -->- <section class="border-t pt-4 mt-10">- <div- class="flex justify-between items-center text-muted-foreground text-sm"- >- <div class="flex items-center">- <a- href="/settings"- class="hover:text-foreground transition-colors"- title="Settings"- >- <Settings class="h-4 w-4" />- <span class="sr-only">Settings</span>- </a>- <span class="mx-2">•</span>- <a- href="https://github.com/ofkm/arcane"- target="_blank"- rel="noopener noreferrer"- class="hover:text-foreground transition-colors"- title="GitHub"- >- <svg- role="img"- viewBox="0 0 24 24"- xmlns="http://www.w3.org/2000/svg"- class="h-4 w-4 fill-current"- >- <title>GitHub</title>- <path- d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"- />- </svg>- <span class="sr-only">GitHub</span>- </a>- </div>- <div>- <!-- Optional: Add version or other info here -->- </div>- </div>- </section>+ <!-- Footer Links -->+ <section class="border-t pt-4 mt-10">+ <div class="flex justify-between items-center text-muted-foreground text-sm">+ <div class="flex items-center">+ <a href="/settings" class="hover:text-foreground transition-colors" title="Settings">+ <Settings class="h-4 w-4" />+ <span class="sr-only">Settings</span>+ </a>+ <span class="mx-2">•</span>+ <a href="https://github.com/ofkm/arcane" target="_blank" rel="noopener noreferrer" class="hover:text-foreground transition-colors" title="GitHub">+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 fill-current">+ <title>GitHub</title>+ <path+ d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"+ />+ </svg>+ <span class="sr-only">GitHub</span>+ </a>+ </div>+ <div>+ <!-- Optional: Add version or other info here -->+ </div>+ </div>+ </section></div>diff --git a/src/routes/api/containers/+server.ts b/src/routes/api/containers/+server.tsindex 30fe82bbd..20e2210ea 100644--- a/src/routes/api/containers/+server.ts+++ b/src/routes/api/containers/+server.ts@@ -1,34 +1,31 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { createContainer } from "$lib/services/docker-service";-import type { ContainerConfig } from "$lib/types/docker";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { createContainer } from '$lib/services/docker-service';+import type { ContainerConfig } from '$lib/types/docker';export const POST: RequestHandler = async ({ request }) => {- try {- const config = (await request.json()) as ContainerConfig;+ try {+ const config = (await request.json()) as ContainerConfig;- // Validate required fields- if (!config.name || !config.image) {- return json(- { success: false, error: "Container name and image are required" },- { status: 400 }- );- }+ // Validate required fields+ if (!config.name || !config.image) {+ return json({ success: false, error: 'Container name and image are required' }, { status: 400 });+ }- const container = await createContainer(config);+ const container = await createContainer(config);- return json({- success: true,- container,- });- } catch (error: any) {- console.error("Error creating container:", error);- return json(- {- success: false,- error: error.message || "Failed to create container",- },- { status: 500 }- );- }+ return json({+ success: true,+ container+ });+ } catch (error: any) {+ console.error('Error creating container:', error);+ return json(+ {+ success: false,+ error: error.message || 'Failed to create container'+ },+ { status: 500 }+ );+ }};diff --git a/src/routes/api/docker/+server.ts b/src/routes/api/docker/+server.tsindex 642fa797c..640018444 100644--- a/src/routes/api/docker/+server.ts+++ b/src/routes/api/docker/+server.ts@@ -1,29 +1,26 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';// Docker system info endpointexport const GET: RequestHandler = async () => {- try {- // Replace with actual Docker API call- // const docker = new Docker();- // const info = await docker.info();- const info = {- version: "25.0.0",- containers: 3,- images: 12,- os: "Linux",- arch: "x86_64",- };+ try {+ // Replace with actual Docker API call+ // const docker = new Docker();+ // const info = await docker.info();+ const info = {+ version: '25.0.0',+ containers: 3,+ images: 12,+ os: 'Linux',+ arch: 'x86_64'+ };- return json(info);- } catch (error) {- console.error("Error fetching Docker info:", error);- return new Response(- JSON.stringify({ error: "Failed to fetch Docker info" }),- {- status: 500,- headers: { "Content-Type": "application/json" },- }- );- }+ return json(info);+ } catch (error) {+ console.error('Error fetching Docker info:', error);+ return new Response(JSON.stringify({ error: 'Failed to fetch Docker info' }), {+ status: 500,+ headers: { 'Content-Type': 'application/json' }+ });+ }};diff --git a/src/routes/api/docker/containers/+server.ts b/src/routes/api/docker/containers/+server.tsindex e595a17cc..5a6b2c9b5 100644--- a/src/routes/api/docker/containers/+server.ts+++ b/src/routes/api/docker/containers/+server.ts@@ -1,35 +1,32 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { listContainers } from "$lib/services/docker-service"; // Import the service function+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { listContainers } from '$lib/services/docker-service'; // Import the service functionexport const GET: RequestHandler = async () => {- try {- const containers = await listContainers(true); // Get all containers- return json(containers);- } catch (error: any) {- console.error("API Error fetching containers:", error);- // Return an appropriate error response- return json(- { error: error.message || "Failed to fetch containers" },- { status: 500 }- );- }+ try {+ const containers = await listContainers(true); // Get all containers+ return json(containers);+ } catch (error: any) {+ console.error('API Error fetching containers:', error);+ // Return an appropriate error response+ return json({ error: error.message || 'Failed to fetch containers' }, { status: 500 });+ }};export const POST: RequestHandler = async ({ request }) => {- const data = await request.json();- // Create a new container using the service- // try {- // const newContainer = await createContainer(data); // Assuming you add createContainer to docker.ts- // return json(newContainer, { status: 201 });- // } catch (error: any) {- // return json({ error: error.message || 'Failed to create container' }, { status: 500 });- // }+ const data = await request.json();+ // Create a new container using the service+ // try {+ // const newContainer = await createContainer(data); // Assuming you add createContainer to docker.ts+ // return json(newContainer, { status: 201 });+ // } catch (error: any) {+ // return json({ error: error.message || 'Failed to create container' }, { status: 500 });+ // }- // Placeholder response for now- return json({- message: "Create endpoint not fully implemented",- id: "new_container_id",- name: data.name,- });+ // Placeholder response for now+ return json({+ message: 'Create endpoint not fully implemented',+ id: 'new_container_id',+ name: data.name+ });};diff --git a/src/routes/api/docker/test-connection/+server.ts b/src/routes/api/docker/test-connection/+server.tsindex 90aef6c24..c8f3ccf64 100644--- a/src/routes/api/docker/test-connection/+server.ts+++ b/src/routes/api/docker/test-connection/+server.ts@@ -1,38 +1,33 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { getDockerInfo } from "$lib/services/docker-service"; // Adjust path if needed+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { getDockerInfo } from '$lib/services/docker-service'; // Adjust path if neededexport const GET: RequestHandler = async ({ url }) => {- // Get the host to test from query parameters- const hostToTest = url.searchParams.get("host");+ // Get the host to test from query parameters+ const hostToTest = url.searchParams.get('host');- if (!hostToTest) {- return json(- { success: false, error: 'Missing "host" query parameter.' },- { status: 400 } // Bad Request- );- }+ if (!hostToTest) {+ return json(+ { success: false, error: 'Missing "host" query parameter.' },+ { status: 400 } // Bad Request+ );+ }- try {- // Pass the host from the query param to the service function- await getDockerInfo();- return json({- success: true,- message: `Successfully connected to Docker Engine at ${hostToTest}.`,- });- } catch (error: any) {- console.error(- `Docker connection test failed for host ${hostToTest}:`,- error- );- return json(- {- success: false,- error:- error.message ||- `Failed to connect to Docker Engine at ${hostToTest}.`,- },- { status: 503 }- );- }+ try {+ // Pass the host from the query param to the service function+ await getDockerInfo();+ return json({+ success: true,+ message: `Successfully connected to Docker Engine at ${hostToTest}.`+ });+ } catch (error: any) {+ console.error(`Docker connection test failed for host ${hostToTest}:`, error);+ return json(+ {+ success: false,+ error: error.message || `Failed to connect to Docker Engine at ${hostToTest}.`+ },+ { status: 503 }+ );+ }};diff --git a/src/routes/api/images/[id]/+server.ts b/src/routes/api/images/[id]/+server.tsindex f2e34dc93..6caab9a13 100644--- a/src/routes/api/images/[id]/+server.ts+++ b/src/routes/api/images/[id]/+server.ts@@ -1,19 +1,16 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { removeImage } from "$lib/services/docker-service";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { removeImage } from '$lib/services/docker-service';export const DELETE: RequestHandler = async ({ params, url }) => {- const { id } = params;- const force = url.searchParams.get("force") === "true";+ const { id } = params;+ const force = url.searchParams.get('force') === 'true';- try {- await removeImage(id, force);- return json({ success: true });- } catch (error: any) {- console.error("API Error removing image:", error);- return json(- { error: `Failed to remove image: ${error.message || "Unknown error"}` },- { status: 500 }- );- }+ try {+ await removeImage(id, force);+ return json({ success: true });+ } catch (error: any) {+ console.error('API Error removing image:', error);+ return json({ error: `Failed to remove image: ${error.message || 'Unknown error'}` }, { status: 500 });+ }};diff --git a/src/routes/api/images/prune/+server.ts b/src/routes/api/images/prune/+server.tsindex 954f3de46..3c075c2bd 100644--- a/src/routes/api/images/prune/+server.ts+++ b/src/routes/api/images/prune/+server.ts@@ -1,29 +1,26 @@-import { json, error } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { pruneImages } from "$lib/services/docker-service";-import { getSettings } from "$lib/services/settings-service";-import { formatBytes } from "$lib/utils";+import { json, error } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { pruneImages } from '$lib/services/docker-service';+import { getSettings } from '$lib/services/settings-service';+import { formatBytes } from '$lib/utils';export const POST: RequestHandler = async () => {- try {- const settings = await getSettings();- const pruneMode = settings.pruneMode;+ try {+ const settings = await getSettings();+ const pruneMode = settings.pruneMode;- const result = await pruneImages(pruneMode); // Pass the mode- const spaceReclaimedFormatted = formatBytes(result.SpaceReclaimed || 0);- const message =- result.ImagesDeleted && result.ImagesDeleted.length > 0- ? `Successfully pruned ${result.ImagesDeleted.length} image(s). Space reclaimed: ${spaceReclaimedFormatted}.`- : `No unused images found to prune. Space reclaimed: ${spaceReclaimedFormatted}.`;+ const result = await pruneImages(pruneMode); // Pass the mode+ const spaceReclaimedFormatted = formatBytes(result.SpaceReclaimed || 0);+ const message = result.ImagesDeleted && result.ImagesDeleted.length > 0 ? `Successfully pruned ${result.ImagesDeleted.length} image(s). Space reclaimed: ${spaceReclaimedFormatted}.` : `No unused images found to prune. Space reclaimed: ${spaceReclaimedFormatted}.`;- return json({- success: true,- message: message,- spaceReclaimed: result.SpaceReclaimed,- imagesDeletedCount: result.ImagesDeleted?.length || 0,- });- } catch (err: any) {- console.error("API Error pruning images:", err);- throw error(500, err.message || "Failed to prune images");- }+ return json({+ success: true,+ message: message,+ spaceReclaimed: result.SpaceReclaimed,+ imagesDeletedCount: result.ImagesDeleted?.length || 0+ });+ } catch (err: any) {+ console.error('API Error pruning images:', err);+ throw error(500, err.message || 'Failed to prune images');+ }};diff --git a/src/routes/api/images/pull-stream/[...name]/+server.ts b/src/routes/api/images/pull-stream/[...name]/+server.tsindex f7abf31c9..cdb137b0c 100644--- a/src/routes/api/images/pull-stream/[...name]/+server.ts+++ b/src/routes/api/images/pull-stream/[...name]/+server.ts@@ -1,92 +1,83 @@-import type { RequestHandler } from "./$types";-import { getDockerClient } from "$lib/services/docker-service";+import type { RequestHandler } from './$types';+import { getDockerClient } from '$lib/services/docker-service';export const GET: RequestHandler = async ({ params, request }) => {- const imageRef = params.name;+ const imageRef = params.name;- // Set up SSE headers- const headers = new Headers({- "Content-Type": "text/event-stream",- "Cache-Control": "no-cache",- Connection: "keep-alive",- });+ // Set up SSE headers+ const headers = new Headers({+ 'Content-Type': 'text/event-stream',+ 'Cache-Control': 'no-cache',+ Connection: 'keep-alive'+ });- const stream = new ReadableStream({- async start(controller) {- try {- const docker = getDockerClient();+ const stream = new ReadableStream({+ async start(controller) {+ try {+ const docker = getDockerClient();- function send(data: any) {- controller.enqueue(- new TextEncoder().encode(`data: ${JSON.stringify(data)}\n\n`)- );- }+ function send(data: any) {+ controller.enqueue(new TextEncoder().encode(`data: ${JSON.stringify(data)}\n\n`));+ }- const pullStream = await docker.pull(imageRef);+ const pullStream = await docker.pull(imageRef);- let layers: Record<string, any> = {};- let totalProgress = 0;+ let layers: Record<string, any> = {};+ let totalProgress = 0;- docker.modem.followProgress(- pullStream,- (err: Error | null, output: any[]) => {- // Pull complete- if (err) {- send({ error: err.message });- } else {- send({ complete: true, progress: 100 });- }- controller.close();- },- (event: any) => {- if (event.id && event.status) {- if (!layers[event.id]) {- layers[event.id] = { current: 0, total: 0 };- }+ docker.modem.followProgress(+ pullStream,+ (err: Error | null, output: any[]) => {+ // Pull complete+ if (err) {+ send({ error: err.message });+ } else {+ send({ complete: true, progress: 100 });+ }+ controller.close();+ },+ (event: any) => {+ if (event.id && event.status) {+ if (!layers[event.id]) {+ layers[event.id] = { current: 0, total: 0 };+ }- if (- event.progressDetail &&- event.progressDetail.current &&- event.progressDetail.total- ) {- layers[event.id].current = event.progressDetail.current;- layers[event.id].total = event.progressDetail.total;- }+ if (event.progressDetail && event.progressDetail.current && event.progressDetail.total) {+ layers[event.id].current = event.progressDetail.current;+ layers[event.id].total = event.progressDetail.total;+ }- let totalSize = 0;- let currentProgress = 0;+ let totalSize = 0;+ let currentProgress = 0;- Object.values(layers).forEach((layer: any) => {- if (layer.total > 0) {- totalSize += layer.total;- currentProgress += layer.current;- }- });+ Object.values(layers).forEach((layer: any) => {+ if (layer.total > 0) {+ totalSize += layer.total;+ currentProgress += layer.current;+ }+ });- if (totalSize > 0) {- totalProgress = Math.min(- 99,- Math.floor((currentProgress / totalSize) * 100)- );- send({ progress: totalProgress, status: event.status });- } else {- send({ progress: 5, status: event.status });- }- }- }- );- } catch (error: any) {- controller.enqueue(- new TextEncoder().encode(- `data: ${JSON.stringify({- error: error.message || "Unknown error pulling image",- })}\n\n`- )- );- controller.close();- }- },- });+ if (totalSize > 0) {+ totalProgress = Math.min(99, Math.floor((currentProgress / totalSize) * 100));+ send({ progress: totalProgress, status: event.status });+ } else {+ send({ progress: 5, status: event.status });+ }+ }+ }+ );+ } catch (error: any) {+ controller.enqueue(+ new TextEncoder().encode(+ `data: ${JSON.stringify({+ error: error.message || 'Unknown error pulling image'+ })}\n\n`+ )+ );+ controller.close();+ }+ }+ });- return new Response(stream, { headers });+ return new Response(stream, { headers });};diff --git a/src/routes/api/images/pull/[...name]/+server.ts b/src/routes/api/images/pull/[...name]/+server.tsindex a6cccc0d0..a4465a460 100644--- a/src/routes/api/images/pull/[...name]/+server.ts+++ b/src/routes/api/images/pull/[...name]/+server.ts@@ -1,36 +1,33 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "@sveltejs/kit";-import { pullImage } from "$lib/services/docker-service";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from '@sveltejs/kit';+import { pullImage } from '$lib/services/docker-service';export const POST: RequestHandler = async ({ params, request }) => {- try {- const fullPath = params.name;+ try {+ const fullPath = params.name;- if (!fullPath) {- return json({ error: "Image reference is required." }, { status: 400 });- }+ if (!fullPath) {+ return json({ error: 'Image reference is required.' }, { status: 400 });+ }- const body = await request.json();- const platform = body?.platform;- const tag = body?.tag || "latest";+ const body = await request.json();+ const platform = body?.platform;+ const tag = body?.tag || 'latest';- let imageRef = fullPath.includes(":") ? fullPath : `${fullPath}:${tag}`;+ let imageRef = fullPath.includes(':') ? fullPath : `${fullPath}:${tag}`;- console.log(`API: Pulling image "${imageRef}"...`);- await pullImage(imageRef, platform);+ console.log(`API: Pulling image "${imageRef}"...`);+ await pullImage(imageRef, platform);- return json(- {- success: true,- message: `Image "${imageRef}" pulled successfully.`,- },- { status: 200 }- );- } catch (error: any) {- console.error("API Error pulling image:", error);- return json(- { error: `Failed to pull image: ${error.message || "Unknown error"}` },- { status: 500 }- );- }+ return json(+ {+ success: true,+ message: `Image "${imageRef}" pulled successfully.`+ },+ { status: 200 }+ );+ } catch (error: any) {+ console.error('API Error pulling image:', error);+ return json({ error: `Failed to pull image: ${error.message || 'Unknown error'}` }, { status: 500 });+ }};diff --git a/src/routes/api/networks/[id]/+server.ts b/src/routes/api/networks/[id]/+server.tsindex 1a8a19fa6..5f23cd153 100644--- a/src/routes/api/networks/[id]/+server.ts+++ b/src/routes/api/networks/[id]/+server.ts@@ -1,26 +1,26 @@-import { json, error } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { removeNetwork } from "$lib/services/docker-service";+import { json, error } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { removeNetwork } from '$lib/services/docker-service';export const DELETE: RequestHandler = async ({ params }) => {- const networkId = params.id;+ const networkId = params.id;- if (!networkId) {- throw error(400, "Network ID is required");- }+ if (!networkId) {+ throw error(400, 'Network ID is required');+ }- try {- await removeNetwork(networkId);- return json({ success: true, message: `Network ${networkId} deleted.` });- } catch (err: any) {- console.error(`API Error removing network ${networkId}:`, err);- // Pass specific error messages from the service- if (err.message.includes("not found")) {- throw error(404, err.message);- }- if (err.message.includes("cannot be removed")) {- throw error(409, err.message); // 409 Conflict- }- throw error(500, err.message || "Failed to remove network");- }+ try {+ await removeNetwork(networkId);+ return json({ success: true, message: `Network ${networkId} deleted.` });+ } catch (err: any) {+ console.error(`API Error removing network ${networkId}:`, err);+ // Pass specific error messages from the service+ if (err.message.includes('not found')) {+ throw error(404, err.message);+ }+ if (err.message.includes('cannot be removed')) {+ throw error(409, err.message); // 409 Conflict+ }+ throw error(500, err.message || 'Failed to remove network');+ }};diff --git a/src/routes/api/networks/create/+server.ts b/src/routes/api/networks/create/+server.tsindex f20f6e7ab..ffcdb7d19 100644--- a/src/routes/api/networks/create/+server.ts+++ b/src/routes/api/networks/create/+server.ts@@ -1,47 +1,47 @@-import { json, error } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { createNetwork } from "$lib/services/docker-service";-import type { NetworkCreateOptions } from "dockerode";+import { json, error } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { createNetwork } from '$lib/services/docker-service';+import type { NetworkCreateOptions } from 'dockerode';export const POST: RequestHandler = async ({ request }) => {- try {- const options: NetworkCreateOptions = await request.json();+ try {+ const options: NetworkCreateOptions = await request.json();- if (!options.Name) {- throw error(400, "Network name (Name) is required");- }+ if (!options.Name) {+ throw error(400, 'Network name (Name) is required');+ }- // Add default CheckDuplicate if not provided, common use case- if (options.CheckDuplicate === undefined) {- options.CheckDuplicate = true;- }+ // Add default CheckDuplicate if not provided, common use case+ if (options.CheckDuplicate === undefined) {+ options.CheckDuplicate = true;+ }- // Call the service function- const networkInfo = await createNetwork(options);+ // Call the service function+ const networkInfo = await createNetwork(options);- // Return the details of the created network- return json({- success: true,- network: {- // Map inspectInfo to ServiceNetwork shape if needed, or return full info- id: networkInfo.Id,- name: networkInfo.Name,- driver: networkInfo.Driver,- scope: networkInfo.Scope,- subnet: networkInfo.IPAM?.Config?.[0]?.Subnet ?? null,- gateway: networkInfo.IPAM?.Config?.[0]?.Gateway ?? null,- created: networkInfo.Created,- // Add other relevant fields from NetworkInspectInfo if desired- },- message: `Network "${networkInfo.Name}" created successfully.`,- });- } catch (err: any) {- // Handle specific SvelteKit errors or re-throw them- if (err.status >= 400 && err.status < 600) {- throw err;- }- // Handle errors from createNetwork- console.error("API Error creating network:", err);- throw error(500, err.message || "Failed to create network");- }+ // Return the details of the created network+ return json({+ success: true,+ network: {+ // Map inspectInfo to ServiceNetwork shape if needed, or return full info+ id: networkInfo.Id,+ name: networkInfo.Name,+ driver: networkInfo.Driver,+ scope: networkInfo.Scope,+ subnet: networkInfo.IPAM?.Config?.[0]?.Subnet ?? null,+ gateway: networkInfo.IPAM?.Config?.[0]?.Gateway ?? null,+ created: networkInfo.Created+ // Add other relevant fields from NetworkInspectInfo if desired+ },+ message: `Network "${networkInfo.Name}" created successfully.`+ });+ } catch (err: any) {+ // Handle specific SvelteKit errors or re-throw them+ if (err.status >= 400 && err.status < 600) {+ throw err;+ }+ // Handle errors from createNetwork+ console.error('API Error creating network:', err);+ throw error(500, err.message || 'Failed to create network');+ }};diff --git a/src/routes/api/stacks/create/+server.ts b/src/routes/api/stacks/create/+server.tsindex a8c06628f..9d6088329 100644--- a/src/routes/api/stacks/create/+server.ts+++ b/src/routes/api/stacks/create/+server.ts@@ -1,35 +1,35 @@-import { json, error } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { createStack } from "$lib/services/compose";+import { json, error } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { createStack } from '$lib/services/compose';export const POST: RequestHandler = async ({ request }) => {- try {- const body = await request.json();- const name = body.name?.toString();- const composeContent = body.composeContent?.toString();+ try {+ const body = await request.json();+ const name = body.name?.toString();+ const composeContent = body.composeContent?.toString();- if (!name) {- throw error(400, "Stack name is required");- }+ if (!name) {+ throw error(400, 'Stack name is required');+ }- if (!composeContent) {- throw error(400, "Compose file content is required");- }+ if (!composeContent) {+ throw error(400, 'Compose file content is required');+ }- const newStack = await createStack(name, composeContent);+ const newStack = await createStack(name, composeContent);- return json({- success: true,- stack: newStack,- message: `Stack "${newStack.name}" created successfully.`,- });- } catch (err: any) {- // Handle specific SvelteKit errors or re-throw them- if (err.status >= 400 && err.status < 600) {- throw err;- }- // Handle errors from createStack- console.error("API Error creating stack:", err);- throw error(500, err.message || "Failed to create stack");- }+ return json({+ success: true,+ stack: newStack,+ message: `Stack "${newStack.name}" created successfully.`+ });+ } catch (err: any) {+ // Handle specific SvelteKit errors or re-throw them+ if (err.status >= 400 && err.status < 600) {+ throw err;+ }+ // Handle errors from createStack+ console.error('API Error creating stack:', err);+ throw error(500, err.message || 'Failed to create stack');+ }};diff --git a/src/routes/api/stacks/import/+server.ts b/src/routes/api/stacks/import/+server.tsindex ca6294f3b..44bc97a03 100644--- a/src/routes/api/stacks/import/+server.ts+++ b/src/routes/api/stacks/import/+server.ts@@ -1,41 +1,34 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { importExternalStack } from "$lib/services/compose";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { importExternalStack } from '$lib/services/compose';export const POST: RequestHandler = async ({ request }) => {- const data = await request.formData();- const stackId = data.get("stackId")?.toString();- const stackName = data.get("stackName")?.toString();+ const data = await request.formData();+ const stackId = data.get('stackId')?.toString();+ const stackName = data.get('stackName')?.toString();- if (!stackId) {- return json(- { success: false, error: "Stack ID is required" },- { status: 400 }- );- }+ if (!stackId) {+ return json({ success: false, error: 'Stack ID is required' }, { status: 400 });+ }- try {- const importedStack = await importExternalStack(stackId);+ try {+ const importedStack = await importExternalStack(stackId);- console.log(- `Successfully imported stack: ${stackId} (${- stackName || importedStack.name- })`- );+ console.log(`Successfully imported stack: ${stackId} (${stackName || importedStack.name})`);- return json({- success: true,- stack: importedStack,- message: `Successfully imported stack ${importedStack.name}`,- });- } catch (err) {- console.error(`Error importing stack ${stackId}:`, err);- return json(- {- success: false,- error: err instanceof Error ? err.message : "Failed to import stack",- },- { status: 500 }- );- }+ return json({+ success: true,+ stack: importedStack,+ message: `Successfully imported stack ${importedStack.name}`+ });+ } catch (err) {+ console.error(`Error importing stack ${stackId}:`, err);+ return json(+ {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to import stack'+ },+ { status: 500 }+ );+ }};diff --git a/src/routes/api/volumes/+server.ts b/src/routes/api/volumes/+server.tsindex 41dc11d30..2384bfe07 100644--- a/src/routes/api/volumes/+server.ts+++ b/src/routes/api/volumes/+server.ts@@ -1,44 +1,37 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { createVolume } from "$lib/services/docker-service";-import type { VolumeCreateOptions } from "dockerode";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { createVolume } from '$lib/services/docker-service';+import type { VolumeCreateOptions } from 'dockerode';export const POST: RequestHandler = async ({ request }) => {- try {- const body = await request.json();+ try {+ const body = await request.json();- if (- !body.name ||- typeof body.name !== "string" ||- body.name.trim() === ""- ) {- return json({ error: "Volume name is required." }, { status: 400 });- }+ if (!body.name || typeof body.name !== 'string' || body.name.trim() === '') {+ return json({ error: 'Volume name is required.' }, { status: 400 });+ }- const options: VolumeCreateOptions = {- Name: body.name.trim(),- Driver: body.driver || "local",- Labels: body.labels || {},- DriverOpts: body.driverOpts || {},- };+ const options: VolumeCreateOptions = {+ Name: body.name.trim(),+ Driver: body.driver || 'local',+ Labels: body.labels || {},+ DriverOpts: body.driverOpts || {}+ };- const volumeInfo = await createVolume(options);+ const volumeInfo = await createVolume(options);- return json(- {- success: true,- volume: {- ...volumeInfo,- Name: body.name.trim(), // Ensure Name is set correctly- },- },- { status: 201 }- );- } catch (error: any) {- console.error("API Error creating volume:", error);- return json(- { error: `Failed to create volume: ${error.message || "Unknown error"}` },- { status: 500 }- );- }+ return json(+ {+ success: true,+ volume: {+ ...volumeInfo,+ Name: body.name.trim() // Ensure Name is set correctly+ }+ },+ { status: 201 }+ );+ } catch (error: any) {+ console.error('API Error creating volume:', error);+ return json({ error: `Failed to create volume: ${error.message || 'Unknown error'}` }, { status: 500 });+ }};diff --git a/src/routes/api/volumes/[name]/+server.ts b/src/routes/api/volumes/[name]/+server.tsindex 41bc9b375..a133c81b3 100644--- a/src/routes/api/volumes/[name]/+server.ts+++ b/src/routes/api/volumes/[name]/+server.ts@@ -1,19 +1,16 @@-import { json } from "@sveltejs/kit";-import type { RequestHandler } from "./$types";-import { removeVolume } from "$lib/services/docker-service";+import { json } from '@sveltejs/kit';+import type { RequestHandler } from './$types';+import { removeVolume } from '$lib/services/docker-service';export const DELETE: RequestHandler = async ({ params, url }) => {- const { name } = params;- const force = url.searchParams.get("force") === "true";+ const { name } = params;+ const force = url.searchParams.get('force') === 'true';- try {- await removeVolume(name, force);- return json({ success: true });- } catch (error: any) {- console.error("API Error removing volume:", error);- return json(- { error: `Failed to remove volume: ${error.message || "Unknown error"}` },- { status: 500 }- );- }+ try {+ await removeVolume(name, force);+ return json({ success: true });+ } catch (error: any) {+ console.error('API Error removing volume:', error);+ return json({ error: `Failed to remove volume: ${error.message || 'Unknown error'}` }, { status: 500 });+ }};diff --git a/src/routes/columns.ts b/src/routes/columns.tsindex 7df63fb0f..5eff842b6 100644--- a/src/routes/columns.ts+++ b/src/routes/columns.ts@@ -1,61 +1,57 @@-import type { ColumnDef } from "@tanstack/table-core";-import type {- ServiceContainer,- ServiceImage,-} from "$lib/services/docker-service";-import { formatBytes } from "$lib/utils";-import { capitalizeFirstLetter } from "$lib/utils";-import { statusVariantMap } from "$lib/types/statuses";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import StatusBadge from "$lib/components/badges/status-badge.svelte";+import type { ColumnDef } from '@tanstack/table-core';+import type { ServiceContainer, ServiceImage } from '$lib/services/docker-service';+import { formatBytes } from '$lib/utils';+import { capitalizeFirstLetter } from '$lib/utils';+import { statusVariantMap } from '$lib/types/statuses';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import StatusBadge from '$lib/components/badges/status-badge.svelte';// Column definitions for the dashboard containers tableexport const dashboardContainerColumns: ColumnDef<ServiceContainer>[] = [- {- accessorKey: "name",- header: "Name",- cell: ({ row }) => row.original.name,- },- {- accessorKey: "image",- header: "Image",- cell: ({ row }) => row.original.image,- },- {- accessorKey: "state",- header: "Status",- cell: ({ row }) => {- const variant =- statusVariantMap[row.original.state.toLowerCase()] || "gray";+ {+ accessorKey: 'name',+ header: 'Name',+ cell: ({ row }) => row.original.name+ },+ {+ accessorKey: 'image',+ header: 'Image',+ cell: ({ row }) => row.original.image+ },+ {+ accessorKey: 'state',+ header: 'Status',+ cell: ({ row }) => {+ const variant = statusVariantMap[row.original.state.toLowerCase()] || 'gray';- return renderComponent(StatusBadge, {- variant: variant,- text: capitalizeFirstLetter(row.original.state),- });- },- },- {- accessorKey: "status",- header: "Status",- cell: ({ row }) => row.original.status,- },+ return renderComponent(StatusBadge, {+ variant: variant,+ text: capitalizeFirstLetter(row.original.state)+ });+ }+ },+ {+ accessorKey: 'status',+ header: 'Status',+ cell: ({ row }) => row.original.status+ }];// Column definitions for the dashboard images tableexport const dashboardImageColumns: ColumnDef<ServiceImage>[] = [- {- accessorKey: "repo",- header: "Name",- cell: ({ row }) => row.original.repo,- },- {- accessorKey: "tag",- header: "Tag",- cell: ({ row }) => row.original.tag,- },- {- accessorKey: "size",- header: "Size",- cell: ({ row }) => formatBytes(row.original.size),- },+ {+ accessorKey: 'repo',+ header: 'Name',+ cell: ({ row }) => row.original.repo+ },+ {+ accessorKey: 'tag',+ header: 'Tag',+ cell: ({ row }) => row.original.tag+ },+ {+ accessorKey: 'size',+ header: 'Size',+ cell: ({ row }) => formatBytes(row.original.size)+ }];diff --git a/src/routes/containers/+page.server.ts b/src/routes/containers/+page.server.tsindex 95c4b3579..4d1b8de04 100644--- a/src/routes/containers/+page.server.ts+++ b/src/routes/containers/+page.server.ts@@ -1,83 +1,70 @@-import { fail, redirect } from "@sveltejs/kit";-import {- listContainers,- listVolumes,- listNetworks,- listImages,- createContainer,-} from "$lib/services/docker-service";-import type { PageServerLoad, Actions } from "./$types";-import type { ContainerConfig } from "$lib/types/docker";+import { fail, redirect } from '@sveltejs/kit';+import { listContainers, listVolumes, listNetworks, listImages, createContainer } from '$lib/services/docker-service';+import type { PageServerLoad, Actions } from './$types';+import type { ContainerConfig } from '$lib/types/docker';export const load: PageServerLoad = async () => {- try {- // This is always executed server-side for SSR- const [containers, volumes, networks, images] = await Promise.all([- listContainers(true),- listVolumes(),- listNetworks(),- listImages(),- ]);+ try {+ // This is always executed server-side for SSR+ const [containers, volumes, networks, images] = await Promise.all([listContainers(true), listVolumes(), listNetworks(), listImages()]);- return {- containers,- volumes,- networks,- images,- };- } catch (error: any) {- console.error("Error loading container data:", error);- return {- containers: [],- volumes: [],- networks: [],- images: [],- error: error.message,- };- }+ return {+ containers,+ volumes,+ networks,+ images+ };+ } catch (error: any) {+ console.error('Error loading container data:', error);+ return {+ containers: [],+ volumes: [],+ networks: [],+ images: [],+ error: error.message+ };+ }};export const actions: Actions = {- create: async ({ request }) => {- try {- const formData = await request.formData();- const containerDataString = formData.get("containerData");+ create: async ({ request }) => {+ try {+ const formData = await request.formData();+ const containerDataString = formData.get('containerData');- if (!containerDataString) {- return fail(400, {- success: false,- error: "No container data provided",- });- }+ if (!containerDataString) {+ return fail(400, {+ success: false,+ error: 'No container data provided'+ });+ }- const containerData = JSON.parse(- containerDataString.toString()- ) as ContainerConfig;+ const containerData = JSON.parse(containerDataString.toString()) as ContainerConfig;- // Validate required fields- if (!containerData.name || !containerData.image) {- return fail(400, {- success: false,- error: "Container name and image are required",- });- }+ // Validate required fields+ if (!containerData.name || !containerData.image) {+ return fail(400, {+ success: false,+ error: 'Container name and image are required'+ });+ }- // Log for debugging- console.log("Creating container with data:", containerData);+ // Log for debugging+ console.log('Creating container with data:', containerData);- // Create the container- const container = await createContainer(containerData);+ // Create the container+ const container = await createContainer(containerData);- return {- success: true,- container,- };- } catch (error: any) {- console.error("Error creating container:", error);- return fail(500, {- success: false,- error: error.message || "Failed to create container",- });- }- },+ return {+ success: true,+ container+ };+ } catch (error: any) {+ console.error('Error creating container:', error);+ return fail(500, {+ success: false,+ error: error.message || 'Failed to create container'+ });+ }+ }};diff --git a/src/routes/containers/+page.svelte b/src/routes/containers/+page.svelteindex 450c50bf9..258a66e33 100644--- a/src/routes/containers/+page.svelte+++ b/src/routes/containers/+page.svelte@@ -1,212 +1,186 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import * as Card from "$lib/components/ui/card/index.js";- import { columns } from "./columns";- import { Plus, Box, RefreshCw } from "@lucide/svelte";- import UniversalTable from "$lib/components/universal-table.svelte";- import { invalidateAll } from "$app/navigation";- import { toast } from "svelte-sonner";- import CreateContainerDialog from "./create-container-dialog.svelte";- import type { ContainerConfig } from "$lib/types/docker";- import { enhance } from "$app/forms";-- let { data, form } = $props();- let containers = $state(data.containers);- let isRefreshing = $state(false);- let selectedIds = $state([]);- let isCreateDialogOpen = $state(false);- let isCreatingContainer = $state(false);- let containerData = $state<ContainerConfig | null>(null);- let formRef: HTMLFormElement;-- // Calculate running containers- const runningContainers = $derived(- containers?.filter((c) => c.state === "running").length || 0- );-- // Calculate stopped containers- const stoppedContainers = $derived(- containers?.filter((c) => c.state === "exited").length || 0- );-- // Calculate total containers- const totalContainers = $derived(containers?.length || 0);-- // Success message handling based on form action result- $effect(() => {- if (form?.success) {- toast.success(- `Container "${form.container?.name || "Unknown"}" created successfully.`- );- isCreateDialogOpen = false;- isCreatingContainer = false;- } else if (form?.error) {- toast.error(`Failed to create container: ${form.error}`);- isCreatingContainer = false;- }- });-- async function refreshData() {- isRefreshing = true;- try {- await invalidateAll();- containers = data.containers;- } finally {- setTimeout(() => {- isRefreshing = false;- }, 300);- }- }-- function openCreateDialog() {- isCreateDialogOpen = true;- }- // This now prepares data for form action and submits the form- async function handleCreateContainerSubmit(config: ContainerConfig) {- isCreatingContainer = true;- containerData = config;-- // This is key - explicitly submit the form after setting the data- setTimeout(() => {- formRef.requestSubmit();- }, 0);- }+ import { Button } from '$lib/components/ui/button/index.js';+ import * as Card from '$lib/components/ui/card/index.js';+ import { columns } from './columns';+ import { Plus, Box, RefreshCw } from '@lucide/svelte';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { invalidateAll } from '$app/navigation';+ import { toast } from 'svelte-sonner';+ import CreateContainerDialog from './create-container-dialog.svelte';+ import type { ContainerConfig } from '$lib/types/docker';+ import { enhance } from '$app/forms';++ let { data, form } = $props();+ let containers = $state(data.containers);+ let isRefreshing = $state(false);+ let selectedIds = $state([]);+ let isCreateDialogOpen = $state(false);+ let isCreatingContainer = $state(false);+ let containerData = $state<ContainerConfig | null>(null);+ let formRef: HTMLFormElement;++ // Calculate running containers+ const runningContainers = $derived(containers?.filter((c) => c.state === 'running').length || 0);++ // Calculate stopped containers+ const stoppedContainers = $derived(containers?.filter((c) => c.state === 'exited').length || 0);++ // Calculate total containers+ const totalContainers = $derived(containers?.length || 0);++ // Success message handling based on form action result+ $effect(() => {+ if (form?.success) {+ toast.success(`Container "${form.container?.name || 'Unknown'}" created successfully.`);+ isCreateDialogOpen = false;+ isCreatingContainer = false;+ } else if (form?.error) {+ toast.error(`Failed to create container: ${form.error}`);+ isCreatingContainer = false;+ }+ });++ async function refreshData() {+ isRefreshing = true;+ try {+ await invalidateAll();+ containers = data.containers;+ } finally {+ setTimeout(() => {+ isRefreshing = false;+ }, 300);+ }+ }++ function openCreateDialog() {+ isCreateDialogOpen = true;+ }+ // This now prepares data for form action and submits the form+ async function handleCreateContainerSubmit(config: ContainerConfig) {+ isCreatingContainer = true;+ containerData = config;++ // This is key - explicitly submit the form after setting the data+ setTimeout(() => {+ formRef.requestSubmit();+ }, 0);+ }</script><div class="space-y-6">- <!-- Header with refresh button -->- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Containers</h1>- <p class="text-sm text-muted-foreground mt-1">- Manage your Docker containers- </p>- </div>- <div class="flex gap-2">- <!-- put buttons here -->- </div>- </div>-- <!-- Container stats summary -->- <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Total</p>- <p class="text-2xl font-bold">{totalContainers}</p>- </div>- <div class="bg-primary/10 p-2 rounded-full">- <Box class="h-5 w-5 text-primary" />- </div>- </Card.Content>- </Card.Root>-- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Running</p>- <p class="text-2xl font-bold">{runningContainers}</p>- </div>- <div class="bg-green-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-green-500" />- </div>- </Card.Content>- </Card.Root>-- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Stopped</p>- <p class="text-2xl font-bold">{stoppedContainers}</p>- </div>- <div class="bg-amber-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-amber-500" />- </div>- </Card.Content>- </Card.Root>- </div>-- <!-- Main container table -->- <Card.Root class="border shadow-sm">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Container List</Card.Title>- <Card.Description- >View and manage your Docker containers</Card.Description- >- </div>- <div class="flex items-center gap-2">- <Button variant="secondary" onclick={openCreateDialog}>- <Plus class="w-4 h-4" />- Create Container- </Button>- </div>- </div>- </Card.Header>- <Card.Content>- <UniversalTable- data={containers}- {columns}- display={{- filterPlaceholder: "Search containers...",- noResultsMessage: "No containers found",- }}- bind:selectedIds- />- </Card.Content>- </Card.Root>-- {#if containers?.length === 0}- <div- class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card"- >- <Box class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />- <p class="text-lg font-medium">No containers found</p>- <p class="text-sm text-muted-foreground mt-1 max-w-md">- Create a new container using the "Create Container" button above or use- the Docker CLI- </p>- <div class="flex gap-3 mt-4">- <Button variant="secondary" onclick={refreshData}>- <RefreshCw class="h-4 w-4" />- Refresh- </Button>- <Button variant="secondary" onclick={openCreateDialog}>- <Plus class="h-4 w-4" />- Create Container- </Button>- </div>- </div>- {/if}-- <form- bind:this={formRef}- method="POST"- action="?/create"- use:enhance={() => {- return async ({ result }) => {- isCreatingContainer = false;- if (result.type === "success") {- isCreateDialogOpen = false;- await refreshData();- }- };- }}- >- <input- type="hidden"- name="containerData"- value={containerData ? JSON.stringify(containerData) : ""}- />-- <CreateContainerDialog- bind:open={isCreateDialogOpen}- isCreating={isCreatingContainer}- volumes={data.volumes || []}- networks={data.networks || []}- images={data.images || []}- onSubmit={handleCreateContainerSubmit}- />- </form>+ <!-- Header with refresh button -->+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Containers</h1>+ <p class="text-sm text-muted-foreground mt-1">Manage your Docker containers</p>+ </div>+ <div class="flex gap-2">+ <!-- put buttons here -->+ </div>+ </div>++ <!-- Container stats summary -->+ <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total</p>+ <p class="text-2xl font-bold">{totalContainers}</p>+ </div>+ <div class="bg-primary/10 p-2 rounded-full">+ <Box class="h-5 w-5 text-primary" />+ </div>+ </Card.Content>+ </Card.Root>++ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Running</p>+ <p class="text-2xl font-bold">{runningContainers}</p>+ </div>+ <div class="bg-green-500/10 p-2 rounded-full">+ <Box class="h-5 w-5 text-green-500" />+ </div>+ </Card.Content>+ </Card.Root>++ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Stopped</p>+ <p class="text-2xl font-bold">{stoppedContainers}</p>+ </div>+ <div class="bg-amber-500/10 p-2 rounded-full">+ <Box class="h-5 w-5 text-amber-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>++ <!-- Main container table -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Container List</Card.Title>+ <Card.Description>View and manage your Docker containers</Card.Description>+ </div>+ <div class="flex items-center gap-2">+ <Button variant="secondary" onclick={openCreateDialog}>+ <Plus class="w-4 h-4" />+ Create Container+ </Button>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <UniversalTable+ data={containers}+ {columns}+ display={{+ filterPlaceholder: 'Search containers...',+ noResultsMessage: 'No containers found'+ }}+ bind:selectedIds+ />+ </Card.Content>+ </Card.Root>++ {#if containers?.length === 0}+ <div class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card">+ <Box class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <p class="text-lg font-medium">No containers found</p>+ <p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new container using the "Create Container" button above or use the Docker CLI</p>+ <div class="flex gap-3 mt-4">+ <Button variant="secondary" onclick={refreshData}>+ <RefreshCw class="h-4 w-4" />+ Refresh+ </Button>+ <Button variant="secondary" onclick={openCreateDialog}>+ <Plus class="h-4 w-4" />+ Create Container+ </Button>+ </div>+ </div>+ {/if}++ <form+ bind:this={formRef}+ method="POST"+ action="?/create"+ use:enhance={() => {+ return async ({ result }) => {+ isCreatingContainer = false;+ if (result.type === 'success') {+ isCreateDialogOpen = false;+ await refreshData();+ }+ };+ }}+ >+ <input type="hidden" name="containerData" value={containerData ? JSON.stringify(containerData) : ''} />++ <CreateContainerDialog bind:open={isCreateDialogOpen} isCreating={isCreatingContainer} volumes={data.volumes || []} networks={data.networks || []} images={data.images || []} onSubmit={handleCreateContainerSubmit} />+ </form></div>diff --git a/src/routes/containers/ContainerActions.svelte b/src/routes/containers/ContainerActions.svelteindex 7f521db9d..8554d05f4 100644--- a/src/routes/containers/ContainerActions.svelte+++ b/src/routes/containers/ContainerActions.svelte@@ -1,21 +1,21 @@<script lang="ts">- import Ellipsis from "@lucide/svelte/icons/ellipsis";- import { Button } from "$lib/components/ui/button/index.js";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";- import { goto } from "$app/navigation";- import { Eye, Play, RotateCcw, StopCircle, Trash2 } from "@lucide/svelte";+ import Ellipsis from '@lucide/svelte/icons/ellipsis';+ import { Button } from '$lib/components/ui/button/index.js';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';+ import { goto } from '$app/navigation';+ import { Eye, Play, RotateCcw, StopCircle, Trash2 } from '@lucide/svelte';- let { id, state }: { id: string; state: string } = $props();+ let { id, state }: { id: string; state: string } = $props();- function viewContainer() {- goto(`/containers/${id}`);- }+ function viewContainer() {+ goto(`/containers/${id}`);+ }- function performContainerAction(action: string) {- // Log the action for now - will be replaced with API call later- console.log(`Container ${id}: Performing action: ${action}`);+ function performContainerAction(action: string) {+ // Log the action for now - will be replaced with API call later+ console.log(`Container ${id}: Performing action: ${action}`);- /*+ /*try {// Will implement fetch call to backend API endpoint// await fetch(`/api/containers/${id}/${action}`, {@@ -26,57 +26,49 @@console.error(`Failed to ${action} container ${id}:`, error);}*/- }+ }- // Determine if container is running- const isRunning = $derived(state === "running");+ // Determine if container is running+ const isRunning = $derived(state === 'running');</script><DropdownMenu.Root>- <DropdownMenu.Trigger>- {#snippet child({ props })}- <Button- {...props}- variant="ghost"- size="icon"- class="relative size-8 p-0"- >- <span class="sr-only">Open menu</span>- <Ellipsis />- </Button>- {/snippet}- </DropdownMenu.Trigger>- <DropdownMenu.Content>- <DropdownMenu.Group>- <DropdownMenu.Item onclick={() => viewContainer()}>- <Eye class="w-4 h-4" />- View- </DropdownMenu.Item>+ <DropdownMenu.Trigger>+ {#snippet child({ props })}+ <Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">+ <span class="sr-only">Open menu</span>+ <Ellipsis />+ </Button>+ {/snippet}+ </DropdownMenu.Trigger>+ <DropdownMenu.Content>+ <DropdownMenu.Group>+ <DropdownMenu.Item onclick={() => viewContainer()}>+ <Eye class="w-4 h-4" />+ View+ </DropdownMenu.Item>- {#if !isRunning}- <DropdownMenu.Item onclick={() => performContainerAction("start")}>- <Play class="w-4 h-4" />- Start- </DropdownMenu.Item>- {:else}- <DropdownMenu.Item onclick={() => performContainerAction("restart")}>- <RotateCcw class="w-4 h-4" />- Restart- </DropdownMenu.Item>+ {#if !isRunning}+ <DropdownMenu.Item onclick={() => performContainerAction('start')}>+ <Play class="w-4 h-4" />+ Start+ </DropdownMenu.Item>+ {:else}+ <DropdownMenu.Item onclick={() => performContainerAction('restart')}>+ <RotateCcw class="w-4 h-4" />+ Restart+ </DropdownMenu.Item>- <DropdownMenu.Item onclick={() => performContainerAction("stop")}>- <StopCircle class="w-4 h-4" />- Stop- </DropdownMenu.Item>- {/if}+ <DropdownMenu.Item onclick={() => performContainerAction('stop')}>+ <StopCircle class="w-4 h-4" />+ Stop+ </DropdownMenu.Item>+ {/if}- <DropdownMenu.Item- class="text-red-500 focus:!text-red-700"- onclick={() => performContainerAction("remove")}- >- <Trash2 class="w-4 h-4" />- Remove- </DropdownMenu.Item>- </DropdownMenu.Group>- </DropdownMenu.Content>+ <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => performContainerAction('remove')}>+ <Trash2 class="w-4 h-4" />+ Remove+ </DropdownMenu.Item>+ </DropdownMenu.Group>+ </DropdownMenu.Content></DropdownMenu.Root>diff --git a/src/routes/containers/[id]/+page.server.ts b/src/routes/containers/[id]/+page.server.tsindex 2a3fe8a86..a79331f5d 100644--- a/src/routes/containers/[id]/+page.server.ts+++ b/src/routes/containers/[id]/+page.server.ts@@ -1,86 +1,78 @@-import type { PageServerLoad, Actions } from "./$types";-import {- getContainer,- startContainer,- stopContainer,- restartContainer,- removeContainer,- getContainerLogs,-} from "$lib/services/docker-service";-import { error, fail, redirect } from "@sveltejs/kit";+import type { PageServerLoad, Actions } from './$types';+import { getContainer, startContainer, stopContainer, restartContainer, removeContainer, getContainerLogs } from '$lib/services/docker-service';+import { error, fail, redirect } from '@sveltejs/kit';export const load: PageServerLoad = async ({ params }) => {- const containerId = params.id;+ const containerId = params.id;- try {- const [container, logs] = await Promise.all([- getContainer(containerId),- getContainerLogs(containerId, { tail: 100 }).catch((err) => {- console.error(`Failed to retrieve logs for ${containerId}:`, err);- return "Failed to load logs. This could be because the container hasn't been started yet.";- }),- ]);+ try {+ const [container, logs] = await Promise.all([+ getContainer(containerId),+ getContainerLogs(containerId, { tail: 100 }).catch((err) => {+ console.error(`Failed to retrieve logs for ${containerId}:`, err);+ return "Failed to load logs. This could be because the container hasn't been started yet.";+ })+ ]);- if (!container) {- error(404, {- message: `Container with ID "${containerId}" not found.`,- });- }+ if (!container) {+ error(404, {+ message: `Container with ID "${containerId}" not found.`+ });+ }- return {- container,- logs,- };- } catch (err: any) {- console.error(`Failed to load container ${containerId}:`, err);- error(500, {- message:- err.message || `Failed to load container details for "${containerId}".`,- });- }+ return {+ container,+ logs+ };+ } catch (err: any) {+ console.error(`Failed to load container ${containerId}:`, err);+ error(500, {+ message: err.message || `Failed to load container details for "${containerId}".`+ });+ }};// Define Form Actionsexport const actions: Actions = {- start: async ({ params }) => {- const containerId = params.id;- try {- await startContainer(containerId);- return { success: true, message: "Container started." };- } catch (err: any) {- return fail(500, { error: err.message });- }- },- stop: async ({ params }) => {- const containerId = params.id;- try {- await stopContainer(containerId);- return { success: true, message: "Container stopped." };- } catch (err: any) {- return fail(500, { error: err.message });- }- },- restart: async ({ params }) => {- const containerId = params.id;- try {- await restartContainer(containerId);- return { success: true, message: "Container restarted." };- } catch (err: any) {- return fail(500, { error: err.message });- }- },- remove: async ({ params }) => {- const containerId = params.id;- try {- // Consider adding a 'force' option from form data if needed- // const formData = await request.formData();- // const force = formData.get('force') === 'true';- await removeContainer(containerId /*, force */);- // Redirect to the containers list after successful removal- redirect(303, "/containers");- // Note: Redirect prevents returning a success message directly here- } catch (err: any) {- return fail(500, { error: err.message });- }- },+ start: async ({ params }) => {+ const containerId = params.id;+ try {+ await startContainer(containerId);+ return { success: true, message: 'Container started.' };+ } catch (err: any) {+ return fail(500, { error: err.message });+ }+ },+ stop: async ({ params }) => {+ const containerId = params.id;+ try {+ await stopContainer(containerId);+ return { success: true, message: 'Container stopped.' };+ } catch (err: any) {+ return fail(500, { error: err.message });+ }+ },+ restart: async ({ params }) => {+ const containerId = params.id;+ try {+ await restartContainer(containerId);+ return { success: true, message: 'Container restarted.' };+ } catch (err: any) {+ return fail(500, { error: err.message });+ }+ },+ remove: async ({ params }) => {+ const containerId = params.id;+ try {+ // Consider adding a 'force' option from form data if needed+ // const formData = await request.formData();+ // const force = formData.get('force') === 'true';+ await removeContainer(containerId /*, force */);+ // Redirect to the containers list after successful removal+ redirect(303, '/containers');+ // Note: Redirect prevents returning a success message directly here+ } catch (err: any) {+ return fail(500, { error: err.message });+ }+ }};diff --git a/src/routes/containers/[id]/+page.svelte b/src/routes/containers/[id]/+page.svelteindex c1bdb1ec9..f6635145c 100644--- a/src/routes/containers/[id]/+page.svelte+++ b/src/routes/containers/[id]/+page.svelte@@ -1,458 +1,350 @@<script lang="ts">- import type { PageData, ActionData } from "./$types";- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- ArrowLeft,- AlertCircle,- RefreshCw,- HardDrive,- Clock,- Network,- Terminal,- } from "@lucide/svelte";- import * as Breadcrumb from "$lib/components/ui/breadcrumb/index.js";- import { enhance } from "$app/forms";- import { invalidateAll } from "$app/navigation";- import * as Alert from "$lib/components/ui/alert/index.js";- import { Separator } from "$lib/components/ui/separator/index.js";- import { Badge } from "$lib/components/ui/badge/index.js";- import ActionButtons from "$lib/components/action-buttons.svelte";- import { formatDate, formatLogLine } from "$lib/utils";+ import type { PageData, ActionData } from './$types';+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { ArrowLeft, AlertCircle, RefreshCw, HardDrive, Clock, Network, Terminal } from '@lucide/svelte';+ import * as Breadcrumb from '$lib/components/ui/breadcrumb/index.js';+ import { enhance } from '$app/forms';+ import { invalidateAll } from '$app/navigation';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { Separator } from '$lib/components/ui/separator/index.js';+ import { Badge } from '$lib/components/ui/badge/index.js';+ import ActionButtons from '$lib/components/action-buttons.svelte';+ import { formatDate, formatLogLine } from '$lib/utils';- let { data, form }: { data: PageData; form: ActionData } = $props();- let { container, logs } = $derived(data);+ let { data, form }: { data: PageData; form: ActionData } = $props();+ let { container, logs } = $derived(data);- let starting = $state(false);- let stopping = $state(false);- let restarting = $state(false);- let removing = $state(false);- let isRefreshing = $state(false);+ let starting = $state(false);+ let stopping = $state(false);+ let restarting = $state(false);+ let removing = $state(false);+ let isRefreshing = $state(false);- let formattedLogs = $derived(- logs ? logs.split("\n").map(formatLogLine).join("\n") : ""- );+ let formattedLogs = $derived(logs ? logs.split('\n').map(formatLogLine).join('\n') : '');- // Set up auto-scroll for logs- let logsContainer = $state<HTMLDivElement | undefined>(undefined);+ // Set up auto-scroll for logs+ let logsContainer = $state<HTMLDivElement | undefined>(undefined);- $effect(() => {- starting = false;- stopping = false;- restarting = false;- removing = false;- });+ $effect(() => {+ starting = false;+ stopping = false;+ restarting = false;+ removing = false;+ });- $effect(() => {- // Scroll to bottom whenever logs change- if (logsContainer && logs) {- logsContainer.scrollTop = logsContainer.scrollHeight;- }- });+ $effect(() => {+ // Scroll to bottom whenever logs change+ if (logsContainer && logs) {+ logsContainer.scrollTop = logsContainer.scrollHeight;+ }+ });- async function refreshData() {- isRefreshing = true;- await invalidateAll();- setTimeout(() => {- isRefreshing = false;- }, 500);- }+ async function refreshData() {+ isRefreshing = true;+ await invalidateAll();+ setTimeout(() => {+ isRefreshing = false;+ }, 500);+ }</script><div class="space-y-6 pb-8">- <!-- Breadcrumb Navigation -->- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <Breadcrumb.Root>- <Breadcrumb.List>- <Breadcrumb.Item>- <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Link href="/containers">Containers</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Page>{container?.name || "Loading..."}</Breadcrumb.Page>- </Breadcrumb.Item>- </Breadcrumb.List>- </Breadcrumb.Root>+ <!-- Breadcrumb Navigation -->+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <Breadcrumb.Root>+ <Breadcrumb.List>+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/containers">Containers</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Page>{container?.name || 'Loading...'}</Breadcrumb.Page>+ </Breadcrumb.Item>+ </Breadcrumb.List>+ </Breadcrumb.Root>- <div class="mt-2 flex items-center gap-2">- <h1 class="text-2xl font-bold tracking-tight">- {container?.name || "Container Details"}- </h1>- </div>- </div>+ <div class="mt-2 flex items-center gap-2">+ <h1 class="text-2xl font-bold tracking-tight">+ {container?.name || 'Container Details'}+ </h1>+ </div>+ </div>- {#if container}- <div class="flex gap-2 flex-wrap">- <!-- Use ActionButtons for container actions -->- <form- method="POST"- action={container.state?.Running ? "?/stop" : "?/start"}- use:enhance={() => {- if (container.state?.Running) {- stopping = true;- } else {- starting = true;- }- return async ({ update }) => {- await update({ reset: false });- };- }}- >- <ActionButtons- id={container.id}- type="container"- state={container.state?.Running ? "running" : "stopped"}- loading={{- start: starting,- stop: stopping,- restart: restarting,- remove: removing,- }}- />- </form>- </div>- {/if}- </div>+ {#if container}+ <div class="flex gap-2 flex-wrap">+ <!-- Use ActionButtons for container actions -->+ <form+ method="POST"+ action={container.state?.Running ? '?/stop' : '?/start'}+ use:enhance={() => {+ if (container.state?.Running) {+ stopping = true;+ } else {+ starting = true;+ }+ return async ({ update }) => {+ await update({ reset: false });+ };+ }}+ >+ <ActionButtons+ id={container.id}+ type="container"+ state={container.state?.Running ? 'running' : 'stopped'}+ loading={{+ start: starting,+ stop: stopping,+ restart: restarting,+ remove: removing+ }}+ />+ </form>+ </div>+ {/if}+ </div>- <!-- Error Alert -->- {#if form?.error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Action Failed</Alert.Title>- <Alert.Description>{form.error}</Alert.Description>- </Alert.Root>- {/if}+ <!-- Error Alert -->+ {#if form?.error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Action Failed</Alert.Title>+ <Alert.Description>{form.error}</Alert.Description>+ </Alert.Root>+ {/if}- {#if container}- <!-- Container Details Section -->- <div class="space-y-6">- <Card.Root class="border shadow-sm">- <Card.Header>- <Card.Title>Container Details</Card.Title>- <Card.Description- >Basic information about the container</Card.Description- >- </Card.Header>- <Card.Content>- <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">- <!-- Image -->- <div class="flex items-start gap-3">- <div- class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0"- >- <HardDrive class="h-5 w-5 text-blue-500" />- </div>- <div class="min-w-0 flex-1">- <p class="text-sm font-medium text-muted-foreground">Image</p>- <p class="text-base font-semibold mt-1 break-all">- <span- class="truncate block"- title={container.config?.Image || "N/A"}- >- {container.config?.Image || "N/A"}- </span>- </p>- </div>- </div>+ {#if container}+ <!-- Container Details Section -->+ <div class="space-y-6">+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <Card.Title>Container Details</Card.Title>+ <Card.Description>Basic information about the container</Card.Description>+ </Card.Header>+ <Card.Content>+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-6">+ <!-- Image -->+ <div class="flex items-start gap-3">+ <div class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">+ <HardDrive class="h-5 w-5 text-blue-500" />+ </div>+ <div class="min-w-0 flex-1">+ <p class="text-sm font-medium text-muted-foreground">Image</p>+ <p class="text-base font-semibold mt-1 break-all">+ <span class="truncate block" title={container.config?.Image || 'N/A'}>+ {container.config?.Image || 'N/A'}+ </span>+ </p>+ </div>+ </div>- <!-- Created -->- <div class="flex items-start gap-3">- <div- class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0"- >- <Clock class="h-5 w-5 text-green-500" />- </div>- <div class="min-w-0 flex-1">- <p class="text-sm font-medium text-muted-foreground">Created</p>- <p- class="text-base font-semibold mt-1 truncate"- title={formatDate(container.created)}- >- {formatDate(container.created)}- </p>- </div>- </div>+ <!-- Created -->+ <div class="flex items-start gap-3">+ <div class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">+ <Clock class="h-5 w-5 text-green-500" />+ </div>+ <div class="min-w-0 flex-1">+ <p class="text-sm font-medium text-muted-foreground">Created</p>+ <p class="text-base font-semibold mt-1 truncate" title={formatDate(container.created)}>+ {formatDate(container.created)}+ </p>+ </div>+ </div>- <!-- IP Address -->- <div class="flex items-start gap-3">- <div- class="bg-purple-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0"- >- <Network class="h-5 w-5 text-purple-500" />- </div>- <div class="min-w-0 flex-1">- <p class="text-sm font-medium text-muted-foreground">- IP Address- </p>- <p- class="text-base font-semibold mt-1 truncate"- title={container.networkSettings?.IPAddress || "N/A"}- >- {container.networkSettings?.IPAddress || "N/A"}- </p>- </div>- </div>+ <!-- IP Address -->+ <div class="flex items-start gap-3">+ <div class="bg-purple-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">+ <Network class="h-5 w-5 text-purple-500" />+ </div>+ <div class="min-w-0 flex-1">+ <p class="text-sm font-medium text-muted-foreground">IP Address</p>+ <p class="text-base font-semibold mt-1 truncate" title={container.networkSettings?.IPAddress || 'N/A'}>+ {container.networkSettings?.IPAddress || 'N/A'}+ </p>+ </div>+ </div>- <!-- Command -->- <div class="flex items-start gap-3">- <div- class="bg-amber-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0"- >- <Terminal class="h-5 w-5 text-amber-500" />- </div>- <div class="min-w-0 flex-1">- <p class="text-sm font-medium text-muted-foreground">Command</p>- <p- class="text-base font-semibold mt-1 truncate"- title={container.config?.Cmd?.join(" ") || "N/A"}- >- {container.config?.Cmd?.join(" ") || "N/A"}- </p>- </div>- </div>- </div>- </Card.Content>- </Card.Root>+ <!-- Command -->+ <div class="flex items-start gap-3">+ <div class="bg-amber-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">+ <Terminal class="h-5 w-5 text-amber-500" />+ </div>+ <div class="min-w-0 flex-1">+ <p class="text-sm font-medium text-muted-foreground">Command</p>+ <p class="text-base font-semibold mt-1 truncate" title={container.config?.Cmd?.join(' ') || 'N/A'}>+ {container.config?.Cmd?.join(' ') || 'N/A'}+ </p>+ </div>+ </div>+ </div>+ </Card.Content>+ </Card.Root>- <!-- Advanced Details (Ports, Volumes, Env) -->- <div class="grid grid-cols-1 gap-6">- <!-- Ports -->- <Card.Root class="border shadow-sm">- <Card.Header>- <Card.Title>Ports</Card.Title>- <Card.Description>Container port mappings</Card.Description>- </Card.Header>- <Card.Content>- {#if container.networkSettings?.Ports && Object.keys(container.networkSettings.Ports).length > 0}- <div class="space-y-2">- {#each Object.entries(container.networkSettings.Ports) as [containerPort, hostBindings], i}- <div- class="flex flex-col sm:flex-row sm:items-center justify-between rounded-md bg-muted/40 p-2 px-3 gap-1"- >- <div- class="font-mono text-sm truncate"- title={containerPort}- >- {containerPort}- </div>- <div class="flex flex-wrap items-center gap-2">- <span class="text-xs text-muted-foreground">→</span>- {#if hostBindings && hostBindings.length > 0}- {#each hostBindings as binding}- <Badge- variant="outline"- class="font-mono truncate max-w-[150px]"- title="{binding.HostIp ||- '0.0.0.0'}:{binding.HostPort}"- >- {binding.HostIp || "0.0.0.0"}:{binding.HostPort}- </Badge>- {/each}- {:else}- <span class="text-xs text-muted-foreground"- >Not published</span- >- {/if}- </div>- </div>- {/each}- </div>- {:else}- <div class="text-sm text-muted-foreground italic">- No ports exposed- </div>- {/if}- </Card.Content>- </Card.Root>+ <!-- Advanced Details (Ports, Volumes, Env) -->+ <div class="grid grid-cols-1 gap-6">+ <!-- Ports -->+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <Card.Title>Ports</Card.Title>+ <Card.Description>Container port mappings</Card.Description>+ </Card.Header>+ <Card.Content>+ {#if container.networkSettings?.Ports && Object.keys(container.networkSettings.Ports).length > 0}+ <div class="space-y-2">+ {#each Object.entries(container.networkSettings.Ports) as [containerPort, hostBindings], i}+ <div class="flex flex-col sm:flex-row sm:items-center justify-between rounded-md bg-muted/40 p-2 px-3 gap-1">+ <div class="font-mono text-sm truncate" title={containerPort}>+ {containerPort}+ </div>+ <div class="flex flex-wrap items-center gap-2">+ <span class="text-xs text-muted-foreground">→</span>+ {#if hostBindings && hostBindings.length > 0}+ {#each hostBindings as binding}+ <Badge variant="outline" class="font-mono truncate max-w-[150px]" title="{binding.HostIp || '0.0.0.0'}:{binding.HostPort}">+ {binding.HostIp || '0.0.0.0'}:{binding.HostPort}+ </Badge>+ {/each}+ {:else}+ <span class="text-xs text-muted-foreground">Not published</span>+ {/if}+ </div>+ </div>+ {/each}+ </div>+ {:else}+ <div class="text-sm text-muted-foreground italic">No ports exposed</div>+ {/if}+ </Card.Content>+ </Card.Root>- <!-- Environment Variables -->- <Card.Root class="border shadow-sm">- <Card.Header>- <Card.Title>Environment Variables</Card.Title>- <Card.Description- >Container environment configuration</Card.Description- >- </Card.Header>- <Card.Content class="max-h-[180px] overflow-y-auto">- {#if container.config?.Env && container.config.Env.length > 0}- <div class="space-y-2">- {#each container.config.Env as env}- <div class="text-xs flex overflow-hidden">- {#if env.includes("=")}- {@const [key, ...valueParts] = env.split("=")}- {@const value = valueParts.join("=")}- <div class="flex w-full">- <span- class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate flex-shrink-0"- title={key}>{key}:</span- >- <span class="truncate flex-1" title={value}- >{value}</span- >- </div>- {:else}- <span>{env}</span>- {/if}- </div>- {/each}- </div>- {:else}- <div class="text-sm text-muted-foreground italic">- No environment variables set- </div>- {/if}- </Card.Content>- </Card.Root>- </div>- </div>+ <!-- Environment Variables -->+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <Card.Title>Environment Variables</Card.Title>+ <Card.Description>Container environment configuration</Card.Description>+ </Card.Header>+ <Card.Content class="max-h-[180px] overflow-y-auto">+ {#if container.config?.Env && container.config.Env.length > 0}+ <div class="space-y-2">+ {#each container.config.Env as env}+ <div class="text-xs flex overflow-hidden">+ {#if env.includes('=')}+ {@const [key, ...valueParts] = env.split('=')}+ {@const value = valueParts.join('=')}+ <div class="flex w-full">+ <span class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate flex-shrink-0" title={key}>{key}:</span>+ <span class="truncate flex-1" title={value}>{value}</span>+ </div>+ {:else}+ <span>{env}</span>+ {/if}+ </div>+ {/each}+ </div>+ {:else}+ <div class="text-sm text-muted-foreground italic">No environment variables set</div>+ {/if}+ </Card.Content>+ </Card.Root>+ </div>+ </div>- <Separator class="my-6" />+ <Separator class="my-6" />- <!-- Logs and Stats Section -->- <div class="grid grid-cols-1 lg:grid-cols-12 gap-6">- <!-- Logs Card -->- <Card.Root class="lg:col-span-8 border shadow-sm">- <Card.Header>- <div- class="flex flex-col sm:flex-row justify-between items-start sm:items-center w-full gap-4"- >- <div>- <Card.Title class="text-lg font-semibold"- >Container Logs</Card.Title- >- <Card.Description- >Recent output from the container</Card.Description- >- </div>- <Button- variant="outline"- size="sm"- onclick={refreshData}- disabled={isRefreshing}- >- <RefreshCw- class={`h-4 w-4 mr-2 ${isRefreshing ? "animate-spin" : ""}`}- />- Refresh Logs- </Button>- </div>- </Card.Header>+ <!-- Logs and Stats Section -->+ <div class="grid grid-cols-1 lg:grid-cols-12 gap-6">+ <!-- Logs Card -->+ <Card.Root class="lg:col-span-8 border shadow-sm">+ <Card.Header>+ <div class="flex flex-col sm:flex-row justify-between items-start sm:items-center w-full gap-4">+ <div>+ <Card.Title class="text-lg font-semibold">Container Logs</Card.Title>+ <Card.Description>Recent output from the container</Card.Description>+ </div>+ <Button variant="outline" size="sm" onclick={refreshData} disabled={isRefreshing}>+ <RefreshCw class={`h-4 w-4 mr-2 ${isRefreshing ? 'animate-spin' : ''}`} />+ Refresh Logs+ </Button>+ </div>+ </Card.Header>- <Card.Content>- <div- class="bg-muted/50 text-foreground p-4 rounded-md font-mono text-xs h-80 overflow-auto whitespace-pre-wrap border"- bind:this={logsContainer}- id="logs-container"- style="word-break: break-all;"- >- {#if logs}- {@html formattedLogs}- {:else}- <div- class="flex flex-col items-center justify-center h-full text-center"- >- <Terminal- class="h-8 w-8 text-muted-foreground mb-3 opacity-40"- />- <p class="text-muted-foreground italic">- No logs available. The container may not have started yet.- </p>- </div>- {/if}- </div>- </Card.Content>+ <Card.Content>+ <div class="bg-muted/50 text-foreground p-4 rounded-md font-mono text-xs h-80 overflow-auto whitespace-pre-wrap border" bind:this={logsContainer} id="logs-container" style="word-break: break-all;">+ {#if logs}+ {@html formattedLogs}+ {:else}+ <div class="flex flex-col items-center justify-center h-full text-center">+ <Terminal class="h-8 w-8 text-muted-foreground mb-3 opacity-40" />+ <p class="text-muted-foreground italic">No logs available. The container may not have started yet.</p>+ </div>+ {/if}+ </div>+ </Card.Content>- <Card.Footer class="flex justify-end border-t pt-4">- <Button- variant="outline"- size="sm"- href="/containers/{container.id}/logs"- class="text-sm"- >- View full logs- </Button>- </Card.Footer>- </Card.Root>+ <Card.Footer class="flex justify-end border-t pt-4">+ <Button variant="outline" size="sm" href="/containers/{container.id}/logs" class="text-sm">View full logs</Button>+ </Card.Footer>+ </Card.Root>- <!-- Stats Card -->- <Card.Root class="lg:col-span-4 border shadow-sm">- <Card.Header>- <Card.Title class="text-lg font-semibold">Resource Usage</Card.Title>- <Card.Description>Container performance metrics</Card.Description>- </Card.Header>+ <!-- Stats Card -->+ <Card.Root class="lg:col-span-4 border shadow-sm">+ <Card.Header>+ <Card.Title class="text-lg font-semibold">Resource Usage</Card.Title>+ <Card.Description>Container performance metrics</Card.Description>+ </Card.Header>- <Card.Content>- <div class="space-y-4">- <div>- <div class="flex justify-between mb-1">- <span class="text-sm font-medium">CPU Usage</span>- <span class="text-sm text-muted-foreground">0%</span>- </div>- <div class="w-full bg-secondary rounded-full h-2">- <div- class="bg-primary h-2 rounded-full"- style="width: 0%"- ></div>- </div>- </div>+ <Card.Content>+ <div class="space-y-4">+ <div>+ <div class="flex justify-between mb-1">+ <span class="text-sm font-medium">CPU Usage</span>+ <span class="text-sm text-muted-foreground">0%</span>+ </div>+ <div class="w-full bg-secondary rounded-full h-2">+ <div class="bg-primary h-2 rounded-full" style="width: 0%"></div>+ </div>+ </div>- <div>- <div class="flex justify-between mb-1">- <span class="text-sm font-medium">Memory Usage</span>- <span class="text-sm text-muted-foreground">0 / 0 MB</span>- </div>- <div class="w-full bg-secondary rounded-full h-2">- <div- class="bg-primary h-2 rounded-full"- style="width: 0%"- ></div>- </div>- </div>+ <div>+ <div class="flex justify-between mb-1">+ <span class="text-sm font-medium">Memory Usage</span>+ <span class="text-sm text-muted-foreground">0 / 0 MB</span>+ </div>+ <div class="w-full bg-secondary rounded-full h-2">+ <div class="bg-primary h-2 rounded-full" style="width: 0%"></div>+ </div>+ </div>- <div class="bg-muted/50 p-4 rounded-md text-center mt-4">- <p class="text-sm text-muted-foreground mb-2">- Stats fetching not implemented yet.- </p>- <Button- variant="outline"- size="sm"- href="/containers/{container.id}/stats"- class="text-sm w-full"- >- View detailed stats- </Button>- </div>- </div>- </Card.Content>- </Card.Root>- </div>- {:else}- <div- class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card"- >- <div class="rounded-full bg-muted/50 p-4 mb-4">- <AlertCircle class="h-8 w-8 text-muted-foreground" />- </div>- <h2 class="text-lg font-medium mb-2">Container Not Found</h2>- <p class="text-center text-muted-foreground max-w-md">- Could not load container data. It may have been removed or the Docker- engine is not accessible.- </p>- <div class="flex gap-3 mt-6">- <Button variant="outline" href="/containers">- <ArrowLeft class="h-4 w-4 mr-2" />- Back to Containers- </Button>- <Button variant="default" onclick={refreshData}>- <RefreshCw class="h-4 w-4 mr-2" />- Retry- </Button>- </div>- </div>- {/if}+ <div class="bg-muted/50 p-4 rounded-md text-center mt-4">+ <p class="text-sm text-muted-foreground mb-2">Stats fetching not implemented yet.</p>+ <Button variant="outline" size="sm" href="/containers/{container.id}/stats" class="text-sm w-full">View detailed stats</Button>+ </div>+ </div>+ </Card.Content>+ </Card.Root>+ </div>+ {:else}+ <div class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card">+ <div class="rounded-full bg-muted/50 p-4 mb-4">+ <AlertCircle class="h-8 w-8 text-muted-foreground" />+ </div>+ <h2 class="text-lg font-medium mb-2">Container Not Found</h2>+ <p class="text-center text-muted-foreground max-w-md">Could not load container data. It may have been removed or the Docker engine is not accessible.</p>+ <div class="flex gap-3 mt-6">+ <Button variant="outline" href="/containers">+ <ArrowLeft class="h-4 w-4 mr-2" />+ Back to Containers+ </Button>+ <Button variant="default" onclick={refreshData}>+ <RefreshCw class="h-4 w-4 mr-2" />+ Retry+ </Button>+ </div>+ </div>+ {/if}</div>diff --git a/src/routes/containers/columns.ts b/src/routes/containers/columns.tsindex e014e65be..17becaa98 100644--- a/src/routes/containers/columns.ts+++ b/src/routes/containers/columns.ts@@ -1,62 +1,61 @@-import type { ServiceContainer } from "$lib/services/docker-service";-import type { ColumnDef } from "@tanstack/table-core";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import DataTableActions from "./ContainerActions.svelte";-import { capitalizeFirstLetter } from "$lib/utils";-import IdCell from "./components/IdCell.svelte";-import CellName from "./components/NameCell.svelte";-import StatusBadge from "$lib/components/badges/status-badge.svelte";-import { statusVariantMap } from "$lib/types/statuses";+import type { ServiceContainer } from '$lib/services/docker-service';+import type { ColumnDef } from '@tanstack/table-core';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import DataTableActions from './ContainerActions.svelte';+import { capitalizeFirstLetter } from '$lib/utils';+import IdCell from './components/IdCell.svelte';+import CellName from './components/NameCell.svelte';+import StatusBadge from '$lib/components/badges/status-badge.svelte';+import { statusVariantMap } from '$lib/types/statuses';export const columns: ColumnDef<ServiceContainer>[] = [- {- accessorKey: "name",- header: "Name",- cell: ({ row }) => {- return renderComponent(CellName, {- id: row.original.id,- name: row.original.name,- });- },- },- {- accessorKey: "id",- header: "ID",- cell: ({ row }) => {- return renderComponent(IdCell, { id: row.original.id });- },- enableSorting: false,- },- {- accessorKey: "image",- header: "Image",- },- {- accessorKey: "state",- header: "Status",- cell: ({ row }) => {- const variant =- statusVariantMap[row.original.state.toLowerCase()] || "gray";+ {+ accessorKey: 'name',+ header: 'Name',+ cell: ({ row }) => {+ return renderComponent(CellName, {+ id: row.original.id,+ name: row.original.name+ });+ }+ },+ {+ accessorKey: 'id',+ header: 'ID',+ cell: ({ row }) => {+ return renderComponent(IdCell, { id: row.original.id });+ },+ enableSorting: false+ },+ {+ accessorKey: 'image',+ header: 'Image'+ },+ {+ accessorKey: 'state',+ header: 'Status',+ cell: ({ row }) => {+ const variant = statusVariantMap[row.original.state.toLowerCase()] || 'gray';- return renderComponent(StatusBadge, {- variant: variant,- text: capitalizeFirstLetter(row.original.state),- });- },- },- {- accessorKey: "status",- header: "Status",- },- {- id: "actions",- header: "",- cell: ({ row }) => {- return renderComponent(DataTableActions, {- id: row.original.id,- state: row.original.state,- });- },- enableSorting: false,- },+ return renderComponent(StatusBadge, {+ variant: variant,+ text: capitalizeFirstLetter(row.original.state)+ });+ }+ },+ {+ accessorKey: 'status',+ header: 'Status'+ },+ {+ id: 'actions',+ header: '',+ cell: ({ row }) => {+ return renderComponent(DataTableActions, {+ id: row.original.id,+ state: row.original.state+ });+ },+ enableSorting: false+ }];diff --git a/src/routes/containers/components/IdCell.svelte b/src/routes/containers/components/IdCell.svelteindex 9ea4ebb64..ab3d08f32 100644--- a/src/routes/containers/components/IdCell.svelte+++ b/src/routes/containers/components/IdCell.svelte@@ -1,6 +1,6 @@<script lang="ts">- let { id }: { id: string } = $props();- let shortId = $derived(id.substring(0, 12));+ let { id }: { id: string } = $props();+ let shortId = $derived(id.substring(0, 12));</script><span class="font-mono text-xs">{shortId}</span>diff --git a/src/routes/containers/components/NameCell.svelte b/src/routes/containers/components/NameCell.svelteindex d8e33eb58..26bc73b82 100644--- a/src/routes/containers/components/NameCell.svelte+++ b/src/routes/containers/components/NameCell.svelte@@ -1,12 +1,12 @@<script lang="ts">- interface Props {- id: string;- name: string;- }+ interface Props {+ id: string;+ name: string;+ }- let { id, name }: Props = $props();+ let { id, name }: Props = $props();</script><a href="/containers/{id}" class="font-medium hover:underline">- {name}+ {name}</a>diff --git a/src/routes/containers/create-container-dialog.svelte b/src/routes/containers/create-container-dialog.svelteindex 514854455..5b489529f 100644--- a/src/routes/containers/create-container-dialog.svelte+++ b/src/routes/containers/create-container-dialog.svelte@@ -1,934 +1,617 @@<script lang="ts">- import { preventDefault } from "svelte/legacy";- import type { ContainerConfig } from "$lib/types/docker";- import type { HealthConfig } from "dockerode";-- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import {- AlertCircle,- Eye,- EyeOff,- Loader2,- Plus,- Trash,- } from "@lucide/svelte";- import * as Select from "$lib/components/ui/select/index.js";- import * as Tabs from "$lib/components/ui/tabs/index.js";- import { parseBytes } from "$lib/utils/bytes";-- import { createEventDispatcher } from "svelte";- const dispatch = createEventDispatcher();-- // Functions for events- export function onClose() {- open = false;- dispatch("close");- }- interface Props {- open?: boolean;- isCreating?: boolean;- volumes?: { name: string }[];- networks?: { name: string; driver: string }[];- images?: { id: string; repo: string; tag: string }[];- onSubmit?: (data: ContainerConfig) => void;- }-- let {- open = $bindable(false),- isCreating = false,- volumes = [],- networks = [],- images = [],- onSubmit = (data: ContainerConfig) => {},- }: Props = $props();-- // Internal state- let containerName = $state("");- let selectedImage = $state("");- let selectedTab = $state("basic");-- // Ports mapping (host:container)- let ports = $state<- {- hostPort: string;- containerPort: string;- hostError?: string;- containerError?: string;- }[]- >([{ hostPort: "", containerPort: "" }]);-- // Volume mounts- let volumeMounts = $state<{ source: string; target: string }[]>([- { source: "", target: "" },- ]);-- // Environment variables- let envVars = $state<{ key: string; value: string; sensitive?: boolean }[]>([- { key: "", value: "", sensitive: true },- ]);-- // Network and restart policy- let network = $state("");- let restartPolicy = $state("no"); // "no", "always", "on-failure", "unless-stopped"-- // Add state for IP addresses- let ipv4Address = $state("");- let ipv6Address = $state("");-- // Add state for Healthcheck- let enableHealthcheck = $state(false);- let healthcheckTest = $state<string[]>([""]); // Dockerode expects string[]- let healthcheckInterval = $state<number | undefined>(undefined); // In nanoseconds- let healthcheckTimeout = $state<number | undefined>(undefined); // In nanoseconds- let healthcheckRetries = $state<number | undefined>(undefined);- let healthcheckStartPeriod = $state<number | undefined>(undefined); // In nanoseconds-- // Add state for Labels- let labels = $state<{ key: string; value: string }[]>([- { key: "", value: "" },- ]);-- // Add state for Command, User, Resources- let commandOverride = $state(""); // Input as string, will split later- let runAsUser = $state("");- let memoryLimitStr = $state(""); // Input as string (e.g., "512m", "1g")- let cpuLimitStr = $state(""); // Input as string (e.g., "0.5", "1")-- // Port validation - improved- function validatePortNumber(port: string | number): {- isValid: boolean;- error?: string;- } {- // Convert to string if it's not already one- const portStr = typeof port === "number" ? port.toString() : port;-- // Check if empty- if (!portStr || !portStr.trim()) return { isValid: true };-- const portNum = parseInt(portStr, 10);-- // Check if it's a valid number- if (isNaN(portNum) || portNum.toString() !== portStr.trim()) {- return { isValid: false, error: "Invalid port number" };- }-- // Check port range (1-65535)- if (portNum < 1 || portNum > 65535) {- return { isValid: false, error: "Port must be between 1-65535" };- }-- // Warning for privileged ports- if (portNum < 1024) {- return { isValid: true, error: "Privileged port (<1024)" };- }- return { isValid: true };- }-- // Auto-validate on input- $effect(() => {- // Validate all ports when they change- ports.forEach((port, index) => {- // Only validate if there's content- if (port.hostPort !== undefined && port.hostPort !== "") {- const hostValidation = validatePortNumber(port.hostPort);- ports[index].hostError = hostValidation.error;- } else {- ports[index].hostError = undefined;- }-- if (port.containerPort !== undefined && port.containerPort !== "") {- const containerValidation = validatePortNumber(port.containerPort);- ports[index].containerError = containerValidation.error;- } else {- ports[index].containerError = undefined;- }- });- });-- // We can still keep this function for the submission check- function validatePort(index: number, type: "host" | "container"): void {- const port =- type === "host" ? ports[index].hostPort : ports[index].containerPort;- const validation = validatePortNumber(port);-- if (type === "host") {- ports[index].hostError = validation.error;- } else {- ports[index].containerError = validation.error;- }- }-- // Add/remove functions for arrays- function addPort() {- ports = [...ports, { hostPort: "", containerPort: "" }];- }-- function removePort(index: number) {- ports = ports.filter((_, i) => i !== index);- }-- function addVolumeMount() {- volumeMounts = [...volumeMounts, { source: "", target: "" }];- }-- function removeVolumeMount(index: number) {- volumeMounts = volumeMounts.filter((_, i) => i !== index);- }-- function addEnvVar() {- envVars = [...envVars, { key: "", value: "", sensitive: true }];- }-- function removeEnvVar(index: number) {- envVars = envVars.filter((_, i) => i !== index);- }-- function addLabel() {- labels = [...labels, { key: "", value: "" }];- }-- function removeLabel(index: number) {- labels = labels.filter((_, i) => i !== index);- }-- // Reactive check to see if the selected network is user-defined- const isUserDefinedNetwork = $derived(- network &&- network !== "" &&- network !== "host" &&- network !== "none" &&- network !== "bridge"- );-- function handleSubmit() {- if (!selectedImage || !containerName.trim()) return;-- // Validate all ports- let hasInvalidPort = false;- ports.forEach((port) => {- // Check for invalid ports with content- if (- (port.hostPort && !validatePortNumber(port.hostPort).isValid) ||- (port.containerPort && !validatePortNumber(port.containerPort).isValid)- ) {- hasInvalidPort = true;- }- });-- if (hasInvalidPort) {- return; // Stop submission if there are invalid ports- }-- // Filter out empty entries- const filteredPorts = ports- .filter((p) => p.hostPort.trim() && p.containerPort.trim())- .map(({ hostPort, containerPort }) => ({ hostPort, containerPort })); // Remove error properties-- const filteredVolumes = volumeMounts.filter(- (v) => v.source.trim() && v.target.trim()- );- const filteredEnvVars = envVars.filter((e) => e.key.trim());-- // Filter and format labels- const filteredLabels = labels- .filter((l) => l.key.trim())- .reduce(- (acc, label) => {- acc[label.key.trim()] = label.value.trim();- return acc;- },- {} as { [key: string]: string }- );-- // Prepare healthcheck config if enabled and test command is provided- let healthcheckConfig: HealthConfig | undefined = undefined;- if (- enableHealthcheck &&- healthcheckTest.length > 0 &&- healthcheckTest[0].trim() !== ""- ) {- // Convert seconds to nanoseconds for Docker API- const toNano = (seconds: number | undefined) =>- seconds ? seconds * 1_000_000_000 : undefined;-- healthcheckConfig = {- Test: healthcheckTest,- Interval: toNano(healthcheckInterval),- Timeout: toNano(healthcheckTimeout),- Retries: healthcheckRetries,- StartPeriod: toNano(healthcheckStartPeriod),- };- }-- // Parse command override (split by space, respecting quotes if needed - simple split for now)- const commandArray = commandOverride.trim()- ? commandOverride.trim().split(/\s+/)- : undefined;-- // Parse resource limits- let memoryBytes: number | undefined;- try {- memoryBytes = memoryLimitStr.trim()- ? parseBytes(memoryLimitStr.trim())- : undefined;- } catch (e) {- console.error("Invalid memory format:", e);- return; // Stop submission on invalid format- }-- let cpuUnits: number | undefined;- try {- cpuUnits = cpuLimitStr.trim()- ? parseFloat(cpuLimitStr.trim())- : undefined;- if (cpuUnits !== undefined && isNaN(cpuUnits)) {- throw new Error("CPU Limit must be a number");- }- } catch (e) {- console.error("Invalid CPU format:", e);- return; // Stop submission on invalid format- }-- const containerConfig: ContainerConfig = {- name: containerName.trim(),- image: selectedImage,- ports: filteredPorts.length > 0 ? filteredPorts : undefined,- volumes: filteredVolumes.length > 0 ? filteredVolumes : undefined,- envVars: filteredEnvVars.length > 0 ? filteredEnvVars : undefined,- network: network || undefined,- restart: restartPolicy as- | "no"- | "always"- | "on-failure"- | "unless-stopped",- networkConfig:- isUserDefinedNetwork && (ipv4Address.trim() || ipv6Address.trim())- ? {- ipv4Address: ipv4Address.trim() || undefined,- ipv6Address: ipv6Address.trim() || undefined,- }- : undefined,- healthcheck: healthcheckConfig,- labels:- Object.keys(filteredLabels).length > 0 ? filteredLabels : undefined,- command: commandArray,- user: runAsUser.trim() || undefined,- memoryLimit: memoryBytes,- cpuLimit: cpuUnits,- };-- onSubmit(containerConfig);- }+ import { preventDefault } from 'svelte/legacy';+ import type { ContainerConfig } from '$lib/types/docker';+ import type { HealthConfig } from 'dockerode';++ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import { AlertCircle, Eye, EyeOff, Loader2, Plus, Trash } from '@lucide/svelte';+ import * as Select from '$lib/components/ui/select/index.js';+ import * as Tabs from '$lib/components/ui/tabs/index.js';+ import { parseBytes } from '$lib/utils/bytes';++ import { createEventDispatcher } from 'svelte';+ const dispatch = createEventDispatcher();++ // Functions for events+ export function onClose() {+ open = false;+ dispatch('close');+ }+ interface Props {+ open?: boolean;+ isCreating?: boolean;+ volumes?: { name: string }[];+ networks?: { name: string; driver: string }[];+ images?: { id: string; repo: string; tag: string }[];+ onSubmit?: (data: ContainerConfig) => void;+ }++ let { open = $bindable(false), isCreating = false, volumes = [], networks = [], images = [], onSubmit = (data: ContainerConfig) => {} }: Props = $props();++ // Internal state+ let containerName = $state('');+ let selectedImage = $state('');+ let selectedTab = $state('basic');++ // Ports mapping (host:container)+ let ports = $state<+ {+ hostPort: string;+ containerPort: string;+ hostError?: string;+ containerError?: string;+ }[]+ >([{ hostPort: '', containerPort: '' }]);++ // Volume mounts+ let volumeMounts = $state<{ source: string; target: string }[]>([{ source: '', target: '' }]);++ // Environment variables+ let envVars = $state<{ key: string; value: string; sensitive?: boolean }[]>([{ key: '', value: '', sensitive: true }]);++ // Network and restart policy+ let network = $state('');+ let restartPolicy = $state('no'); // "no", "always", "on-failure", "unless-stopped"++ // Add state for IP addresses+ let ipv4Address = $state('');+ let ipv6Address = $state('');++ // Add state for Healthcheck+ let enableHealthcheck = $state(false);+ let healthcheckTest = $state<string[]>(['']); // Dockerode expects string[]+ let healthcheckInterval = $state<number | undefined>(undefined); // In nanoseconds+ let healthcheckTimeout = $state<number | undefined>(undefined); // In nanoseconds+ let healthcheckRetries = $state<number | undefined>(undefined);+ let healthcheckStartPeriod = $state<number | undefined>(undefined); // In nanoseconds++ // Add state for Labels+ let labels = $state<{ key: string; value: string }[]>([{ key: '', value: '' }]);++ // Add state for Command, User, Resources+ let commandOverride = $state(''); // Input as string, will split later+ let runAsUser = $state('');+ let memoryLimitStr = $state(''); // Input as string (e.g., "512m", "1g")+ let cpuLimitStr = $state(''); // Input as string (e.g., "0.5", "1")++ // Port validation - improved+ function validatePortNumber(port: string | number): {+ isValid: boolean;+ error?: string;+ } {+ // Convert to string if it's not already one+ const portStr = typeof port === 'number' ? port.toString() : port;++ // Check if empty+ if (!portStr || !portStr.trim()) return { isValid: true };++ const portNum = parseInt(portStr, 10);++ // Check if it's a valid number+ if (isNaN(portNum) || portNum.toString() !== portStr.trim()) {+ return { isValid: false, error: 'Invalid port number' };+ }++ // Check port range (1-65535)+ if (portNum < 1 || portNum > 65535) {+ return { isValid: false, error: 'Port must be between 1-65535' };+ }++ // Warning for privileged ports+ if (portNum < 1024) {+ return { isValid: true, error: 'Privileged port (<1024)' };+ }+ return { isValid: true };+ }++ // Auto-validate on input+ $effect(() => {+ // Validate all ports when they change+ ports.forEach((port, index) => {+ // Only validate if there's content+ if (port.hostPort !== undefined && port.hostPort !== '') {+ const hostValidation = validatePortNumber(port.hostPort);+ ports[index].hostError = hostValidation.error;+ } else {+ ports[index].hostError = undefined;+ }++ if (port.containerPort !== undefined && port.containerPort !== '') {+ const containerValidation = validatePortNumber(port.containerPort);+ ports[index].containerError = containerValidation.error;+ } else {+ ports[index].containerError = undefined;+ }+ });+ });++ // We can still keep this function for the submission check+ function validatePort(index: number, type: 'host' | 'container'): void {+ const port = type === 'host' ? ports[index].hostPort : ports[index].containerPort;+ const validation = validatePortNumber(port);++ if (type === 'host') {+ ports[index].hostError = validation.error;+ } else {+ ports[index].containerError = validation.error;+ }+ }++ // Add/remove functions for arrays+ function addPort() {+ ports = [...ports, { hostPort: '', containerPort: '' }];+ }++ function removePort(index: number) {+ ports = ports.filter((_, i) => i !== index);+ }++ function addVolumeMount() {+ volumeMounts = [...volumeMounts, { source: '', target: '' }];+ }++ function removeVolumeMount(index: number) {+ volumeMounts = volumeMounts.filter((_, i) => i !== index);+ }++ function addEnvVar() {+ envVars = [...envVars, { key: '', value: '', sensitive: true }];+ }++ function removeEnvVar(index: number) {+ envVars = envVars.filter((_, i) => i !== index);+ }++ function addLabel() {+ labels = [...labels, { key: '', value: '' }];+ }++ function removeLabel(index: number) {+ labels = labels.filter((_, i) => i !== index);+ }++ // Reactive check to see if the selected network is user-defined+ const isUserDefinedNetwork = $derived(network && network !== '' && network !== 'host' && network !== 'none' && network !== 'bridge');++ function handleSubmit() {+ if (!selectedImage || !containerName.trim()) return;++ // Validate all ports+ let hasInvalidPort = false;+ ports.forEach((port) => {+ // Check for invalid ports with content+ if ((port.hostPort && !validatePortNumber(port.hostPort).isValid) || (port.containerPort && !validatePortNumber(port.containerPort).isValid)) {+ hasInvalidPort = true;+ }+ });++ if (hasInvalidPort) {+ return; // Stop submission if there are invalid ports+ }++ // Filter out empty entries+ const filteredPorts = ports.filter((p) => p.hostPort.trim() && p.containerPort.trim()).map(({ hostPort, containerPort }) => ({ hostPort, containerPort })); // Remove error properties++ const filteredVolumes = volumeMounts.filter((v) => v.source.trim() && v.target.trim());+ const filteredEnvVars = envVars.filter((e) => e.key.trim());++ // Filter and format labels+ const filteredLabels = labels+ .filter((l) => l.key.trim())+ .reduce(+ (acc, label) => {+ acc[label.key.trim()] = label.value.trim();+ return acc;+ },+ {} as { [key: string]: string }+ );++ // Prepare healthcheck config if enabled and test command is provided+ let healthcheckConfig: HealthConfig | undefined = undefined;+ if (enableHealthcheck && healthcheckTest.length > 0 && healthcheckTest[0].trim() !== '') {+ // Convert seconds to nanoseconds for Docker API+ const toNano = (seconds: number | undefined) => (seconds ? seconds * 1_000_000_000 : undefined);++ healthcheckConfig = {+ Test: healthcheckTest,+ Interval: toNano(healthcheckInterval),+ Timeout: toNano(healthcheckTimeout),+ Retries: healthcheckRetries,+ StartPeriod: toNano(healthcheckStartPeriod)+ };+ }++ // Parse command override (split by space, respecting quotes if needed - simple split for now)+ const commandArray = commandOverride.trim() ? commandOverride.trim().split(/\s+/) : undefined;++ // Parse resource limits+ let memoryBytes: number | undefined;+ try {+ memoryBytes = memoryLimitStr.trim() ? parseBytes(memoryLimitStr.trim()) : undefined;+ } catch (e) {+ console.error('Invalid memory format:', e);+ return; // Stop submission on invalid format+ }++ let cpuUnits: number | undefined;+ try {+ cpuUnits = cpuLimitStr.trim() ? parseFloat(cpuLimitStr.trim()) : undefined;+ if (cpuUnits !== undefined && isNaN(cpuUnits)) {+ throw new Error('CPU Limit must be a number');+ }+ } catch (e) {+ console.error('Invalid CPU format:', e);+ return; // Stop submission on invalid format+ }++ const containerConfig: ContainerConfig = {+ name: containerName.trim(),+ image: selectedImage,+ ports: filteredPorts.length > 0 ? filteredPorts : undefined,+ volumes: filteredVolumes.length > 0 ? filteredVolumes : undefined,+ envVars: filteredEnvVars.length > 0 ? filteredEnvVars : undefined,+ network: network || undefined,+ restart: restartPolicy as 'no' | 'always' | 'on-failure' | 'unless-stopped',+ networkConfig:+ isUserDefinedNetwork && (ipv4Address.trim() || ipv6Address.trim())+ ? {+ ipv4Address: ipv4Address.trim() || undefined,+ ipv6Address: ipv6Address.trim() || undefined+ }+ : undefined,+ healthcheck: healthcheckConfig,+ labels: Object.keys(filteredLabels).length > 0 ? filteredLabels : undefined,+ command: commandArray,+ user: runAsUser.trim() || undefined,+ memoryLimit: memoryBytes,+ cpuLimit: cpuUnits+ };++ onSubmit(containerConfig);+ }</script><Dialog.Root bind:open>- <Dialog.Content class="sm:max-w-[700px]">- <Dialog.Header>- <Dialog.Title>Create Container</Dialog.Title>- <Dialog.Description>- Configure and run a new Docker container- </Dialog.Description>- </Dialog.Header>-- <Tabs.Root value={selectedTab} class="w-full">- <Tabs.List class="w-full grid grid-cols-7">- <Tabs.Trigger value="basic" class="px-1 text-xs sm:text-sm"- >Basic</Tabs.Trigger- >- <Tabs.Trigger value="ports" class="px-1 text-xs sm:text-sm"- >Ports</Tabs.Trigger- >- <Tabs.Trigger value="volumes" class="px-1 text-xs sm:text-sm"- >Volumes</Tabs.Trigger- >- <Tabs.Trigger value="env" class="px-1 text-xs sm:text-sm"- >Environment</Tabs.Trigger- >- <Tabs.Trigger value="network" class="px-1 text-xs sm:text-sm"- >Network</Tabs.Trigger- >- <Tabs.Trigger value="healthcheck" class="px-1 text-xs sm:text-sm"- >Healthcheck</Tabs.Trigger- >- <Tabs.Trigger value="advanced" class="px-1 text-xs sm:text-sm"- >Advanced</Tabs.Trigger- >- </Tabs.List>-- <div class="p-4 max-h-[60vh] overflow-y-auto">- <form onsubmit={preventDefault(handleSubmit)} class="space-y-6">- <!-- Basic Settings -->- <Tabs.Content value="basic">- <div class="space-y-4">- <div class="grid grid-cols-1 gap-2">- <Label for="container-name">Name</Label>- <Input- id="container-name"- bind:value={containerName}- placeholder="e.g., my-container"- disabled={isCreating}- />- </div>-- <div class="grid grid-cols-1 gap-2">- <Label for="container-image">Image</Label>- <Select.Root- type="single"- bind:value={selectedImage}- disabled={isCreating}- >- <Select.Trigger class="w-full">- <span>{selectedImage || "Select an image"}</span>- </Select.Trigger>- <Select.Content>- <Select.Group>- {#each images as image}- <Select.Item value={image.repo + ":" + image.tag}>- {image.repo + ":" + image.tag}- </Select.Item>- {/each}- </Select.Group>- </Select.Content>- </Select.Root>- </div>-- <div class="grid grid-cols-1 gap-2">- <Label for="restart-policy">Restart Policy</Label>- <Select.Root- type="single"- bind:value={restartPolicy}- disabled={isCreating}- >- <Select.Trigger class="w-full">- <span>{restartPolicy}</span>- </Select.Trigger>- <Select.Content>- <Select.Item value="no">no</Select.Item>- <Select.Item value="always">always</Select.Item>- <Select.Item value="on-failure">on-failure</Select.Item>- <Select.Item value="unless-stopped">- unless-stopped- </Select.Item>- </Select.Content>- </Select.Root>- </div>- </div>- </Tabs.Content>-- <!-- Port Mappings -->- <Tabs.Content value="ports">- <div class="space-y-4">- {#each ports as port, index}- <div class="flex space-x-3 items-end">- <div class="flex-1 grid grid-cols-2 gap-4">- <div>- <Label- for={`host-port-${index}`}- class="mb-2 block text-sm">Host Port</Label- >- <Input- id={`host-port-${index}`}- bind:value={port.hostPort}- placeholder="e.g., 8080"- disabled={isCreating}- type="text"- pattern="[0-9]*"- inputmode="numeric"- class={port.hostError && port.hostPort- ? "border-red-500"- : ""}- />- {#if port.hostError && port.hostPort}- <div- class="flex items-center text-xs text-red-500 mt-1"- >- <AlertCircle class="h-3 w-3 mr-1" />- {port.hostError}- </div>- {/if}- </div>-- <div>- <Label- for={`container-port-${index}`}- class="mb-2 block text-sm">Container Port</Label- >- <Input- id={`container-port-${index}`}- bind:value={port.containerPort}- placeholder="e.g., 80"- disabled={isCreating}- type="text"- pattern="[0-9]*"- inputmode="numeric"- class={port.containerError && port.containerPort- ? "border-red-500"- : ""}- />- {#if port.containerError && port.containerPort}- <div- class="flex items-center text-xs text-red-500 mt-1"- >- <AlertCircle class="h-3 w-3 mr-1" />- {port.containerError}- </div>- {/if}- </div>- </div>-- <Button- variant="destructive"- size="icon"- type="button"- onclick={() => removePort(index)}- disabled={ports.length <= 1 || isCreating}- class="flex-shrink-0"- >- <Trash class="h-4 w-4" />- </Button>- </div>- {/each}- <Button- variant="outline"- type="button"- onclick={addPort}- class="w-full"- disabled={isCreating}- >- <Plus class="h-4 w-4 mr-2" /> Add Port Mapping- </Button>- </div>- </Tabs.Content>-- <!-- Volume Mounts -->- <Tabs.Content value="volumes">- <div class="space-y-4">- {#each volumeMounts as mount, index}- <div class="flex space-x-3 items-end">- <div class="flex-1 grid grid-cols-2 gap-4">- <div>- <Label for={`volume-source-${index}`} class="mb-2 block">- Source Volume- </Label>- <Select.Root- type="single"- bind:value={mount.source}- disabled={isCreating}- >- <Select.Trigger class="w-full">- <span>{mount.source || "Select volume"}</span>- </Select.Trigger>- <Select.Content>- {#each volumes as volume}- <Select.Item value={volume.name}>- {volume.name}- </Select.Item>- {/each}- </Select.Content>- </Select.Root>- </div>- <div>- <Label for={`volume-target-${index}`} class="mb-2 block">- Container Path- </Label>- <Input- id={`volume-target-${index}`}- bind:value={mount.target}- placeholder="/data"- disabled={isCreating}- />- </div>- </div>- <Button- variant="destructive"- size="icon"- type="button"- onclick={() => removeVolumeMount(index)}- disabled={volumeMounts.length <= 1 || isCreating}- class="flex-shrink-0"- >- <Trash class="h-4 w-4" />- </Button>- </div>- {/each}- <Button- variant="outline"- type="button"- onclick={addVolumeMount}- class="w-full"- disabled={isCreating}- >- <Plus class="h-4 w-4 mr-2" /> Add Volume Mount- </Button>- </div>- </Tabs.Content>-- <!-- Environment Variables -->- <Tabs.Content value="env">- <div class="space-y-4">- {#each envVars as env, index}- <div class="flex space-x-3 items-end">- <div class="flex-1 grid grid-cols-2 gap-4">- <div>- <Label for={`env-key-${index}`} class="mb-2 block">- Key- </Label>- <Input- id={`env-key-${index}`}- bind:value={env.key}- placeholder="MYSQL_ROOT_PASSWORD"- disabled={isCreating}- />- </div>- <div>- <Label for={`env-value-${index}`} class="mb-2 block">- Value- </Label>- <div class="flex items-center gap-2">- <Input- id={`env-value-${index}`}- bind:value={env.value}- type={env.sensitive ? "password" : "text"}- placeholder="secret"- disabled={isCreating}- />- <Button- variant="outline"- size="icon"- type="button"- onclick={() => {- env.sensitive = !env.sensitive;- }}- disabled={isCreating}- title={env.sensitive ? "Show value" : "Hide value"}- >- {#if env.sensitive}- <Eye class="h-4 w-4" />- {:else}- <EyeOff class="h-4 w-4" />- {/if}- </Button>- </div>- </div>- </div>- <Button- variant="destructive"- size="icon"- type="button"- onclick={() => removeEnvVar(index)}- disabled={envVars.length <= 1 || isCreating}- class="flex-shrink-0"- >- <Trash class="h-4 w-4" />- </Button>- </div>- {/each}- <Button- variant="outline"- type="button"- onclick={addEnvVar}- class="w-full"- disabled={isCreating}- >- <Plus class="h-4 w-4 mr-2" /> Add Environment Variable- </Button>- </div>- </Tabs.Content>-- <!-- Network Settings -->- <Tabs.Content value="network">- <div class="space-y-4">- <div class="grid grid-cols-1 gap-2">- <Label for="container-network">Network</Label>- <Select.Root- type="single"- bind:value={network}- disabled={isCreating}- >- <Select.Trigger class="w-full">- <span>{network || "Default Bridge"}</span>- </Select.Trigger>- <Select.Content>- <Select.Item value="">Default Bridge</Select.Item>- {#each networks.filter((n) => n.name !== "bridge" && n.name !== "host" && n.name !== "none") as net (net.name)}- <Select.Item value={net.name}>- {net.name} ({net.driver})- </Select.Item>- {/each}- </Select.Content>- </Select.Root>- </div>-- {#if isUserDefinedNetwork}- <div class="border-t pt-4 mt-4 space-y-4">- <p class="text-sm text-muted-foreground">- Optional: Assign static IP addresses (requires network with- IPAM configured).- </p>- <div class="grid grid-cols-1 md:grid-cols-2 gap-4">- <div class="grid grid-cols-1 gap-2">- <Label for="ipv4-address">IPv4 Address</Label>- <Input- id="ipv4-address"- bind:value={ipv4Address}- placeholder="e.g., 172.20.0.10"- disabled={isCreating}- />- </div>- <div class="grid grid-cols-1 gap-2">- <Label for="ipv6-address">IPv6 Address</Label>- <Input- id="ipv6-address"- bind:value={ipv6Address}- placeholder="e.g., 2001:db8::10"- disabled={isCreating}- />- </div>- </div>- </div>- {/if}- </div>- </Tabs.Content>-- <!-- Healthcheck Settings -->- <Tabs.Content value="healthcheck">- <div class="space-y-4">- <div class="flex items-center space-x-2">- <input- type="checkbox"- id="enable-healthcheck"- bind:checked={enableHealthcheck}- disabled={isCreating}- class="form-checkbox h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded"- />- <Label for="enable-healthcheck" class="cursor-pointer"- >Enable Healthcheck</Label- >- </div>-- {#if enableHealthcheck}- <div class="space-y-6 border-t pt-6 mt-4">- <div class="space-y-2">- <Label for="healthcheck-test">Test Command</Label>- <Input- id="healthcheck-test"- bind:value={healthcheckTest[0]}- placeholder="e.g., CMD-SHELL curl -f http://localhost:80 || exit 1"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground">- Command to run inside the container. Use `CMD` or- `CMD-SHELL`.- </p>- </div>-- <div class="grid grid-cols-2 md:grid-cols-4 gap-4">- <div class="space-y-2">- <Label for="healthcheck-interval">Interval (s)</Label>- <Input- id="healthcheck-interval"- type="number"- min="1"- bind:value={healthcheckInterval}- placeholder="e.g., 30"- disabled={isCreating}- />- </div>- <div class="space-y-2">- <Label for="healthcheck-timeout">Timeout (s)</Label>- <Input- id="healthcheck-timeout"- type="number"- min="1"- bind:value={healthcheckTimeout}- placeholder="e.g., 10"- disabled={isCreating}- />- </div>- <div class="space-y-2">- <Label for="healthcheck-retries">Retries</Label>- <Input- id="healthcheck-retries"- type="number"- min="1"- bind:value={healthcheckRetries}- placeholder="e.g., 3"- disabled={isCreating}- />- </div>- <div class="space-y-2">- <Label for="healthcheck-start-period"- >Start Period (s)</Label- >- <Input- id="healthcheck-start-period"- type="number"- min="0"- bind:value={healthcheckStartPeriod}- placeholder="e.g., 60"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground">- Grace period for startup.- </p>- </div>- </div>- </div>- {/if}- </div>- </Tabs.Content>-- <!-- Advanced Settings -->- <Tabs.Content value="advanced">- <div class="space-y-6">- <!-- Labels -->- <div class="space-y-4 border-b pb-6">- <h3 class="text-lg font-medium">Labels</h3>- {#each labels as label, index}- <div class="flex space-x-3 items-end">- <div class="flex-1 grid grid-cols-2 gap-4">- <div>- <Label- for={`label-key-${index}`}- class="mb-2 block text-sm">Key</Label- >- <Input- id={`label-key-${index}`}- bind:value={label.key}- placeholder="e.g., com.example.project"- disabled={isCreating}- />- </div>- <div>- <Label- for={`label-value-${index}`}- class="mb-2 block text-sm">Value</Label- >- <Input- id={`label-value-${index}`}- bind:value={label.value}- placeholder="e.g., my-app"- disabled={isCreating}- />- </div>- </div>- <Button- variant="destructive"- size="icon"- type="button"- onclick={() => removeLabel(index)}- disabled={labels.length <= 1 || isCreating}- class="flex-shrink-0"- >- <Trash class="h-4 w-4" />- </Button>- </div>- {/each}- <Button- variant="outline"- type="button"- onclick={addLabel}- class="w-full"- disabled={isCreating}- >- <Plus class="h-4 w-4 mr-2" /> Add Label- </Button>- </div>-- <!-- Command & User -->- <div class="space-y-4 border-b pb-6">- <h3 class="text-lg font-medium">Execution</h3>- <div class="grid grid-cols-1 md:grid-cols-2 gap-4">- <div class="space-y-2">- <Label for="command-override">Command Override</Label>- <Input- id="command-override"- bind:value={commandOverride}- placeholder="e.g., /app/run --config /etc/config.yml"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground">- Overrides the image's default command. Separate arguments- with spaces.- </p>- </div>- <div class="space-y-2">- <Label for="run-as-user">Run as User</Label>- <Input- id="run-as-user"- bind:value={runAsUser}- placeholder="e.g., 1000:1000 or node"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground">- Specify user/group ID or name.- </p>- </div>- </div>- </div>-- <!-- Resource Limits -->- <div class="space-y-4">- <h3 class="text-lg font-medium">Resource Limits</h3>- <div class="grid grid-cols-1 md:grid-cols-2 gap-4">- <div class="space-y-2">- <Label for="memory-limit">Memory Limit</Label>- <Input- id="memory-limit"- bind:value={memoryLimitStr}- placeholder="e.g., 512m, 1g"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground">- Format: number + unit (b, k, m, g). Minimum 4m.- </p>- </div>- <div class="space-y-2">- <Label for="cpu-limit">CPU Limit</Label>- <Input- id="cpu-limit"- bind:value={cpuLimitStr}- placeholder="e.g., 0.5, 1, 2"- disabled={isCreating}- type="number"- step="0.1"- min="0"- />- <p class="text-xs text-muted-foreground">- Number of CPU cores (e.g., 1.5 = 1.5 cores).- </p>- </div>- </div>- </div>- </div>- </Tabs.Content>- </form>- </div>- </Tabs.Root>-- <Dialog.Footer class="pt-4">- <Button- variant="outline"- onclick={onClose}- disabled={isCreating}- class="mr-2"- >- Cancel- </Button>- <Button- type="button"- onclick={handleSubmit}- disabled={isCreating || !containerName.trim() || !selectedImage}- >- {#if isCreating}- <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...- {:else}- Create Container- {/if}- </Button>- </Dialog.Footer>- </Dialog.Content>+ <Dialog.Content class="sm:max-w-[700px]">+ <Dialog.Header>+ <Dialog.Title>Create Container</Dialog.Title>+ <Dialog.Description>Configure and run a new Docker container</Dialog.Description>+ </Dialog.Header>++ <Tabs.Root value={selectedTab} class="w-full">+ <Tabs.List class="w-full grid grid-cols-7">+ <Tabs.Trigger value="basic" class="px-1 text-xs sm:text-sm">Basic</Tabs.Trigger>+ <Tabs.Trigger value="ports" class="px-1 text-xs sm:text-sm">Ports</Tabs.Trigger>+ <Tabs.Trigger value="volumes" class="px-1 text-xs sm:text-sm">Volumes</Tabs.Trigger>+ <Tabs.Trigger value="env" class="px-1 text-xs sm:text-sm">Environment</Tabs.Trigger>+ <Tabs.Trigger value="network" class="px-1 text-xs sm:text-sm">Network</Tabs.Trigger>+ <Tabs.Trigger value="healthcheck" class="px-1 text-xs sm:text-sm">Healthcheck</Tabs.Trigger>+ <Tabs.Trigger value="advanced" class="px-1 text-xs sm:text-sm">Advanced</Tabs.Trigger>+ </Tabs.List>++ <div class="p-4 max-h-[60vh] overflow-y-auto">+ <form onsubmit={preventDefault(handleSubmit)} class="space-y-6">+ <!-- Basic Settings -->+ <Tabs.Content value="basic">+ <div class="space-y-4">+ <div class="grid grid-cols-1 gap-2">+ <Label for="container-name">Name</Label>+ <Input id="container-name" bind:value={containerName} placeholder="e.g., my-container" disabled={isCreating} />+ </div>++ <div class="grid grid-cols-1 gap-2">+ <Label for="container-image">Image</Label>+ <Select.Root type="single" bind:value={selectedImage} disabled={isCreating}>+ <Select.Trigger class="w-full">+ <span>{selectedImage || 'Select an image'}</span>+ </Select.Trigger>+ <Select.Content>+ <Select.Group>+ {#each images as image}+ <Select.Item value={image.repo + ':' + image.tag}>+ {image.repo + ':' + image.tag}+ </Select.Item>+ {/each}+ </Select.Group>+ </Select.Content>+ </Select.Root>+ </div>++ <div class="grid grid-cols-1 gap-2">+ <Label for="restart-policy">Restart Policy</Label>+ <Select.Root type="single" bind:value={restartPolicy} disabled={isCreating}>+ <Select.Trigger class="w-full">+ <span>{restartPolicy}</span>+ </Select.Trigger>+ <Select.Content>+ <Select.Item value="no">no</Select.Item>+ <Select.Item value="always">always</Select.Item>+ <Select.Item value="on-failure">on-failure</Select.Item>+ <Select.Item value="unless-stopped">unless-stopped</Select.Item>+ </Select.Content>+ </Select.Root>+ </div>+ </div>+ </Tabs.Content>++ <!-- Port Mappings -->+ <Tabs.Content value="ports">+ <div class="space-y-4">+ {#each ports as port, index}+ <div class="flex space-x-3 items-end">+ <div class="flex-1 grid grid-cols-2 gap-4">+ <div>+ <Label for={`host-port-${index}`} class="mb-2 block text-sm">Host Port</Label>+ <Input id={`host-port-${index}`} bind:value={port.hostPort} placeholder="e.g., 8080" disabled={isCreating} type="text" pattern="[0-9]*" inputmode="numeric" class={port.hostError && port.hostPort ? 'border-red-500' : ''} />+ {#if port.hostError && port.hostPort}+ <div class="flex items-center text-xs text-red-500 mt-1">+ <AlertCircle class="h-3 w-3 mr-1" />+ {port.hostError}+ </div>+ {/if}+ </div>++ <div>+ <Label for={`container-port-${index}`} class="mb-2 block text-sm">Container Port</Label>+ <Input id={`container-port-${index}`} bind:value={port.containerPort} placeholder="e.g., 80" disabled={isCreating} type="text" pattern="[0-9]*" inputmode="numeric" class={port.containerError && port.containerPort ? 'border-red-500' : ''} />+ {#if port.containerError && port.containerPort}+ <div class="flex items-center text-xs text-red-500 mt-1">+ <AlertCircle class="h-3 w-3 mr-1" />+ {port.containerError}+ </div>+ {/if}+ </div>+ </div>++ <Button variant="destructive" size="icon" type="button" onclick={() => removePort(index)} disabled={ports.length <= 1 || isCreating} class="flex-shrink-0">+ <Trash class="h-4 w-4" />+ </Button>+ </div>+ {/each}+ <Button variant="outline" type="button" onclick={addPort} class="w-full" disabled={isCreating}>+ <Plus class="h-4 w-4 mr-2" /> Add Port Mapping+ </Button>+ </div>+ </Tabs.Content>++ <!-- Volume Mounts -->+ <Tabs.Content value="volumes">+ <div class="space-y-4">+ {#each volumeMounts as mount, index}+ <div class="flex space-x-3 items-end">+ <div class="flex-1 grid grid-cols-2 gap-4">+ <div>+ <Label for={`volume-source-${index}`} class="mb-2 block">Source Volume</Label>+ <Select.Root type="single" bind:value={mount.source} disabled={isCreating}>+ <Select.Trigger class="w-full">+ <span>{mount.source || 'Select volume'}</span>+ </Select.Trigger>+ <Select.Content>+ {#each volumes as volume}+ <Select.Item value={volume.name}>+ {volume.name}+ </Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>+ </div>+ <div>+ <Label for={`volume-target-${index}`} class="mb-2 block">Container Path</Label>+ <Input id={`volume-target-${index}`} bind:value={mount.target} placeholder="/data" disabled={isCreating} />+ </div>+ </div>+ <Button variant="destructive" size="icon" type="button" onclick={() => removeVolumeMount(index)} disabled={volumeMounts.length <= 1 || isCreating} class="flex-shrink-0">+ <Trash class="h-4 w-4" />+ </Button>+ </div>+ {/each}+ <Button variant="outline" type="button" onclick={addVolumeMount} class="w-full" disabled={isCreating}>+ <Plus class="h-4 w-4 mr-2" /> Add Volume Mount+ </Button>+ </div>+ </Tabs.Content>++ <!-- Environment Variables -->+ <Tabs.Content value="env">+ <div class="space-y-4">+ {#each envVars as env, index}+ <div class="flex space-x-3 items-end">+ <div class="flex-1 grid grid-cols-2 gap-4">+ <div>+ <Label for={`env-key-${index}`} class="mb-2 block">Key</Label>+ <Input id={`env-key-${index}`} bind:value={env.key} placeholder="MYSQL_ROOT_PASSWORD" disabled={isCreating} />+ </div>+ <div>+ <Label for={`env-value-${index}`} class="mb-2 block">Value</Label>+ <div class="flex items-center gap-2">+ <Input id={`env-value-${index}`} bind:value={env.value} type={env.sensitive ? 'password' : 'text'} placeholder="secret" disabled={isCreating} />+ <Button+ variant="outline"+ size="icon"+ type="button"+ onclick={() => {+ env.sensitive = !env.sensitive;+ }}+ disabled={isCreating}+ title={env.sensitive ? 'Show value' : 'Hide value'}+ >+ {#if env.sensitive}+ <Eye class="h-4 w-4" />+ {:else}+ <EyeOff class="h-4 w-4" />+ {/if}+ </Button>+ </div>+ </div>+ </div>+ <Button variant="destructive" size="icon" type="button" onclick={() => removeEnvVar(index)} disabled={envVars.length <= 1 || isCreating} class="flex-shrink-0">+ <Trash class="h-4 w-4" />+ </Button>+ </div>+ {/each}+ <Button variant="outline" type="button" onclick={addEnvVar} class="w-full" disabled={isCreating}>+ <Plus class="h-4 w-4 mr-2" /> Add Environment Variable+ </Button>+ </div>+ </Tabs.Content>++ <!-- Network Settings -->+ <Tabs.Content value="network">+ <div class="space-y-4">+ <div class="grid grid-cols-1 gap-2">+ <Label for="container-network">Network</Label>+ <Select.Root type="single" bind:value={network} disabled={isCreating}>+ <Select.Trigger class="w-full">+ <span>{network || 'Default Bridge'}</span>+ </Select.Trigger>+ <Select.Content>+ <Select.Item value="">Default Bridge</Select.Item>+ {#each networks.filter((n) => n.name !== 'bridge' && n.name !== 'host' && n.name !== 'none') as net (net.name)}+ <Select.Item value={net.name}>+ {net.name} ({net.driver})+ </Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>+ </div>++ {#if isUserDefinedNetwork}+ <div class="border-t pt-4 mt-4 space-y-4">+ <p class="text-sm text-muted-foreground">Optional: Assign static IP addresses (requires network with IPAM configured).</p>+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div class="grid grid-cols-1 gap-2">+ <Label for="ipv4-address">IPv4 Address</Label>+ <Input id="ipv4-address" bind:value={ipv4Address} placeholder="e.g., 172.20.0.10" disabled={isCreating} />+ </div>+ <div class="grid grid-cols-1 gap-2">+ <Label for="ipv6-address">IPv6 Address</Label>+ <Input id="ipv6-address" bind:value={ipv6Address} placeholder="e.g., 2001:db8::10" disabled={isCreating} />+ </div>+ </div>+ </div>+ {/if}+ </div>+ </Tabs.Content>++ <!-- Healthcheck Settings -->+ <Tabs.Content value="healthcheck">+ <div class="space-y-4">+ <div class="flex items-center space-x-2">+ <input type="checkbox" id="enable-healthcheck" bind:checked={enableHealthcheck} disabled={isCreating} class="form-checkbox h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" />+ <Label for="enable-healthcheck" class="cursor-pointer">Enable Healthcheck</Label>+ </div>++ {#if enableHealthcheck}+ <div class="space-y-6 border-t pt-6 mt-4">+ <div class="space-y-2">+ <Label for="healthcheck-test">Test Command</Label>+ <Input id="healthcheck-test" bind:value={healthcheckTest[0]} placeholder="e.g., CMD-SHELL curl -f http://localhost:80 || exit 1" disabled={isCreating} />+ <p class="text-xs text-muted-foreground">Command to run inside the container. Use `CMD` or `CMD-SHELL`.</p>+ </div>++ <div class="grid grid-cols-2 md:grid-cols-4 gap-4">+ <div class="space-y-2">+ <Label for="healthcheck-interval">Interval (s)</Label>+ <Input id="healthcheck-interval" type="number" min="1" bind:value={healthcheckInterval} placeholder="e.g., 30" disabled={isCreating} />+ </div>+ <div class="space-y-2">+ <Label for="healthcheck-timeout">Timeout (s)</Label>+ <Input id="healthcheck-timeout" type="number" min="1" bind:value={healthcheckTimeout} placeholder="e.g., 10" disabled={isCreating} />+ </div>+ <div class="space-y-2">+ <Label for="healthcheck-retries">Retries</Label>+ <Input id="healthcheck-retries" type="number" min="1" bind:value={healthcheckRetries} placeholder="e.g., 3" disabled={isCreating} />+ </div>+ <div class="space-y-2">+ <Label for="healthcheck-start-period">Start Period (s)</Label>+ <Input id="healthcheck-start-period" type="number" min="0" bind:value={healthcheckStartPeriod} placeholder="e.g., 60" disabled={isCreating} />+ <p class="text-xs text-muted-foreground">Grace period for startup.</p>+ </div>+ </div>+ </div>+ {/if}+ </div>+ </Tabs.Content>++ <!-- Advanced Settings -->+ <Tabs.Content value="advanced">+ <div class="space-y-6">+ <!-- Labels -->+ <div class="space-y-4 border-b pb-6">+ <h3 class="text-lg font-medium">Labels</h3>+ {#each labels as label, index}+ <div class="flex space-x-3 items-end">+ <div class="flex-1 grid grid-cols-2 gap-4">+ <div>+ <Label for={`label-key-${index}`} class="mb-2 block text-sm">Key</Label>+ <Input id={`label-key-${index}`} bind:value={label.key} placeholder="e.g., com.example.project" disabled={isCreating} />+ </div>+ <div>+ <Label for={`label-value-${index}`} class="mb-2 block text-sm">Value</Label>+ <Input id={`label-value-${index}`} bind:value={label.value} placeholder="e.g., my-app" disabled={isCreating} />+ </div>+ </div>+ <Button variant="destructive" size="icon" type="button" onclick={() => removeLabel(index)} disabled={labels.length <= 1 || isCreating} class="flex-shrink-0">+ <Trash class="h-4 w-4" />+ </Button>+ </div>+ {/each}+ <Button variant="outline" type="button" onclick={addLabel} class="w-full" disabled={isCreating}>+ <Plus class="h-4 w-4 mr-2" /> Add Label+ </Button>+ </div>++ <!-- Command & User -->+ <div class="space-y-4 border-b pb-6">+ <h3 class="text-lg font-medium">Execution</h3>+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div class="space-y-2">+ <Label for="command-override">Command Override</Label>+ <Input id="command-override" bind:value={commandOverride} placeholder="e.g., /app/run --config /etc/config.yml" disabled={isCreating} />+ <p class="text-xs text-muted-foreground">Overrides the image's default command. Separate arguments with spaces.</p>+ </div>+ <div class="space-y-2">+ <Label for="run-as-user">Run as User</Label>+ <Input id="run-as-user" bind:value={runAsUser} placeholder="e.g., 1000:1000 or node" disabled={isCreating} />+ <p class="text-xs text-muted-foreground">Specify user/group ID or name.</p>+ </div>+ </div>+ </div>++ <!-- Resource Limits -->+ <div class="space-y-4">+ <h3 class="text-lg font-medium">Resource Limits</h3>+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div class="space-y-2">+ <Label for="memory-limit">Memory Limit</Label>+ <Input id="memory-limit" bind:value={memoryLimitStr} placeholder="e.g., 512m, 1g" disabled={isCreating} />+ <p class="text-xs text-muted-foreground">Format: number + unit (b, k, m, g). Minimum 4m.</p>+ </div>+ <div class="space-y-2">+ <Label for="cpu-limit">CPU Limit</Label>+ <Input id="cpu-limit" bind:value={cpuLimitStr} placeholder="e.g., 0.5, 1, 2" disabled={isCreating} type="number" step="0.1" min="0" />+ <p class="text-xs text-muted-foreground">Number of CPU cores (e.g., 1.5 = 1.5 cores).</p>+ </div>+ </div>+ </div>+ </div>+ </Tabs.Content>+ </form>+ </div>+ </Tabs.Root>++ <Dialog.Footer class="pt-4">+ <Button variant="outline" onclick={onClose} disabled={isCreating} class="mr-2">Cancel</Button>+ <Button type="button" onclick={handleSubmit} disabled={isCreating || !containerName.trim() || !selectedImage}>+ {#if isCreating}+ <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...+ {:else}+ Create Container+ {/if}+ </Button>+ </Dialog.Footer>+ </Dialog.Content></Dialog.Root>diff --git a/src/routes/images/+page.server.ts b/src/routes/images/+page.server.tsindex 2a0431ecb..8303bdf05 100644--- a/src/routes/images/+page.server.ts+++ b/src/routes/images/+page.server.ts@@ -1,35 +1,35 @@-import type { PageServerLoad } from "./$types";-import { listImages, isImageInUse } from "$lib/services/docker-service";-import type { EnhancedImageInfo } from "$lib/types/image";+import type { PageServerLoad } from './$types';+import { listImages, isImageInUse } from '$lib/services/docker-service';+import type { EnhancedImageInfo } from '$lib/types/image';type ImageData = {- images: EnhancedImageInfo[];- error?: string;+ images: EnhancedImageInfo[];+ error?: string;};export const load: PageServerLoad = async (): Promise<ImageData> => {- try {- const images = await listImages();+ try {+ const images = await listImages();- // Enhance images with usage information- const enhancedImages = await Promise.all(- images.map(async (image): Promise<EnhancedImageInfo> => {- const inUse = await isImageInUse(image.id);- return {- ...image,- inUse,- };- })- );+ // Enhance images with usage information+ const enhancedImages = await Promise.all(+ images.map(async (image): Promise<EnhancedImageInfo> => {+ const inUse = await isImageInUse(image.id);+ return {+ ...image,+ inUse+ };+ })+ );- return {- images: enhancedImages,- };- } catch (err: any) {- console.error("Failed to load images:", err);- return {- images: [],- error: err.message || "Failed to connect to Docker or list images.",- };- }+ return {+ images: enhancedImages+ };+ } catch (err: any) {+ console.error('Failed to load images:', err);+ return {+ images: [],+ error: err.message || 'Failed to connect to Docker or list images.'+ };+ }};diff --git a/src/routes/images/+page.svelte b/src/routes/images/+page.svelteindex 97baa7a85..481927800 100644--- a/src/routes/images/+page.svelte+++ b/src/routes/images/+page.svelte@@ -1,456 +1,364 @@<script lang="ts">- import type { PageData } from "./$types";- import type { EnhancedImageInfo } from "$lib/types/image";- import UniversalTable from "$lib/components/universal-table.svelte";- import { columns } from "./columns";- import { Button } from "$lib/components/ui/button/index.js";- import {- Download,- AlertCircle,- RefreshCw,- HardDrive,- Trash2,- Loader2,- ChevronDown,- CopyX,- } from "@lucide/svelte";- import * as Alert from "$lib/components/ui/alert/index.js";- import * as Card from "$lib/components/ui/card/index.js";- import { invalidateAll } from "$app/navigation";- import { toast } from "svelte-sonner";- import PullImageDialog from "./pull-image-dialog.svelte";- import { formatBytes, cn } from "$lib/utils";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";-- let { data }: { data: PageData } = $props();- let images = $state<EnhancedImageInfo[]>(data.images || []);- let error = $state(data.error);- let selectedIds = $state<string[]>([]);-- let isRefreshing = $state(false);- let isPullDialogOpen = $state(false);- let isPullingImage = $state(false);- let pullProgress = $state(0);-- let isDeletingSelected = $state(false);- let isConfirmDeleteDialogOpen = $state(false);-- let isPruning = $state(false);- let isConfirmPruneDialogOpen = $state(false);-- $effect(() => {- images = data.images || [];- error = data.error;- });-- const totalImages = $derived(images?.length || 0);- const totalSize = $derived(- images?.reduce((acc, img) => acc + (img.size || 0), 0) || 0- );-- async function handlePullImageSubmit(event: {- imageRef: string;- tag?: string;- platform?: string;- }) {- const { imageRef, tag = "latest", platform } = event;-- isPullingImage = true;-- try {- const encodedImageRef = encodeURIComponent(imageRef);- const eventSource = new EventSource(- `/api/images/pull-stream/${encodedImageRef}?tag=${tag}${- platform ? `&platform=${platform}` : ""- }`- );-- eventSource.onmessage = (event) => {- const data = JSON.parse(event.data);-- if (data.error) {- eventSource.close();- toast.error(`Pull failed: ${data.error}`);- isPullingImage = false;- return;- }-- if (data.progress !== undefined) {- pullProgress = data.progress;- }-- if (data.complete) {- eventSource.close();- const fullImageRef = `${imageRef}:${tag}`;- toast.success(`Image "${fullImageRef}" pulled successfully.`);- isPullDialogOpen = false;-- setTimeout(async () => {- await refreshData();- }, 500);- isPullingImage = false;- }- };-- eventSource.onerror = (err) => {- console.error("EventSource error:", err);- eventSource.close();- toast.error("Connection to server lost while pulling image");- isPullingImage = false;- };- } catch (err: any) {- console.error("Failed to pull image:", err);- toast.error(`Failed to pull image: ${err.message}`);- isPullingImage = false;- }- }-- async function handleDeleteSelected() {- isDeletingSelected = true;- const deletePromises = selectedIds.map(async (id) => {- try {- const image = images.find((img) => img.id === id);- if (image?.inUse) {- toast.error(- `Image "${image.repo}:${image.tag}" (${id.substring(- 0,- 12- )}) is in use and cannot be deleted.`- );- return { id, success: false, error: "Image in use" };- }-- const response = await fetch(`/api/images/${encodeURIComponent(id)}`, {- method: "DELETE",- });- const result = await response.json();- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }- return {- id,- success: true,- repoTag: image?.repoTags?.[0] || id.substring(0, 12),- };- } catch (err: any) {- console.error(`Failed to delete image "${id}":`, err);- const image = images.find((img) => img.id === id);- return {- id,- success: false,- error: err.message,- repoTag: image?.repoTags?.[0] || id.substring(0, 12),- };- }- });-- const results = await Promise.all(deletePromises);- const successfulDeletes = results.filter((r) => r.success);- const failedDeletes = results.filter((r) => !r.success);-- if (successfulDeletes.length > 0) {- toast.success(- `Successfully deleted ${successfulDeletes.length} image(s).`- );- setTimeout(async () => {- await refreshData();- selectedIds = [];- }, 500);- }-- failedDeletes.forEach((r) => {- if (r.error !== "Image in use") {- toast.error(`Failed to delete image "${r.repoTag}": ${r.error}`);- }- });-- isDeletingSelected = false;- isConfirmDeleteDialogOpen = false;- }-- async function handlePruneImages() {- isPruning = true;- try {- const response = await fetch("/api/images/prune", {- method: "POST",- });- const result = await response.json();-- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }-- toast.success(result.message || "Image prune completed.");- setTimeout(async () => {- await refreshData();- }, 500);- } catch (err: any) {- console.error("Failed to prune images:", err);- toast.error(`Failed to prune images: ${err.message}`);- } finally {- isPruning = false;- isConfirmPruneDialogOpen = false;- }- }-- async function refreshData() {- if (isRefreshing) return;- isRefreshing = true;- try {- await invalidateAll();- images = data.images;- } catch (err) {- console.error("Error refreshing images:", err);- toast.error("Failed to refresh image list.");- } finally {- setTimeout(() => {- isRefreshing = false;- }, 300);- }- }-- function openPullDialog() {- isPullDialogOpen = true;- }+ import type { PageData } from './$types';+ import type { EnhancedImageInfo } from '$lib/types/image';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { columns } from './columns';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Download, AlertCircle, RefreshCw, HardDrive, Trash2, Loader2, ChevronDown, CopyX } from '@lucide/svelte';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import * as Card from '$lib/components/ui/card/index.js';+ import { invalidateAll } from '$app/navigation';+ import { toast } from 'svelte-sonner';+ import PullImageDialog from './pull-image-dialog.svelte';+ import { formatBytes, cn } from '$lib/utils';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';++ let { data }: { data: PageData } = $props();+ let images = $state<EnhancedImageInfo[]>(data.images || []);+ let error = $state(data.error);+ let selectedIds = $state<string[]>([]);++ let isRefreshing = $state(false);+ let isPullDialogOpen = $state(false);+ let isPullingImage = $state(false);+ let pullProgress = $state(0);++ let isDeletingSelected = $state(false);+ let isConfirmDeleteDialogOpen = $state(false);++ let isPruning = $state(false);+ let isConfirmPruneDialogOpen = $state(false);++ $effect(() => {+ images = data.images || [];+ error = data.error;+ });++ const totalImages = $derived(images?.length || 0);+ const totalSize = $derived(images?.reduce((acc, img) => acc + (img.size || 0), 0) || 0);++ async function handlePullImageSubmit(event: { imageRef: string; tag?: string; platform?: string }) {+ const { imageRef, tag = 'latest', platform } = event;++ isPullingImage = true;++ try {+ const encodedImageRef = encodeURIComponent(imageRef);+ const eventSource = new EventSource(`/api/images/pull-stream/${encodedImageRef}?tag=${tag}${platform ? `&platform=${platform}` : ''}`);++ eventSource.onmessage = (event) => {+ const data = JSON.parse(event.data);++ if (data.error) {+ eventSource.close();+ toast.error(`Pull failed: ${data.error}`);+ isPullingImage = false;+ return;+ }++ if (data.progress !== undefined) {+ pullProgress = data.progress;+ }++ if (data.complete) {+ eventSource.close();+ const fullImageRef = `${imageRef}:${tag}`;+ toast.success(`Image "${fullImageRef}" pulled successfully.`);+ isPullDialogOpen = false;++ setTimeout(async () => {+ await refreshData();+ }, 500);+ isPullingImage = false;+ }+ };++ eventSource.onerror = (err) => {+ console.error('EventSource error:', err);+ eventSource.close();+ toast.error('Connection to server lost while pulling image');+ isPullingImage = false;+ };+ } catch (err: any) {+ console.error('Failed to pull image:', err);+ toast.error(`Failed to pull image: ${err.message}`);+ isPullingImage = false;+ }+ }++ async function handleDeleteSelected() {+ isDeletingSelected = true;+ const deletePromises = selectedIds.map(async (id) => {+ try {+ const image = images.find((img) => img.id === id);+ if (image?.inUse) {+ toast.error(`Image "${image.repo}:${image.tag}" (${id.substring(0, 12)}) is in use and cannot be deleted.`);+ return { id, success: false, error: 'Image in use' };+ }++ const response = await fetch(`/api/images/${encodeURIComponent(id)}`, {+ method: 'DELETE'+ });+ const result = await response.json();+ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }+ return {+ id,+ success: true,+ repoTag: image?.repoTags?.[0] || id.substring(0, 12)+ };+ } catch (err: any) {+ console.error(`Failed to delete image "${id}":`, err);+ const image = images.find((img) => img.id === id);+ return {+ id,+ success: false,+ error: err.message,+ repoTag: image?.repoTags?.[0] || id.substring(0, 12)+ };+ }+ });++ const results = await Promise.all(deletePromises);+ const successfulDeletes = results.filter((r) => r.success);+ const failedDeletes = results.filter((r) => !r.success);++ if (successfulDeletes.length > 0) {+ toast.success(`Successfully deleted ${successfulDeletes.length} image(s).`);+ setTimeout(async () => {+ await refreshData();+ selectedIds = [];+ }, 500);+ }++ failedDeletes.forEach((r) => {+ if (r.error !== 'Image in use') {+ toast.error(`Failed to delete image "${r.repoTag}": ${r.error}`);+ }+ });++ isDeletingSelected = false;+ isConfirmDeleteDialogOpen = false;+ }++ async function handlePruneImages() {+ isPruning = true;+ try {+ const response = await fetch('/api/images/prune', {+ method: 'POST'+ });+ const result = await response.json();++ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }++ toast.success(result.message || 'Image prune completed.');+ setTimeout(async () => {+ await refreshData();+ }, 500);+ } catch (err: any) {+ console.error('Failed to prune images:', err);+ toast.error(`Failed to prune images: ${err.message}`);+ } finally {+ isPruning = false;+ isConfirmPruneDialogOpen = false;+ }+ }++ async function refreshData() {+ if (isRefreshing) return;+ isRefreshing = true;+ try {+ await invalidateAll();+ images = data.images;+ } catch (err) {+ console.error('Error refreshing images:', err);+ toast.error('Failed to refresh image list.');+ } finally {+ setTimeout(() => {+ isRefreshing = false;+ }, 300);+ }+ }++ function openPullDialog() {+ isPullDialogOpen = true;+ }</script><div class="space-y-6">- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Docker Images</h1>- <p class="text-sm text-muted-foreground mt-1">- Manage your Docker images- </p>- </div>- <div class="flex items-center gap-2">- <Button- variant="secondary"- size="icon"- onclick={refreshData}- disabled={isRefreshing}- >- <RefreshCw class={cn("h-4 w-4", isRefreshing && "animate-spin")} />- <span class="sr-only">Refresh</span>- </Button>- <Button- variant="secondary"- onclick={() => (isConfirmPruneDialogOpen = true)}- disabled={isPruning}- >- {#if isPruning}- <Loader2 class="w-4 h-4 animate-spin" /> Pruning...- {:else}- <CopyX class="w-4 h-4" /> Prune Unused- {/if}- </Button>- <Button- variant="secondary"- onclick={openPullDialog}- disabled={isPullingImage}- >- {#if isPullingImage}- <Loader2 class="w-4 h-4 animate-spin" /> Pulling...- {:else}- <Download class="w-4 h-4" /> Pull Image- {/if}- </Button>- </div>- </div>-- {#if error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Error Loading Images</Alert.Title>- <Alert.Description>{error}</Alert.Description>- </Alert.Root>- {/if}-- <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Total Images</p>- <p class="text-2xl font-bold">{totalImages}</p>- </div>- <div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />- </div>- </Card.Content>- </Card.Root>-- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Total Size</p>- <p class="text-2xl font-bold">{formatBytes(totalSize)}</p>- </div>- <div class="bg-purple-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-purple-500" />- </div>- </Card.Content>- </Card.Root>- </div>-- {#if images && images.length > 0}- <Card.Root class="border shadow-sm">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Image List</Card.Title>- <Card.Description>- View and manage your Docker images- </Card.Description>- </div>- <div class="flex items-center gap-2">- {#if selectedIds.length > 0}- <DropdownMenu.Root>- <DropdownMenu.Trigger>- {#snippet child({ props })}- <Button- {...props}- variant="outline"- disabled={isDeletingSelected}- aria-label={`Group actions for ${selectedIds.length} selected image(s)`}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- Processing...- {:else}- Actions ({selectedIds.length})- <ChevronDown class="w-4 h-4 ml-2" />- {/if}- </Button>- {/snippet}- </DropdownMenu.Trigger>- <DropdownMenu.Content>- <DropdownMenu.Item- onclick={() => (isConfirmDeleteDialogOpen = true)}- class="text-red-500 focus:!text-red-700"- disabled={isDeletingSelected}- >- <Trash2 class="w-4 h-4" />- Delete Selected- </DropdownMenu.Item>- </DropdownMenu.Content>- </DropdownMenu.Root>- {/if}- </div>- </div>- </Card.Header>- <Card.Content>- <UniversalTable- data={images}- {columns}- idKey="id"- display={{- filterPlaceholder: "Search images...",- noResultsMessage: "No images found",- }}- sort={{- defaultSort: { id: "repo", desc: false },- }}- bind:selectedIds- />- </Card.Content>- </Card.Root>- {:else if !error}- <div- class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card"- >- <HardDrive class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />- <p class="text-lg font-medium">No images found</p>- <p class="text-sm text-muted-foreground mt-1 max-w-md">- Pull a new image using the "Pull Image" button above or use the Docker- CLI- </p>- <div class="flex gap-3 mt-4">- <Button variant="outline" size="sm" onclick={refreshData}>- <RefreshCw class="h-4 w-4" />- Refresh- </Button>- <Button variant="outline" size="sm" onclick={openPullDialog}>- <Download class="h-4 w-4" />- Pull Image- </Button>- </div>- </div>- {/if}-- <PullImageDialog- bind:open={isPullDialogOpen}- isPulling={isPullingImage}- {pullProgress}- onSubmit={handlePullImageSubmit}- />-- <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Delete Selected Images</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete {selectedIds.length} selected image(s)?- This action cannot be undone. Images currently used by containers will- not be deleted.- </Dialog.Description>- </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmDeleteDialogOpen = false)}- disabled={isDeletingSelected}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handleDeleteSelected}- disabled={isDeletingSelected}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...- {:else}- Delete {selectedIds.length} Image{#if selectedIds.length > 1}s{/if}- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>-- <Dialog.Root bind:open={isConfirmPruneDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Prune Unused Images</Dialog.Title>- <Dialog.Description>- Are you sure you want to remove all unused (dangling) Docker images?- This will free up disk space but cannot be undone. Images actively- used by containers will not be affected.- </Dialog.Description>- </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmPruneDialogOpen = false)}- disabled={isPruning}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handlePruneImages}- disabled={isPruning}- >- {#if isPruning}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Pruning...- {:else}- Prune Images- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Docker Images</h1>+ <p class="text-sm text-muted-foreground mt-1">Manage your Docker images</p>+ </div>+ <div class="flex items-center gap-2">+ <Button variant="secondary" size="icon" onclick={refreshData} disabled={isRefreshing}>+ <RefreshCw class={cn('h-4 w-4', isRefreshing && 'animate-spin')} />+ <span class="sr-only">Refresh</span>+ </Button>+ <Button variant="secondary" onclick={() => (isConfirmPruneDialogOpen = true)} disabled={isPruning}>+ {#if isPruning}+ <Loader2 class="w-4 h-4 animate-spin" /> Pruning...+ {:else}+ <CopyX class="w-4 h-4" /> Prune Unused+ {/if}+ </Button>+ <Button variant="secondary" onclick={openPullDialog} disabled={isPullingImage}>+ {#if isPullingImage}+ <Loader2 class="w-4 h-4 animate-spin" /> Pulling...+ {:else}+ <Download class="w-4 h-4" /> Pull Image+ {/if}+ </Button>+ </div>+ </div>++ {#if error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Error Loading Images</Alert.Title>+ <Alert.Description>{error}</Alert.Description>+ </Alert.Root>+ {/if}++ <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total Images</p>+ <p class="text-2xl font-bold">{totalImages}</p>+ </div>+ <div class="bg-blue-500/10 p-2 rounded-full">+ <HardDrive class="h-5 w-5 text-blue-500" />+ </div>+ </Card.Content>+ </Card.Root>++ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total Size</p>+ <p class="text-2xl font-bold">{formatBytes(totalSize)}</p>+ </div>+ <div class="bg-purple-500/10 p-2 rounded-full">+ <HardDrive class="h-5 w-5 text-purple-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>++ {#if images && images.length > 0}+ <Card.Root class="border shadow-sm">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Image List</Card.Title>+ <Card.Description>View and manage your Docker images</Card.Description>+ </div>+ <div class="flex items-center gap-2">+ {#if selectedIds.length > 0}+ <DropdownMenu.Root>+ <DropdownMenu.Trigger>+ {#snippet child({ props })}+ <Button {...props} variant="outline" disabled={isDeletingSelected} aria-label={`Group actions for ${selectedIds.length} selected image(s)`}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ Processing...+ {:else}+ Actions ({selectedIds.length})+ <ChevronDown class="w-4 h-4 ml-2" />+ {/if}+ </Button>+ {/snippet}+ </DropdownMenu.Trigger>+ <DropdownMenu.Content>+ <DropdownMenu.Item onclick={() => (isConfirmDeleteDialogOpen = true)} class="text-red-500 focus:!text-red-700" disabled={isDeletingSelected}>+ <Trash2 class="w-4 h-4" />+ Delete Selected+ </DropdownMenu.Item>+ </DropdownMenu.Content>+ </DropdownMenu.Root>+ {/if}+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <UniversalTable+ data={images}+ {columns}+ idKey="id"+ display={{+ filterPlaceholder: 'Search images...',+ noResultsMessage: 'No images found'+ }}+ sort={{+ defaultSort: { id: 'repo', desc: false }+ }}+ bind:selectedIds+ />+ </Card.Content>+ </Card.Root>+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card">+ <HardDrive class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <p class="text-lg font-medium">No images found</p>+ <p class="text-sm text-muted-foreground mt-1 max-w-md">Pull a new image using the "Pull Image" button above or use the Docker CLI</p>+ <div class="flex gap-3 mt-4">+ <Button variant="outline" size="sm" onclick={refreshData}>+ <RefreshCw class="h-4 w-4" />+ Refresh+ </Button>+ <Button variant="outline" size="sm" onclick={openPullDialog}>+ <Download class="h-4 w-4" />+ Pull Image+ </Button>+ </div>+ </div>+ {/if}++ <PullImageDialog bind:open={isPullDialogOpen} isPulling={isPullingImage} {pullProgress} onSubmit={handlePullImageSubmit} />++ <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Delete Selected Images</Dialog.Title>+ <Dialog.Description>+ Are you sure you want to delete {selectedIds.length} selected image(s)? This action cannot be undone. Images currently used by containers will not be deleted.+ </Dialog.Description>+ </Dialog.Header>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmDeleteDialogOpen = false)} disabled={isDeletingSelected}>Cancel</Button>+ <Button variant="destructive" onclick={handleDeleteSelected} disabled={isDeletingSelected}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...+ {:else}+ Delete {selectedIds.length} Image{#if selectedIds.length > 1}s{/if}+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root>++ <Dialog.Root bind:open={isConfirmPruneDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Prune Unused Images</Dialog.Title>+ <Dialog.Description>Are you sure you want to remove all unused (dangling) Docker images? This will free up disk space but cannot be undone. Images actively used by containers will not be affected.</Dialog.Description>+ </Dialog.Header>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmPruneDialogOpen = false)} disabled={isPruning}>Cancel</Button>+ <Button variant="destructive" onclick={handlePruneImages} disabled={isPruning}>+ {#if isPruning}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Pruning...+ {:else}+ Prune Images+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root></div>diff --git a/src/routes/images/ImageActions.svelte b/src/routes/images/ImageActions.svelteindex 6e55c105b..988fc36c3 100644--- a/src/routes/images/ImageActions.svelte+++ b/src/routes/images/ImageActions.svelte@@ -1,161 +1,132 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";- import { Trash2, Download, Ellipsis, Loader2 } from "@lucide/svelte";- import { toast } from "svelte-sonner";-- let {- id,- repoTag,- inUse = true,- }: { id: string; repoTag?: string; inUse: boolean } = $props();-- let isPulling = $state(false);- let isDeleting = $state(false);- let isConfirmDialogOpen = $state(false);-- async function handleDelete() {- if (inUse) {- toast.error("Cannot delete image that is in use by containers");- return;- }-- isDeleting = true;- try {- const response = await fetch(`/api/images/${encodeURIComponent(id)}`, {- method: "DELETE",- });-- const result = await response.json();-- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }-- toast.success(- `Image ${repoTag || id.substring(0, 12)} deleted successfully.`- );- isConfirmDialogOpen = false;-- window.location.href = `${window.location.pathname}?t=${Date.now()}`;- } catch (err: any) {- console.error(`Failed to delete image:`, err);- toast.error(`Failed to delete image: ${err.message}`);- } finally {- isDeleting = false;- }- }-- async function pullImage() {- if (!repoTag) {- toast.error("Cannot pull image without a repository tag");- return;- }-- isPulling = true;- try {- let [imageRef, tag] = repoTag.split(":");- tag = tag || "latest";-- const encodedImageRef = encodeURIComponent(imageRef);-- const response = await fetch(`/api/images/pull/${encodedImageRef}`, {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({- tag,- }),- });-- if (!response.ok) {- const result = await response.json();- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }-- toast.success(`Image "${repoTag}" pulled successfully.`);-- window.location.href = `${window.location.pathname}?t=${Date.now()}`;- } catch (err: any) {- console.error(`Failed to pull image "${repoTag}":`, err);- toast.error(`Failed to pull image: ${err.message}`);- } finally {- isPulling = false;- }- }+ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';+ import { Trash2, Download, Ellipsis, Loader2 } from '@lucide/svelte';+ import { toast } from 'svelte-sonner';++ let { id, repoTag, inUse = true }: { id: string; repoTag?: string; inUse: boolean } = $props();++ let isPulling = $state(false);+ let isDeleting = $state(false);+ let isConfirmDialogOpen = $state(false);++ async function handleDelete() {+ if (inUse) {+ toast.error('Cannot delete image that is in use by containers');+ return;+ }++ isDeleting = true;+ try {+ const response = await fetch(`/api/images/${encodeURIComponent(id)}`, {+ method: 'DELETE'+ });++ const result = await response.json();++ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }++ toast.success(`Image ${repoTag || id.substring(0, 12)} deleted successfully.`);+ isConfirmDialogOpen = false;++ window.location.href = `${window.location.pathname}?t=${Date.now()}`;+ } catch (err: any) {+ console.error(`Failed to delete image:`, err);+ toast.error(`Failed to delete image: ${err.message}`);+ } finally {+ isDeleting = false;+ }+ }++ async function pullImage() {+ if (!repoTag) {+ toast.error('Cannot pull image without a repository tag');+ return;+ }++ isPulling = true;+ try {+ let [imageRef, tag] = repoTag.split(':');+ tag = tag || 'latest';++ const encodedImageRef = encodeURIComponent(imageRef);++ const response = await fetch(`/api/images/pull/${encodedImageRef}`, {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json'+ },+ body: JSON.stringify({+ tag+ })+ });++ if (!response.ok) {+ const result = await response.json();+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }++ toast.success(`Image "${repoTag}" pulled successfully.`);++ window.location.href = `${window.location.pathname}?t=${Date.now()}`;+ } catch (err: any) {+ console.error(`Failed to pull image "${repoTag}":`, err);+ toast.error(`Failed to pull image: ${err.message}`);+ } finally {+ isPulling = false;+ }+ }</script><DropdownMenu.Root>- <DropdownMenu.Trigger>- {#snippet child({ props })}- <Button- {...props}- variant="ghost"- size="icon"- class="relative size-8 p-0"- >- <span class="sr-only">Open menu</span>- <Ellipsis />- </Button>- {/snippet}- </DropdownMenu.Trigger>- <DropdownMenu.Content>- <DropdownMenu.Group>- <DropdownMenu.Item onclick={pullImage} disabled={isPulling || !repoTag}>- {#if isPulling}- <Loader2 class="h-4 w-4 animate-spin" />- Pulling...- {:else}- <Download class="mr-2 h-4 w-4" />- Pull- {/if}- </DropdownMenu.Item>- <DropdownMenu.Item- class="text-red-500 focus:!text-red-700"- onclick={() => (isConfirmDialogOpen = true)}- >- <Trash2 class="mr-2 h-4 w-4" />- Remove- </DropdownMenu.Item>- </DropdownMenu.Group>- </DropdownMenu.Content>+ <DropdownMenu.Trigger>+ {#snippet child({ props })}+ <Button {...props} variant="ghost" size="icon" class="relative size-8 p-0">+ <span class="sr-only">Open menu</span>+ <Ellipsis />+ </Button>+ {/snippet}+ </DropdownMenu.Trigger>+ <DropdownMenu.Content>+ <DropdownMenu.Group>+ <DropdownMenu.Item onclick={pullImage} disabled={isPulling || !repoTag}>+ {#if isPulling}+ <Loader2 class="h-4 w-4 animate-spin" />+ Pulling...+ {:else}+ <Download class="mr-2 h-4 w-4" />+ Pull+ {/if}+ </DropdownMenu.Item>+ <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => (isConfirmDialogOpen = true)}>+ <Trash2 class="mr-2 h-4 w-4" />+ Remove+ </DropdownMenu.Item>+ </DropdownMenu.Group>+ </DropdownMenu.Content></DropdownMenu.Root>-<Dialog.Root- open={isConfirmDialogOpen}- onOpenChange={(open) => (isConfirmDialogOpen = open)}->- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Confirm Deletion</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete the image <span class="font-bold"- >{repoTag || id.substring(0, 12)}</span- >? This action cannot be undone.- </Dialog.Description>- </Dialog.Header>- <Dialog.Footer>- <Button variant="ghost" onclick={() => (isConfirmDialogOpen = false)}>- Cancel- </Button>- <Button- variant="destructive"- onclick={handleDelete}- disabled={isDeleting}- >- {#if isDeleting}- <Loader2 class="h-4 w-4 animate-spin" />- Deleting...- {:else}- Delete- {/if}- </Button>- </Dialog.Footer>- </Dialog.Content>+<Dialog.Root open={isConfirmDialogOpen} onOpenChange={(open) => (isConfirmDialogOpen = open)}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Confirm Deletion</Dialog.Title>+ <Dialog.Description>+ Are you sure you want to delete the image <span class="font-bold">{repoTag || id.substring(0, 12)}</span>? This action cannot be undone.+ </Dialog.Description>+ </Dialog.Header>+ <Dialog.Footer>+ <Button variant="ghost" onclick={() => (isConfirmDialogOpen = false)}>Cancel</Button>+ <Button variant="destructive" onclick={handleDelete} disabled={isDeleting}>+ {#if isDeleting}+ <Loader2 class="h-4 w-4 animate-spin" />+ Deleting...+ {:else}+ Delete+ {/if}+ </Button>+ </Dialog.Footer>+ </Dialog.Content></Dialog.Root>diff --git a/src/routes/images/columns.ts b/src/routes/images/columns.tsindex 152f4f179..4a63d374b 100644--- a/src/routes/images/columns.ts+++ b/src/routes/images/columns.ts@@ -1,61 +1,59 @@-import type { ServiceImage } from "$lib/services/docker-service";-import type { ColumnDef } from "@tanstack/table-core";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import ImageActions from "./ImageActions.svelte";-import { formatBytes } from "$lib/utils";-import UnusedTextBadge from "$lib/components/badges/unused-text-badge.svelte";+import type { ServiceImage } from '$lib/services/docker-service';+import type { ColumnDef } from '@tanstack/table-core';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import ImageActions from './ImageActions.svelte';+import { formatBytes } from '$lib/utils';+import UnusedTextBadge from '$lib/components/badges/unused-text-badge.svelte';// Enhanced type with usage infoexport type EnhancedImage = ServiceImage & { inUse?: boolean };export const columns: ColumnDef<EnhancedImage>[] = [- {- accessorKey: "repo",- header: "Name",- cell: ({ row }) => {- const inUse = row.original.inUse;+ {+ accessorKey: 'repo',+ header: 'Name',+ cell: ({ row }) => {+ const inUse = row.original.inUse;- return renderComponent(UnusedTextBadge, {- name: row.original.repo,- inUse: row.original.inUse,- });- },- },- {- accessorKey: "tag",- header: "Tag",- cell: ({ row }) => {- return row.original.tag;- },- },- {- accessorKey: "id",- header: "Image ID",- cell: ({ row }) => {- const shortId =- row.original.id.split(":")[1]?.substring(0, 12) ||- row.original.id.substring(0, 12);- return shortId;- },- enableSorting: false,- },- {- accessorKey: "size",- header: "Size",- cell: ({ row }) => {- return formatBytes(row.original.size);- },- },- {- id: "actions",- header: "",- cell: ({ row }) => {- return renderComponent(ImageActions, {- id: row.original.id,- repoTag: row.original.repoTags?.[0],- inUse: !!row.original.inUse,- });- },- enableSorting: false,- },+ return renderComponent(UnusedTextBadge, {+ name: row.original.repo,+ inUse: row.original.inUse+ });+ }+ },+ {+ accessorKey: 'tag',+ header: 'Tag',+ cell: ({ row }) => {+ return row.original.tag;+ }+ },+ {+ accessorKey: 'id',+ header: 'Image ID',+ cell: ({ row }) => {+ const shortId = row.original.id.split(':')[1]?.substring(0, 12) || row.original.id.substring(0, 12);+ return shortId;+ },+ enableSorting: false+ },+ {+ accessorKey: 'size',+ header: 'Size',+ cell: ({ row }) => {+ return formatBytes(row.original.size);+ }+ },+ {+ id: 'actions',+ header: '',+ cell: ({ row }) => {+ return renderComponent(ImageActions, {+ id: row.original.id,+ repoTag: row.original.repoTags?.[0],+ inUse: !!row.original.inUse+ });+ },+ enableSorting: false+ }];diff --git a/src/routes/images/pull-image-dialog.svelte b/src/routes/images/pull-image-dialog.svelteindex 7007ad681..a48a9c639 100644--- a/src/routes/images/pull-image-dialog.svelte+++ b/src/routes/images/pull-image-dialog.svelte@@ -1,213 +1,149 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import { Loader2 } from "@lucide/svelte";- import * as Accordion from "$lib/components/ui/accordion/index.js";- import * as Select from "$lib/components/ui/select/index.js";-- function preventDefault(handler: (event: SubmitEvent) => void) {- return (event: SubmitEvent) => {- event.preventDefault();- handler(event);- };- }-- export function onClose() {- open = false;- }-- interface Props {- open?: boolean;- isPulling?: boolean;- pullProgress?: number;- onSubmit?: any;- }-- let {- open = $bindable(false),- isPulling = false,- pullProgress = 0,- onSubmit = (data: {- imageRef: string;- tag?: string;- platform?: string;- }) => {},- }: Props = $props();-- let imageRef = $state("");- let tag = $state("latest");- let platform = $state("");-- // Available platforms- const platforms = [- { label: "Default", value: "" },- { label: "linux/amd64", value: "linux/amd64" },- { label: "linux/arm64", value: "linux/arm64" },- { label: "linux/arm/v7", value: "linux/arm/v7" },- { label: "windows/amd64", value: "windows/amd64" },- ];-- function handleSubmit() {- if (!imageRef.trim()) return;-- let urlPath = imageRef.trim();- let imageTag = tag || "latest";-- if (urlPath.includes(":")) {- const parts = urlPath.split(":");- urlPath = parts[0];- imageTag = parts[1];- }-- onSubmit({- imageRef: urlPath,- tag: imageTag,- platform: platform || undefined,- });- }+ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import { Loader2 } from '@lucide/svelte';+ import * as Accordion from '$lib/components/ui/accordion/index.js';+ import * as Select from '$lib/components/ui/select/index.js';++ function preventDefault(handler: (event: SubmitEvent) => void) {+ return (event: SubmitEvent) => {+ event.preventDefault();+ handler(event);+ };+ }++ export function onClose() {+ open = false;+ }++ interface Props {+ open?: boolean;+ isPulling?: boolean;+ pullProgress?: number;+ onSubmit?: any;+ }++ let { open = $bindable(false), isPulling = false, pullProgress = 0, onSubmit = (data: { imageRef: string; tag?: string; platform?: string }) => {} }: Props = $props();++ let imageRef = $state('');+ let tag = $state('latest');+ let platform = $state('');++ // Available platforms+ const platforms = [+ { label: 'Default', value: '' },+ { label: 'linux/amd64', value: 'linux/amd64' },+ { label: 'linux/arm64', value: 'linux/arm64' },+ { label: 'linux/arm/v7', value: 'linux/arm/v7' },+ { label: 'windows/amd64', value: 'windows/amd64' }+ ];++ function handleSubmit() {+ if (!imageRef.trim()) return;++ let urlPath = imageRef.trim();+ let imageTag = tag || 'latest';++ if (urlPath.includes(':')) {+ const parts = urlPath.split(':');+ urlPath = parts[0];+ imageTag = parts[1];+ }++ onSubmit({+ imageRef: urlPath,+ tag: imageTag,+ platform: platform || undefined+ });+ }</script><Dialog.Root bind:open>- <Dialog.Content class="sm:max-w-[500px]">- <Dialog.Header>- <Dialog.Title>Pull Docker Image</Dialog.Title>- <Dialog.Description>- Enter the image reference you want to pull from a registry.- </Dialog.Description>- </Dialog.Header>-- <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">- <!-- Basic image settings -->- <div class="flex flex-col gap-2">- <Label for="image-ref">Image</Label>- <div class="flex items-center gap-2">- <div class="flex-1">- <Input- id="image-ref"- bind:value={imageRef}- placeholder="e.g., nginx or ubuntu"- required- disabled={isPulling}- />- </div>- <div class="flex items-center">- <span class="text-lg font-medium text-muted-foreground">:</span>- </div>- <div class="w-1/3">- <Input- id="image-tag"- bind:value={tag}- placeholder="latest"- disabled={isPulling}- />- </div>- </div>- </div>-- <!-- Advanced settings -->- <Accordion.Root type="single">- <Accordion.Item value="advanced">- <Accordion.Trigger>Advanced Settings</Accordion.Trigger>- <Accordion.Content>- <div class="grid gap-4 pt-2">- <div class="flex flex-col gap-2">- <Label for="platform">Platform</Label>- <Select.Root- type="single"- bind:value={platform}- disabled={isPulling}- >- <Select.Trigger class="w-full" id="platform">- <span>- {platforms.find((p) => p.value === platform)?.label ||- "Select platform"}- </span>- </Select.Trigger>- <Select.Content>- {#each platforms as platformOption}- <Select.Item value={platformOption.value}>- {platformOption.label}- </Select.Item>- {/each}- </Select.Content>- </Select.Root>-- <p class="text-xs text-muted-foreground mt-1">- Platform specifies the architecture and OS for- multi-architecture images. Leave empty to use your system's- default platform.- </p>- </div>- </div>- </Accordion.Content>- </Accordion.Item>- </Accordion.Root>- </form>-- {#if isPulling}- <div class="mt-4">- <div class="flex justify-between text-xs mb-1">- <span>Pulling image...</span>- <span>{Math.round(pullProgress)}%</span>- </div>- <div class="w-full bg-secondary h-2 rounded-full overflow-hidden">- <div- class="bg-primary h-full transition-all duration-300 ease-in-out"- style="width: {pullProgress}%"- ></div>- </div>- <p class="text-xs text-muted-foreground mt-1">- This may take a while depending on the image size and your internet- connection.- </p>- </div>- {/if}-- <Dialog.Footer>- <Button variant="outline" onclick={onClose} disabled={isPulling}>- Cancel- </Button>- <Button- type="submit"- onclick={handleSubmit}- disabled={isPulling || !imageRef.trim()}- class="relative"- >- {#if isPulling}- <div class="absolute inset-0 flex items-center justify-center">- <svg class="absolute w-full h-full" viewBox="0 0 100 100">- <circle- class="text-primary-400/20"- cx="50"- cy="50"- r="45"- fill="none"- stroke="currentColor"- stroke-width="8"- />- <circle- class="text-primary-500"- cx="50"- cy="50"- r="45"- fill="none"- stroke="currentColor"- stroke-width="8"- stroke-linecap="round"- stroke-dasharray={283}- stroke-dashoffset={283 * (1 - pullProgress / 100)}- transform="rotate(-90 50 50)"- />- </svg>- <Loader2 class="h-4 w-4 animate-spin" />- </div>- <span class="opacity-0">Pull Image</span>- {:else}- Pull Image- {/if}- </Button>- </Dialog.Footer>- </Dialog.Content>+ <Dialog.Content class="sm:max-w-[500px]">+ <Dialog.Header>+ <Dialog.Title>Pull Docker Image</Dialog.Title>+ <Dialog.Description>Enter the image reference you want to pull from a registry.</Dialog.Description>+ </Dialog.Header>++ <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">+ <!-- Basic image settings -->+ <div class="flex flex-col gap-2">+ <Label for="image-ref">Image</Label>+ <div class="flex items-center gap-2">+ <div class="flex-1">+ <Input id="image-ref" bind:value={imageRef} placeholder="e.g., nginx or ubuntu" required disabled={isPulling} />+ </div>+ <div class="flex items-center">+ <span class="text-lg font-medium text-muted-foreground">:</span>+ </div>+ <div class="w-1/3">+ <Input id="image-tag" bind:value={tag} placeholder="latest" disabled={isPulling} />+ </div>+ </div>+ </div>++ <!-- Advanced settings -->+ <Accordion.Root type="single">+ <Accordion.Item value="advanced">+ <Accordion.Trigger>Advanced Settings</Accordion.Trigger>+ <Accordion.Content>+ <div class="grid gap-4 pt-2">+ <div class="flex flex-col gap-2">+ <Label for="platform">Platform</Label>+ <Select.Root type="single" bind:value={platform} disabled={isPulling}>+ <Select.Trigger class="w-full" id="platform">+ <span>+ {platforms.find((p) => p.value === platform)?.label || 'Select platform'}+ </span>+ </Select.Trigger>+ <Select.Content>+ {#each platforms as platformOption}+ <Select.Item value={platformOption.value}>+ {platformOption.label}+ </Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>++ <p class="text-xs text-muted-foreground mt-1">Platform specifies the architecture and OS for multi-architecture images. Leave empty to use your system's default platform.</p>+ </div>+ </div>+ </Accordion.Content>+ </Accordion.Item>+ </Accordion.Root>+ </form>++ {#if isPulling}+ <div class="mt-4">+ <div class="flex justify-between text-xs mb-1">+ <span>Pulling image...</span>+ <span>{Math.round(pullProgress)}%</span>+ </div>+ <div class="w-full bg-secondary h-2 rounded-full overflow-hidden">+ <div class="bg-primary h-full transition-all duration-300 ease-in-out" style="width: {pullProgress}%"></div>+ </div>+ <p class="text-xs text-muted-foreground mt-1">This may take a while depending on the image size and your internet connection.</p>+ </div>+ {/if}++ <Dialog.Footer>+ <Button variant="outline" onclick={onClose} disabled={isPulling}>Cancel</Button>+ <Button type="submit" onclick={handleSubmit} disabled={isPulling || !imageRef.trim()} class="relative">+ {#if isPulling}+ <div class="absolute inset-0 flex items-center justify-center">+ <svg class="absolute w-full h-full" viewBox="0 0 100 100">+ <circle class="text-primary-400/20" cx="50" cy="50" r="45" fill="none" stroke="currentColor" stroke-width="8" />+ <circle class="text-primary-500" cx="50" cy="50" r="45" fill="none" stroke="currentColor" stroke-width="8" stroke-linecap="round" stroke-dasharray={283} stroke-dashoffset={283 * (1 - pullProgress / 100)} transform="rotate(-90 50 50)" />+ </svg>+ <Loader2 class="h-4 w-4 animate-spin" />+ </div>+ <span class="opacity-0">Pull Image</span>+ {:else}+ Pull Image+ {/if}+ </Button>+ </Dialog.Footer>+ </Dialog.Content></Dialog.Root>diff --git a/src/routes/networks/+page.server.ts b/src/routes/networks/+page.server.tsindex 00f30b8ac..dac53cbc8 100644--- a/src/routes/networks/+page.server.ts+++ b/src/routes/networks/+page.server.ts@@ -1,26 +1,26 @@-import type { PageServerLoad } from "./$types";-import { listNetworks } from "$lib/services/docker-service";-import type { ServiceNetwork } from "$lib/services/docker-service";+import type { PageServerLoad } from './$types';+import { listNetworks } from '$lib/services/docker-service';+import type { ServiceNetwork } from '$lib/services/docker-service';// Define the shape of the data returned by the load functiontype NetworkPageData = {- networks: ServiceNetwork[];- error?: string;+ networks: ServiceNetwork[];+ error?: string;};export const load: PageServerLoad = async (): Promise<NetworkPageData> => {- try {- // Actually call the function to list networks- const networks = await listNetworks();- return {- networks,- };- } catch (err: any) {- console.error("Failed to load networks:", err);- // Return an empty array and the error message- return {- networks: [],- error: err.message || "Failed to connect to Docker or list networks.",- };- }+ try {+ // Actually call the function to list networks+ const networks = await listNetworks();+ return {+ networks+ };+ } catch (err: any) {+ console.error('Failed to load networks:', err);+ // Return an empty array and the error message+ return {+ networks: [],+ error: err.message || 'Failed to connect to Docker or list networks.'+ };+ }};diff --git a/src/routes/networks/+page.svelte b/src/routes/networks/+page.svelteindex 33c6e86e1..635790e9c 100644--- a/src/routes/networks/+page.svelte+++ b/src/routes/networks/+page.svelte@@ -1,354 +1,281 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- Plus,- AlertCircle,- Network,- RefreshCw,- Trash2,- Loader2,- ChevronDown,- } from "@lucide/svelte";- import UniversalTable from "$lib/components/universal-table.svelte";- import { columns } from "./columns";- import type { PageData } from "./$types";- import * as Alert from "$lib/components/ui/alert/index.js";- import { invalidateAll } from "$app/navigation";- import { toast } from "svelte-sonner";- import { cn } from "$lib/utils";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import CreateNetworkDialog from "./CreateNetworkDialog.svelte";- import type { NetworkCreateOptions } from "dockerode";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Plus, AlertCircle, Network, RefreshCw, Trash2, Loader2, ChevronDown } from '@lucide/svelte';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { columns } from './columns';+ import type { PageData } from './$types';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { invalidateAll } from '$app/navigation';+ import { toast } from 'svelte-sonner';+ import { cn } from '$lib/utils';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import CreateNetworkDialog from './CreateNetworkDialog.svelte';+ import type { NetworkCreateOptions } from 'dockerode';- let { data }: { data: PageData } = $props();- let networks = $state(data.networks || []);- let error = $state(data.error);- let selectedIds = $state<string[]>([]);+ let { data }: { data: PageData } = $props();+ let networks = $state(data.networks || []);+ let error = $state(data.error);+ let selectedIds = $state<string[]>([]);- let isRefreshing = $state(false);- let isDeletingSelected = $state(false);- let isConfirmDeleteDialogOpen = $state(false);- let isCreateDialogOpen = $state(false);- let isCreatingNetwork = $state(false);+ let isRefreshing = $state(false);+ let isDeletingSelected = $state(false);+ let isConfirmDeleteDialogOpen = $state(false);+ let isCreateDialogOpen = $state(false);+ let isCreatingNetwork = $state(false);- $effect(() => {- networks = data.networks || [];- error = data.error;- });+ $effect(() => {+ networks = data.networks || [];+ error = data.error;+ });- const totalNetworks = $derived(networks?.length || 0);- const bridgeNetworks = $derived(- networks?.filter((n) => n.driver === "bridge").length || 0- );- const overlayNetworks = $derived(- networks?.filter((n) => n.driver === "overlay").length || 0- );+ const totalNetworks = $derived(networks?.length || 0);+ const bridgeNetworks = $derived(networks?.filter((n) => n.driver === 'bridge').length || 0);+ const overlayNetworks = $derived(networks?.filter((n) => n.driver === 'overlay').length || 0);- function openCreateDialog() {- isCreateDialogOpen = true;- }+ function openCreateDialog() {+ isCreateDialogOpen = true;+ }- async function handleCreateNetworkSubmit(options: NetworkCreateOptions) {- isCreatingNetwork = true;- try {- const response = await fetch("/api/networks/create", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify(options),- });+ async function handleCreateNetworkSubmit(options: NetworkCreateOptions) {+ isCreatingNetwork = true;+ try {+ const response = await fetch('/api/networks/create', {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify(options)+ });- const result = await response.json();+ const result = await response.json();- if (!response.ok) {- throw new Error(- result.message || `HTTP error! status: ${response.status}`- );- }+ if (!response.ok) {+ throw new Error(result.message || `HTTP error! status: ${response.status}`);+ }- toast.success(- result.message || `Network "${result.network.name}" created.`- );- isCreateDialogOpen = false;- setTimeout(async () => {- await refreshData();- }, 300);- } catch (err: any) {- console.error("Failed to create network:", err);- toast.error(`Failed to create network: ${err.message}`);- } finally {- isCreatingNetwork = false;- }- }+ toast.success(result.message || `Network "${result.network.name}" created.`);+ isCreateDialogOpen = false;+ setTimeout(async () => {+ await refreshData();+ }, 300);+ } catch (err: any) {+ console.error('Failed to create network:', err);+ toast.error(`Failed to create network: ${err.message}`);+ } finally {+ isCreatingNetwork = false;+ }+ }- async function refreshData() {- if (isRefreshing) return;- isRefreshing = true;- try {- await invalidateAll();- } catch (err) {- console.error("Error refreshing networks:", err);- toast.error("Failed to refresh network list.");- } finally {- setTimeout(() => {- isRefreshing = false;- }, 300);- }- }+ async function refreshData() {+ if (isRefreshing) return;+ isRefreshing = true;+ try {+ await invalidateAll();+ } catch (err) {+ console.error('Error refreshing networks:', err);+ toast.error('Failed to refresh network list.');+ } finally {+ setTimeout(() => {+ isRefreshing = false;+ }, 300);+ }+ }- async function handleDeleteSelected() {- isDeletingSelected = true;- const deletePromises = selectedIds.map(async (id) => {- try {- const networkName =- networks.find((n) => n.id === id)?.name || id.substring(0, 12);+ async function handleDeleteSelected() {+ isDeletingSelected = true;+ const deletePromises = selectedIds.map(async (id) => {+ try {+ const networkName = networks.find((n) => n.id === id)?.name || id.substring(0, 12);- const response = await fetch(- `/api/networks/${encodeURIComponent(id)}`,- {- method: "DELETE",- }- );- const result = await response.json();- if (!response.ok) {- throw new Error(- result.message || `HTTP error! status: ${response.status}`- );- }- return { id, success: true, name: networkName };- } catch (err: any) {- console.error(`Failed to delete network "${id}":`, err);- const networkName =- networks.find((n) => n.id === id)?.name || id.substring(0, 12);- return { id, success: false, error: err.message, name: networkName };- }- });+ const response = await fetch(`/api/networks/${encodeURIComponent(id)}`, {+ method: 'DELETE'+ });+ const result = await response.json();+ if (!response.ok) {+ throw new Error(result.message || `HTTP error! status: ${response.status}`);+ }+ return { id, success: true, name: networkName };+ } catch (err: any) {+ console.error(`Failed to delete network "${id}":`, err);+ const networkName = networks.find((n) => n.id === id)?.name || id.substring(0, 12);+ return { id, success: false, error: err.message, name: networkName };+ }+ });- const results = await Promise.all(deletePromises);- const successfulDeletes = results.filter((r) => r.success);- const failedDeletes = results.filter((r) => !r.success);+ const results = await Promise.all(deletePromises);+ const successfulDeletes = results.filter((r) => r.success);+ const failedDeletes = results.filter((r) => !r.success);- if (successfulDeletes.length > 0) {- toast.success(- `Successfully deleted ${successfulDeletes.length} network(s).`- );- setTimeout(async () => {- await refreshData();- selectedIds = [];- }, 500);- }+ if (successfulDeletes.length > 0) {+ toast.success(`Successfully deleted ${successfulDeletes.length} network(s).`);+ setTimeout(async () => {+ await refreshData();+ selectedIds = [];+ }, 500);+ }- failedDeletes.forEach((r) => {- toast.error(`Failed to delete network "${r.name}": ${r.error}`);- });+ failedDeletes.forEach((r) => {+ toast.error(`Failed to delete network "${r.name}": ${r.error}`);+ });- isDeletingSelected = false;- isConfirmDeleteDialogOpen = false;- }+ isDeletingSelected = false;+ isConfirmDeleteDialogOpen = false;+ }</script><div class="space-y-6">- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Networks</h1>- <p class="text-sm text-muted-foreground mt-1">- Manage Docker container networking- </p>- </div>- <div class="flex items-center gap-2">- <Button- variant="secondary"- size="icon"- onclick={refreshData}- disabled={isRefreshing}- >- <RefreshCw class={cn("h-4 w-4", isRefreshing && "animate-spin")} />- <span class="sr-only">Refresh</span>- </Button>- <Button- variant="secondary"- onclick={openCreateDialog}- disabled={isCreatingNetwork}- >- <Plus class="w-4 h-4" />- Create Network- </Button>- </div>- </div>+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Networks</h1>+ <p class="text-sm text-muted-foreground mt-1">Manage Docker container networking</p>+ </div>+ <div class="flex items-center gap-2">+ <Button variant="secondary" size="icon" onclick={refreshData} disabled={isRefreshing}>+ <RefreshCw class={cn('h-4 w-4', isRefreshing && 'animate-spin')} />+ <span class="sr-only">Refresh</span>+ </Button>+ <Button variant="secondary" onclick={openCreateDialog} disabled={isCreatingNetwork}>+ <Plus class="w-4 h-4" />+ Create Network+ </Button>+ </div>+ </div>- {#if error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Error Loading Networks</Alert.Title>- <Alert.Description>{error}</Alert.Description>- </Alert.Root>- {/if}+ {#if error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Error Loading Networks</Alert.Title>+ <Alert.Description>{error}</Alert.Description>+ </Alert.Root>+ {/if}- <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">- Total Networks- </p>- <p class="text-2xl font-bold">{totalNetworks}</p>- </div>- <div class="bg-primary/10 p-2 rounded-full">- <Network class="h-5 w-5 text-primary" />- </div>- </Card.Content>- </Card.Root>+ <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total Networks</p>+ <p class="text-2xl font-bold">{totalNetworks}</p>+ </div>+ <div class="bg-primary/10 p-2 rounded-full">+ <Network class="h-5 w-5 text-primary" />+ </div>+ </Card.Content>+ </Card.Root>- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">- Bridge Networks- </p>- <p class="text-2xl font-bold">{bridgeNetworks}</p>- </div>- <div class="bg-blue-500/10 p-2 rounded-full">- <Network class="h-5 w-5 text-blue-500" />- </div>- </Card.Content>- </Card.Root>+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Bridge Networks</p>+ <p class="text-2xl font-bold">{bridgeNetworks}</p>+ </div>+ <div class="bg-blue-500/10 p-2 rounded-full">+ <Network class="h-5 w-5 text-blue-500" />+ </div>+ </Card.Content>+ </Card.Root>- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">- Overlay Networks- </p>- <p class="text-2xl font-bold">{overlayNetworks}</p>- </div>- <div class="bg-purple-500/10 p-2 rounded-full">- <Network class="h-5 w-5 text-purple-500" />- </div>- </Card.Content>- </Card.Root>- </div>+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Overlay Networks</p>+ <p class="text-2xl font-bold">{overlayNetworks}</p>+ </div>+ <div class="bg-purple-500/10 p-2 rounded-full">+ <Network class="h-5 w-5 text-purple-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>- <Card.Root class="border shadow-sm">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Network List</Card.Title>- <Card.Description>Manage container communication</Card.Description>- </div>- <div class="flex items-center gap-2">- {#if selectedIds.length > 0}- <DropdownMenu.Root>- <DropdownMenu.Trigger>- {#snippet child({ props })}- <Button- {...props}- variant="outline"- size="sm"- disabled={isDeletingSelected}- aria-label={`Group actions for ${selectedIds.length} selected network(s)`}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 animate-spin" />- Processing...- {:else}- Actions ({selectedIds.length})- <ChevronDown class="w-4 h-4" />- {/if}- </Button>- {/snippet}- </DropdownMenu.Trigger>- <DropdownMenu.Content>- <DropdownMenu.Item- onclick={() => (isConfirmDeleteDialogOpen = true)}- class="text-red-500 focus:!text-red-700"- disabled={isDeletingSelected}- >- <Trash2 class="w-4 h-4" />- Delete Selected- </DropdownMenu.Item>- </DropdownMenu.Content>- </DropdownMenu.Root>- {/if}- </div>- </div>- </Card.Header>- <Card.Content>- {#if networks && networks.length > 0}- <UniversalTable- data={networks}- {columns}- idKey="id"- display={{- filterPlaceholder: "Search networks...",- noResultsMessage: "No networks found",- }}- sort={{- defaultSort: { id: "name", desc: false },- }}- bind:selectedIds- />- {:else if !error}- <div- class="flex flex-col items-center justify-center py-12 px-6 text-center"- >- <Network class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />- <p class="text-lg font-medium">No networks found</p>- <p class="text-sm text-muted-foreground mt-1 max-w-md">- Create a new network using the "Create Network" button above or use- the Docker CLI- </p>- <div class="flex gap-3 mt-4">- <Button variant="outline" size="sm" onclick={refreshData}>- <RefreshCw class="h-4 w-4" />- Refresh- </Button>- <Button variant="outline" size="sm" onclick={openCreateDialog}>- <Plus class="h-4 w-4" />- Create Network- </Button>- </div>- </div>- {/if}- </Card.Content>- </Card.Root>+ <Card.Root class="border shadow-sm">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Network List</Card.Title>+ <Card.Description>Manage container communication</Card.Description>+ </div>+ <div class="flex items-center gap-2">+ {#if selectedIds.length > 0}+ <DropdownMenu.Root>+ <DropdownMenu.Trigger>+ {#snippet child({ props })}+ <Button {...props} variant="outline" size="sm" disabled={isDeletingSelected} aria-label={`Group actions for ${selectedIds.length} selected network(s)`}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 animate-spin" />+ Processing...+ {:else}+ Actions ({selectedIds.length})+ <ChevronDown class="w-4 h-4" />+ {/if}+ </Button>+ {/snippet}+ </DropdownMenu.Trigger>+ <DropdownMenu.Content>+ <DropdownMenu.Item onclick={() => (isConfirmDeleteDialogOpen = true)} class="text-red-500 focus:!text-red-700" disabled={isDeletingSelected}>+ <Trash2 class="w-4 h-4" />+ Delete Selected+ </DropdownMenu.Item>+ </DropdownMenu.Content>+ </DropdownMenu.Root>+ {/if}+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ {#if networks && networks.length > 0}+ <UniversalTable+ data={networks}+ {columns}+ idKey="id"+ display={{+ filterPlaceholder: 'Search networks...',+ noResultsMessage: 'No networks found'+ }}+ sort={{+ defaultSort: { id: 'name', desc: false }+ }}+ bind:selectedIds+ />+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-12 px-6 text-center">+ <Network class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <p class="text-lg font-medium">No networks found</p>+ <p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new network using the "Create Network" button above or use the Docker CLI</p>+ <div class="flex gap-3 mt-4">+ <Button variant="outline" size="sm" onclick={refreshData}>+ <RefreshCw class="h-4 w-4" />+ Refresh+ </Button>+ <Button variant="outline" size="sm" onclick={openCreateDialog}>+ <Plus class="h-4 w-4" />+ Create Network+ </Button>+ </div>+ </div>+ {/if}+ </Card.Content>+ </Card.Root>- <CreateNetworkDialog- bind:open={isCreateDialogOpen}- isCreating={isCreatingNetwork}- onSubmit={handleCreateNetworkSubmit}- />+ <CreateNetworkDialog bind:open={isCreateDialogOpen} isCreating={isCreatingNetwork} onSubmit={handleCreateNetworkSubmit} />- <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Delete Selected Networks</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete {selectedIds.length} selected network(s)?- This action cannot be undone. Networks currently in use by containers cannot- be deleted.- </Dialog.Description>- </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmDeleteDialogOpen = false)}- disabled={isDeletingSelected}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handleDeleteSelected}- disabled={isDeletingSelected}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...- {:else}- Delete {selectedIds.length} Network{#if selectedIds.length > 1}s{/if}- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>+ <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Delete Selected Networks</Dialog.Title>+ <Dialog.Description>+ Are you sure you want to delete {selectedIds.length} selected network(s)? This action cannot be undone. Networks currently in use by containers cannot be deleted.+ </Dialog.Description>+ </Dialog.Header>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmDeleteDialogOpen = false)} disabled={isDeletingSelected}>Cancel</Button>+ <Button variant="destructive" onclick={handleDeleteSelected} disabled={isDeletingSelected}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...+ {:else}+ Delete {selectedIds.length} Network{#if selectedIds.length > 1}s{/if}+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root></div>diff --git a/src/routes/networks/CreateNetworkDialog.svelte b/src/routes/networks/CreateNetworkDialog.svelteindex df9b651f4..7fc97512c 100644--- a/src/routes/networks/CreateNetworkDialog.svelte+++ b/src/routes/networks/CreateNetworkDialog.svelte@@ -1,266 +1,194 @@<script lang="ts">- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import * as Select from "$lib/components/ui/select/index.js";- import { Checkbox } from "$lib/components/ui/checkbox/index.js";- import { Loader2, Plus, X } from "@lucide/svelte";- import type { NetworkCreateOptions } from "dockerode";- import { preventDefault } from "$lib/utils/form.utils";-- type Props = {- open: boolean;- isCreating: boolean;- onSubmit: (options: NetworkCreateOptions) => void;- };-- let {- open = $bindable(),- isCreating = false, // Default value for the prop- onSubmit,- }: Props = $props();-- // Form state- let name = $state("");- let driver = $state("bridge"); // Default driver- let checkDuplicate = $state(true);- let internal = $state(false);- let labels = $state<{ key: string; value: string }[]>([- { key: "", value: "" },- ]);- // Basic IPAM config state (optional)- let enableIpam = $state(false);- let subnet = $state("");- let gateway = $state("");-- function addLabel() {- labels = [...labels, { key: "", value: "" }];- }-- function removeLabel(index: number) {- labels = labels.filter((_, i) => i !== index);- }-- function handleSubmit() {- const finalLabels: Record<string, string> = {};- labels.forEach((label) => {- if (label.key.trim()) {- finalLabels[label.key.trim()] = label.value.trim();- }- });-- const options: NetworkCreateOptions = {- Name: name.trim(),- Driver: driver,- CheckDuplicate: checkDuplicate,- Internal: internal,- Labels: Object.keys(finalLabels).length > 0 ? finalLabels : undefined,- };-- if (enableIpam && (subnet.trim() || gateway.trim())) {- const ipamConfig: { Subnet?: string; Gateway?: string } = {};- const trimmedSubnet = subnet.trim();- const trimmedGateway = gateway.trim();-- if (trimmedSubnet) {- ipamConfig.Subnet = trimmedSubnet;- }- if (trimmedGateway) {- ipamConfig.Gateway = trimmedGateway;- }-- // Only add IPAM config if Subnet or Gateway is provided- if (Object.keys(ipamConfig).length > 0) {- options.IPAM = {- Driver: "default", // Usually 'default'- Config: [ipamConfig],- };- }- }-- onSubmit(options);- }-- // Reset form when dialog opens/closes- $effect(() => {- if (!open) {- name = "";- driver = "bridge";- checkDuplicate = true;- internal = false;- labels = [{ key: "", value: "" }];- enableIpam = false;- subnet = "";- gateway = "";- }- });+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import * as Select from '$lib/components/ui/select/index.js';+ import { Checkbox } from '$lib/components/ui/checkbox/index.js';+ import { Loader2, Plus, X } from '@lucide/svelte';+ import type { NetworkCreateOptions } from 'dockerode';+ import { preventDefault } from '$lib/utils/form.utils';++ type Props = {+ open: boolean;+ isCreating: boolean;+ onSubmit: (options: NetworkCreateOptions) => void;+ };++ let {+ open = $bindable(),+ isCreating = false, // Default value for the prop+ onSubmit+ }: Props = $props();++ // Form state+ let name = $state('');+ let driver = $state('bridge'); // Default driver+ let checkDuplicate = $state(true);+ let internal = $state(false);+ let labels = $state<{ key: string; value: string }[]>([{ key: '', value: '' }]);+ // Basic IPAM config state (optional)+ let enableIpam = $state(false);+ let subnet = $state('');+ let gateway = $state('');++ function addLabel() {+ labels = [...labels, { key: '', value: '' }];+ }++ function removeLabel(index: number) {+ labels = labels.filter((_, i) => i !== index);+ }++ function handleSubmit() {+ const finalLabels: Record<string, string> = {};+ labels.forEach((label) => {+ if (label.key.trim()) {+ finalLabels[label.key.trim()] = label.value.trim();+ }+ });++ const options: NetworkCreateOptions = {+ Name: name.trim(),+ Driver: driver,+ CheckDuplicate: checkDuplicate,+ Internal: internal,+ Labels: Object.keys(finalLabels).length > 0 ? finalLabels : undefined+ };++ if (enableIpam && (subnet.trim() || gateway.trim())) {+ const ipamConfig: { Subnet?: string; Gateway?: string } = {};+ const trimmedSubnet = subnet.trim();+ const trimmedGateway = gateway.trim();++ if (trimmedSubnet) {+ ipamConfig.Subnet = trimmedSubnet;+ }+ if (trimmedGateway) {+ ipamConfig.Gateway = trimmedGateway;+ }++ // Only add IPAM config if Subnet or Gateway is provided+ if (Object.keys(ipamConfig).length > 0) {+ options.IPAM = {+ Driver: 'default', // Usually 'default'+ Config: [ipamConfig]+ };+ }+ }++ onSubmit(options);+ }++ // Reset form when dialog opens/closes+ $effect(() => {+ if (!open) {+ name = '';+ driver = 'bridge';+ checkDuplicate = true;+ internal = false;+ labels = [{ key: '', value: '' }];+ enableIpam = false;+ subnet = '';+ gateway = '';+ }+ });</script><Dialog.Root bind:open>- <Dialog.Content class="sm:max-w-[600px]">- <Dialog.Header>- <Dialog.Title>Create Network</Dialog.Title>- <Dialog.Description>- Configure and create a new Docker network.- </Dialog.Description>- </Dialog.Header>-- <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">- <!-- Name -->- <div class="grid grid-cols-4 items-center gap-4">- <Label for="network-name" class="text-right">Name</Label>- <Input- id="network-name"- bind:value={name}- required- class="col-span-3"- placeholder="e.g., my-app-network"- disabled={isCreating}- />- </div>-- <!-- Driver -->- <div class="grid grid-cols-4 items-center gap-4">- <Label for="network-driver" class="text-right">Driver</Label>- <!-- Update the Select component structure -->- <Select.Root type="single" bind:value={driver}>- <Select.Trigger- class="col-span-3"- id="network-driver"- disabled={isCreating}- >- <span>{driver}</span>- </Select.Trigger>- <Select.Content>- <Select.Item value="bridge">bridge</Select.Item>- <Select.Item value="overlay">overlay</Select.Item>- <Select.Item value="macvlan">macvlan</Select.Item>- <Select.Item value="ipvlan">ipvlan</Select.Item>- <Select.Item value="none">none</Select.Item>- </Select.Content>- </Select.Root>- </div>-- <!-- Options: Check Duplicate, Internal -->- <div class="grid grid-cols-4 items-center gap-4">- <span class="text-right text-sm font-medium">Options</span>- <div class="col-span-3 flex items-center space-x-4">- <div class="flex items-center space-x-2">- <Checkbox- id="check-duplicate"- bind:checked={checkDuplicate}- disabled={isCreating}- />- <Label for="check-duplicate" class="text-sm font-normal"- >Check Duplicate</Label- >- </div>- <div class="flex items-center space-x-2">- <Checkbox- id="internal"- bind:checked={internal}- disabled={isCreating}- />- <Label for="internal" class="text-sm font-normal">Internal</Label>- </div>- </div>- </div>-- <!-- Labels -->- <div class="grid grid-cols-4 items-start gap-4">- <Label class="text-right pt-2">Labels</Label>- <div class="col-span-3 space-y-2">- {#each labels as label, index}- <div class="flex gap-2 items-center">- <Input- placeholder="Key"- bind:value={label.key}- class="flex-1"- disabled={isCreating}- />- <Input- placeholder="Value"- bind:value={label.value}- class="flex-1"- disabled={isCreating}- />- <Button- type="button"- variant="ghost"- size="icon"- onclick={() => removeLabel(index)}- disabled={isCreating || labels.length <= 1}- class="text-destructive hover:text-destructive"- title="Remove Label"- >- <X class="w-4 h-4" />- </Button>- </div>- {/each}- <Button- type="button"- variant="outline"- size="sm"- onclick={addLabel}- disabled={isCreating}- >- <Plus class="w-4 h-4 mr-2" /> Add Label- </Button>- </div>- </div>-- <!-- IPAM Configuration (Optional) -->- <div class="grid grid-cols-4 items-start gap-4 border-t pt-4 mt-2">- <div class="flex items-center space-x-2 col-span-4">- <Checkbox- id="enable-ipam"- bind:checked={enableIpam}- disabled={isCreating}- />- <Label for="enable-ipam" class="text-sm font-medium"- >Enable IPAM Configuration</Label- >- </div>- {#if enableIpam}- <div class="grid grid-cols-4 items-center gap-4 col-span-4">- <Label for="subnet" class="text-right">Subnet</Label>- <Input- id="subnet"- bind:value={subnet}- placeholder="e.g., 172.20.0.0/16"- class="col-span-3"- disabled={isCreating}- />- </div>- <div class="grid grid-cols-4 items-center gap-4 col-span-4">- <Label for="gateway" class="text-right">Gateway</Label>- <Input- id="gateway"- bind:value={gateway}- placeholder="e.g., 172.20.0.1"- class="col-span-3"- disabled={isCreating}- />- </div>- {/if}- </div>-- <Dialog.Footer>- <Button- type="button"- variant="outline"- onclick={() => (open = false)}- disabled={isCreating}>Cancel</Button- >- <Button type="submit" disabled={isCreating || !name.trim()}>- {#if isCreating}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Creating...- {:else}- Create Network- {/if}- </Button>- </Dialog.Footer>- </form>- </Dialog.Content>+ <Dialog.Content class="sm:max-w-[600px]">+ <Dialog.Header>+ <Dialog.Title>Create Network</Dialog.Title>+ <Dialog.Description>Configure and create a new Docker network.</Dialog.Description>+ </Dialog.Header>++ <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">+ <!-- Name -->+ <div class="grid grid-cols-4 items-center gap-4">+ <Label for="network-name" class="text-right">Name</Label>+ <Input id="network-name" bind:value={name} required class="col-span-3" placeholder="e.g., my-app-network" disabled={isCreating} />+ </div>++ <!-- Driver -->+ <div class="grid grid-cols-4 items-center gap-4">+ <Label for="network-driver" class="text-right">Driver</Label>+ <!-- Update the Select component structure -->+ <Select.Root type="single" bind:value={driver}>+ <Select.Trigger class="col-span-3" id="network-driver" disabled={isCreating}>+ <span>{driver}</span>+ </Select.Trigger>+ <Select.Content>+ <Select.Item value="bridge">bridge</Select.Item>+ <Select.Item value="overlay">overlay</Select.Item>+ <Select.Item value="macvlan">macvlan</Select.Item>+ <Select.Item value="ipvlan">ipvlan</Select.Item>+ <Select.Item value="none">none</Select.Item>+ </Select.Content>+ </Select.Root>+ </div>++ <!-- Options: Check Duplicate, Internal -->+ <div class="grid grid-cols-4 items-center gap-4">+ <span class="text-right text-sm font-medium">Options</span>+ <div class="col-span-3 flex items-center space-x-4">+ <div class="flex items-center space-x-2">+ <Checkbox id="check-duplicate" bind:checked={checkDuplicate} disabled={isCreating} />+ <Label for="check-duplicate" class="text-sm font-normal">Check Duplicate</Label>+ </div>+ <div class="flex items-center space-x-2">+ <Checkbox id="internal" bind:checked={internal} disabled={isCreating} />+ <Label for="internal" class="text-sm font-normal">Internal</Label>+ </div>+ </div>+ </div>++ <!-- Labels -->+ <div class="grid grid-cols-4 items-start gap-4">+ <Label class="text-right pt-2">Labels</Label>+ <div class="col-span-3 space-y-2">+ {#each labels as label, index}+ <div class="flex gap-2 items-center">+ <Input placeholder="Key" bind:value={label.key} class="flex-1" disabled={isCreating} />+ <Input placeholder="Value" bind:value={label.value} class="flex-1" disabled={isCreating} />+ <Button type="button" variant="ghost" size="icon" onclick={() => removeLabel(index)} disabled={isCreating || labels.length <= 1} class="text-destructive hover:text-destructive" title="Remove Label">+ <X class="w-4 h-4" />+ </Button>+ </div>+ {/each}+ <Button type="button" variant="outline" size="sm" onclick={addLabel} disabled={isCreating}>+ <Plus class="w-4 h-4 mr-2" /> Add Label+ </Button>+ </div>+ </div>++ <!-- IPAM Configuration (Optional) -->+ <div class="grid grid-cols-4 items-start gap-4 border-t pt-4 mt-2">+ <div class="flex items-center space-x-2 col-span-4">+ <Checkbox id="enable-ipam" bind:checked={enableIpam} disabled={isCreating} />+ <Label for="enable-ipam" class="text-sm font-medium">Enable IPAM Configuration</Label>+ </div>+ {#if enableIpam}+ <div class="grid grid-cols-4 items-center gap-4 col-span-4">+ <Label for="subnet" class="text-right">Subnet</Label>+ <Input id="subnet" bind:value={subnet} placeholder="e.g., 172.20.0.0/16" class="col-span-3" disabled={isCreating} />+ </div>+ <div class="grid grid-cols-4 items-center gap-4 col-span-4">+ <Label for="gateway" class="text-right">Gateway</Label>+ <Input id="gateway" bind:value={gateway} placeholder="e.g., 172.20.0.1" class="col-span-3" disabled={isCreating} />+ </div>+ {/if}+ </div>++ <Dialog.Footer>+ <Button type="button" variant="outline" onclick={() => (open = false)} disabled={isCreating}>Cancel</Button>+ <Button type="submit" disabled={isCreating || !name.trim()}>+ {#if isCreating}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Creating...+ {:else}+ Create Network+ {/if}+ </Button>+ </Dialog.Footer>+ </form>+ </Dialog.Content></Dialog.Root>diff --git a/src/routes/networks/NetworkActions.svelte b/src/routes/networks/NetworkActions.svelteindex 6cf9ecbbb..d2182f38f 100644--- a/src/routes/networks/NetworkActions.svelte+++ b/src/routes/networks/NetworkActions.svelte@@ -1,112 +1,82 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import { Trash2, Loader2 } from "@lucide/svelte";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { toast } from "svelte-sonner";- import { invalidateAll } from "$app/navigation";- import { cn } from "$lib/utils";+ import { Button } from '$lib/components/ui/button/index.js';+ import { Trash2, Loader2 } from '@lucide/svelte';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { toast } from 'svelte-sonner';+ import { invalidateAll } from '$app/navigation';+ import { cn } from '$lib/utils';- interface Props {- id: string | undefined;- name: string;- }+ interface Props {+ id: string | undefined;+ name: string;+ }- let { id, name }: Props = $props();+ let { id, name }: Props = $props();- let isConfirmDeleteDialogOpen = $state(false);- let isDeleting = $state(false);+ let isConfirmDeleteDialogOpen = $state(false);+ let isDeleting = $state(false);- // Add a derived state to check if the network is a default one- const isDefaultNetwork = $derived(- name === "host" || name === "bridge" || name === "none"- );+ // Add a derived state to check if the network is a default one+ const isDefaultNetwork = $derived(name === 'host' || name === 'bridge' || name === 'none');- function openConfirmDialog() {- if (!id) return; // Should not happen if button is rendered- isConfirmDeleteDialogOpen = true;- }+ function openConfirmDialog() {+ if (!id) return; // Should not happen if button is rendered+ isConfirmDeleteDialogOpen = true;+ }- async function handleConfirmDelete() {- if (!id) return;- isDeleting = true;+ async function handleConfirmDelete() {+ if (!id) return;+ isDeleting = true;- try {- const response = await fetch(`/api/networks/${encodeURIComponent(id)}`, {- method: "DELETE",- });- const result = await response.json();+ try {+ const response = await fetch(`/api/networks/${encodeURIComponent(id)}`, {+ method: 'DELETE'+ });+ const result = await response.json();- if (!response.ok) {- throw new Error(- result.message || `HTTP error! status: ${response.status}`- );- }+ if (!response.ok) {+ throw new Error(result.message || `HTTP error! status: ${response.status}`);+ }- toast.success(`Network "${name}" deleted successfully.`);- isConfirmDeleteDialogOpen = false; // Close dialog- await invalidateAll(); // Refresh the list on the parent page- } catch (err: any) {- console.error(`Failed to delete network ${id}:`, err);- toast.error(`Failed to delete network "${name}": ${err.message}`);- // Keep dialog open on error? Optional.- // isConfirmDeleteDialogOpen = false;- } finally {- isDeleting = false;- }- }+ toast.success(`Network "${name}" deleted successfully.`);+ isConfirmDeleteDialogOpen = false; // Close dialog+ await invalidateAll(); // Refresh the list on the parent page+ } catch (err: any) {+ console.error(`Failed to delete network ${id}:`, err);+ toast.error(`Failed to delete network "${name}": ${err.message}`);+ // Keep dialog open on error? Optional.+ // isConfirmDeleteDialogOpen = false;+ } finally {+ isDeleting = false;+ }+ }</script>{#if id}- <!-- Delete Button -->- <Button- variant="ghost"- size="icon"- class={cn(- "size-8",- !isDefaultNetwork &&- "text-destructive hover:text-destructive hover:bg-destructive/10"- )}- onclick={openConfirmDialog}- title={isDefaultNetwork- ? "Cannot delete default network"- : "Delete Network"}- disabled={isDeleting || isDefaultNetwork}- >- <Trash2 class="w-4 h-4" />- </Button>+ <!-- Delete Button -->+ <Button variant="ghost" size="icon" class={cn('size-8', !isDefaultNetwork && 'text-destructive hover:text-destructive hover:bg-destructive/10')} onclick={openConfirmDialog} title={isDefaultNetwork ? 'Cannot delete default network' : 'Delete Network'} disabled={isDeleting || isDefaultNetwork}>+ <Trash2 class="w-4 h-4" />+ </Button>- <!-- Confirmation Dialog -->- <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Delete Network "{name}"</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete this network? This action cannot be- undone. Networks currently in use by containers cannot be deleted.- </Dialog.Description>- </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmDeleteDialogOpen = false)}- disabled={isDeleting}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handleConfirmDelete}- disabled={isDeleting}- >- {#if isDeleting}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...- {:else}- Delete Network- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>+ <!-- Confirmation Dialog -->+ <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Delete Network "{name}"</Dialog.Title>+ <Dialog.Description>Are you sure you want to delete this network? This action cannot be undone. Networks currently in use by containers cannot be deleted.</Dialog.Description>+ </Dialog.Header>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmDeleteDialogOpen = false)} disabled={isDeleting}>Cancel</Button>+ <Button variant="destructive" onclick={handleConfirmDelete} disabled={isDeleting}>+ {#if isDeleting}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Deleting...+ {:else}+ Delete Network+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root>{/if}<!-- Add other actions like inspect if needed -->diff --git a/src/routes/networks/SubnetCell.svelte b/src/routes/networks/SubnetCell.svelteindex 5917980a4..d44e182d2 100644--- a/src/routes/networks/SubnetCell.svelte+++ b/src/routes/networks/SubnetCell.svelte@@ -1,14 +1,14 @@<!-- filepath: /Users/kylemendell/dev/ofkm/arcane/src/routes/networks/SubnetCell.svelte --><script lang="ts">- interface Props {- subnet: string | null;- }+ interface Props {+ subnet: string | null;+ }- let { subnet }: Props = $props();+ let { subnet }: Props = $props();</script>{#if subnet}- <span class="font-mono text-xs">{subnet}</span>+ <span class="font-mono text-xs">{subnet}</span>{:else}- <span>N/A</span>+ <span>N/A</span>{/if}diff --git a/src/routes/networks/columns.ts b/src/routes/networks/columns.tsindex a30d0dc89..f42789849 100644--- a/src/routes/networks/columns.ts+++ b/src/routes/networks/columns.ts@@ -1,53 +1,53 @@-import type { ColumnDef } from "@tanstack/table-core";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import NetworkActions from "./NetworkActions.svelte";-import SubnetCell from "./SubnetCell.svelte";-import type { ServiceNetwork } from "$lib/services/docker-service"; // Import the correct type+import type { ColumnDef } from '@tanstack/table-core';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import NetworkActions from './NetworkActions.svelte';+import SubnetCell from './SubnetCell.svelte';+import type { ServiceNetwork } from '$lib/services/docker-service'; // Import the correct type// Use the ServiceNetwork type directlyexport type NetworkInfo = ServiceNetwork;export const columns: ColumnDef<NetworkInfo>[] = [- {- accessorKey: "name",- header: "Name",- },- {- accessorKey: "driver",- header: "Driver",- },- {- accessorKey: "scope",- header: "Scope",- },- {- accessorKey: "subnet",- header: "Subnet",- cell: ({ row }) => {- return renderComponent(SubnetCell, { subnet: row.original.subnet });- },- },- // Optional: Add Gateway column if needed- // {- // accessorKey: "gateway",- // header: "Gateway",- // cell: ({ row }) => row.original.gateway ?? 'N/A'- // },- // Optional: Add Created column if needed- // {- // accessorKey: "created",- // header: "Created",- // cell: ({ row }) => new Date(row.original.created).toLocaleString() // Format date- // },- {- id: "actions",- header: "",- cell: ({ row }) => {- return renderComponent(NetworkActions, {- id: row.original.id, // Pass the actual ID- name: row.original.name,- });- },- enableSorting: false,- },+ {+ accessorKey: 'name',+ header: 'Name'+ },+ {+ accessorKey: 'driver',+ header: 'Driver'+ },+ {+ accessorKey: 'scope',+ header: 'Scope'+ },+ {+ accessorKey: 'subnet',+ header: 'Subnet',+ cell: ({ row }) => {+ return renderComponent(SubnetCell, { subnet: row.original.subnet });+ }+ },+ // Optional: Add Gateway column if needed+ // {+ // accessorKey: "gateway",+ // header: "Gateway",+ // cell: ({ row }) => row.original.gateway ?? 'N/A'+ // },+ // Optional: Add Created column if needed+ // {+ // accessorKey: "created",+ // header: "Created",+ // cell: ({ row }) => new Date(row.original.created).toLocaleString() // Format date+ // },+ {+ id: 'actions',+ header: '',+ cell: ({ row }) => {+ return renderComponent(NetworkActions, {+ id: row.original.id, // Pass the actual ID+ name: row.original.name+ });+ },+ enableSorting: false+ }];diff --git a/src/routes/settings/+page.server.ts b/src/routes/settings/+page.server.tsindex a9f444425..e10aa81a9 100644--- a/src/routes/settings/+page.server.ts+++ b/src/routes/settings/+page.server.ts@@ -1,118 +1,110 @@-import type { PageServerLoad, Actions } from "./$types";-import { fail } from "@sveltejs/kit";-import { getSettings, saveSettings } from "$lib/services/settings-service";-import type { SettingsData } from "$lib/types/settings";+import type { PageServerLoad, Actions } from './$types';+import { fail } from '@sveltejs/kit';+import { getSettings, saveSettings } from '$lib/services/settings-service';+import type { SettingsData } from '$lib/types/settings';export const load: PageServerLoad = async ({ locals }) => {- const settings = await getSettings();+ const settings = await getSettings();- const csrf = crypto.randomUUID();+ const csrf = crypto.randomUUID();- return {- settings,- csrf,- };+ return {+ settings,+ csrf+ };};export const actions: Actions = {- default: async ({ request }) => {- let formData = new FormData();- try {- formData = await request.formData();- const settings = await getSettings();+ default: async ({ request }) => {+ let formData = new FormData();+ try {+ formData = await request.formData();+ const settings = await getSettings();- // Get all form values- const dockerHost = formData.get("dockerHost") as string;+ // Get all form values+ const dockerHost = formData.get('dockerHost') as string;- // Explicitly check for the "on" value for both toggle switches- const autoUpdate = formData.get("autoUpdate") === "on";- const pollingEnabled = formData.get("pollingEnabled") === "on";+ // Explicitly check for the "on" value for both toggle switches+ const autoUpdate = formData.get('autoUpdate') === 'on';+ const pollingEnabled = formData.get('pollingEnabled') === 'on';- const pollingIntervalStr = formData.get("pollingInterval") as string;- const stacksDirectory = (formData.get("stacksDirectory") as string) || "";+ const pollingIntervalStr = formData.get('pollingInterval') as string;+ const stacksDirectory = (formData.get('stacksDirectory') as string) || '';- // --- Read pruneMode from form data ---- const pruneModeValue = formData.get("pruneMode");- // Validate the value, default to current setting or 'all' if invalid/missing- const pruneMode: "all" | "dangling" =- pruneModeValue === "all" || pruneModeValue === "dangling"- ? pruneModeValue- : settings.pruneMode || "all"; // Fallback to current or default+ // --- Read pruneMode from form data ---+ const pruneModeValue = formData.get('pruneMode');+ // Validate the value, default to current setting or 'all' if invalid/missing+ const pruneMode: 'all' | 'dangling' = pruneModeValue === 'all' || pruneModeValue === 'dangling' ? pruneModeValue : settings.pruneMode || 'all'; // Fallback to current or default- if (!dockerHost) {- return fail(400, {- error: "Docker host cannot be empty.",- values: Object.fromEntries(formData),- });- }+ if (!dockerHost) {+ return fail(400, {+ error: 'Docker host cannot be empty.',+ values: Object.fromEntries(formData)+ });+ }- if (!stacksDirectory) {- return fail(400, {- error: "Stacks directory cannot be empty.",- values: Object.fromEntries(formData),- });- }+ if (!stacksDirectory) {+ return fail(400, {+ error: 'Stacks directory cannot be empty.',+ values: Object.fromEntries(formData)+ });+ }- // Process polling interval only if polling is enabled- let pollingInterval = settings.pollingInterval || 10;- if (pollingEnabled) {- const parsedInterval = parseInt(pollingIntervalStr, 10);- if (- !isNaN(parsedInterval) &&- parsedInterval >= 5 &&- parsedInterval <= 60- ) {- pollingInterval = parsedInterval;- } else if (pollingIntervalStr) {- // Only show error if the user actually entered a value- return fail(400, {- error: "Polling interval must be between 5 and 60 minutes.",- values: {- ...Object.fromEntries(formData),- pollingEnabled: "on", // Make sure we retain the enabled state- autoUpdate: formData.get("autoUpdate"), // Preserve autoUpdate state as well- },- });- }- }+ // Process polling interval only if polling is enabled+ let pollingInterval = settings.pollingInterval || 10;+ if (pollingEnabled) {+ const parsedInterval = parseInt(pollingIntervalStr, 10);+ if (!isNaN(parsedInterval) && parsedInterval >= 5 && parsedInterval <= 60) {+ pollingInterval = parsedInterval;+ } else if (pollingIntervalStr) {+ // Only show error if the user actually entered a value+ return fail(400, {+ error: 'Polling interval must be between 5 and 60 minutes.',+ values: {+ ...Object.fromEntries(formData),+ pollingEnabled: 'on', // Make sure we retain the enabled state+ autoUpdate: formData.get('autoUpdate') // Preserve autoUpdate state as well+ }+ });+ }+ }- // Extract Valkey settings- const valkeyEnabled = formData.get("valkeyEnabled") === "on";- const externalServices = {- ...settings.externalServices,- valkey: {- enabled: valkeyEnabled,- host: formData.get("valkeyHost")?.toString() || "localhost",- port: parseInt(formData.get("valkeyPort")?.toString() || "6379", 10),- username: formData.get("valkeyUsername")?.toString() || "",- password: formData.get("valkeyPassword")?.toString() || "",- keyPrefix:- formData.get("valkeyKeyPrefix")?.toString() || "arcane:settings:",- },- };+ // Extract Valkey settings+ const valkeyEnabled = formData.get('valkeyEnabled') === 'on';+ const externalServices = {+ ...settings.externalServices,+ valkey: {+ enabled: valkeyEnabled,+ host: formData.get('valkeyHost')?.toString() || 'localhost',+ port: parseInt(formData.get('valkeyPort')?.toString() || '6379', 10),+ username: formData.get('valkeyUsername')?.toString() || '',+ password: formData.get('valkeyPassword')?.toString() || '',+ keyPrefix: formData.get('valkeyKeyPrefix')?.toString() || 'arcane:settings:'+ }+ };- const updatedSettings: SettingsData = {- ...settings,- dockerHost,- autoUpdate,- pollingEnabled,- pollingInterval,- stacksDirectory,- pruneMode: pruneMode,- externalServices,- };+ const updatedSettings: SettingsData = {+ ...settings,+ dockerHost,+ autoUpdate,+ pollingEnabled,+ pollingInterval,+ stacksDirectory,+ pruneMode: pruneMode,+ externalServices+ };- // Save updated settings- await saveSettings(updatedSettings);+ // Save updated settings+ await saveSettings(updatedSettings);- return { success: true };- } catch (error: any) {- console.error("Error updating settings:", error);- const formValues = Object.fromEntries(formData);- return fail(500, {- error: error.message || "Failed to save settings.",- values: formValues,- });- }- },+ return { success: true };+ } catch (error: any) {+ console.error('Error updating settings:', error);+ const formValues = Object.fromEntries(formData);+ return fail(500, {+ error: error.message || 'Failed to save settings.',+ values: formValues+ });+ }+ }};diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelteindex 1decd0e68..75ccf0d7b 100644--- a/src/routes/settings/+page.svelte+++ b/src/routes/settings/+page.svelte@@ -1,117 +1,109 @@<script lang="ts">- import { run } from "svelte/legacy";- import { enhance } from "$app/forms";- import * as Tabs from "$lib/components/ui/tabs/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { Save, RefreshCw } from "@lucide/svelte";- import type { ActionData, PageData } from "./$types";- import { toast } from "svelte-sonner";- import AppSettings from "./tabs/app-settings.svelte";- import UserManagement from "./tabs/user-management.svelte";- import Authentication from "./tabs/authentication.svelte";- import RbacSettings from "./tabs/rbac-settings.svelte";- import ExternalServices from "./tabs/external-services.svelte";+ import { run } from 'svelte/legacy';+ import { enhance } from '$app/forms';+ import * as Tabs from '$lib/components/ui/tabs/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Save, RefreshCw } from '@lucide/svelte';+ import type { ActionData, PageData } from './$types';+ import { toast } from 'svelte-sonner';+ import AppSettings from './tabs/app-settings.svelte';+ import UserManagement from './tabs/user-management.svelte';+ import Authentication from './tabs/authentication.svelte';+ import RbacSettings from './tabs/rbac-settings.svelte';+ import ExternalServices from './tabs/external-services.svelte';- interface Props {- data: PageData;- form: ActionData;- }+ interface Props {+ data: PageData;+ form: ActionData;+ }- let { data, form }: Props = $props();+ let { data, form }: Props = $props();- // Track active tab- let activeTab = $state("app-settings");- let saving = $state(false);+ // Track active tab+ let activeTab = $state('app-settings');+ let saving = $state(false);- // Keep the tab IDs consistent with the trigger values- const tabs = [- { id: "app-settings", label: "General", component: AppSettings },- {- id: "user-management",- label: "User Management",- component: UserManagement,- },- {- id: "authentication",- label: "Authentication",- component: Authentication,- },- { id: "rbac", label: "RBAC", component: RbacSettings },- {- id: "external-services",- label: "External Services",- component: ExternalServices,- },- ];+ // Keep the tab IDs consistent with the trigger values+ const tabs = [+ { id: 'app-settings', label: 'General', component: AppSettings },+ {+ id: 'user-management',+ label: 'User Management',+ component: UserManagement+ },+ {+ id: 'authentication',+ label: 'Authentication',+ component: Authentication+ },+ { id: 'rbac', label: 'RBAC', component: RbacSettings },+ {+ id: 'external-services',+ label: 'External Services',+ component: ExternalServices+ }+ ];- run(() => {- if (form?.success) {- toast.success("Settings saved successfully");- } else if (form?.error) {- toast.error(form.error);- }- });+ run(() => {+ if (form?.success) {+ toast.success('Settings saved successfully');+ } else if (form?.error) {+ toast.error(form.error);+ }+ });</script><div class="space-y-6">- <!-- Header -->- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Settings</h1>- <p class="text-sm text-muted-foreground mt-1">- Configure Arcane's settings and permissions- </p>- </div>+ <!-- Header -->+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Settings</h1>+ <p class="text-sm text-muted-foreground mt-1">Configure Arcane's settings and permissions</p>+ </div>- <Button type="submit" form="settings-form" disabled={saving} class="h-10">- {#if saving}- <RefreshCw class="mr-2 h-4 w-4 animate-spin" />- Saving...- {:else}- <Save class="mr-2 h-4 w-4" />- Save Settings- {/if}- </Button>- </div>+ <Button type="submit" form="settings-form" disabled={saving} class="h-10">+ {#if saving}+ <RefreshCw class="mr-2 h-4 w-4 animate-spin" />+ Saving...+ {:else}+ <Save class="mr-2 h-4 w-4" />+ Save Settings+ {/if}+ </Button>+ </div>- <!-- Tabs Navigation -->- <Tabs.Root- value={activeTab}- onValueChange={(val) => (activeTab = val)}- class="w-full"- >- <Tabs.List- class="grid grid-cols-5 sm:grid-cols-5 md:w-full md:max-w-3xl mb-4"- >- {#each tabs as tab}- <Tabs.Trigger value={tab.id} class="whitespace-nowrap">- {tab.label}- </Tabs.Trigger>- {/each}- </Tabs.List>+ <!-- Tabs Navigation -->+ <Tabs.Root value={activeTab} onValueChange={(val) => (activeTab = val)} class="w-full">+ <Tabs.List class="grid grid-cols-5 sm:grid-cols-5 md:w-full md:max-w-3xl mb-4">+ {#each tabs as tab}+ <Tabs.Trigger value={tab.id} class="whitespace-nowrap">+ {tab.label}+ </Tabs.Trigger>+ {/each}+ </Tabs.List>- <!-- Tab Contents -->- <form- method="POST"- action="?"- id="settings-form"- class="space-y-6"- use:enhance={() => {- saving = true;- return async ({ update }) => {- saving = false;- await update();- };- }}- >- <!-- Add a hidden input with a CSRF token -->- <input type="hidden" name="csrf_token" value={data.csrf} />+ <!-- Tab Contents -->+ <form+ method="POST"+ action="?"+ id="settings-form"+ class="space-y-6"+ use:enhance={() => {+ saving = true;+ return async ({ update }) => {+ saving = false;+ await update();+ };+ }}+ >+ <!-- Add a hidden input with a CSRF token -->+ <input type="hidden" name="csrf_token" value={data.csrf} />- {#each tabs as tab}- <Tabs.Content value={tab.id} class="space-y-4">- <tab.component {data} {form} />- </Tabs.Content>- {/each}- </form>- </Tabs.Root>+ {#each tabs as tab}+ <Tabs.Content value={tab.id} class="space-y-4">+ <tab.component {data} {form} />+ </Tabs.Content>+ {/each}+ </form>+ </Tabs.Root></div>diff --git a/src/routes/settings/tabs/app-settings.svelte b/src/routes/settings/tabs/app-settings.svelteindex 3ba764709..675a7100d 100644--- a/src/routes/settings/tabs/app-settings.svelte+++ b/src/routes/settings/tabs/app-settings.svelte@@ -1,370 +1,213 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Switch } from "$lib/components/ui/switch/index.js";- import {- Save,- RefreshCw,- Key,- Plus,- Trash2,- ImageMinus,- } from "@lucide/svelte";- import * as RadioGroup from "$lib/components/ui/radio-group/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import type { ActionData, PageData } from "../$types";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Switch } from '$lib/components/ui/switch/index.js';+ import { Save, RefreshCw, Key, Plus, Trash2, ImageMinus } from '@lucide/svelte';+ import * as RadioGroup from '$lib/components/ui/radio-group/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import type { ActionData, PageData } from '../$types';- let { data, form } = $props<{ data: PageData; form: ActionData }>();+ let { data, form } = $props<{ data: PageData; form: ActionData }>();- let settings = $derived(data.settings);+ let settings = $derived(data.settings);- // Update form values from form.values if there was an error, otherwise from settings- let dockerHost = $derived(- form?.values?.dockerHost || settings?.dockerHost || ""- );+ // Update form values from form.values if there was an error, otherwise from settings+ let dockerHost = $derived(form?.values?.dockerHost || settings?.dockerHost || '');- let pollingEnabled = $derived(- form?.values?.pollingEnabled !== undefined- ? form.values.pollingEnabled === "on"- : settings?.pollingEnabled || false- );+ let pollingEnabled = $derived(form?.values?.pollingEnabled !== undefined ? form.values.pollingEnabled === 'on' : settings?.pollingEnabled || false);- let pollingInterval = $derived(- form?.values?.pollingInterval !== undefined- ? Number(form.values.pollingInterval)- : settings?.pollingInterval || 10- );+ let pollingInterval = $derived(form?.values?.pollingInterval !== undefined ? Number(form.values.pollingInterval) : settings?.pollingInterval || 10);- let stacksDirectory = $derived(- form?.values?.stacksDirectory || settings?.stacksDirectory || ""- );- let autoUpdate = $derived(- form?.values?.autoUpdate !== undefined- ? form.values.autoUpdate === "on"- : settings?.autoUpdate || false- );+ let stacksDirectory = $derived(form?.values?.stacksDirectory || settings?.stacksDirectory || '');+ let autoUpdate = $derived(form?.values?.autoUpdate !== undefined ? form.values.autoUpdate === 'on' : settings?.autoUpdate || false);- let pruneMode = $derived<"all" | "dangling">(- form?.values?.pruneMode || settings?.pruneMode || "all"- );+ let pruneMode = $derived<'all' | 'dangling'>(form?.values?.pruneMode || settings?.pruneMode || 'all');- let registryCredentials = $derived(- typeof form?.values?.registryCredentials === "string"- ? JSON.parse(form.values.registryCredentials)- : form?.values?.registryCredentials || settings?.registryCredentials || []- );+ let registryCredentials = $derived(typeof form?.values?.registryCredentials === 'string' ? JSON.parse(form.values.registryCredentials) : form?.values?.registryCredentials || settings?.registryCredentials || []);- const defaultRegistry = { url: "", username: "", password: "" };+ const defaultRegistry = { url: '', username: '', password: '' };- function addRegistry() {- registryCredentials = [...registryCredentials, { ...defaultRegistry }];- }+ function addRegistry() {+ registryCredentials = [...registryCredentials, { ...defaultRegistry }];+ }- function removeRegistry(index: number) {- registryCredentials = registryCredentials.filter(- (_: unknown, i: number) => i !== index- );- }+ function removeRegistry(index: number) {+ registryCredentials = registryCredentials.filter((_: unknown, i: number) => i !== index);+ }</script><div class="grid grid-cols-1 lg:grid-cols-2 gap-6">- <!-- Docker Connection Card -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-blue-500/10 p-2 rounded-full">- <Save class="h-5 w-5 text-blue-500" />- </div>- <div>- <Card.Title>Docker Settings</Card.Title>- <Card.Description>Configure your Docker connection</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div class="space-y-2">- <label for="dockerHost" class="text-sm font-medium">Docker Host</label- >- <Input- type="text"- id="dockerHost"- name="dockerHost"- bind:value={dockerHost}- placeholder="unix:///var/run/docker.sock"- required- />- <p class="text-xs text-muted-foreground">- For local Docker: unix:///var/run/docker.sock (Unix) or- npipe:////./pipe/docker_engine (Windows)- </p>- </div>-- <div class="space-y-2">- <label for="stacksDirectory" class="text-sm font-medium"- >Stacks Directory</label- >- <Input- type="text"- id="stacksDirectory"- name="stacksDirectory"- bind:value={stacksDirectory}- placeholder="/app/data/stacks"- required- />- <p class="text-xs text-muted-foreground">- Directory where Docker Compose stacks will be stored inside the- container.- </p>- <p class="text-xs font-bold text-destructive">- Changing this setting will not move existing stacks!- </p>- </div>- </div>- </Card.Content>- </Card.Root>-- <div class="space-y-6">- <!-- Polling Settings Card -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-amber-500/10 p-2 rounded-full">- <RefreshCw class="h-5 w-5 text-amber-500" />- </div>- <div>- <Card.Title>Image Polling</Card.Title>- <Card.Description>Control container image polling</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content class="space-y-6">- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="pollingEnabledSwitch" class="text-base font-medium"- >Check for New Images</label- >- <p class="text-sm text-muted-foreground">- Periodically check for newer versions of container images- </p>- </div>- <Switch- id="pollingEnabledSwitch"- name="pollingEnabled"- bind:checked={pollingEnabled}- />- </div>-- {#if pollingEnabled}- <div class="space-y-2 px-1">- <label for="pollingInterval" class="text-sm font-medium">- Polling Interval (minutes)- </label>- <Input- id="pollingInterval"- name="pollingInterval"- type="number"- bind:value={pollingInterval}- min="5"- max="60"- />- {#if form?.error && form.values?.pollingInterval && (parseInt(String(form.values.pollingInterval), 10) < 5 || parseInt(String(form.values.pollingInterval), 10) > 60)}- <p class="text-sm text-destructive">- Must be between 5 and 60 minutes.- </p>- {:else}- <p class="text-xs text-muted-foreground">- Set between 5-60 minutes.- </p>- {/if}- </div>-- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <Label for="autoUpdateSwitch" class="text-base font-medium"- >Auto Update Containers</Label- >- <p class="text-sm text-muted-foreground">- Automatically update containers when newer images are available- </p>- </div>- <Switch- id="autoUpdateSwitch"- name="autoUpdate"- bind:checked={autoUpdate}- />- </div>- {/if}- </Card.Content>- </Card.Root>-- <!-- Prune Settings Card -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-purple-500/10 p-2 rounded-full">- <ImageMinus class="h-5 w-5 text-purple-500" />- </div>- <div>- <Card.Title>Image Pruning</Card.Title>- <Card.Description>Configure image prune behavior</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content class="space-y-4">- <div>- <Label for="pruneMode" class="text-base font-medium block mb-2"- >Prune Action Behavior</Label- >- <RadioGroup.Root- bind:value={pruneMode}- name="pruneMode"- class="flex flex-col space-y-1"- id="pruneMode"- >- <div class="flex items-center space-x-2">- <RadioGroup.Item value="all" id="prune-all" />- <Label for="prune-all" class="font-normal">- All Unused Images (like `docker image prune -a`)- </Label>- </div>- <div class="flex items-center space-x-2">- <RadioGroup.Item value="dangling" id="prune-dangling" />- <Label for="prune-dangling" class="font-normal">- Dangling Images Only (like `docker image prune`)- </Label>- </div>- </RadioGroup.Root>- <p class="text-xs text-muted-foreground mt-2">- Select which images are removed by the "Prune Unused" action on the- Images page.- </p>- </div>- </Card.Content>- </Card.Root>- </div>-- <!-- Docker Registry Credentials Card -->- <Card.Root class="border shadow-sm lg:col-span-2">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-green-500/10 p-2 rounded-full">- <Key class="h-5 w-5 text-green-500" />- </div>- <div>- <Card.Title>Docker Registry Credentials</Card.Title>- <Card.Description>- Configure access to private Docker registries- </Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div class="space-y-2">- <p class="text-sm text-muted-foreground">- Add credentials for private registries like Docker Hub, GitHub- Container Registry (ghcr.io), or other private repositories.- </p>-- {#if registryCredentials.length === 0}- <div- class="text-center py-4 text-muted-foreground text-sm border rounded-md"- >- No registry credentials configured yet- </div>- {:else}- <div class="space-y-4">- {#each registryCredentials as registry, index}- <div class="border rounded-md p-4 space-y-3">- <div class="flex justify-between items-center">- <h4 class="font-medium">Registry #{index + 1}</h4>- <button- type="button"- class="text-destructive hover:text-destructive/80"- onclick={() => removeRegistry(index)}- >- <Trash2 class="h-4 w-4" />- </button>- </div>-- <div class="space-y-2">- <label- for={`registry-url-${index}`}- class="text-sm font-medium">Registry URL</label- >- <Input- type="text"- id={`registry-url-${index}`}- name={`registryCredentials[${index}].url`}- bind:value={registry.url}- placeholder="ghcr.io, registry.hub.docker.com, etc."- required- />- </div>-- <div class="space-y-2">- <label- for={`registry-username-${index}`}- class="text-sm font-medium">Username</label- >- <Input- type="text"- id={`registry-username-${index}`}- name={`registryCredentials[${index}].username`}- bind:value={registry.username}- placeholder="Username"- required- />- </div>-- <div class="space-y-2">- <label- for={`registry-password-${index}`}- class="text-sm font-medium">Password / Access Token</label- >- <Input- type="password"- id={`registry-password-${index}`}- name={`registryCredentials[${index}].password`}- bind:value={registry.password}- placeholder="Password or access token"- required- />- <p class="text-xs text-muted-foreground">- For GitHub, use a personal access token with the- appropriate scopes.- </p>- </div>- </div>- {/each}- </div>- {/if}-- <button- type="button"- class="w-full mt-4 flex items-center justify-center gap-2 border border-dashed rounded-md py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/30"- onclick={addRegistry}- >- <Plus class="h-4 w-4" /> Add Registry Credentials- </button>-- <p class="text-xs text-muted-foreground mt-2">- Common registry URLs:- <span class="font-medium">registry.hub.docker.com</span> (Docker- Hub),- <span class="font-medium">ghcr.io</span> (GitHub Container- Registry),- <span class="font-medium"- >[account].dkr.ecr.[region].amazonaws.com</span- > (AWS ECR)- </p>- </div>- </div>- </Card.Content>- </Card.Root>+ <!-- Docker Connection Card -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-blue-500/10 p-2 rounded-full">+ <Save class="h-5 w-5 text-blue-500" />+ </div>+ <div>+ <Card.Title>Docker Settings</Card.Title>+ <Card.Description>Configure your Docker connection</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="space-y-2">+ <label for="dockerHost" class="text-sm font-medium">Docker Host</label>+ <Input type="text" id="dockerHost" name="dockerHost" bind:value={dockerHost} placeholder="unix:///var/run/docker.sock" required />+ <p class="text-xs text-muted-foreground">For local Docker: unix:///var/run/docker.sock (Unix) or npipe:////./pipe/docker_engine (Windows)</p>+ </div>++ <div class="space-y-2">+ <label for="stacksDirectory" class="text-sm font-medium">Stacks Directory</label>+ <Input type="text" id="stacksDirectory" name="stacksDirectory" bind:value={stacksDirectory} placeholder="/app/data/stacks" required />+ <p class="text-xs text-muted-foreground">Directory where Docker Compose stacks will be stored inside the container.</p>+ <p class="text-xs font-bold text-destructive">Changing this setting will not move existing stacks!</p>+ </div>+ </div>+ </Card.Content>+ </Card.Root>++ <div class="space-y-6">+ <!-- Polling Settings Card -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-amber-500/10 p-2 rounded-full">+ <RefreshCw class="h-5 w-5 text-amber-500" />+ </div>+ <div>+ <Card.Title>Image Polling</Card.Title>+ <Card.Description>Control container image polling</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content class="space-y-6">+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="pollingEnabledSwitch" class="text-base font-medium">Check for New Images</label>+ <p class="text-sm text-muted-foreground">Periodically check for newer versions of container images</p>+ </div>+ <Switch id="pollingEnabledSwitch" name="pollingEnabled" bind:checked={pollingEnabled} />+ </div>++ {#if pollingEnabled}+ <div class="space-y-2 px-1">+ <label for="pollingInterval" class="text-sm font-medium"> Polling Interval (minutes) </label>+ <Input id="pollingInterval" name="pollingInterval" type="number" bind:value={pollingInterval} min="5" max="60" />+ {#if form?.error && form.values?.pollingInterval && (parseInt(String(form.values.pollingInterval), 10) < 5 || parseInt(String(form.values.pollingInterval), 10) > 60)}+ <p class="text-sm text-destructive">Must be between 5 and 60 minutes.</p>+ {:else}+ <p class="text-xs text-muted-foreground">Set between 5-60 minutes.</p>+ {/if}+ </div>++ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <Label for="autoUpdateSwitch" class="text-base font-medium">Auto Update Containers</Label>+ <p class="text-sm text-muted-foreground">Automatically update containers when newer images are available</p>+ </div>+ <Switch id="autoUpdateSwitch" name="autoUpdate" bind:checked={autoUpdate} />+ </div>+ {/if}+ </Card.Content>+ </Card.Root>++ <!-- Prune Settings Card -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-purple-500/10 p-2 rounded-full">+ <ImageMinus class="h-5 w-5 text-purple-500" />+ </div>+ <div>+ <Card.Title>Image Pruning</Card.Title>+ <Card.Description>Configure image prune behavior</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content class="space-y-4">+ <div>+ <Label for="pruneMode" class="text-base font-medium block mb-2">Prune Action Behavior</Label>+ <RadioGroup.Root bind:value={pruneMode} name="pruneMode" class="flex flex-col space-y-1" id="pruneMode">+ <div class="flex items-center space-x-2">+ <RadioGroup.Item value="all" id="prune-all" />+ <Label for="prune-all" class="font-normal">All Unused Images (like `docker image prune -a`)</Label>+ </div>+ <div class="flex items-center space-x-2">+ <RadioGroup.Item value="dangling" id="prune-dangling" />+ <Label for="prune-dangling" class="font-normal">Dangling Images Only (like `docker image prune`)</Label>+ </div>+ </RadioGroup.Root>+ <p class="text-xs text-muted-foreground mt-2">Select which images are removed by the "Prune Unused" action on the Images page.</p>+ </div>+ </Card.Content>+ </Card.Root>+ </div>++ <!-- Docker Registry Credentials Card -->+ <Card.Root class="border shadow-sm lg:col-span-2">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-green-500/10 p-2 rounded-full">+ <Key class="h-5 w-5 text-green-500" />+ </div>+ <div>+ <Card.Title>Docker Registry Credentials</Card.Title>+ <Card.Description>Configure access to private Docker registries</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="space-y-2">+ <p class="text-sm text-muted-foreground">Add credentials for private registries like Docker Hub, GitHub Container Registry (ghcr.io), or other private repositories.</p>++ {#if registryCredentials.length === 0}+ <div class="text-center py-4 text-muted-foreground text-sm border rounded-md">No registry credentials configured yet</div>+ {:else}+ <div class="space-y-4">+ {#each registryCredentials as registry, index}+ <div class="border rounded-md p-4 space-y-3">+ <div class="flex justify-between items-center">+ <h4 class="font-medium">Registry #{index + 1}</h4>+ <button type="button" class="text-destructive hover:text-destructive/80" onclick={() => removeRegistry(index)}>+ <Trash2 class="h-4 w-4" />+ </button>+ </div>++ <div class="space-y-2">+ <label for={`registry-url-${index}`} class="text-sm font-medium">Registry URL</label>+ <Input type="text" id={`registry-url-${index}`} name={`registryCredentials[${index}].url`} bind:value={registry.url} placeholder="ghcr.io, registry.hub.docker.com, etc." required />+ </div>++ <div class="space-y-2">+ <label for={`registry-username-${index}`} class="text-sm font-medium">Username</label>+ <Input type="text" id={`registry-username-${index}`} name={`registryCredentials[${index}].username`} bind:value={registry.username} placeholder="Username" required />+ </div>++ <div class="space-y-2">+ <label for={`registry-password-${index}`} class="text-sm font-medium">Password / Access Token</label>+ <Input type="password" id={`registry-password-${index}`} name={`registryCredentials[${index}].password`} bind:value={registry.password} placeholder="Password or access token" required />+ <p class="text-xs text-muted-foreground">For GitHub, use a personal access token with the appropriate scopes.</p>+ </div>+ </div>+ {/each}+ </div>+ {/if}++ <button type="button" class="w-full mt-4 flex items-center justify-center gap-2 border border-dashed rounded-md py-2 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/30" onclick={addRegistry}>+ <Plus class="h-4 w-4" /> Add Registry Credentials+ </button>++ <p class="text-xs text-muted-foreground mt-2">+ Common registry URLs:+ <span class="font-medium">registry.hub.docker.com</span> (Docker Hub),+ <span class="font-medium">ghcr.io</span> (GitHub Container Registry),+ <span class="font-medium">[account].dkr.ecr.[region].amazonaws.com</span> (AWS ECR)+ </p>+ </div>+ </div>+ </Card.Content>+ </Card.Root></div>diff --git a/src/routes/settings/tabs/authentication.svelte b/src/routes/settings/tabs/authentication.svelteindex 683f7c33e..d0a0ec7e3 100644--- a/src/routes/settings/tabs/authentication.svelte+++ b/src/routes/settings/tabs/authentication.svelte@@ -1,220 +1,144 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Switch } from "$lib/components/ui/switch/index.js";- import { Lock, Key, Shield } from "@lucide/svelte";- import type { ActionData, PageData } from "../$types";- import * as Form from "$lib/components/ui/form/index.js";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Switch } from '$lib/components/ui/switch/index.js';+ import { Lock, Key, Shield } from '@lucide/svelte';+ import type { ActionData, PageData } from '../$types';+ import * as Form from '$lib/components/ui/form/index.js';- let { data, form } = $props<{ data: PageData; form: ActionData }>();+ let { data, form } = $props<{ data: PageData; form: ActionData }>();- // Authentication settings- let enableLocalAuth = $state(true);- let enableOAuth = $state(false);- let enableLDAP = $state(false);- let sessionTimeout = $state(60);- let passwordPolicy = $state("medium");+ // Authentication settings+ let enableLocalAuth = $state(true);+ let enableOAuth = $state(false);+ let enableLDAP = $state(false);+ let sessionTimeout = $state(60);+ let passwordPolicy = $state('medium');</script><div class="grid grid-cols-1 lg:grid-cols-2 gap-6">- <!-- General Auth Settings -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-indigo-500/10 p-2 rounded-full">- <Lock class="h-5 w-5 text-indigo-500" />- </div>- <div>- <Card.Title>Authentication Methods</Card.Title>- <Card.Description>Configure how users sign in</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <!-- Local Auth -->- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="localAuthSwitch" class="text-base font-medium"- >Local Authentication</label- >- <p class="text-sm text-muted-foreground">- Username and password stored in the system- </p>- </div>- <Switch- id="localAuthSwitch"- name="enableLocalAuth"- bind:checked={enableLocalAuth}- />- </div>+ <!-- General Auth Settings -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-indigo-500/10 p-2 rounded-full">+ <Lock class="h-5 w-5 text-indigo-500" />+ </div>+ <div>+ <Card.Title>Authentication Methods</Card.Title>+ <Card.Description>Configure how users sign in</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <!-- Local Auth -->+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="localAuthSwitch" class="text-base font-medium">Local Authentication</label>+ <p class="text-sm text-muted-foreground">Username and password stored in the system</p>+ </div>+ <Switch id="localAuthSwitch" name="enableLocalAuth" bind:checked={enableLocalAuth} />+ </div>- <!-- OAuth -->- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="oauthSwitch" class="text-base font-medium"- >OAuth/OpenID Connect</label- >- <p class="text-sm text-muted-foreground">- Single sign-on with external providers- </p>- </div>- <Switch- id="oauthSwitch"- name="enableOAuth"- bind:checked={enableOAuth}- />- </div>+ <!-- OAuth -->+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="oauthSwitch" class="text-base font-medium">OAuth/OpenID Connect</label>+ <p class="text-sm text-muted-foreground">Single sign-on with external providers</p>+ </div>+ <Switch id="oauthSwitch" name="enableOAuth" bind:checked={enableOAuth} />+ </div>- <!-- LDAP -->- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="ldapSwitch" class="text-base font-medium"- >LDAP/Active Directory</label- >- <p class="text-sm text-muted-foreground">- Authentication via directory service- </p>- </div>- <Switch id="ldapSwitch" name="enableLDAP" bind:checked={enableLDAP} />- </div>- </div>- </Card.Content>- </Card.Root>+ <!-- LDAP -->+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="ldapSwitch" class="text-base font-medium">LDAP/Active Directory</label>+ <p class="text-sm text-muted-foreground">Authentication via directory service</p>+ </div>+ <Switch id="ldapSwitch" name="enableLDAP" bind:checked={enableLDAP} />+ </div>+ </div>+ </Card.Content>+ </Card.Root>- <!-- Session Settings -->- <div class="space-y-6">- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-cyan-500/10 p-2 rounded-full">- <Key class="h-5 w-5 text-cyan-500" />- </div>- <div>- <Card.Title>Session Settings</Card.Title>- <Card.Description>Configure session behavior</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div class="space-y-2">- <label for="sessionTimeout" class="text-sm font-medium"- >Session Timeout (minutes)</label- >- <Input- type="number"- id="sessionTimeout"- name="sessionTimeout"- bind:value={sessionTimeout}- min="15"- max="1440"- />- <p class="text-xs text-muted-foreground">- Time until inactive sessions are automatically logged out (15-1440- minutes)- </p>- </div>+ <!-- Session Settings -->+ <div class="space-y-6">+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-cyan-500/10 p-2 rounded-full">+ <Key class="h-5 w-5 text-cyan-500" />+ </div>+ <div>+ <Card.Title>Session Settings</Card.Title>+ <Card.Description>Configure session behavior</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="space-y-2">+ <label for="sessionTimeout" class="text-sm font-medium">Session Timeout (minutes)</label>+ <Input type="number" id="sessionTimeout" name="sessionTimeout" bind:value={sessionTimeout} min="15" max="1440" />+ <p class="text-xs text-muted-foreground">Time until inactive sessions are automatically logged out (15-1440 minutes)</p>+ </div>- <div class="space-y-2">- <label for="passwordPolicy" class="text-sm font-medium"- >Password Policy</label- >- <div class="grid grid-cols-3 gap-2">- <Button- variant={passwordPolicy === "low" ? "default" : "outline"}- class="w-full"- onclick={() => (passwordPolicy = "low")}- >- Basic- </Button>- <Button- variant={passwordPolicy === "medium" ? "default" : "outline"}- class="w-full"- onclick={() => (passwordPolicy = "medium")}- >- Standard- </Button>- <Button- variant={passwordPolicy === "high" ? "default" : "outline"}- class="w-full"- onclick={() => (passwordPolicy = "high")}- >- Strong- </Button>- </div>- <input- type="hidden"- id="passwordPolicy"- name="passwordPolicy"- value={passwordPolicy}- />- <p class="text-xs text-muted-foreground mt-1">- {#if passwordPolicy === "low"}- Basic: Minimum 8 characters- {:else if passwordPolicy === "medium"}- Standard: Minimum 10 characters, requires mixed case and numbers- {:else}- Strong: Minimum 12 characters, requires mixed case, numbers and- special characters- {/if}- </p>- </div>- </div>- </Card.Content>- </Card.Root>+ <div class="space-y-2">+ <label for="passwordPolicy" class="text-sm font-medium">Password Policy</label>+ <div class="grid grid-cols-3 gap-2">+ <Button variant={passwordPolicy === 'low' ? 'default' : 'outline'} class="w-full" onclick={() => (passwordPolicy = 'low')}>Basic</Button>+ <Button variant={passwordPolicy === 'medium' ? 'default' : 'outline'} class="w-full" onclick={() => (passwordPolicy = 'medium')}>Standard</Button>+ <Button variant={passwordPolicy === 'high' ? 'default' : 'outline'} class="w-full" onclick={() => (passwordPolicy = 'high')}>Strong</Button>+ </div>+ <input type="hidden" id="passwordPolicy" name="passwordPolicy" value={passwordPolicy} />+ <p class="text-xs text-muted-foreground mt-1">+ {#if passwordPolicy === 'low'}+ Basic: Minimum 8 characters+ {:else if passwordPolicy === 'medium'}+ Standard: Minimum 10 characters, requires mixed case and numbers+ {:else}+ Strong: Minimum 12 characters, requires mixed case, numbers and special characters+ {/if}+ </p>+ </div>+ </div>+ </Card.Content>+ </Card.Root>- <!-- 2FA Settings -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-emerald-500/10 p-2 rounded-full">- <Shield class="h-5 w-5 text-emerald-500" />- </div>- <div>- <Card.Title>Two-Factor Authentication</Card.Title>- <Card.Description>Extra security layer</Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="require2faSwitch" class="text-base font-medium"- >Require 2FA</label- >- <p class="text-sm text-muted-foreground">- Force all users to set up two-factor authentication- </p>- </div>- <Switch id="require2faSwitch" name="require2fa" />- </div>+ <!-- 2FA Settings -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-emerald-500/10 p-2 rounded-full">+ <Shield class="h-5 w-5 text-emerald-500" />+ </div>+ <div>+ <Card.Title>Two-Factor Authentication</Card.Title>+ <Card.Description>Extra security layer</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="require2faSwitch" class="text-base font-medium">Require 2FA</label>+ <p class="text-sm text-muted-foreground">Force all users to set up two-factor authentication</p>+ </div>+ <Switch id="require2faSwitch" name="require2fa" />+ </div>- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="allowTotpSwitch" class="text-base font-medium"- >Allow App-Based 2FA</label- >- <p class="text-sm text-muted-foreground">- Allow authentication apps (TOTP)- </p>- </div>- <Switch id="allowTotpSwitch" name="allowTotp" checked />- </div>- </div>- </Card.Content>- </Card.Root>- </div>+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="allowTotpSwitch" class="text-base font-medium">Allow App-Based 2FA</label>+ <p class="text-sm text-muted-foreground">Allow authentication apps (TOTP)</p>+ </div>+ <Switch id="allowTotpSwitch" name="allowTotp" checked />+ </div>+ </div>+ </Card.Content>+ </Card.Root>+ </div></div>diff --git a/src/routes/settings/tabs/external-services.svelte b/src/routes/settings/tabs/external-services.svelteindex 0c1ec55b8..81322d5b6 100644--- a/src/routes/settings/tabs/external-services.svelte+++ b/src/routes/settings/tabs/external-services.svelte@@ -1,211 +1,115 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Switch } from "$lib/components/ui/switch/index.js";- import { Database, CircuitBoard } from "@lucide/svelte";- import type { ActionData, PageData } from "../$types";-- let { data, form } = $props<{ data: PageData; form: ActionData }>();-- let settings = $derived(data.settings);-- // Valkey settings- let valkeyEnabled = $derived(- form?.values?.valkeyEnabled !== undefined- ? form.values.valkeyEnabled === "on"- : settings?.externalServices?.valkey?.enabled || false- );-- let valkeyHost = $derived(- form?.values?.valkeyHost ||- settings?.externalServices?.valkey?.host ||- "localhost"- );-- let valkeyPort = $derived(- form?.values?.valkeyPort !== undefined- ? form.values.valkeyPort- : settings?.externalServices?.valkey?.port || 6379- );-- let valkeyUsername = $derived(- form?.values?.valkeyUsername ||- settings?.externalServices?.valkey?.username ||- ""- );-- let valkeyPassword = $derived(- form?.values?.valkeyPassword ||- settings?.externalServices?.valkey?.password ||- ""- );-- let valkeyKeyPrefix = $derived(- form?.values?.valkeyKeyPrefix ||- settings?.externalServices?.valkey?.keyPrefix ||- "arcane:settings:"- );+ import * as Card from '$lib/components/ui/card/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Switch } from '$lib/components/ui/switch/index.js';+ import { Database, CircuitBoard } from '@lucide/svelte';+ import type { ActionData, PageData } from '../$types';++ let { data, form } = $props<{ data: PageData; form: ActionData }>();++ let settings = $derived(data.settings);++ // Valkey settings+ let valkeyEnabled = $derived(form?.values?.valkeyEnabled !== undefined ? form.values.valkeyEnabled === 'on' : settings?.externalServices?.valkey?.enabled || false);++ let valkeyHost = $derived(form?.values?.valkeyHost || settings?.externalServices?.valkey?.host || 'localhost');++ let valkeyPort = $derived(form?.values?.valkeyPort !== undefined ? form.values.valkeyPort : settings?.externalServices?.valkey?.port || 6379);++ let valkeyUsername = $derived(form?.values?.valkeyUsername || settings?.externalServices?.valkey?.username || '');++ let valkeyPassword = $derived(form?.values?.valkeyPassword || settings?.externalServices?.valkey?.password || '');++ let valkeyKeyPrefix = $derived(form?.values?.valkeyKeyPrefix || settings?.externalServices?.valkey?.keyPrefix || 'arcane:settings:');</script><div class="grid grid-cols-1 lg:grid-cols-1 gap-6">- <!-- External Services Header -->- <div class="space-y-2">- <h2 class="text-2xl font-bold tracking-tight">External Services</h2>- <p class="text-muted-foreground">- Configure connections to external services for enhanced functionality.- </p>- </div>-- <!-- Valkey/Redis Card -->- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-purple-500/10 p-2 rounded-full">- <Database class="h-5 w-5 text-purple-500" />- </div>- <div>- <Card.Title>Valkey/Redis Integration</Card.Title>- <Card.Description>- Connect to Valkey or Redis for distributed caching and state- management- </Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div- class="flex items-center justify-between rounded-lg border p-4 bg-muted/30"- >- <div class="space-y-0.5">- <label for="valkeyEnabledSwitch" class="text-base font-medium"- >Enable Valkey/Redis</label- >- <p class="text-sm text-muted-foreground">- Use Valkey/Redis for enhanced performance and reliability- </p>- </div>- <Switch- id="valkeyEnabledSwitch"- name="valkeyEnabled"- bind:checked={valkeyEnabled}- />- </div>-- {#if valkeyEnabled}- <div- class="grid grid-cols-1 md:grid-cols-2 gap-4 p-4 border rounded-lg"- >- <div class="space-y-2">- <label for="valkeyHost" class="text-sm font-medium"- >Server Host</label- >- <Input- type="text"- id="valkeyHost"- name="valkeyHost"- bind:value={valkeyHost}- placeholder="localhost"- required- />- </div>-- <div class="space-y-2">- <label for="valkeyPort" class="text-sm font-medium"- >Server Port</label- >- <Input- type="number"- id="valkeyPort"- name="valkeyPort"- bind:value={valkeyPort}- placeholder="6379"- required- />- </div>-- <div class="space-y-2">- <label for="valkeyUsername" class="text-sm font-medium"- >Username</label- >- <Input- type="text"- id="valkeyUsername"- name="valkeyUsername"- bind:value={valkeyUsername}- placeholder="(optional)"- />- </div>-- <div class="space-y-2">- <label for="valkeyPassword" class="text-sm font-medium"- >Password</label- >- <Input- type="password"- id="valkeyPassword"- name="valkeyPassword"- bind:value={valkeyPassword}- placeholder="(optional)"- />- </div>-- <div class="space-y-2 md:col-span-2">- <label for="valkeyKeyPrefix" class="text-sm font-medium"- >Key Prefix</label- >- <Input- type="text"- id="valkeyKeyPrefix"- name="valkeyKeyPrefix"- bind:value={valkeyKeyPrefix}- placeholder="arcane:settings:"- />- <p class="text-xs text-muted-foreground">- Prefix used for keys when storing values in Valkey/Redis- </p>- </div>-- <div- class="md:col-span-2 p-3 rounded-md bg-blue-50 text-blue-800 border border-blue-200"- >- <p class="text-sm">- <span class="font-medium">Usage:</span> When enabled, Valkey/Redis- will be used for caching and distributed state management, improving- performance.- </p>- </div>- </div>- {/if}- </div>- </Card.Content>- </Card.Root>-- <!-- Placeholder for future services -->- <Card.Root class="border shadow-sm border-dashed">- <Card.Header class="pb-3">- <div class="flex items-center gap-2">- <div class="bg-gray-500/10 p-2 rounded-full">- <CircuitBoard class="h-5 w-5 text-gray-500" />- </div>- <div>- <Card.Title>Additional Services</Card.Title>- <Card.Description>- More integrations will be available in future updates- </Card.Description>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="text-center py-8 text-muted-foreground">- <p>- Future services MAY include database connections, monitoring tools,- and more.- </p>- <p class="text-sm mt-2">- Check back for updates or suggest integrations!- </p>- </div>- </Card.Content>- </Card.Root>+ <!-- External Services Header -->+ <div class="space-y-2">+ <h2 class="text-2xl font-bold tracking-tight">External Services</h2>+ <p class="text-muted-foreground">Configure connections to external services for enhanced functionality.</p>+ </div>++ <!-- Valkey/Redis Card -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-purple-500/10 p-2 rounded-full">+ <Database class="h-5 w-5 text-purple-500" />+ </div>+ <div>+ <Card.Title>Valkey/Redis Integration</Card.Title>+ <Card.Description>Connect to Valkey or Redis for distributed caching and state management</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="flex items-center justify-between rounded-lg border p-4 bg-muted/30">+ <div class="space-y-0.5">+ <label for="valkeyEnabledSwitch" class="text-base font-medium">Enable Valkey/Redis</label>+ <p class="text-sm text-muted-foreground">Use Valkey/Redis for enhanced performance and reliability</p>+ </div>+ <Switch id="valkeyEnabledSwitch" name="valkeyEnabled" bind:checked={valkeyEnabled} />+ </div>++ {#if valkeyEnabled}+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 p-4 border rounded-lg">+ <div class="space-y-2">+ <label for="valkeyHost" class="text-sm font-medium">Server Host</label>+ <Input type="text" id="valkeyHost" name="valkeyHost" bind:value={valkeyHost} placeholder="localhost" required />+ </div>++ <div class="space-y-2">+ <label for="valkeyPort" class="text-sm font-medium">Server Port</label>+ <Input type="number" id="valkeyPort" name="valkeyPort" bind:value={valkeyPort} placeholder="6379" required />+ </div>++ <div class="space-y-2">+ <label for="valkeyUsername" class="text-sm font-medium">Username</label>+ <Input type="text" id="valkeyUsername" name="valkeyUsername" bind:value={valkeyUsername} placeholder="(optional)" />+ </div>++ <div class="space-y-2">+ <label for="valkeyPassword" class="text-sm font-medium">Password</label>+ <Input type="password" id="valkeyPassword" name="valkeyPassword" bind:value={valkeyPassword} placeholder="(optional)" />+ </div>++ <div class="space-y-2 md:col-span-2">+ <label for="valkeyKeyPrefix" class="text-sm font-medium">Key Prefix</label>+ <Input type="text" id="valkeyKeyPrefix" name="valkeyKeyPrefix" bind:value={valkeyKeyPrefix} placeholder="arcane:settings:" />+ <p class="text-xs text-muted-foreground">Prefix used for keys when storing values in Valkey/Redis</p>+ </div>++ <div class="md:col-span-2 p-3 rounded-md bg-blue-50 text-blue-800 border border-blue-200">+ <p class="text-sm">+ <span class="font-medium">Usage:</span> When enabled, Valkey/Redis will be used for caching and distributed state management, improving performance.+ </p>+ </div>+ </div>+ {/if}+ </div>+ </Card.Content>+ </Card.Root>++ <!-- Placeholder for future services -->+ <Card.Root class="border shadow-sm border-dashed">+ <Card.Header class="pb-3">+ <div class="flex items-center gap-2">+ <div class="bg-gray-500/10 p-2 rounded-full">+ <CircuitBoard class="h-5 w-5 text-gray-500" />+ </div>+ <div>+ <Card.Title>Additional Services</Card.Title>+ <Card.Description>More integrations will be available in future updates</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="text-center py-8 text-muted-foreground">+ <p>Future services MAY include database connections, monitoring tools, and more.</p>+ <p class="text-sm mt-2">Check back for updates or suggest integrations!</p>+ </div>+ </Card.Content>+ </Card.Root></div>diff --git a/src/routes/settings/tabs/rbac-settings.svelte b/src/routes/settings/tabs/rbac-settings.svelteindex fb74683a7..c710bd245 100644--- a/src/routes/settings/tabs/rbac-settings.svelte+++ b/src/routes/settings/tabs/rbac-settings.svelte@@ -1,208 +1,160 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Shield, Plus, Users, Settings } from "@lucide/svelte";- import type { ActionData, PageData } from "../$types";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Shield, Plus, Users, Settings } from '@lucide/svelte';+ import type { ActionData, PageData } from '../$types';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';- let { data, form } = $props<{ data: PageData; form: ActionData }>();+ let { data, form } = $props<{ data: PageData; form: ActionData }>();- // Sample roles for demonstration- const roles = [- {- id: 1,- name: "Admin",- description: "Full system access",- permissions: [- "containers:manage",- "stacks:manage",- "volumes:manage",- "networks:manage",- "settings:manage",- "users:manage",- ],- },- {- id: 2,- name: "User",- description: "Container and stack operations",- permissions: [- "containers:view",- "containers:manage",- "stacks:view",- "stacks:manage",- "volumes:view",- "networks:view",- ],- },- {- id: 3,- name: "Viewer",- description: "Read-only access",- permissions: [- "containers:view",- "stacks:view",- "volumes:view",- "networks:view",- ],- },- ];+ // Sample roles for demonstration+ const roles = [+ {+ id: 1,+ name: 'Admin',+ description: 'Full system access',+ permissions: ['containers:manage', 'stacks:manage', 'volumes:manage', 'networks:manage', 'settings:manage', 'users:manage']+ },+ {+ id: 2,+ name: 'User',+ description: 'Container and stack operations',+ permissions: ['containers:view', 'containers:manage', 'stacks:view', 'stacks:manage', 'volumes:view', 'networks:view']+ },+ {+ id: 3,+ name: 'Viewer',+ description: 'Read-only access',+ permissions: ['containers:view', 'stacks:view', 'volumes:view', 'networks:view']+ }+ ];- // Available permissions categories- const permissionCategories = [- {- name: "Containers",- permissions: [- "containers:view",- "containers:manage",- "containers:deploy",- ],- },- {- name: "Stacks",- permissions: ["stacks:view", "stacks:manage", "stacks:deploy"],- },- {- name: "Volumes",- permissions: ["volumes:view", "volumes:manage", "volumes:create"],- },- {- name: "Networks",- permissions: ["networks:view", "networks:manage", "networks:create"],- },- {- name: "Settings",- permissions: ["settings:view", "settings:manage"],- },- {- name: "Users",- permissions: ["users:view", "users:manage", "users:create"],- },- ];+ // Available permissions categories+ const permissionCategories = [+ {+ name: 'Containers',+ permissions: ['containers:view', 'containers:manage', 'containers:deploy']+ },+ {+ name: 'Stacks',+ permissions: ['stacks:view', 'stacks:manage', 'stacks:deploy']+ },+ {+ name: 'Volumes',+ permissions: ['volumes:view', 'volumes:manage', 'volumes:create']+ },+ {+ name: 'Networks',+ permissions: ['networks:view', 'networks:manage', 'networks:create']+ },+ {+ name: 'Settings',+ permissions: ['settings:view', 'settings:manage']+ },+ {+ name: 'Users',+ permissions: ['users:view', 'users:manage', 'users:create']+ }+ ];- let selectedRole = $state(roles[0]);+ let selectedRole = $state(roles[0]);</script><div class="grid grid-cols-1 lg:grid-cols-3 gap-6">- <!-- Roles List -->- <div class="lg:col-span-1">- <Card.Root class="border shadow-sm h-full">- <Card.Header class="pb-3">- <div class="flex items-center justify-between">- <div class="flex items-center gap-2">- <div class="bg-blue-500/10 p-2 rounded-full">- <Users class="h-5 w-5 text-blue-500" />- </div>- <Card.Title>Roles</Card.Title>- </div>- <Button variant="outline" size="sm">- <Plus class="h-4 w-4 mr-1" /> Add- </Button>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-2">- {#each roles as role}- <button- class="w-full text-left p-3 rounded-md border transition-colors flex items-center justify-between- {selectedRole.id === role.id- ? 'bg-primary text-primary-foreground border-primary'- : 'hover:bg-muted/50'}"- onclick={() => (selectedRole = role)}- >- <div>- <div class="font-medium">{role.name}</div>- <div- class="text-xs {selectedRole.id === role.id- ? 'text-primary-foreground/90'- : 'text-muted-foreground'}"- >- {role.description}- </div>- </div>- <Shield class="h-4 w-4 opacity-70" />- </button>- {/each}- </div>- </Card.Content>- </Card.Root>- </div>+ <!-- Roles List -->+ <div class="lg:col-span-1">+ <Card.Root class="border shadow-sm h-full">+ <Card.Header class="pb-3">+ <div class="flex items-center justify-between">+ <div class="flex items-center gap-2">+ <div class="bg-blue-500/10 p-2 rounded-full">+ <Users class="h-5 w-5 text-blue-500" />+ </div>+ <Card.Title>Roles</Card.Title>+ </div>+ <Button variant="outline" size="sm">+ <Plus class="h-4 w-4 mr-1" /> Add+ </Button>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-2">+ {#each roles as role}+ <button+ class="w-full text-left p-3 rounded-md border transition-colors flex items-center justify-between+ {selectedRole.id === role.id ? 'bg-primary text-primary-foreground border-primary' : 'hover:bg-muted/50'}"+ onclick={() => (selectedRole = role)}+ >+ <div>+ <div class="font-medium">{role.name}</div>+ <div class="text-xs {selectedRole.id === role.id ? 'text-primary-foreground/90' : 'text-muted-foreground'}">+ {role.description}+ </div>+ </div>+ <Shield class="h-4 w-4 opacity-70" />+ </button>+ {/each}+ </div>+ </Card.Content>+ </Card.Root>+ </div>- <!-- Role Details -->- <div class="lg:col-span-2">- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center justify-between">- <div class="flex items-center gap-2">- <div class="bg-purple-500/10 p-2 rounded-full">- <Settings class="h-5 w-5 text-purple-500" />- </div>- <div>- <Card.Title>Role: {selectedRole.name}</Card.Title>- <Card.Description>{selectedRole.description}</Card.Description>- </div>- </div>- <div class="space-x-2">- <Button variant="outline" size="sm">Delete</Button>- <Button size="sm">Save Changes</Button>- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-6">- <!-- Role Info -->- <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">- <div class="space-y-2">- <label for="roleName" class="text-sm font-medium">Role Name</label- >- <Input- id="roleName"- name="roleName"- value={selectedRole.name}- placeholder="Enter role name"- />- </div>- <div class="space-y-2">- <label for="roleDescription" class="text-sm font-medium"- >Description</label- >- <Input- id="roleDescription"- name="roleDescription"- value={selectedRole.description}- placeholder="Brief description"- />- </div>- </div>+ <!-- Role Details -->+ <div class="lg:col-span-2">+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center justify-between">+ <div class="flex items-center gap-2">+ <div class="bg-purple-500/10 p-2 rounded-full">+ <Settings class="h-5 w-5 text-purple-500" />+ </div>+ <div>+ <Card.Title>Role: {selectedRole.name}</Card.Title>+ <Card.Description>{selectedRole.description}</Card.Description>+ </div>+ </div>+ <div class="space-x-2">+ <Button variant="outline" size="sm">Delete</Button>+ <Button size="sm">Save Changes</Button>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-6">+ <!-- Role Info -->+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">+ <div class="space-y-2">+ <label for="roleName" class="text-sm font-medium">Role Name</label>+ <Input id="roleName" name="roleName" value={selectedRole.name} placeholder="Enter role name" />+ </div>+ <div class="space-y-2">+ <label for="roleDescription" class="text-sm font-medium">Description</label>+ <Input id="roleDescription" name="roleDescription" value={selectedRole.description} placeholder="Brief description" />+ </div>+ </div>- <!-- Permissions -->- <div>- <h3 class="text-sm font-medium mb-3">Permissions</h3>- <div class="border rounded-md divide-y">- {#each permissionCategories as category}- <div class="p-3">- <h4 class="font-medium mb-2">{category.name}</h4>- <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">- {#each category.permissions as permission}- <label class="flex items-center space-x-2 text-sm">- <input- type="checkbox"- class="rounded border-gray-300 text-primary focus:ring-primary"- checked={selectedRole.permissions.includes(- permission- )}- />- <span>{permission.split(":")[1]}</span>- </label>- {/each}- </div>- </div>- {/each}- </div>- </div>- </div>- </Card.Content>- </Card.Root>- </div>+ <!-- Permissions -->+ <div>+ <h3 class="text-sm font-medium mb-3">Permissions</h3>+ <div class="border rounded-md divide-y">+ {#each permissionCategories as category}+ <div class="p-3">+ <h4 class="font-medium mb-2">{category.name}</h4>+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-2">+ {#each category.permissions as permission}+ <label class="flex items-center space-x-2 text-sm">+ <input type="checkbox" class="rounded border-gray-300 text-primary focus:ring-primary" checked={selectedRole.permissions.includes(permission)} />+ <span>{permission.split(':')[1]}</span>+ </label>+ {/each}+ </div>+ </div>+ {/each}+ </div>+ </div>+ </div>+ </Card.Content>+ </Card.Root>+ </div></div>diff --git a/src/routes/settings/tabs/user-management.svelte b/src/routes/settings/tabs/user-management.svelteindex fbbbca6c7..8dcdd814b 100644--- a/src/routes/settings/tabs/user-management.svelte+++ b/src/routes/settings/tabs/user-management.svelte@@ -1,110 +1,93 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import {- UserPlus,- User,- Search,- MoreHorizontal,- Trash,- } from "@lucide/svelte";- import type { ActionData, PageData } from "../$types";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { UserPlus, User, Search, MoreHorizontal, Trash } from '@lucide/svelte';+ import type { ActionData, PageData } from '../$types';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';- let { data, form } = $props<{ data: PageData; form: ActionData }>();+ let { data, form } = $props<{ data: PageData; form: ActionData }>();- // Sample users for demonstration- const users = [- { id: 1, name: "Admin User", email: "[email protected]", role: "Admin" },- { id: 2, name: "Regular User", email: "[email protected]", role: "User" },- { id: 3, name: "Viewer", email: "[email protected]", role: "Viewer" },- ];+ // Sample users for demonstration+ const users = [+ { id: 1, name: 'Admin User', email: '[email protected]', role: 'Admin' },+ { id: 2, name: 'Regular User', email: '[email protected]', role: 'User' },+ { id: 3, name: 'Viewer', email: '[email protected]', role: 'Viewer' }+ ];- let searchQuery = $state("");+ let searchQuery = $state('');</script><div class="space-y-6">- <Card.Root class="border shadow-sm">- <Card.Header class="pb-3">- <div class="flex items-center justify-between">- <div class="flex items-center gap-2">- <div class="bg-green-500/10 p-2 rounded-full">- <User class="h-5 w-5 text-green-500" />- </div>- <div>- <Card.Title>User Management</Card.Title>- <Card.Description>Manage system users</Card.Description>- </div>- </div>- <Button variant="default" size="sm">- <UserPlus class="h-4 w-4 mr-2" />- Add User- </Button>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <!-- Search -->- <div class="relative">- <Search- class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"- />- <Input- type="search"- placeholder="Search users..."- class="pl-8"- bind:value={searchQuery}- />- </div>+ <Card.Root class="border shadow-sm">+ <Card.Header class="pb-3">+ <div class="flex items-center justify-between">+ <div class="flex items-center gap-2">+ <div class="bg-green-500/10 p-2 rounded-full">+ <User class="h-5 w-5 text-green-500" />+ </div>+ <div>+ <Card.Title>User Management</Card.Title>+ <Card.Description>Manage system users</Card.Description>+ </div>+ </div>+ <Button variant="default" size="sm">+ <UserPlus class="h-4 w-4 mr-2" />+ Add User+ </Button>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <!-- Search -->+ <div class="relative">+ <Search class="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" />+ <Input type="search" placeholder="Search users..." class="pl-8" bind:value={searchQuery} />+ </div>- <!-- Users Table -->- <div class="border rounded-md">- <table class="w-full">- <thead>- <tr class="border-b bg-muted/50">- <th class="text-left p-2 pl-4 font-medium">Name</th>- <th class="text-left p-2 font-medium">Email</th>- <th class="text-left p-2 font-medium">Role</th>- <th class="text-right p-2 pr-4 font-medium">Actions</th>- </tr>- </thead>- <tbody>- {#each users.filter((u) => u.name- .toLowerCase()- .includes(searchQuery.toLowerCase()) || u.email- .toLowerCase()- .includes(searchQuery.toLowerCase())) as user}- <tr class="border-b last:border-0">- <td class="p-2 pl-4">{user.name}</td>- <td class="p-2">{user.email}</td>- <td class="p-2">{user.role}</td>- <td class="p-2 pr-4 text-right">- <DropdownMenu.Root>- <DropdownMenu.Trigger>- <Button variant="ghost" size="icon" class="h-8 w-8">- <MoreHorizontal class="h-4 w-4" />- <span class="sr-only">Open menu</span>- </Button>- </DropdownMenu.Trigger>- <DropdownMenu.Content align="end">- <DropdownMenu.Item>Edit User</DropdownMenu.Item>- <DropdownMenu.Item>Change Password</DropdownMenu.Item>- <DropdownMenu.Item>Modify Roles</DropdownMenu.Item>- <DropdownMenu.Separator />- <DropdownMenu.Item class="text-destructive">- <Trash class="h-4 w-4 mr-2" />- Delete User- </DropdownMenu.Item>- </DropdownMenu.Content>- </DropdownMenu.Root>- </td>- </tr>- {/each}- </tbody>- </table>- </div>- </div>- </Card.Content>- </Card.Root>+ <!-- Users Table -->+ <div class="border rounded-md">+ <table class="w-full">+ <thead>+ <tr class="border-b bg-muted/50">+ <th class="text-left p-2 pl-4 font-medium">Name</th>+ <th class="text-left p-2 font-medium">Email</th>+ <th class="text-left p-2 font-medium">Role</th>+ <th class="text-right p-2 pr-4 font-medium">Actions</th>+ </tr>+ </thead>+ <tbody>+ {#each users.filter((u) => u.name.toLowerCase().includes(searchQuery.toLowerCase()) || u.email.toLowerCase().includes(searchQuery.toLowerCase())) as user}+ <tr class="border-b last:border-0">+ <td class="p-2 pl-4">{user.name}</td>+ <td class="p-2">{user.email}</td>+ <td class="p-2">{user.role}</td>+ <td class="p-2 pr-4 text-right">+ <DropdownMenu.Root>+ <DropdownMenu.Trigger>+ <Button variant="ghost" size="icon" class="h-8 w-8">+ <MoreHorizontal class="h-4 w-4" />+ <span class="sr-only">Open menu</span>+ </Button>+ </DropdownMenu.Trigger>+ <DropdownMenu.Content align="end">+ <DropdownMenu.Item>Edit User</DropdownMenu.Item>+ <DropdownMenu.Item>Change Password</DropdownMenu.Item>+ <DropdownMenu.Item>Modify Roles</DropdownMenu.Item>+ <DropdownMenu.Separator />+ <DropdownMenu.Item class="text-destructive">+ <Trash class="h-4 w-4 mr-2" />+ Delete User+ </DropdownMenu.Item>+ </DropdownMenu.Content>+ </DropdownMenu.Root>+ </td>+ </tr>+ {/each}+ </tbody>+ </table>+ </div>+ </div>+ </Card.Content>+ </Card.Root></div>diff --git a/src/routes/stacks/+page.server.ts b/src/routes/stacks/+page.server.tsindex 86db5c431..63985d187 100644--- a/src/routes/stacks/+page.server.ts+++ b/src/routes/stacks/+page.server.ts@@ -1,36 +1,33 @@-import { error } from "@sveltejs/kit";-import {- loadComposeStacks,- discoverExternalStacks,-} from "$lib/services/compose";+import { error } from '@sveltejs/kit';+import { loadComposeStacks, discoverExternalStacks } from '$lib/services/compose';/** @type {import('./$types').PageServerLoad} */export async function load() {- try {- // Get managed stacks- const managedStacks = await loadComposeStacks();+ try {+ // Get managed stacks+ const managedStacks = await loadComposeStacks();- // Discover external stacks- const externalStacks = await discoverExternalStacks();+ // Discover external stacks+ const externalStacks = await discoverExternalStacks();- // Combine both, ensuring no duplicates by ID- const combinedStacks = [...managedStacks];+ // Combine both, ensuring no duplicates by ID+ const combinedStacks = [...managedStacks];- for (const externalStack of externalStacks) {- if (!combinedStacks.some((stack) => stack.id === externalStack.id)) {- combinedStacks.push(externalStack);- }- }+ for (const externalStack of externalStacks) {+ if (!combinedStacks.some((stack) => stack.id === externalStack.id)) {+ combinedStacks.push(externalStack);+ }+ }- return {- stacks: combinedStacks,- };- } catch (err) {- console.error("Failed to load stacks:", err);- const errorMessage = err instanceof Error ? err.message : String(err);- return {- stacks: [],- error: "Failed to load Docker Compose stacks: " + errorMessage,- };- }+ return {+ stacks: combinedStacks+ };+ } catch (err) {+ console.error('Failed to load stacks:', err);+ const errorMessage = err instanceof Error ? err.message : String(err);+ return {+ stacks: [],+ error: 'Failed to load Docker Compose stacks: ' + errorMessage+ };+ }}diff --git a/src/routes/stacks/+page.svelte b/src/routes/stacks/+page.svelteindex 9ca1aed24..e28476b96 100644--- a/src/routes/stacks/+page.svelte+++ b/src/routes/stacks/+page.svelte@@ -1,264 +1,225 @@<script lang="ts">- import type { PageData } from "./$types";- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- Plus,- AlertCircle,- Layers,- RefreshCw,- Upload,- FileStack,- } from "@lucide/svelte";- import UniversalTable from "$lib/components/universal-table.svelte";- import { columns } from "./columns";- import * as Alert from "$lib/components/ui/alert/index.js";- import { invalidateAll } from "$app/navigation";- import { enhance } from "$app/forms";- import UniversalModal from "$lib/components/universal-modal.svelte";-- let { data }: { data: PageData } = $props();- const { stacks, error } = data;- let selectedIds = $state([]);-- let isRefreshing = $state(false);- let isRemoving = $state(false);- let deleteDialogOpen = $state(false);- let id = $state(""); // Store the ID of the stack to be deleted-- // Message Dialog state- let dialogOpen = $state(false);- let dialogProps = $state({- type: "info" as const,- title: "",- message: "",- okText: "OK",- cancelText: "Cancel",- showCancel: false,- });-- let modalOpen = $state(false);- let modalProps = $state({- type: "info" as "info" | "success" | "error",- title: "",- message: "",- });-- // Calculate stack stats- const totalStacks = $derived(stacks?.length || 0);- const runningStacks = $derived(- stacks?.filter((s) => s.status === "running").length || 0- );- const partialStacks = $derived(- stacks?.filter((s) => s.status === "partially running").length || 0- );-- function createStack() {- window.location.href = "/stacks/new";- }-- async function importStack() {- dialogOpen = true;- dialogProps = {- type: "info",- title: "Import Stack",- message: "This feature is not yet implemented. Check back soon!",- okText: "Close",- cancelText: "Cancel",- showCancel: false,- };- }-- async function refreshData() {- isRefreshing = true;- await invalidateAll();- setTimeout(() => {- isRefreshing = false;- }, 500);- }+ import type { PageData } from './$types';+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { Plus, AlertCircle, Layers, RefreshCw, Upload, FileStack } from '@lucide/svelte';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { columns } from './columns';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { invalidateAll } from '$app/navigation';+ import { enhance } from '$app/forms';+ import UniversalModal from '$lib/components/universal-modal.svelte';++ let { data }: { data: PageData } = $props();+ const { stacks, error } = data;+ let selectedIds = $state([]);++ let isRefreshing = $state(false);+ let isRemoving = $state(false);+ let deleteDialogOpen = $state(false);+ let id = $state(''); // Store the ID of the stack to be deleted++ // Message Dialog state+ let dialogOpen = $state(false);+ let dialogProps = $state({+ type: 'info' as const,+ title: '',+ message: '',+ okText: 'OK',+ cancelText: 'Cancel',+ showCancel: false+ });++ let modalOpen = $state(false);+ let modalProps = $state({+ type: 'info' as 'info' | 'success' | 'error',+ title: '',+ message: ''+ });++ // Calculate stack stats+ const totalStacks = $derived(stacks?.length || 0);+ const runningStacks = $derived(stacks?.filter((s) => s.status === 'running').length || 0);+ const partialStacks = $derived(stacks?.filter((s) => s.status === 'partially running').length || 0);++ function createStack() {+ window.location.href = '/stacks/new';+ }++ async function importStack() {+ dialogOpen = true;+ dialogProps = {+ type: 'info',+ title: 'Import Stack',+ message: 'This feature is not yet implemented. Check back soon!',+ okText: 'Close',+ cancelText: 'Cancel',+ showCancel: false+ };+ }++ async function refreshData() {+ isRefreshing = true;+ await invalidateAll();+ setTimeout(() => {+ isRefreshing = false;+ }, 500);+ }</script><div class="space-y-6">- <!-- Header with refresh and create buttons -->- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Stacks</h1>- <p class="text-sm text-muted-foreground mt-1">- Manage Docker Compose stacks- </p>- </div>- <div class="flex gap-2">- <Button- variant="outline"- size="icon"- onclick={refreshData}- disabled={isRefreshing}- >- <RefreshCw class={isRefreshing ? "w-4 h-4 animate-spin" : "w-4 h-4"} />- </Button>- </div>- </div>-- {#if error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4" />- <Alert.Title>Error Loading Stacks</Alert.Title>- <Alert.Description>{error}</Alert.Description>- </Alert.Root>- {/if}-- <!-- Stack stats summary -->- <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Total Stacks</p>- <p class="text-2xl font-bold">{totalStacks}</p>- </div>- <div class="bg-primary/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-primary" />- </div>- </Card.Content>- </Card.Root>-- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Running</p>- <p class="text-2xl font-bold">{runningStacks}</p>- </div>- <div class="bg-green-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-green-500" />- </div>- </Card.Content>- </Card.Root>-- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">- Partially Running- </p>- <p class="text-2xl font-bold">{partialStacks}</p>- </div>- <div class="bg-amber-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-amber-500" />- </div>- </Card.Content>- </Card.Root>- </div>-- <!-- Main stacks table -->- <Card.Root class="border shadow-sm">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Stack List</Card.Title>- <Card.Description>Manage Docker Compose stacks</Card.Description>- </div>- <div class="flex items-center gap-2">- <Button variant="secondary" onclick={importStack}>- <Upload class="w-4 h-4" />- Import- </Button>- <Button variant="secondary" onclick={createStack}>- <Plus class="w-4 h-4" />- Create Stack- </Button>- </div>- </div>- </Card.Header>- <Card.Content>- {#if stacks && stacks.length > 0}- <UniversalTable- data={stacks}- {columns}- features={{- selection: false,- }}- display={{- filterPlaceholder: "Search stacks...",- noResultsMessage: "No stacks found",- }}- bind:selectedIds- />- {:else if !error}- <div- class="flex flex-col items-center justify-center py-12 px-6 text-center"- >- <FileStack class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />- <p class="text-lg font-medium">No stacks found</p>- <p class="text-sm text-muted-foreground mt-1 max-w-md">- Create a new stack using the "Create Stack" button above or import- an existing compose file- </p>- </div>- {/if}- </Card.Content>- </Card.Root>-- <form- method="POST"- action={`/stacks/${id}?/remove`}- use:enhance={() => {- isRemoving = true;- deleteDialogOpen = false;- deleteDialogOpen = false;-- return async ({ result }) => {- if (result.type === "success" && result.data) {- const data = result.data as {- success: boolean;- stack?: { name: string };- error?: string;- };- if (data.success) {- modalProps = {- type: "success",- title: "Stack Imported",- message: `Stack '${data.stack?.name}' has been successfully imported.`,- };- } else {- modalProps = {- type: "error",- title: "Import Failed",- message: data.error || "Failed to import stack",- };- }- modalOpen = true;- }-- await invalidateAll();- isRemoving = false;-- if (result.type === "success") {- // Force navigation to the stacks page after successful deletion- window.location.href = "/stacks";- } else {- console.error("Error removing stack:", result);- await invalidateAll();- }- };- }}- >- <!-- Button remains the same -->- </form>-- <UniversalModal- bind:open={dialogOpen}- type={dialogProps.type}- title={dialogProps.title}- message={dialogProps.message}- okText={dialogProps.okText}- cancelText={dialogProps.cancelText}- showCancel={dialogProps.showCancel}- />-- <UniversalModal- bind:open={modalOpen}- type={modalProps.type}- title={modalProps.title}- message={modalProps.message}- okText="OK"- />+ <!-- Header with refresh and create buttons -->+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Stacks</h1>+ <p class="text-sm text-muted-foreground mt-1">Manage Docker Compose stacks</p>+ </div>+ <div class="flex gap-2">+ <Button variant="outline" size="icon" onclick={refreshData} disabled={isRefreshing}>+ <RefreshCw class={isRefreshing ? 'w-4 h-4 animate-spin' : 'w-4 h-4'} />+ </Button>+ </div>+ </div>++ {#if error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4" />+ <Alert.Title>Error Loading Stacks</Alert.Title>+ <Alert.Description>{error}</Alert.Description>+ </Alert.Root>+ {/if}++ <!-- Stack stats summary -->+ <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total Stacks</p>+ <p class="text-2xl font-bold">{totalStacks}</p>+ </div>+ <div class="bg-primary/10 p-2 rounded-full">+ <FileStack class="h-5 w-5 text-primary" />+ </div>+ </Card.Content>+ </Card.Root>++ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Running</p>+ <p class="text-2xl font-bold">{runningStacks}</p>+ </div>+ <div class="bg-green-500/10 p-2 rounded-full">+ <Layers class="h-5 w-5 text-green-500" />+ </div>+ </Card.Content>+ </Card.Root>++ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Partially Running</p>+ <p class="text-2xl font-bold">{partialStacks}</p>+ </div>+ <div class="bg-amber-500/10 p-2 rounded-full">+ <Layers class="h-5 w-5 text-amber-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>++ <!-- Main stacks table -->+ <Card.Root class="border shadow-sm">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Stack List</Card.Title>+ <Card.Description>Manage Docker Compose stacks</Card.Description>+ </div>+ <div class="flex items-center gap-2">+ <Button variant="secondary" onclick={importStack}>+ <Upload class="w-4 h-4" />+ Import+ </Button>+ <Button variant="secondary" onclick={createStack}>+ <Plus class="w-4 h-4" />+ Create Stack+ </Button>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ {#if stacks && stacks.length > 0}+ <UniversalTable+ data={stacks}+ {columns}+ features={{+ selection: false+ }}+ display={{+ filterPlaceholder: 'Search stacks...',+ noResultsMessage: 'No stacks found'+ }}+ bind:selectedIds+ />+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-12 px-6 text-center">+ <FileStack class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <p class="text-lg font-medium">No stacks found</p>+ <p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new stack using the "Create Stack" button above or import an existing compose file</p>+ </div>+ {/if}+ </Card.Content>+ </Card.Root>++ <form+ method="POST"+ action={`/stacks/${id}?/remove`}+ use:enhance={() => {+ isRemoving = true;+ deleteDialogOpen = false;+ deleteDialogOpen = false;++ return async ({ result }) => {+ if (result.type === 'success' && result.data) {+ const data = result.data as {+ success: boolean;+ stack?: { name: string };+ error?: string;+ };+ if (data.success) {+ modalProps = {+ type: 'success',+ title: 'Stack Imported',+ message: `Stack '${data.stack?.name}' has been successfully imported.`+ };+ } else {+ modalProps = {+ type: 'error',+ title: 'Import Failed',+ message: data.error || 'Failed to import stack'+ };+ }+ modalOpen = true;+ }++ await invalidateAll();+ isRemoving = false;++ if (result.type === 'success') {+ // Force navigation to the stacks page after successful deletion+ window.location.href = '/stacks';+ } else {+ console.error('Error removing stack:', result);+ await invalidateAll();+ }+ };+ }}+ >+ <!-- Button remains the same -->+ </form>++ <UniversalModal bind:open={dialogOpen} type={dialogProps.type} title={dialogProps.title} message={dialogProps.message} okText={dialogProps.okText} cancelText={dialogProps.cancelText} showCancel={dialogProps.showCancel} />++ <UniversalModal bind:open={modalOpen} type={modalProps.type} title={modalProps.title} message={modalProps.message} okText="OK" /></div>diff --git a/src/routes/stacks/ImportExternalStack.svelte b/src/routes/stacks/ImportExternalStack.svelteindex c34cbc03b..b32bff5c9 100644--- a/src/routes/stacks/ImportExternalStack.svelte+++ b/src/routes/stacks/ImportExternalStack.svelte@@ -1,41 +1,35 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import { enhance } from "$app/forms";- import { Import, Loader2 } from "@lucide/svelte";- import { invalidateAll } from "$app/navigation";+ import { Button } from '$lib/components/ui/button/index.js';+ import { enhance } from '$app/forms';+ import { Import, Loader2 } from '@lucide/svelte';+ import { invalidateAll } from '$app/navigation';- const { id, name, isExternal } = $props();- let stack = $derived({ id, name, isExternal });+ const { id, name, isExternal } = $props();+ let stack = $derived({ id, name, isExternal });- let importing = $state(false);+ let importing = $state(false);</script>{#if stack.isExternal}- <form- method="POST"- action="/stacks/import"- use:enhance={() => {- importing = true;- return async ({ result }) => {- await invalidateAll();- importing = false;- };- }}- >- <input type="hidden" name="stackId" value={stack.id} />- <Button- size="sm"- variant="outline"- title="Import to Arcane"- disabled={importing}- type="submit"- >- {#if importing}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />- {:else}- <Import class="h-4 w-4 mr-2" />- {/if}- Import- </Button>- </form>+ <form+ method="POST"+ action="/stacks/import"+ use:enhance={() => {+ importing = true;+ return async ({ result }) => {+ await invalidateAll();+ importing = false;+ };+ }}+ >+ <input type="hidden" name="stackId" value={stack.id} />+ <Button size="sm" variant="outline" title="Import to Arcane" disabled={importing} type="submit">+ {#if importing}+ <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ {:else}+ <Import class="h-4 w-4 mr-2" />+ {/if}+ Import+ </Button>+ </form>{/if}diff --git a/src/routes/stacks/StackActions.svelte b/src/routes/stacks/StackActions.svelteindex 4d520fa41..781a2d906 100644--- a/src/routes/stacks/StackActions.svelte+++ b/src/routes/stacks/StackActions.svelte@@ -1,241 +1,186 @@<script lang="ts">- import { enhance } from "$app/forms";- import { invalidateAll, goto } from "$app/navigation";- import { page } from "$app/stores";- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import {- Play,- CircleStop,- Trash2,- Settings,- RefreshCw,- Loader2,- AlertTriangle,- Import,- } from "@lucide/svelte";-- interface Props {- id: string;- status: string;- name?: string;- isExternal?: boolean;- }-- let { id, status, name = id, isExternal = false }: Props = $props();-- const isRunning = status === "running" || status === "partially running";-- // Loading states- let isStarting = $state(false);- let isStopping = $state(false);- let isRestarting = $state(false);- let isRemoving = $state(false);- let isImporting = $state(false);-- // Delete dialog state- let deleteDialogOpen = $state(false);-- // Check if we're on the stack detail page or the stacks list page- let isStackDetailPage = $derived($page.route.id === "/stacks/[stackId]");-- // Handle form submission with proper redirection- const handleDeleteSubmit = () => {- isRemoving = true;- deleteDialogOpen = false;-- return async ({- result,- }: {- result: { type: string; data?: { redirectTo?: string } };- }) => {- if (result.type === "success") {- if (isStackDetailPage && result.data?.redirectTo) {- // Only redirect if we're on the stack detail page- goto(result.data.redirectTo);- } else {- // Otherwise just refresh the data- await invalidateAll();- }- } else {- // Handle errors- console.error("Error removing stack:", result);- // Show error message- }- isRemoving = false;- };- };-- // Handle import functionality- const handleImport = () => {- isImporting = true;- return async ({}) => {- await invalidateAll();- isImporting = false;- };- };+ import { enhance } from '$app/forms';+ import { invalidateAll, goto } from '$app/navigation';+ import { page } from '$app/stores';+ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Play, CircleStop, Trash2, Settings, RefreshCw, Loader2, AlertTriangle, Import } from '@lucide/svelte';++ interface Props {+ id: string;+ status: string;+ name?: string;+ isExternal?: boolean;+ }++ let { id, status, name = id, isExternal = false }: Props = $props();++ const isRunning = status === 'running' || status === 'partially running';++ // Loading states+ let isStarting = $state(false);+ let isStopping = $state(false);+ let isRestarting = $state(false);+ let isRemoving = $state(false);+ let isImporting = $state(false);++ // Delete dialog state+ let deleteDialogOpen = $state(false);++ // Check if we're on the stack detail page or the stacks list page+ let isStackDetailPage = $derived($page.route.id === '/stacks/[stackId]');++ // Handle form submission with proper redirection+ const handleDeleteSubmit = () => {+ isRemoving = true;+ deleteDialogOpen = false;++ return async ({ result }: { result: { type: string; data?: { redirectTo?: string } } }) => {+ if (result.type === 'success') {+ if (isStackDetailPage && result.data?.redirectTo) {+ // Only redirect if we're on the stack detail page+ goto(result.data.redirectTo);+ } else {+ // Otherwise just refresh the data+ await invalidateAll();+ }+ } else {+ // Handle errors+ console.error('Error removing stack:', result);+ // Show error message+ }+ isRemoving = false;+ };+ };++ // Handle import functionality+ const handleImport = () => {+ isImporting = true;+ return async ({}) => {+ await invalidateAll();+ isImporting = false;+ };+ };</script><div class="flex items-center gap-2 justify-end">- {#if isExternal}- <!-- Show import button for external stacks -->- <form method="POST" action="/api/stacks/import" use:enhance={handleImport}>- <input type="hidden" name="stackId" value={id} />- <input type="hidden" name="stackName" value={name} />-- <Button- type="submit"- size="sm"- variant="outline"- title="Import Stack to Arcane"- disabled={isImporting}- class="flex items-center"- >- {#if isImporting}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />- {:else}- <Import class="h-4 w-4 mr-2" />- {/if}- Import- </Button>- </form>- {:else}- <!-- Show regular action buttons for managed stacks -->- {#if isRunning}- <form- method="POST"- action="/stacks/{id}?/stop"- use:enhance={() => {- isStopping = true;- return async ({ result }) => {- await invalidateAll();- isStopping = false;- };- }}- >- <Button- type="submit"- size="icon"- variant="outline"- title="Stop Stack"- disabled={isStopping}- >- {#if isStopping}- <Loader2 class="h-4 w-4 animate-spin" />- {:else}- <CircleStop class="h-4 w-4" />- {/if}- </Button>- </form>- {:else}- <form- method="POST"- action="/stacks/{id}?/start"- use:enhance={() => {- isStarting = true;- return async ({ result }) => {- await invalidateAll();- isStarting = false;- };- }}- >- <Button- type="submit"- size="icon"- variant="outline"- title="Start Stack"- disabled={isStarting}- >- {#if isStarting}- <Loader2 class="h-4 w-4 animate-spin" />- {:else}- <Play class="h-4 w-4" />- {/if}- </Button>- </form>- {/if}-- <form- method="POST"- action="/stacks/{id}?/restart"- use:enhance={() => {- isRestarting = true;- return async ({ result }) => {- await invalidateAll();- isRestarting = false;- };- }}- >- <Button- type="submit"- size="icon"- variant="outline"- disabled={!isRunning || isRestarting}- title="Restart Stack"- >- {#if isRestarting}- <Loader2 class="h-4 w-4 animate-spin" />- {:else}- <RefreshCw class="h-4 w-4" />- {/if}- </Button>- </form>-- <a href="/stacks/{id}">- <Button size="icon" variant="outline" title="Edit Stack">- <Settings class="h-4 w-4" />- </Button>- </a>-- <Button- type="button"- size="icon"- variant="destructive"- title="Remove Stack"- onclick={() => (deleteDialogOpen = true)}- >- <Trash2 class="h-4 w-4" />- </Button>- {/if}-- <!-- Delete confirmation dialog -->- {#if !isExternal}- <Dialog.Root bind:open={deleteDialogOpen}>- <Dialog.Content class="sm:max-w-[425px]">- <Dialog.Header>- <div class="flex items-center gap-2 text-destructive">- <AlertTriangle class="h-5 w-5" />- <Dialog.Title>Delete Stack</Dialog.Title>- </div>- <Dialog.Description>- Are you sure you want to remove stack "{name}"? This action cannot- be undone.- </Dialog.Description>- </Dialog.Header>-- <Dialog.Footer>- <Button- type="button"- variant="outline"- onclick={() => (deleteDialogOpen = false)}- >- Cancel- </Button>-- <form- method="POST"- action="/stacks/{id}?/remove"- use:enhance={handleDeleteSubmit}- >- <Button type="submit" variant="destructive" disabled={isRemoving}>- {#if isRemoving}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />- {/if}- Delete- </Button>- </form>- </Dialog.Footer>- </Dialog.Content>- </Dialog.Root>- {/if}+ {#if isExternal}+ <!-- Show import button for external stacks -->+ <form method="POST" action="/api/stacks/import" use:enhance={handleImport}>+ <input type="hidden" name="stackId" value={id} />+ <input type="hidden" name="stackName" value={name} />++ <Button type="submit" size="sm" variant="outline" title="Import Stack to Arcane" disabled={isImporting} class="flex items-center">+ {#if isImporting}+ <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ {:else}+ <Import class="h-4 w-4 mr-2" />+ {/if}+ Import+ </Button>+ </form>+ {:else}+ <!-- Show regular action buttons for managed stacks -->+ {#if isRunning}+ <form+ method="POST"+ action="/stacks/{id}?/stop"+ use:enhance={() => {+ isStopping = true;+ return async ({ result }) => {+ await invalidateAll();+ isStopping = false;+ };+ }}+ >+ <Button type="submit" size="icon" variant="outline" title="Stop Stack" disabled={isStopping}>+ {#if isStopping}+ <Loader2 class="h-4 w-4 animate-spin" />+ {:else}+ <CircleStop class="h-4 w-4" />+ {/if}+ </Button>+ </form>+ {:else}+ <form+ method="POST"+ action="/stacks/{id}?/start"+ use:enhance={() => {+ isStarting = true;+ return async ({ result }) => {+ await invalidateAll();+ isStarting = false;+ };+ }}+ >+ <Button type="submit" size="icon" variant="outline" title="Start Stack" disabled={isStarting}>+ {#if isStarting}+ <Loader2 class="h-4 w-4 animate-spin" />+ {:else}+ <Play class="h-4 w-4" />+ {/if}+ </Button>+ </form>+ {/if}++ <form+ method="POST"+ action="/stacks/{id}?/restart"+ use:enhance={() => {+ isRestarting = true;+ return async ({ result }) => {+ await invalidateAll();+ isRestarting = false;+ };+ }}+ >+ <Button type="submit" size="icon" variant="outline" disabled={!isRunning || isRestarting} title="Restart Stack">+ {#if isRestarting}+ <Loader2 class="h-4 w-4 animate-spin" />+ {:else}+ <RefreshCw class="h-4 w-4" />+ {/if}+ </Button>+ </form>++ <a href="/stacks/{id}">+ <Button size="icon" variant="outline" title="Edit Stack">+ <Settings class="h-4 w-4" />+ </Button>+ </a>++ <Button type="button" size="icon" variant="destructive" title="Remove Stack" onclick={() => (deleteDialogOpen = true)}>+ <Trash2 class="h-4 w-4" />+ </Button>+ {/if}++ <!-- Delete confirmation dialog -->+ {#if !isExternal}+ <Dialog.Root bind:open={deleteDialogOpen}>+ <Dialog.Content class="sm:max-w-[425px]">+ <Dialog.Header>+ <div class="flex items-center gap-2 text-destructive">+ <AlertTriangle class="h-5 w-5" />+ <Dialog.Title>Delete Stack</Dialog.Title>+ </div>+ <Dialog.Description>+ Are you sure you want to remove stack "{name}"? This action cannot be undone.+ </Dialog.Description>+ </Dialog.Header>++ <Dialog.Footer>+ <Button type="button" variant="outline" onclick={() => (deleteDialogOpen = false)}>Cancel</Button>++ <form method="POST" action="/stacks/{id}?/remove" use:enhance={handleDeleteSubmit}>+ <Button type="submit" variant="destructive" disabled={isRemoving}>+ {#if isRemoving}+ <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ {/if}+ Delete+ </Button>+ </form>+ </Dialog.Footer>+ </Dialog.Content>+ </Dialog.Root>+ {/if}</div>diff --git a/src/routes/stacks/StackDateCell.svelte b/src/routes/stacks/StackDateCell.svelteindex 923049b8c..43a3cb50a 100644--- a/src/routes/stacks/StackDateCell.svelte+++ b/src/routes/stacks/StackDateCell.svelte@@ -1,32 +1,29 @@<script lang="ts">- interface Props {- date: string;- }+ interface Props {+ date: string;+ }- let { date }: Props = $props();+ let { date }: Props = $props();- // Format the date with a nice relative format- function formatDate(date: string): string {- const dateObj = new Date(date);- const now = new Date();- const diff = now.getTime() - dateObj.getTime();- const diffDays = Math.floor(diff / (1000 * 3600 * 24));+ // Format the date with a nice relative format+ function formatDate(date: string): string {+ const dateObj = new Date(date);+ const now = new Date();+ const diff = now.getTime() - dateObj.getTime();+ const diffDays = Math.floor(diff / (1000 * 3600 * 24));- if (diffDays === 0) {- return (- "Today, " +- dateObj.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })- );- } else if (diffDays === 1) {- return "Yesterday";- } else if (diffDays < 7) {- return `${diffDays} days ago`;- } else {- return dateObj.toLocaleDateString();- }- }+ if (diffDays === 0) {+ return 'Today, ' + dateObj.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+ } else if (diffDays === 1) {+ return 'Yesterday';+ } else if (diffDays < 7) {+ return `${diffDays} days ago`;+ } else {+ return dateObj.toLocaleDateString();+ }+ }</script><span title={new Date(date).toLocaleString()}>- {formatDate(date)}+ {formatDate(date)}</span>diff --git a/src/routes/stacks/StackNameCell.svelte b/src/routes/stacks/StackNameCell.svelteindex 5c2c566cc..76fb6fff2 100644--- a/src/routes/stacks/StackNameCell.svelte+++ b/src/routes/stacks/StackNameCell.svelte@@ -1,12 +1,12 @@<script lang="ts">- interface Props {- id: string;- name: string;- }+ interface Props {+ id: string;+ name: string;+ }- let { id, name }: Props = $props();+ let { id, name }: Props = $props();</script><a href="/stacks/{id}" class="font-medium hover:underline">- {name}+ {name}</a>diff --git a/src/routes/stacks/[stackId]/+page.server.ts b/src/routes/stacks/[stackId]/+page.server.tsindex 7a52eadab..de58dd232 100644--- a/src/routes/stacks/[stackId]/+page.server.ts+++ b/src/routes/stacks/[stackId]/+page.server.ts@@ -1,102 +1,95 @@-import { error, redirect } from "@sveltejs/kit";-import {- getStack,- updateStack,- startStack,- stopStack,- restartStack,- removeStack,-} from "$lib/services/compose";+import { error, redirect } from '@sveltejs/kit';+import { getStack, updateStack, startStack, stopStack, restartStack, removeStack } from '$lib/services/compose';/** @type {import('./$types').PageServerLoad} */export async function load({ params }) {- const { stackId } = params;+ const { stackId } = params;- try {- const stack = await getStack(stackId);- return { stack };- } catch (err) {- const errorMessage = err instanceof Error ? err.message : String(err);- throw error(404, `Stack not found: ${errorMessage}`);- }+ try {+ const stack = await getStack(stackId);+ return { stack };+ } catch (err) {+ const errorMessage = err instanceof Error ? err.message : String(err);+ throw error(404, `Stack not found: ${errorMessage}`);+ }}/** @type {import('./$types').Actions} */export const actions = {- update: async ({ params, request }) => {- const { stackId } = params;- const formData = await request.formData();+ update: async ({ params, request }) => {+ const { stackId } = params;+ const formData = await request.formData();- const name = formData.get("name")?.toString() || "";- const composeContent = formData.get("composeContent")?.toString() || "";+ const name = formData.get('name')?.toString() || '';+ const composeContent = formData.get('composeContent')?.toString() || '';- try {- await updateStack(stackId, { name, composeContent });- return {- success: true,- message: "Stack updated successfully",- };- } catch (err) {- console.error("Error updating stack:", err);- return {- success: false,- error: err instanceof Error ? err.message : "Failed to update stack",- };- }- },+ try {+ await updateStack(stackId, { name, composeContent });+ return {+ success: true,+ message: 'Stack updated successfully'+ };+ } catch (err) {+ console.error('Error updating stack:', err);+ return {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to update stack'+ };+ }+ },- start: async ({ params }) => {- try {- await startStack(params.stackId);- return { success: true };- } catch (err) {- console.error("Error starting stack:", err);- return {- success: false,- error: err instanceof Error ? err.message : "Failed to start stack",- };- }- },+ start: async ({ params }) => {+ try {+ await startStack(params.stackId);+ return { success: true };+ } catch (err) {+ console.error('Error starting stack:', err);+ return {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to start stack'+ };+ }+ },- stop: async ({ params }) => {- try {- await stopStack(params.stackId);- return { success: true };- } catch (err) {- console.error("Error stopping stack:", err);- return {- success: false,- error: err instanceof Error ? err.message : "Failed to stop stack",- };- }- },+ stop: async ({ params }) => {+ try {+ await stopStack(params.stackId);+ return { success: true };+ } catch (err) {+ console.error('Error stopping stack:', err);+ return {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to stop stack'+ };+ }+ },- restart: async ({ params }) => {- try {- await restartStack(params.stackId);- return { success: true };- } catch (err) {- console.error("Error restarting stack:", err);- return {- success: false,- error: err instanceof Error ? err.message : "Failed to restart stack",- };- }- },+ restart: async ({ params }) => {+ try {+ await restartStack(params.stackId);+ return { success: true };+ } catch (err) {+ console.error('Error restarting stack:', err);+ return {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to restart stack'+ };+ }+ },- remove: async ({ params }) => {- try {- const success = await removeStack(params.stackId);- if (success) {- return { success: true, redirectTo: "/stacks" };- }- return { success: false, error: "Failed to remove stack" };- } catch (err) {- console.error("Error removing stack:", err);- return {- success: false,- error: err instanceof Error ? err.message : "Failed to remove stack",- };- }- },+ remove: async ({ params }) => {+ try {+ const success = await removeStack(params.stackId);+ if (success) {+ return { success: true, redirectTo: '/stacks' };+ }+ return { success: false, error: 'Failed to remove stack' };+ } catch (err) {+ console.error('Error removing stack:', err);+ return {+ success: false,+ error: err instanceof Error ? err.message : 'Failed to remove stack'+ };+ }+ }};diff --git a/src/routes/stacks/[stackId]/+page.svelte b/src/routes/stacks/[stackId]/+page.svelteindex c7bcf65a2..d7f96e624 100644--- a/src/routes/stacks/[stackId]/+page.svelte+++ b/src/routes/stacks/[stackId]/+page.svelte@@ -1,337 +1,279 @@<script lang="ts">- import type { PageData, ActionData } from "./$types";- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- ArrowLeft,- Loader2,- AlertCircle,- Save,- FileStack,- Layers,- ArrowRight,- } from "@lucide/svelte";- import * as Breadcrumb from "$lib/components/ui/breadcrumb/index.js";- import { enhance } from "$app/forms";- import * as Alert from "$lib/components/ui/alert/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import YamlEditor from "$lib/components/yaml-editor.svelte";- import { onMount } from "svelte";- import ActionButtons from "$lib/components/action-buttons.svelte";- import StatusBadge from "$lib/components/badges/status-badge.svelte";- import { statusVariantMap } from "$lib/types/statuses";- import { capitalizeFirstLetter } from "$lib/utils";+ import type { PageData, ActionData } from './$types';+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { ArrowLeft, Loader2, AlertCircle, Save, FileStack, Layers, ArrowRight } from '@lucide/svelte';+ import * as Breadcrumb from '$lib/components/ui/breadcrumb/index.js';+ import { enhance } from '$app/forms';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import YamlEditor from '$lib/components/yaml-editor.svelte';+ import { onMount } from 'svelte';+ import ActionButtons from '$lib/components/action-buttons.svelte';+ import StatusBadge from '$lib/components/badges/status-badge.svelte';+ import { statusVariantMap } from '$lib/types/statuses';+ import { capitalizeFirstLetter } from '$lib/utils';- let { data, form }: { data: PageData; form: ActionData } = $props();- let { stack } = $derived(data);+ let { data, form }: { data: PageData; form: ActionData } = $props();+ let { stack } = $derived(data);- let depoloying = $state(false);- let stopping = $state(false);- let restarting = $state(false);- let removing = $state(false);- let saving = $state(false);+ let depoloying = $state(false);+ let stopping = $state(false);+ let restarting = $state(false);+ let removing = $state(false);+ let saving = $state(false);- let name = $state("");- let composeContent = $state("");- let editorReady = $state(false);+ let name = $state('');+ let composeContent = $state('');+ let editorReady = $state(false);- $effect(() => {- if (stack) {- name = stack.name || "";- composeContent = stack.composeContent || "";+ $effect(() => {+ if (stack) {+ name = stack.name || '';+ composeContent = stack.composeContent || '';- console.log("Stack data loaded:", {- name,- composeLength: composeContent.length,- });- }- });+ console.log('Stack data loaded:', {+ name,+ composeLength: composeContent.length+ });+ }+ });- $effect(() => {- depoloying = false;- stopping = false;- restarting = false;- removing = false;- saving = false;- });+ $effect(() => {+ depoloying = false;+ stopping = false;+ restarting = false;+ removing = false;+ saving = false;+ });- onMount(() => {- setTimeout(() => {- editorReady = true;- }, 100);- });+ onMount(() => {+ setTimeout(() => {+ editorReady = true;+ }, 100);+ });</script><div class="space-y-6 pb-8">- <!-- Breadcrumb Navigation -->- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <Breadcrumb.Root>- <Breadcrumb.List>- <Breadcrumb.Item>- <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Link href="/stacks">Stacks</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Page>{stack?.name || "Loading..."}</Breadcrumb.Page>- </Breadcrumb.Item>- </Breadcrumb.List>- </Breadcrumb.Root>+ <!-- Breadcrumb Navigation -->+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <Breadcrumb.Root>+ <Breadcrumb.List>+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/stacks">Stacks</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Page>{stack?.name || 'Loading...'}</Breadcrumb.Page>+ </Breadcrumb.Item>+ </Breadcrumb.List>+ </Breadcrumb.Root>- <div class="mt-2 flex items-center gap-2">- <h1 class="text-2xl font-bold tracking-tight">- {stack?.name || "Stack Details"}- </h1>- </div>- </div>+ <div class="mt-2 flex items-center gap-2">+ <h1 class="text-2xl font-bold tracking-tight">+ {stack?.name || 'Stack Details'}+ </h1>+ </div>+ </div>- {#if stack}- <div class="flex gap-2 flex-wrap">- <form- method="POST"- action={stack.status === "running" ||- stack.status === "partially running"- ? "?/stop"- : "?/start"}- use:enhance={() => {- const isStarting =- stack.status !== "running" &&- stack.status !== "partially running";- if (isStarting) depoloying = true;- else stopping = true;- return async ({ update }) => {- await update({ reset: false });- };- }}- >- <input- type="hidden"- name="action"- value={stack.status === "running" ||- stack.status === "partially running"- ? "stop"- : "start"}- />- <ActionButtons- id={stack.id}- type="stack"- state={stack.status}- loading={{- start: depoloying,- stop: stopping,- restart: restarting,- remove: removing,- }}- />- </form>- </div>- {/if}- </div>+ {#if stack}+ <div class="flex gap-2 flex-wrap">+ <form+ method="POST"+ action={stack.status === 'running' || stack.status === 'partially running' ? '?/stop' : '?/start'}+ use:enhance={() => {+ const isStarting = stack.status !== 'running' && stack.status !== 'partially running';+ if (isStarting) depoloying = true;+ else stopping = true;+ return async ({ update }) => {+ await update({ reset: false });+ };+ }}+ >+ <input type="hidden" name="action" value={stack.status === 'running' || stack.status === 'partially running' ? 'stop' : 'start'} />+ <ActionButtons+ id={stack.id}+ type="stack"+ state={stack.status}+ loading={{+ start: depoloying,+ stop: stopping,+ restart: restarting,+ remove: removing+ }}+ />+ </form>+ </div>+ {/if}+ </div>- <!-- Error Alert -->- {#if form?.error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Action Failed</Alert.Title>- <Alert.Description>{form.error}</Alert.Description>- </Alert.Root>- {/if}+ <!-- Error Alert -->+ {#if form?.error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Action Failed</Alert.Title>+ <Alert.Description>{form.error}</Alert.Description>+ </Alert.Root>+ {/if}- {#if stack}- <!-- Stack Details Section -->- <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Services</p>- <p class="text-2xl font-bold">{stack.serviceCount}</p>- </div>- <div class="bg-primary/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-primary" />- </div>- </Card.Content>- </Card.Root>+ {#if stack}+ <!-- Stack Details Section -->+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Services</p>+ <p class="text-2xl font-bold">{stack.serviceCount}</p>+ </div>+ <div class="bg-primary/10 p-2 rounded-full">+ <Layers class="h-5 w-5 text-primary" />+ </div>+ </Card.Content>+ </Card.Root>- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">- Running Services- </p>- <p class="text-2xl font-bold">{stack.runningCount}</p>- </div>- <div class="bg-green-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-green-500" />- </div>- </Card.Content>- </Card.Root>+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Running Services</p>+ <p class="text-2xl font-bold">{stack.runningCount}</p>+ </div>+ <div class="bg-green-500/10 p-2 rounded-full">+ <Layers class="h-5 w-5 text-green-500" />+ </div>+ </Card.Content>+ </Card.Root>- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Created</p>- <p class="text-lg font-medium">- {new Date(stack.createdAt).toLocaleString()}- </p>- </div>- <div class="bg-blue-500/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-blue-500" />- </div>- </Card.Content>- </Card.Root>- </div>+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Created</p>+ <p class="text-lg font-medium">+ {new Date(stack.createdAt).toLocaleString()}+ </p>+ </div>+ <div class="bg-blue-500/10 p-2 rounded-full">+ <FileStack class="h-5 w-5 text-blue-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>- <!-- Stack Editor -->- <form- method="POST"- action="?/update"- class="space-y-6"- use:enhance={() => {- saving = true;- return async ({ update }) => {- saving = false;- await update({ reset: false });- };- }}- >- <Card.Root class="border shadow-sm">- <Card.Header>- <Card.Title>Stack Configuration</Card.Title>- <Card.Description- >Edit stack settings and compose file</Card.Description- >- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div class="grid w-full max-w-sm items-center gap-1.5">- <Label for="name">Stack Name</Label>- <Input- type="text"- id="name"- name="name"- bind:value={name}- required- />- </div>+ <!-- Stack Editor -->+ <form+ method="POST"+ action="?/update"+ class="space-y-6"+ use:enhance={() => {+ saving = true;+ return async ({ update }) => {+ saving = false;+ await update({ reset: false });+ };+ }}+ >+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <Card.Title>Stack Configuration</Card.Title>+ <Card.Description>Edit stack settings and compose file</Card.Description>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="grid w-full max-w-sm items-center gap-1.5">+ <Label for="name">Stack Name</Label>+ <Input type="text" id="name" name="name" bind:value={name} required />+ </div>- <div class="grid w-full items-center gap-1.5">- <Label for="compose-editor">Docker Compose File</Label>- <input- type="hidden"- name="composeContent"- value={composeContent}- />- {#key editorReady || composeContent}- <YamlEditor- value={composeContent}- on:change={(e) => (composeContent = e.detail.value)}- height="400px"- placeholder="Enter your compose.yaml content"- forceDarkTheme={true}- />- {/key}- <p class="text-xs text-muted-foreground">- Edit your <span class="font-bold">compose.yaml</span> file directly.- Syntax errors will be highlighted.- </p>- </div>- </div>- </Card.Content>- <Card.Footer class="flex justify-between">- <Button- variant="outline"- type="button"- onclick={() => window.history.back()}- >- <ArrowLeft class="w-4 h-4 mr-2" />- Back- </Button>- <Button type="submit" variant="default" disabled={saving}>- {#if saving}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- {:else}- <Save class="w-4 h-4 mr-2" />- {/if}- Save Changes- </Button>- </Card.Footer>- </Card.Root>- </form>+ <div class="grid w-full items-center gap-1.5">+ <Label for="compose-editor">Docker Compose File</Label>+ <input type="hidden" name="composeContent" value={composeContent} />+ {#key editorReady || composeContent}+ <YamlEditor value={composeContent} on:change={(e) => (composeContent = e.detail.value)} height="400px" placeholder="Enter your compose.yaml content" forceDarkTheme={true} />+ {/key}+ <p class="text-xs text-muted-foreground">+ Edit your <span class="font-bold">compose.yaml</span> file directly. Syntax errors will be highlighted.+ </p>+ </div>+ </div>+ </Card.Content>+ <Card.Footer class="flex justify-between">+ <Button variant="outline" type="button" onclick={() => window.history.back()}>+ <ArrowLeft class="w-4 h-4 mr-2" />+ Back+ </Button>+ <Button type="submit" variant="default" disabled={saving}>+ {#if saving}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ {:else}+ <Save class="w-4 h-4 mr-2" />+ {/if}+ Save Changes+ </Button>+ </Card.Footer>+ </Card.Root>+ </form>- <!-- Service List -->- <Card.Root class="border shadow-sm">- <Card.Header>- <Card.Title>Services</Card.Title>- <Card.Description>Containers in this stack</Card.Description>- </Card.Header>- <Card.Content>- <div class="space-y-2">- {#if stack.services && stack.services.length > 0}- {#each stack.services as service}- {@const status = service.state?.Status || "unknown"}- {@const variant =- statusVariantMap[status.toLowerCase()] || "gray"}- <a- href={service.id ? `/containers/${service.id}` : undefined}- class={`flex items-center justify-between p-3 border rounded-md ${- service.id- ? "hover:bg-muted/50 transition-colors cursor-pointer"- : "cursor-default"- }`}- >- <div class="flex items-center gap-3">- <div class="bg-muted rounded-md p-1">- <Layers class="h-4 w-4" />- </div>- <div>- <p class="font-medium">{service.name}</p>- <p class="text-xs text-muted-foreground">- {service.id ? service.id.substring(0, 12) : "Not created"}- </p>- </div>- </div>- <div class="flex items-center gap-2">- <StatusBadge {variant} text={capitalizeFirstLetter(status)} />- {#if service.id}- <div class="text-xs text-blue-500 ml-2">- <span class="hidden sm:inline">View details</span>- <ArrowRight class="inline-block ml-1 h-3 w-3" />- </div>- {/if}- </div>- </a>- {/each}- {:else}- <div class="text-center py-6 text-muted-foreground">- <p>No services defined in this stack</p>- </div>- {/if}- </div>- </Card.Content>- </Card.Root>- {:else}- <div- class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card"- >- <div class="rounded-full bg-muted/50 p-4 mb-4">- <AlertCircle class="h-8 w-8 text-muted-foreground" />- </div>- <h2 class="text-lg font-medium mb-2">Stack Not Found</h2>- <p class="text-center text-muted-foreground max-w-md">- Could not load stack data. It may have been removed or the Docker engine- is not accessible.- </p>- <div class="flex gap-3 mt-6">- <Button variant="outline" href="/stacks">- <ArrowLeft class="h-4 w-4 mr-2" />- Back to Stacks- </Button>- </div>- </div>- {/if}+ <!-- Service List -->+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <Card.Title>Services</Card.Title>+ <Card.Description>Containers in this stack</Card.Description>+ </Card.Header>+ <Card.Content>+ <div class="space-y-2">+ {#if stack.services && stack.services.length > 0}+ {#each stack.services as service}+ {@const status = service.state?.Status || 'unknown'}+ {@const variant = statusVariantMap[status.toLowerCase()] || 'gray'}+ <a href={service.id ? `/containers/${service.id}` : undefined} class={`flex items-center justify-between p-3 border rounded-md ${service.id ? 'hover:bg-muted/50 transition-colors cursor-pointer' : 'cursor-default'}`}>+ <div class="flex items-center gap-3">+ <div class="bg-muted rounded-md p-1">+ <Layers class="h-4 w-4" />+ </div>+ <div>+ <p class="font-medium">{service.name}</p>+ <p class="text-xs text-muted-foreground">+ {service.id ? service.id.substring(0, 12) : 'Not created'}+ </p>+ </div>+ </div>+ <div class="flex items-center gap-2">+ <StatusBadge {variant} text={capitalizeFirstLetter(status)} />+ {#if service.id}+ <div class="text-xs text-blue-500 ml-2">+ <span class="hidden sm:inline">View details</span>+ <ArrowRight class="inline-block ml-1 h-3 w-3" />+ </div>+ {/if}+ </div>+ </a>+ {/each}+ {:else}+ <div class="text-center py-6 text-muted-foreground">+ <p>No services defined in this stack</p>+ </div>+ {/if}+ </div>+ </Card.Content>+ </Card.Root>+ {:else}+ <div class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card">+ <div class="rounded-full bg-muted/50 p-4 mb-4">+ <AlertCircle class="h-8 w-8 text-muted-foreground" />+ </div>+ <h2 class="text-lg font-medium mb-2">Stack Not Found</h2>+ <p class="text-center text-muted-foreground max-w-md">Could not load stack data. It may have been removed or the Docker engine is not accessible.</p>+ <div class="flex gap-3 mt-6">+ <Button variant="outline" href="/stacks">+ <ArrowLeft class="h-4 w-4 mr-2" />+ Back to Stacks+ </Button>+ </div>+ </div>+ {/if}</div>diff --git a/src/routes/stacks/columns.ts b/src/routes/stacks/columns.tsindex 1a657338e..f7c206e2f 100644--- a/src/routes/stacks/columns.ts+++ b/src/routes/stacks/columns.ts@@ -1,72 +1,72 @@-import type { Stack } from "$lib/types/stack";-import type { ColumnDef } from "@tanstack/table-core";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import StackActions from "./StackActions.svelte";-import StackNameCell from "./StackNameCell.svelte";-import StackDateCell from "./StackDateCell.svelte";-import StatusBadge from "$lib/components/badges/status-badge.svelte";-import { capitalizeFirstLetter } from "$lib/utils";-import { statusVariantMap } from "$lib/types/statuses";+import type { Stack } from '$lib/types/stack';+import type { ColumnDef } from '@tanstack/table-core';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import StackActions from './StackActions.svelte';+import StackNameCell from './StackNameCell.svelte';+import StackDateCell from './StackDateCell.svelte';+import StatusBadge from '$lib/components/badges/status-badge.svelte';+import { capitalizeFirstLetter } from '$lib/utils';+import { statusVariantMap } from '$lib/types/statuses';export const columns: ColumnDef<Stack>[] = [- {- accessorKey: "name",- header: "Name",- cell: ({ row }) => {- return renderComponent(StackNameCell, {- id: row.original.id,- name: row.original.name,- });- },- },- {- accessorKey: "serviceCount",- header: "Services",- },- {- accessorKey: "status",- header: "Status",- cell: ({ row }) => {- const status = row.getValue("status") as string;- const variant = statusVariantMap[status.toLowerCase()] || "gray";+ {+ accessorKey: 'name',+ header: 'Name',+ cell: ({ row }) => {+ return renderComponent(StackNameCell, {+ id: row.original.id,+ name: row.original.name+ });+ }+ },+ {+ accessorKey: 'serviceCount',+ header: 'Services'+ },+ {+ accessorKey: 'status',+ header: 'Status',+ cell: ({ row }) => {+ const status = row.getValue('status') as string;+ const variant = statusVariantMap[status.toLowerCase()] || 'gray';- return renderComponent(StatusBadge, {- variant: variant,- text: capitalizeFirstLetter(status),- });- },- },- {- accessorKey: "createdAt",- header: "Created",- cell: ({ row }) => {- return renderComponent(StackDateCell, {- date: row.original.createdAt,- });- },- },- {- header: "Source",- accessorKey: "isExternal",- cell: ({ row }) => {- const isExternal = row.getValue("isExternal");- return renderComponent(StatusBadge, {- variant: isExternal ? "amber" : "green",- text: isExternal ? "External" : "Managed",- });- },- },- {- id: "actions",- header: "",- cell: ({ row }) => {- return renderComponent(StackActions, {- id: row.original.id,- status: row.original.status,- name: row.original.name,- isExternal: row.original.isExternal,- });- },- enableSorting: false,- },+ return renderComponent(StatusBadge, {+ variant: variant,+ text: capitalizeFirstLetter(status)+ });+ }+ },+ {+ accessorKey: 'createdAt',+ header: 'Created',+ cell: ({ row }) => {+ return renderComponent(StackDateCell, {+ date: row.original.createdAt+ });+ }+ },+ {+ header: 'Source',+ accessorKey: 'isExternal',+ cell: ({ row }) => {+ const isExternal = row.getValue('isExternal');+ return renderComponent(StatusBadge, {+ variant: isExternal ? 'amber' : 'green',+ text: isExternal ? 'External' : 'Managed'+ });+ }+ },+ {+ id: 'actions',+ header: '',+ cell: ({ row }) => {+ return renderComponent(StackActions, {+ id: row.original.id,+ status: row.original.status,+ name: row.original.name,+ isExternal: row.original.isExternal+ });+ },+ enableSorting: false+ }];diff --git a/src/routes/stacks/new/+page.svelte b/src/routes/stacks/new/+page.svelteindex 3cccf5b8f..39916505e 100644--- a/src/routes/stacks/new/+page.svelte+++ b/src/routes/stacks/new/+page.svelte@@ -1,51 +1,43 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import {- ArrowLeft,- Loader2,- AlertCircle,- Save,- FileStack,- } from "@lucide/svelte";- import * as Breadcrumb from "$lib/components/ui/breadcrumb/index.js";- import * as Alert from "$lib/components/ui/alert/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import { goto, invalidateAll } from "$app/navigation";- import { toast } from "svelte-sonner";-- import { oneDark } from "@codemirror/theme-one-dark";- import { browser } from "$app/environment";-- import YamlEditor from "$lib/components/yaml-editor.svelte";-- let saving = $state(false);- let darkMode = $state(false);- let apiError = $state<string | null>(null);-- function preventDefault(fn: (event: Event) => any) {- return function (this: any, event: Event) {- event.preventDefault();- fn.call(this, event);- };- }-- $effect(() => {- if (browser) {- darkMode =- window.matchMedia("(prefers-color-scheme: dark)").matches ||- document.documentElement.classList.contains("dark");- }- });-- let extensions = $state([oneDark]);-- $effect(() => {- extensions = darkMode ? [oneDark] : [];- });-- const defaultComposeTemplate = `services:+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { ArrowLeft, Loader2, AlertCircle, Save, FileStack } from '@lucide/svelte';+ import * as Breadcrumb from '$lib/components/ui/breadcrumb/index.js';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import { goto, invalidateAll } from '$app/navigation';+ import { toast } from 'svelte-sonner';++ import { oneDark } from '@codemirror/theme-one-dark';+ import { browser } from '$app/environment';++ import YamlEditor from '$lib/components/yaml-editor.svelte';++ let saving = $state(false);+ let darkMode = $state(false);+ let apiError = $state<string | null>(null);++ function preventDefault(fn: (event: Event) => any) {+ return function (this: any, event: Event) {+ event.preventDefault();+ fn.call(this, event);+ };+ }++ $effect(() => {+ if (browser) {+ darkMode = window.matchMedia('(prefers-color-scheme: dark)').matches || document.documentElement.classList.contains('dark');+ }+ });++ let extensions = $state([oneDark]);++ $effect(() => {+ extensions = darkMode ? [oneDark] : [];+ });++ const defaultComposeTemplate = `services:web:image: nginx:alpinecontainer_name: my_web_container@@ -56,138 +48,115 @@- 8080:80`;- let name = $state("");- let composeContent = $state(defaultComposeTemplate);-- async function handleSubmit() {- saving = true;- apiError = null;-- try {- const response = await fetch("/api/stacks/create", {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({ name, composeContent }),- });-- const result = await response.json();-- if (!response.ok) {- throw new Error(- result.message || `HTTP error! status: ${response.status}`- );- }-- toast.success(result.message || `Stack "${result.stack.name}" created.`);- await invalidateAll();- goto(`/stacks/${result.stack.id}`);- } catch (err: any) {- console.error("Failed to create stack:", err);- apiError = err.message || "An unknown error occurred.";- toast.error(`Failed to create stack: ${apiError}`);- } finally {- saving = false;- }- }+ let name = $state('');+ let composeContent = $state(defaultComposeTemplate);++ async function handleSubmit() {+ saving = true;+ apiError = null;++ try {+ const response = await fetch('/api/stacks/create', {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json'+ },+ body: JSON.stringify({ name, composeContent })+ });++ const result = await response.json();++ if (!response.ok) {+ throw new Error(result.message || `HTTP error! status: ${response.status}`);+ }++ toast.success(result.message || `Stack "${result.stack.name}" created.`);+ await invalidateAll();+ goto(`/stacks/${result.stack.id}`);+ } catch (err: any) {+ console.error('Failed to create stack:', err);+ apiError = err.message || 'An unknown error occurred.';+ toast.error(`Failed to create stack: ${apiError}`);+ } finally {+ saving = false;+ }+ }</script><div class="space-y-6 pb-8">- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <Breadcrumb.Root>- <Breadcrumb.List>- <Breadcrumb.Item>- <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Link href="/stacks">Stacks</Breadcrumb.Link>- </Breadcrumb.Item>- <Breadcrumb.Separator />- <Breadcrumb.Item>- <Breadcrumb.Page>New Stack</Breadcrumb.Page>- </Breadcrumb.Item>- </Breadcrumb.List>- </Breadcrumb.Root>-- <h1 class="text-2xl font-bold tracking-tight mt-2">Create New Stack</h1>- </div>- </div>-- {#if apiError}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Failed to Create Stack</Alert.Title>- <Alert.Description>{apiError}</Alert.Description>- </Alert.Root>- {/if}-- <form class="space-y-6" onsubmit={preventDefault(handleSubmit)}>- <Card.Root class="border shadow-sm">- <Card.Header>- <div class="flex items-center gap-3">- <div class="bg-primary/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-primary" />- </div>- <div>- <Card.Title>Stack Configuration</Card.Title>- <Card.Description- >Create a new Docker Compose stack</Card.Description- >- </div>- </div>- </Card.Header>- <Card.Content>- <div class="space-y-4">- <div class="grid w-full max-w-sm items-center gap-1.5">- <Label for="name">Stack Name</Label>- <Input- type="text"- id="name"- name="name"- bind:value={name}- required- placeholder="e.g., my-web-app"- disabled={saving}- />- </div>-- <div class="grid w-full items-center gap-1.5">- <Label for="compose-editor">Docker Compose File</Label>-- <YamlEditor bind:value={composeContent} readOnly={saving} />-- <p class="text-xs text-muted-foreground">- Enter a valid compose.yaml file.- </p>- </div>- </div>- </Card.Content>- <Card.Footer class="flex justify-between">- <Button- variant="outline"- type="button"- onclick={() => window.history.back()}- disabled={saving}- >- <ArrowLeft class="w-4 h-4 mr-2" />- Cancel- </Button>- <Button- type="submit"- variant="default"- disabled={saving || !name || !composeContent}- >- {#if saving}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- {:else}- <Save class="w-4 h-4 mr-2" />- {/if}- Create Stack- </Button>- </Card.Footer>- </Card.Root>- </form>+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <Breadcrumb.Root>+ <Breadcrumb.List>+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/">Dashboard</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Link href="/stacks">Stacks</Breadcrumb.Link>+ </Breadcrumb.Item>+ <Breadcrumb.Separator />+ <Breadcrumb.Item>+ <Breadcrumb.Page>New Stack</Breadcrumb.Page>+ </Breadcrumb.Item>+ </Breadcrumb.List>+ </Breadcrumb.Root>++ <h1 class="text-2xl font-bold tracking-tight mt-2">Create New Stack</h1>+ </div>+ </div>++ {#if apiError}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Failed to Create Stack</Alert.Title>+ <Alert.Description>{apiError}</Alert.Description>+ </Alert.Root>+ {/if}++ <form class="space-y-6" onsubmit={preventDefault(handleSubmit)}>+ <Card.Root class="border shadow-sm">+ <Card.Header>+ <div class="flex items-center gap-3">+ <div class="bg-primary/10 p-2 rounded-full">+ <FileStack class="h-5 w-5 text-primary" />+ </div>+ <div>+ <Card.Title>Stack Configuration</Card.Title>+ <Card.Description>Create a new Docker Compose stack</Card.Description>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ <div class="space-y-4">+ <div class="grid w-full max-w-sm items-center gap-1.5">+ <Label for="name">Stack Name</Label>+ <Input type="text" id="name" name="name" bind:value={name} required placeholder="e.g., my-web-app" disabled={saving} />+ </div>++ <div class="grid w-full items-center gap-1.5">+ <Label for="compose-editor">Docker Compose File</Label>++ <YamlEditor bind:value={composeContent} readOnly={saving} />++ <p class="text-xs text-muted-foreground">Enter a valid compose.yaml file.</p>+ </div>+ </div>+ </Card.Content>+ <Card.Footer class="flex justify-between">+ <Button variant="outline" type="button" onclick={() => window.history.back()} disabled={saving}>+ <ArrowLeft class="w-4 h-4 mr-2" />+ Cancel+ </Button>+ <Button type="submit" variant="default" disabled={saving || !name || !composeContent}>+ {#if saving}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ {:else}+ <Save class="w-4 h-4 mr-2" />+ {/if}+ Create Stack+ </Button>+ </Card.Footer>+ </Card.Root>+ </form></div>diff --git a/src/routes/volumes/+page.server.ts b/src/routes/volumes/+page.server.tsindex 40c6e7ca6..0f6fd78e9 100644--- a/src/routes/volumes/+page.server.ts+++ b/src/routes/volumes/+page.server.ts@@ -1,40 +1,40 @@-import type { PageServerLoad } from "./$types";-import { listVolumes, isVolumeInUse } from "$lib/services/docker-service";-import type { ServiceVolume } from "$lib/services/docker-service";+import type { PageServerLoad } from './$types';+import { listVolumes, isVolumeInUse } from '$lib/services/docker-service';+import type { ServiceVolume } from '$lib/services/docker-service';// Enhanced type with usage infotype EnhancedVolumeInfo = ServiceVolume & {- inUse: boolean;+ inUse: boolean;};type VolumePageData = {- volumes: EnhancedVolumeInfo[];- error?: string;+ volumes: EnhancedVolumeInfo[];+ error?: string;};export const load: PageServerLoad = async (): Promise<VolumePageData> => {- try {- const volumes = await listVolumes();+ try {+ const volumes = await listVolumes();- // Enhance volumes with usage information- const enhancedVolumes = await Promise.all(- volumes.map(async (volume): Promise<EnhancedVolumeInfo> => {- const inUse = await isVolumeInUse(volume.name);- return {- ...volume,- inUse,- };- })- );+ // Enhance volumes with usage information+ const enhancedVolumes = await Promise.all(+ volumes.map(async (volume): Promise<EnhancedVolumeInfo> => {+ const inUse = await isVolumeInUse(volume.name);+ return {+ ...volume,+ inUse+ };+ })+ );- return {- volumes: enhancedVolumes,- };- } catch (err: any) {- console.error("Failed to load volumes:", err);- return {- volumes: [],- error: err.message || "Failed to connect to Docker or list volumes.",- };- }+ return {+ volumes: enhancedVolumes+ };+ } catch (err: any) {+ console.error('Failed to load volumes:', err);+ return {+ volumes: [],+ error: err.message || 'Failed to connect to Docker or list volumes.'+ };+ }};diff --git a/src/routes/volumes/+page.svelte b/src/routes/volumes/+page.svelteindex 54d0dc6c2..b0e481b1f 100644--- a/src/routes/volumes/+page.svelte+++ b/src/routes/volumes/+page.svelte@@ -1,307 +1,256 @@<script lang="ts">- import * as Card from "$lib/components/ui/card/index.js";- import { Button } from "$lib/components/ui/button/index.js";- import { toast } from "svelte-sonner";- import {- Plus,- AlertCircle,- HardDrive,- Database,- Trash2,- Loader2,- ChevronDown,- } from "@lucide/svelte";- import UniversalTable from "$lib/components/universal-table.svelte";- import { columns } from "./columns";- import type { PageData } from "./$types";- import * as Alert from "$lib/components/ui/alert/index.js";- import { invalidateAll } from "$app/navigation";- import CreateVolumeDialog from "./create-volume-dialog.svelte";- import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";+ import * as Card from '$lib/components/ui/card/index.js';+ import { Button } from '$lib/components/ui/button/index.js';+ import { toast } from 'svelte-sonner';+ import { Plus, AlertCircle, HardDrive, Database, Trash2, Loader2, ChevronDown } from '@lucide/svelte';+ import UniversalTable from '$lib/components/universal-table.svelte';+ import { columns } from './columns';+ import type { PageData } from './$types';+ import * as Alert from '$lib/components/ui/alert/index.js';+ import { invalidateAll } from '$app/navigation';+ import CreateVolumeDialog from './create-volume-dialog.svelte';+ import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';- let { data }: { data: PageData } = $props();- let { error } = data;- let volumes = $state(data.volumes);- let selectedIds = $state<string[]>([]);- let isRefreshing = $state(false);- let isCreateDialogOpen = $state(false);- let isCreatingVolume = $state(false);- let isDeletingSelected = $state(false);- let isConfirmDeleteDialogOpen = $state(false);+ let { data }: { data: PageData } = $props();+ let { error } = data;+ let volumes = $state(data.volumes);+ let selectedIds = $state<string[]>([]);+ let isRefreshing = $state(false);+ let isCreateDialogOpen = $state(false);+ let isCreatingVolume = $state(false);+ let isDeletingSelected = $state(false);+ let isConfirmDeleteDialogOpen = $state(false);- const totalVolumes = $derived(volumes?.length || 0);+ const totalVolumes = $derived(volumes?.length || 0);- async function handleCreateVolumeSubmit(event: {- name: string;- driver?: string;- driverOpts?: Record<string, string>;- labels?: Record<string, string>;- }) {- const { name, driver, driverOpts, labels } = event;+ async function handleCreateVolumeSubmit(event: { name: string; driver?: string; driverOpts?: Record<string, string>; labels?: Record<string, string> }) {+ const { name, driver, driverOpts, labels } = event;- isCreatingVolume = true;- try {- const response = await fetch("/api/volumes", {- method: "POST",- headers: {- "Content-Type": "application/json",- },- body: JSON.stringify({- name,- driver,- driverOpts,- labels,- }),- });+ isCreatingVolume = true;+ try {+ const response = await fetch('/api/volumes', {+ method: 'POST',+ headers: {+ 'Content-Type': 'application/json'+ },+ body: JSON.stringify({+ name,+ driver,+ driverOpts,+ labels+ })+ });- const result = await response.json();+ const result = await response.json();- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }+ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }- toast.success(`Volume "${result.volume.Name}" created successfully.`);- isCreateDialogOpen = false;+ toast.success(`Volume "${result.volume.Name}" created successfully.`);+ isCreateDialogOpen = false;- setTimeout(async () => {- await refreshData();- }, 500);- } catch (err: any) {- console.error("Failed to create volume:", err);- toast.error(`Failed to create volume: ${err.message}`);- } finally {- isCreatingVolume = false;- }- }+ setTimeout(async () => {+ await refreshData();+ }, 500);+ } catch (err: any) {+ console.error('Failed to create volume:', err);+ toast.error(`Failed to create volume: ${err.message}`);+ } finally {+ isCreatingVolume = false;+ }+ }- async function refreshData() {- isRefreshing = true;- try {- await invalidateAll();- volumes = data.volumes;- } finally {- setTimeout(() => {- isRefreshing = false;- }, 300);- }- }+ async function refreshData() {+ isRefreshing = true;+ try {+ await invalidateAll();+ volumes = data.volumes;+ } finally {+ setTimeout(() => {+ isRefreshing = false;+ }, 300);+ }+ }- async function handleDeleteSelected() {- isDeletingSelected = true;- const deletePromises = selectedIds.map(async (name) => {- try {- const volume = volumes?.find((v) => v.name === name);- if (volume?.inUse) {- toast.error(`Volume "${name}" is in use and cannot be deleted.`);- return { name, success: false, error: "Volume in use" };- }+ async function handleDeleteSelected() {+ isDeletingSelected = true;+ const deletePromises = selectedIds.map(async (name) => {+ try {+ const volume = volumes?.find((v) => v.name === name);+ if (volume?.inUse) {+ toast.error(`Volume "${name}" is in use and cannot be deleted.`);+ return { name, success: false, error: 'Volume in use' };+ }- const response = await fetch(`/api/volumes/${name}`, {- method: "DELETE",- });- const result = await response.json();- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }- return { name, success: true };- } catch (err: any) {- console.error(`Failed to delete volume "${name}":`, err);- return { name, success: false, error: err.message };- }- });+ const response = await fetch(`/api/volumes/${name}`, {+ method: 'DELETE'+ });+ const result = await response.json();+ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }+ return { name, success: true };+ } catch (err: any) {+ console.error(`Failed to delete volume "${name}":`, err);+ return { name, success: false, error: err.message };+ }+ });- const results = await Promise.all(deletePromises);- const successfulDeletes = results.filter((r) => r.success);- const failedDeletes = results.filter((r) => !r.success);+ const results = await Promise.all(deletePromises);+ const successfulDeletes = results.filter((r) => r.success);+ const failedDeletes = results.filter((r) => !r.success);- if (successfulDeletes.length > 0) {- toast.success(- `Successfully deleted ${successfulDeletes.length} volume(s).`- );- setTimeout(async () => {- await refreshData();- selectedIds = [];- }, 500);- }+ if (successfulDeletes.length > 0) {+ toast.success(`Successfully deleted ${successfulDeletes.length} volume(s).`);+ setTimeout(async () => {+ await refreshData();+ selectedIds = [];+ }, 500);+ }- failedDeletes.forEach((r) => {- if (r.error !== "Volume in use") {- toast.error(`Failed to delete volume "${r.name}": ${r.error}`);- }- });+ failedDeletes.forEach((r) => {+ if (r.error !== 'Volume in use') {+ toast.error(`Failed to delete volume "${r.name}": ${r.error}`);+ }+ });- isDeletingSelected = false;- isConfirmDeleteDialogOpen = false;- }+ isDeletingSelected = false;+ isConfirmDeleteDialogOpen = false;+ }- function openCreateDialog() {- isCreateDialogOpen = true;- }+ function openCreateDialog() {+ isCreateDialogOpen = true;+ }</script><div class="space-y-6">- <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">- <div>- <h1 class="text-3xl font-bold tracking-tight">Volumes</h1>- <p class="text-sm text-muted-foreground mt-1">- Manage persistent data storage for containers- </p>- </div>- <div class="flex gap-2">- <!-- put buttons here -->- </div>- </div>+ <div class="flex flex-col sm:flex-row justify-between sm:items-center gap-4">+ <div>+ <h1 class="text-3xl font-bold tracking-tight">Volumes</h1>+ <p class="text-sm text-muted-foreground mt-1">Manage persistent data storage for containers</p>+ </div>+ <div class="flex gap-2">+ <!-- put buttons here -->+ </div>+ </div>- {#if error}- <Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />- <Alert.Title>Error Loading Volumes</Alert.Title>- <Alert.Description>{error}</Alert.Description>- </Alert.Root>- {/if}+ {#if error}+ <Alert.Root variant="destructive">+ <AlertCircle class="h-4 w-4 mr-2" />+ <Alert.Title>Error Loading Volumes</Alert.Title>+ <Alert.Description>{error}</Alert.Description>+ </Alert.Root>+ {/if}- <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Total Volumes</p>- <p class="text-2xl font-bold">{totalVolumes}</p>- </div>- <div class="bg-amber-500/10 p-2 rounded-full">- <Database class="h-5 w-5 text-amber-500" />- </div>- </Card.Content>- </Card.Root>+ <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Total Volumes</p>+ <p class="text-2xl font-bold">{totalVolumes}</p>+ </div>+ <div class="bg-amber-500/10 p-2 rounded-full">+ <Database class="h-5 w-5 text-amber-500" />+ </div>+ </Card.Content>+ </Card.Root>- <Card.Root>- <Card.Content class="p-4 flex items-center justify-between">- <div>- <p class="text-sm font-medium text-muted-foreground">Driver</p>- <p class="text-2xl font-bold">local</p>- </div>- <div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />- </div>- </Card.Content>- </Card.Root>- </div>+ <Card.Root>+ <Card.Content class="p-4 flex items-center justify-between">+ <div>+ <p class="text-sm font-medium text-muted-foreground">Driver</p>+ <p class="text-2xl font-bold">local</p>+ </div>+ <div class="bg-blue-500/10 p-2 rounded-full">+ <HardDrive class="h-5 w-5 text-blue-500" />+ </div>+ </Card.Content>+ </Card.Root>+ </div>- <Card.Root class="border shadow-sm">- <Card.Header class="px-6">- <div class="flex items-center justify-between">- <div>- <Card.Title>Volume List</Card.Title>- <Card.Description>Manage persistent data storage</Card.Description>- </div>- <div class="flex items-center gap-2">- {#if selectedIds.length > 0}- <DropdownMenu.Root>- <DropdownMenu.Trigger>- {#snippet child({ props })}- <Button- {...props}- variant="outline"- disabled={isDeletingSelected}- aria-label={`Group actions for ${selectedIds.length} selected volume(s)`}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 animate-spin" />- Processing...- {:else}- Actions ({selectedIds.length})- <ChevronDown class="w-4 h-4" />- {/if}- </Button>- {/snippet}- </DropdownMenu.Trigger>- <DropdownMenu.Content>- <DropdownMenu.Item- onclick={() => (isConfirmDeleteDialogOpen = true)}- class="text-red-500 focus:!text-red-700"- disabled={isDeletingSelected}- >- <Trash2 class="w-4 h-4" />- Delete Selected- </DropdownMenu.Item>- </DropdownMenu.Content>- </DropdownMenu.Root>- {/if}- <Button variant="secondary" onclick={openCreateDialog}>- <Plus class="w-4 h-4" />- Create Volume- </Button>- </div>- </div>- </Card.Header>- <Card.Content>- {#if volumes && volumes.length > 0}- <UniversalTable- data={volumes}- {columns}- idKey="name"- display={{- filterPlaceholder: "Search volumes...",- noResultsMessage: "No volumes found",- }}- bind:selectedIds- />- {:else if !error}- <div- class="flex flex-col items-center justify-center py-12 px-6 text-center"- >- <Database class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />- <p class="text-lg font-medium">No volumes found</p>- <p class="text-sm text-muted-foreground mt-1 max-w-md">- Create a new volume using the "Create Volume" button above or use- the Docker CLI- </p>- </div>- {/if}- </Card.Content>- </Card.Root>+ <Card.Root class="border shadow-sm">+ <Card.Header class="px-6">+ <div class="flex items-center justify-between">+ <div>+ <Card.Title>Volume List</Card.Title>+ <Card.Description>Manage persistent data storage</Card.Description>+ </div>+ <div class="flex items-center gap-2">+ {#if selectedIds.length > 0}+ <DropdownMenu.Root>+ <DropdownMenu.Trigger>+ {#snippet child({ props })}+ <Button {...props} variant="outline" disabled={isDeletingSelected} aria-label={`Group actions for ${selectedIds.length} selected volume(s)`}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 animate-spin" />+ Processing...+ {:else}+ Actions ({selectedIds.length})+ <ChevronDown class="w-4 h-4" />+ {/if}+ </Button>+ {/snippet}+ </DropdownMenu.Trigger>+ <DropdownMenu.Content>+ <DropdownMenu.Item onclick={() => (isConfirmDeleteDialogOpen = true)} class="text-red-500 focus:!text-red-700" disabled={isDeletingSelected}>+ <Trash2 class="w-4 h-4" />+ Delete Selected+ </DropdownMenu.Item>+ </DropdownMenu.Content>+ </DropdownMenu.Root>+ {/if}+ <Button variant="secondary" onclick={openCreateDialog}>+ <Plus class="w-4 h-4" />+ Create Volume+ </Button>+ </div>+ </div>+ </Card.Header>+ <Card.Content>+ {#if volumes && volumes.length > 0}+ <UniversalTable+ data={volumes}+ {columns}+ idKey="name"+ display={{+ filterPlaceholder: 'Search volumes...',+ noResultsMessage: 'No volumes found'+ }}+ bind:selectedIds+ />+ {:else if !error}+ <div class="flex flex-col items-center justify-center py-12 px-6 text-center">+ <Database class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <p class="text-lg font-medium">No volumes found</p>+ <p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new volume using the "Create Volume" button above or use the Docker CLI</p>+ </div>+ {/if}+ </Card.Content>+ </Card.Root>- <CreateVolumeDialog- bind:open={isCreateDialogOpen}- isCreating={isCreatingVolume}- onSubmit={handleCreateVolumeSubmit}- />+ <CreateVolumeDialog bind:open={isCreateDialogOpen} isCreating={isCreatingVolume} onSubmit={handleCreateVolumeSubmit} />- <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Delete Selected Volumes</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete {selectedIds.length} selected volume(s)?- This action cannot be undone. Volumes currently in use by containers will- not be deleted.- </Dialog.Description>- </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmDeleteDialogOpen = false)}- disabled={isDeletingSelected}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handleDeleteSelected}- disabled={isDeletingSelected}- >- {#if isDeletingSelected}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- Deleting...- {:else}- Delete {selectedIds.length} Volume{#if selectedIds.length > 1}s{/if}- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>+ <Dialog.Root bind:open={isConfirmDeleteDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Delete Selected Volumes</Dialog.Title>+ <Dialog.Description>+ Are you sure you want to delete {selectedIds.length} selected volume(s)? This action cannot be undone. Volumes currently in use by containers will not be deleted.+ </Dialog.Description>+ </Dialog.Header>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmDeleteDialogOpen = false)} disabled={isDeletingSelected}>Cancel</Button>+ <Button variant="destructive" onclick={handleDeleteSelected} disabled={isDeletingSelected}>+ {#if isDeletingSelected}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ Deleting...+ {:else}+ Delete {selectedIds.length} Volume{#if selectedIds.length > 1}s{/if}+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root></div>diff --git a/src/routes/volumes/MountpointCell.svelte b/src/routes/volumes/MountpointCell.svelteindex e86761cac..1bd2e5450 100644--- a/src/routes/volumes/MountpointCell.svelte+++ b/src/routes/volumes/MountpointCell.svelte@@ -1,18 +1,14 @@<script lang="ts">- interface Props {- mountpoint: string;- }+ interface Props {+ mountpoint: string;+ }- let { mountpoint }: Props = $props();+ let { mountpoint }: Props = $props();- const MAX_LENGTH = 50;- let displayValue = $derived(- mountpoint.length > MAX_LENGTH- ? mountpoint.substring(0, MAX_LENGTH - 3) + "..."- : mountpoint- );+ const MAX_LENGTH = 50;+ let displayValue = $derived(mountpoint.length > MAX_LENGTH ? mountpoint.substring(0, MAX_LENGTH - 3) + '...' : mountpoint);</script><span class="font-mono text-xs" title={mountpoint}>- {displayValue}+ {displayValue}</span>diff --git a/src/routes/volumes/VolumeActions.svelte b/src/routes/volumes/VolumeActions.svelteindex 98cf095d6..065f6cd32 100644--- a/src/routes/volumes/VolumeActions.svelte+++ b/src/routes/volumes/VolumeActions.svelte@@ -1,88 +1,70 @@<script lang="ts">- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Trash2, Loader2 } from "@lucide/svelte";- import { toast } from "svelte-sonner";+ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Trash2, Loader2 } from '@lucide/svelte';+ import { toast } from 'svelte-sonner';- const { name, inUse = true } = $props<{ name: string; inUse: boolean }>();+ const { name, inUse = true } = $props<{ name: string; inUse: boolean }>();- let isConfirmDialogOpen = $state(false);- let isDeleting = $state(false);+ let isConfirmDialogOpen = $state(false);+ let isDeleting = $state(false);- async function handleDelete() {- if (inUse) {- toast.error("Cannot delete volume that is in use by containers");- return;- }+ async function handleDelete() {+ if (inUse) {+ toast.error('Cannot delete volume that is in use by containers');+ return;+ }- isDeleting = true;- try {- const response = await fetch(`/api/volumes/${name}`, {- method: "DELETE",- });+ isDeleting = true;+ try {+ const response = await fetch(`/api/volumes/${name}`, {+ method: 'DELETE'+ });- const result = await response.json();+ const result = await response.json();- if (!response.ok) {- throw new Error(- result.error || `HTTP error! status: ${response.status}`- );- }+ if (!response.ok) {+ throw new Error(result.error || `HTTP error! status: ${response.status}`);+ }- toast.success(`Volume "${name}" deleted successfully.`);- isConfirmDialogOpen = false;+ toast.success(`Volume "${name}" deleted successfully.`);+ isConfirmDialogOpen = false;- window.location.href = `${window.location.pathname}?t=${Date.now()}`;- } catch (err: any) {- console.error(`Failed to delete volume "${name}":`, err);- toast.error(`Failed to delete volume: ${err.message}`);- } finally {- isDeleting = false;- }- }+ window.location.href = `${window.location.pathname}?t=${Date.now()}`;+ } catch (err: any) {+ console.error(`Failed to delete volume "${name}":`, err);+ toast.error(`Failed to delete volume: ${err.message}`);+ } finally {+ isDeleting = false;+ }+ }</script><div class="flex gap-2">- <Button- variant="destructive"- size="sm"- title="Delete Volume"- onclick={() => (isConfirmDialogOpen = true)}- >- <Trash2 class="w-4 h-4" />- </Button>+ <Button variant="destructive" size="sm" title="Delete Volume" onclick={() => (isConfirmDialogOpen = true)}>+ <Trash2 class="w-4 h-4" />+ </Button>- <Dialog.Root bind:open={isConfirmDialogOpen}>- <Dialog.Content>- <Dialog.Header>- <Dialog.Title>Delete Volume</Dialog.Title>- <Dialog.Description>- Are you sure you want to delete volume "{name}"? This action cannot be- undone.- </Dialog.Description>- </Dialog.Header>+ <Dialog.Root bind:open={isConfirmDialogOpen}>+ <Dialog.Content>+ <Dialog.Header>+ <Dialog.Title>Delete Volume</Dialog.Title>+ <Dialog.Description>+ Are you sure you want to delete volume "{name}"? This action cannot be undone.+ </Dialog.Description>+ </Dialog.Header>- <div class="flex justify-end gap-3 pt-6">- <Button- variant="outline"- onclick={() => (isConfirmDialogOpen = false)}- disabled={isDeleting}- >- Cancel- </Button>- <Button- variant="destructive"- onclick={handleDelete}- disabled={isDeleting}- >- {#if isDeleting}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />- Deleting...- {:else}- Delete- {/if}- </Button>- </div>- </Dialog.Content>- </Dialog.Root>+ <div class="flex justify-end gap-3 pt-6">+ <Button variant="outline" onclick={() => (isConfirmDialogOpen = false)} disabled={isDeleting}>Cancel</Button>+ <Button variant="destructive" onclick={handleDelete} disabled={isDeleting}>+ {#if isDeleting}+ <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ Deleting...+ {:else}+ Delete+ {/if}+ </Button>+ </div>+ </Dialog.Content>+ </Dialog.Root></div>diff --git a/src/routes/volumes/columns.ts b/src/routes/volumes/columns.tsindex 8cb883491..18b0f9af3 100644--- a/src/routes/volumes/columns.ts+++ b/src/routes/volumes/columns.ts@@ -1,52 +1,52 @@-import type { ColumnDef } from "@tanstack/table-core";-import { renderComponent } from "$lib/components/ui/data-table/index.js";-import VolumeActions from "./VolumeActions.svelte";-import MountpointCell from "./MountpointCell.svelte";-import type { ServiceVolume } from "$lib/services/docker-service";-import UnusedTextBadge from "$lib/components/badges/unused-text-badge.svelte";+import type { ColumnDef } from '@tanstack/table-core';+import { renderComponent } from '$lib/components/ui/data-table/index.js';+import VolumeActions from './VolumeActions.svelte';+import MountpointCell from './MountpointCell.svelte';+import type { ServiceVolume } from '$lib/services/docker-service';+import UnusedTextBadge from '$lib/components/badges/unused-text-badge.svelte';// Update the type to include the inUse propertyexport type VolumeInfo = ServiceVolume & { inUse?: boolean };export const columns: ColumnDef<VolumeInfo>[] = [- {- accessorKey: "name",- header: "Name",- cell: ({ row }) => {- const inUse = row.original.inUse;+ {+ accessorKey: 'name',+ header: 'Name',+ cell: ({ row }) => {+ const inUse = row.original.inUse;- return renderComponent(UnusedTextBadge, {- name: row.original.name,- inUse: inUse,- });- },- },- {- accessorKey: "driver",- header: "Driver",- },- {- accessorKey: "scope",- header: "Scope",- },- {- accessorKey: "mountpoint",- header: "Mountpoint",- cell: ({ row }) => {- return renderComponent(MountpointCell, {- mountpoint: row.original.mountpoint,- });- },- },- {- id: "actions",- header: "",- cell: ({ row }) => {- return renderComponent(VolumeActions, {- name: row.original.name,- inUse: !!row.original.inUse,- });- },- enableSorting: false,- },+ return renderComponent(UnusedTextBadge, {+ name: row.original.name,+ inUse: inUse+ });+ }+ },+ {+ accessorKey: 'driver',+ header: 'Driver'+ },+ {+ accessorKey: 'scope',+ header: 'Scope'+ },+ {+ accessorKey: 'mountpoint',+ header: 'Mountpoint',+ cell: ({ row }) => {+ return renderComponent(MountpointCell, {+ mountpoint: row.original.mountpoint+ });+ }+ },+ {+ id: 'actions',+ header: '',+ cell: ({ row }) => {+ return renderComponent(VolumeActions, {+ name: row.original.name,+ inUse: !!row.original.inUse+ });+ },+ enableSorting: false+ }];diff --git a/src/routes/volumes/create-volume-dialog.svelte b/src/routes/volumes/create-volume-dialog.svelteindex 6edfd4ace..b17446545 100644--- a/src/routes/volumes/create-volume-dialog.svelte+++ b/src/routes/volumes/create-volume-dialog.svelte@@ -1,186 +1,145 @@<script lang="ts">- import { preventDefault } from "svelte/legacy";-- import { Button } from "$lib/components/ui/button/index.js";- import * as Dialog from "$lib/components/ui/dialog/index.js";- import { Input } from "$lib/components/ui/input/index.js";- import { Label } from "$lib/components/ui/label/index.js";- import { Loader2 } from "@lucide/svelte";- import { Textarea } from "$lib/components/ui/textarea/index.js";- import * as Accordion from "$lib/components/ui/accordion/index.js";- import * as Select from "$lib/components/ui/select/index.js";-- // Functions for events- export function onClose() {- open = false;- }-- interface Props {- // Simple boolean prop for open state- open?: boolean;- isCreating?: boolean;- onSubmit?: any;- }-- let {- open = $bindable(false),- isCreating = false,- onSubmit = (data: {- name: string;- driver?: string;- driverOpts?: Record<string, string>;- labels?: Record<string, string>;- }) => {},- }: Props = $props();-- // Internal state- let volumeName = $state("");- let driver = $state("local");- let showAdvanced = $state(false);-- let driverOptsText = $state("");- let labelsText = $state("");-- // Available volume drivers- const drivers = [- { label: "Local", value: "local" },- { label: "NFS", value: "nfs" },- { label: "AWS EBS", value: "awsElasticBlockStore" },- { label: "Azure Disk", value: "azure_disk" },- { label: "GCE Persistent Disk", value: "gcePersistentDisk" },- ];-- function parseKeyValuePairs(text: string): Record<string, string> {- if (!text.trim()) return {};-- const result: Record<string, string> = {};- const lines = text.split("\n");-- for (const line of lines) {- const trimmed = line.trim();- if (!trimmed || !trimmed.includes("=")) continue;-- const [key, ...valueParts] = trimmed.split("=");- const value = valueParts.join("="); // Handle values that might contain =-- if (key.trim()) {- result[key.trim()] = value.trim();- }- }-- return result;- }-- function handleSubmit() {- if (!volumeName.trim()) return;-- const driverOpts = parseKeyValuePairs(driverOptsText);- const labels = parseKeyValuePairs(labelsText);-- onSubmit({- name: volumeName.trim(),- driver,- driverOpts: Object.keys(driverOpts).length ? driverOpts : undefined,- labels: Object.keys(labels).length ? labels : undefined,- });- }+ import { preventDefault } from 'svelte/legacy';++ import { Button } from '$lib/components/ui/button/index.js';+ import * as Dialog from '$lib/components/ui/dialog/index.js';+ import { Input } from '$lib/components/ui/input/index.js';+ import { Label } from '$lib/components/ui/label/index.js';+ import { Loader2 } from '@lucide/svelte';+ import { Textarea } from '$lib/components/ui/textarea/index.js';+ import * as Accordion from '$lib/components/ui/accordion/index.js';+ import * as Select from '$lib/components/ui/select/index.js';++ // Functions for events+ export function onClose() {+ open = false;+ }++ interface Props {+ // Simple boolean prop for open state+ open?: boolean;+ isCreating?: boolean;+ onSubmit?: any;+ }++ let { open = $bindable(false), isCreating = false, onSubmit = (data: { name: string; driver?: string; driverOpts?: Record<string, string>; labels?: Record<string, string> }) => {} }: Props = $props();++ // Internal state+ let volumeName = $state('');+ let driver = $state('local');+ let showAdvanced = $state(false);++ let driverOptsText = $state('');+ let labelsText = $state('');++ // Available volume drivers+ const drivers = [+ { label: 'Local', value: 'local' },+ { label: 'NFS', value: 'nfs' },+ { label: 'AWS EBS', value: 'awsElasticBlockStore' },+ { label: 'Azure Disk', value: 'azure_disk' },+ { label: 'GCE Persistent Disk', value: 'gcePersistentDisk' }+ ];++ function parseKeyValuePairs(text: string): Record<string, string> {+ if (!text.trim()) return {};++ const result: Record<string, string> = {};+ const lines = text.split('\n');++ for (const line of lines) {+ const trimmed = line.trim();+ if (!trimmed || !trimmed.includes('=')) continue;++ const [key, ...valueParts] = trimmed.split('=');+ const value = valueParts.join('='); // Handle values that might contain =++ if (key.trim()) {+ result[key.trim()] = value.trim();+ }+ }++ return result;+ }++ function handleSubmit() {+ if (!volumeName.trim()) return;++ const driverOpts = parseKeyValuePairs(driverOptsText);+ const labels = parseKeyValuePairs(labelsText);++ onSubmit({+ name: volumeName.trim(),+ driver,+ driverOpts: Object.keys(driverOpts).length ? driverOpts : undefined,+ labels: Object.keys(labels).length ? labels : undefined+ });+ }</script><Dialog.Root bind:open>- <Dialog.Content class="sm:max-w-[500px]">- <Dialog.Header>- <Dialog.Title>Create New Volume</Dialog.Title>- <Dialog.Description>- Enter the details for the new Docker volume.- </Dialog.Description>- </Dialog.Header>-- <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">- <!-- Basic volume settings -->- <div class="grid grid-cols-4 items-center gap-4">- <Label for="volume-name" class="text-right">Name</Label>- <Input- id="volume-name"- bind:value={volumeName}- class="col-span-3"- placeholder="e.g., my-app-data"- required- disabled={isCreating}- />- </div>-- <div class="grid grid-cols-4 items-center gap-4">- <Label for="volume-driver" class="text-right">Driver</Label>- <div class="col-span-3">- <Select.Root type="single" bind:value={driver} disabled={isCreating}>- <Select.Trigger class="w-full">- <span- >{drivers.find((d) => d.value === driver)?.label ||- "Select a driver"}</span- >- </Select.Trigger>- <Select.Content>- {#each drivers as driverOption}- <Select.Item value={driverOption.value}>- {driverOption.label}- </Select.Item>- {/each}- </Select.Content>- </Select.Root>- </div>- </div>-- <!-- Advanced settings -->- <Accordion.Root type="single">- <Accordion.Item value="advanced">- <Accordion.Trigger>Advanced Settings</Accordion.Trigger>- <Accordion.Content>- <div class="grid gap-4 pt-2">- <div>- <Label for="driver-opts">Driver Options</Label>- <Textarea- id="driver-opts"- bind:value={driverOptsText}- placeholder="key=value key2=value2"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground mt-1">- Enter driver-specific options as key=value pairs, one per line- </p>- </div>- <div>- <Label for="labels">Labels</Label>- <Textarea- id="labels"- bind:value={labelsText}- placeholder="com.example.description=Production data com.example.department=Finance"- disabled={isCreating}- />- <p class="text-xs text-muted-foreground mt-1">- Enter metadata labels as key=value pairs, one per line- </p>- </div>- </div>- </Accordion.Content>- </Accordion.Item>- </Accordion.Root>- </form>-- <Dialog.Footer>- <Button variant="outline" onclick={onClose} disabled={isCreating}>- Cancel- </Button>- <Button- type="submit"- onclick={handleSubmit}- disabled={isCreating || !volumeName.trim()}- >- {#if isCreating}- <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...- {:else}- Create Volume- {/if}- </Button>- </Dialog.Footer>- </Dialog.Content>+ <Dialog.Content class="sm:max-w-[500px]">+ <Dialog.Header>+ <Dialog.Title>Create New Volume</Dialog.Title>+ <Dialog.Description>Enter the details for the new Docker volume.</Dialog.Description>+ </Dialog.Header>++ <form onsubmit={preventDefault(handleSubmit)} class="grid gap-4 py-4">+ <!-- Basic volume settings -->+ <div class="grid grid-cols-4 items-center gap-4">+ <Label for="volume-name" class="text-right">Name</Label>+ <Input id="volume-name" bind:value={volumeName} class="col-span-3" placeholder="e.g., my-app-data" required disabled={isCreating} />+ </div>++ <div class="grid grid-cols-4 items-center gap-4">+ <Label for="volume-driver" class="text-right">Driver</Label>+ <div class="col-span-3">+ <Select.Root type="single" bind:value={driver} disabled={isCreating}>+ <Select.Trigger class="w-full">+ <span>{drivers.find((d) => d.value === driver)?.label || 'Select a driver'}</span>+ </Select.Trigger>+ <Select.Content>+ {#each drivers as driverOption}+ <Select.Item value={driverOption.value}>+ {driverOption.label}+ </Select.Item>+ {/each}+ </Select.Content>+ </Select.Root>+ </div>+ </div>++ <!-- Advanced settings -->+ <Accordion.Root type="single">+ <Accordion.Item value="advanced">+ <Accordion.Trigger>Advanced Settings</Accordion.Trigger>+ <Accordion.Content>+ <div class="grid gap-4 pt-2">+ <div>+ <Label for="driver-opts">Driver Options</Label>+ <Textarea id="driver-opts" bind:value={driverOptsText} placeholder="key=value key2=value2" disabled={isCreating} />+ <p class="text-xs text-muted-foreground mt-1">Enter driver-specific options as key=value pairs, one per line</p>+ </div>+ <div>+ <Label for="labels">Labels</Label>+ <Textarea id="labels" bind:value={labelsText} placeholder="com.example.description=Production data com.example.department=Finance" disabled={isCreating} />+ <p class="text-xs text-muted-foreground mt-1">Enter metadata labels as key=value pairs, one per line</p>+ </div>+ </div>+ </Accordion.Content>+ </Accordion.Item>+ </Accordion.Root>+ </form>++ <Dialog.Footer>+ <Button variant="outline" onclick={onClose} disabled={isCreating}>Cancel</Button>+ <Button type="submit" onclick={handleSubmit} disabled={isCreating || !volumeName.trim()}>+ {#if isCreating}+ <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...+ {:else}+ Create Volume+ {/if}+ </Button>+ </Dialog.Footer>+ </Dialog.Content></Dialog.Root>diff --git a/svelte.config.js b/svelte.config.jsindex 45e7ddec8..28d2d2195 100644--- a/svelte.config.js+++ b/svelte.config.js@@ -1,22 +1,22 @@-import adapter from "@sveltejs/adapter-node";-import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";-import packageJson from './package.json' with { type: "json" };+import adapter from '@sveltejs/adapter-node';+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';+import packageJson from './package.json' with { type: 'json' };const config = {- preprocess: vitePreprocess(),- kit: {- adapter: adapter({- out: "build",- precompress: false,- polyfill: true,- }),- csrf: {- checkOrigin: process.env.NODE_ENV === "production",- },- version: {+ preprocess: vitePreprocess(),+ kit: {+ adapter: adapter({+ out: 'build',+ precompress: false,+ polyfill: true+ }),+ csrf: {+ checkOrigin: process.env.NODE_ENV === 'production'+ },+ version: {name: packageJson.version}- },+ }};export default config;diff --git a/tailwind.config.ts b/tailwind.config.tsindex 4a12d0adc..efeb6c73b 100644--- a/tailwind.config.ts+++ b/tailwind.config.ts@@ -1,94 +1,94 @@-import { fontFamily } from "tailwindcss/defaultTheme";-import type { Config } from "tailwindcss";+import { fontFamily } from 'tailwindcss/defaultTheme';+import type { Config } from 'tailwindcss';const config: Config = {- darkMode: ["class"],- content: ["./src/**/*.{html,js,svelte,ts}"],- safelist: ["dark"],- theme: {- container: {- center: true,- padding: "2rem",- screens: {- "2xl": "1400px",- },- },- extend: {- colors: {- border: "hsl(var(--border) / <alpha-value>)",- input: "hsl(var(--input) / <alpha-value>)",- ring: "hsl(var(--ring) / <alpha-value>)",- background: "hsl(var(--background) / <alpha-value>)",- foreground: "hsl(var(--foreground) / <alpha-value>)",- primary: {- DEFAULT: "hsl(var(--primary) / <alpha-value>)",- foreground: "hsl(var(--primary-foreground) / <alpha-value>)",- },- secondary: {- DEFAULT: "hsl(var(--secondary) / <alpha-value>)",- foreground: "hsl(var(--secondary-foreground) / <alpha-value>)",- },- destructive: {- DEFAULT: "hsl(var(--destructive) / <alpha-value>)",- foreground: "hsl(var(--destructive-foreground) / <alpha-value>)",- },- muted: {- DEFAULT: "hsl(var(--muted) / <alpha-value>)",- foreground: "hsl(var(--muted-foreground) / <alpha-value>)",- },- accent: {- DEFAULT: "hsl(var(--accent) / <alpha-value>)",- foreground: "hsl(var(--accent-foreground) / <alpha-value>)",- },- popover: {- DEFAULT: "hsl(var(--popover) / <alpha-value>)",- foreground: "hsl(var(--popover-foreground) / <alpha-value>)",- },- card: {- DEFAULT: "hsl(var(--card) / <alpha-value>)",- foreground: "hsl(var(--card-foreground) / <alpha-value>)",- },- sidebar: {- DEFAULT: "hsl(var(--sidebar-background))",- foreground: "hsl(var(--sidebar-foreground))",- primary: "hsl(var(--sidebar-primary))",- "primary-foreground": "hsl(var(--sidebar-primary-foreground))",- accent: "hsl(var(--sidebar-accent))",- "accent-foreground": "hsl(var(--sidebar-accent-foreground))",- border: "hsl(var(--sidebar-border))",- ring: "hsl(var(--sidebar-ring))",- },- },- borderRadius: {- xl: "calc(var(--radius) + 4px)",- lg: "var(--radius)",- md: "calc(var(--radius) - 2px)",- sm: "calc(var(--radius) - 4px)",- },- fontFamily: {- sans: [...fontFamily.sans],- },- keyframes: {- "accordion-down": {- from: { height: "0" },- to: { height: "var(--bits-accordion-content-height)" },- },- "accordion-up": {- from: { height: "var(--bits-accordion-content-height)" },- to: { height: "0" },- },- "caret-blink": {- "0%,70%,100%": { opacity: "1" },- "20%,50%": { opacity: "0" },- },- },- animation: {- "accordion-down": "accordion-down 0.2s ease-out",- "accordion-up": "accordion-up 0.2s ease-out",- "caret-blink": "caret-blink 1.25s ease-out infinite",- },- },- },+ darkMode: ['class'],+ content: ['./src/**/*.{html,js,svelte,ts}'],+ safelist: ['dark'],+ theme: {+ container: {+ center: true,+ padding: '2rem',+ screens: {+ '2xl': '1400px'+ }+ },+ extend: {+ colors: {+ border: 'hsl(var(--border) / <alpha-value>)',+ input: 'hsl(var(--input) / <alpha-value>)',+ ring: 'hsl(var(--ring) / <alpha-value>)',+ background: 'hsl(var(--background) / <alpha-value>)',+ foreground: 'hsl(var(--foreground) / <alpha-value>)',+ primary: {+ DEFAULT: 'hsl(var(--primary) / <alpha-value>)',+ foreground: 'hsl(var(--primary-foreground) / <alpha-value>)'+ },+ secondary: {+ DEFAULT: 'hsl(var(--secondary) / <alpha-value>)',+ foreground: 'hsl(var(--secondary-foreground) / <alpha-value>)'+ },+ destructive: {+ DEFAULT: 'hsl(var(--destructive) / <alpha-value>)',+ foreground: 'hsl(var(--destructive-foreground) / <alpha-value>)'+ },+ muted: {+ DEFAULT: 'hsl(var(--muted) / <alpha-value>)',+ foreground: 'hsl(var(--muted-foreground) / <alpha-value>)'+ },+ accent: {+ DEFAULT: 'hsl(var(--accent) / <alpha-value>)',+ foreground: 'hsl(var(--accent-foreground) / <alpha-value>)'+ },+ popover: {+ DEFAULT: 'hsl(var(--popover) / <alpha-value>)',+ foreground: 'hsl(var(--popover-foreground) / <alpha-value>)'+ },+ card: {+ DEFAULT: 'hsl(var(--card) / <alpha-value>)',+ foreground: 'hsl(var(--card-foreground) / <alpha-value>)'+ },+ sidebar: {+ DEFAULT: 'hsl(var(--sidebar-background))',+ foreground: 'hsl(var(--sidebar-foreground))',+ primary: 'hsl(var(--sidebar-primary))',+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',+ accent: 'hsl(var(--sidebar-accent))',+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',+ border: 'hsl(var(--sidebar-border))',+ ring: 'hsl(var(--sidebar-ring))'+ }+ },+ borderRadius: {+ xl: 'calc(var(--radius) + 4px)',+ lg: 'var(--radius)',+ md: 'calc(var(--radius) - 2px)',+ sm: 'calc(var(--radius) - 4px)'+ },+ fontFamily: {+ sans: [...fontFamily.sans]+ },+ keyframes: {+ 'accordion-down': {+ from: { height: '0' },+ to: { height: 'var(--bits-accordion-content-height)' }+ },+ 'accordion-up': {+ from: { height: 'var(--bits-accordion-content-height)' },+ to: { height: '0' }+ },+ 'caret-blink': {+ '0%,70%,100%': { opacity: '1' },+ '20%,50%': { opacity: '0' }+ }+ },+ animation: {+ 'accordion-down': 'accordion-down 0.2s ease-out',+ 'accordion-up': 'accordion-up 0.2s ease-out',+ 'caret-blink': 'caret-blink 1.25s ease-out infinite'+ }+ }+ }};export default config;