Skip to content

Modern Docker Management, Designed for Everyone

chore: add the rest of the routes

Kyle Mendell898acf97b429
diff --git a/package-lock.json b/package-lock.json
index 32d0b3e7f..4c57442fd 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,16 +22,19 @@
"clsx": "^2.1.1",
"eslint": "^9.18.0",
"eslint-plugin-svelte": "^3.0.0",
+ "formsnap": "^2.0.1",
"globals": "^16.0.0",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
+ "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.20.0",
- "vite": "^6.2.5"
+ "vite": "^6.2.5",
+ "zod": "^3.24.3"
}
},
"node_modules/@ampproject/remapping": {
@@ -47,6 +50,39 @@
"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/@esbuild/aix-ppc64": {
"version": "0.25.2",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.2.tgz",
@@ -641,6 +677,14 @@
"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",
@@ -669,6 +713,51 @@
"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/@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",
@@ -848,6 +937,17 @@
"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/@rollup/plugin-commonjs": {
"version": "28.0.3",
"resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-28.0.3.tgz",
@@ -1224,6 +1324,49 @@
"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",
@@ -1626,6 +1769,49 @@
"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.30.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.30.1.tgz",
@@ -1832,6 +2018,38 @@
"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",
@@ -1903,6 +2121,18 @@
"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/axobject-query": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
@@ -1985,6 +2215,14 @@
"node": ">=8"
}
},
+ "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/callsites": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
@@ -1995,6 +2233,20 @@
"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",
@@ -2028,6 +2280,19 @@
"url": "https://paulmillr.com/funding/"
}
},
+ "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/clsx": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
@@ -2109,6 +2374,14 @@
"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",
@@ -2161,6 +2434,26 @@
"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/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/enhanced-resolve": {
"version": "5.18.1",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz",
@@ -2216,6 +2509,32 @@
"@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/escape-string-regexp": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
@@ -2439,6 +2758,30 @@
"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",
@@ -2579,6 +2922,47 @@
"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/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
@@ -2804,6 +3188,21 @@
"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",
@@ -2824,6 +3223,21 @@
"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",
@@ -2879,6 +3293,14 @@
"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",
@@ -3166,6 +3588,13 @@
"@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",
@@ -3282,6 +3711,20 @@
"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/optionator": {
"version": "0.9.4",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
@@ -3539,6 +3982,14 @@
"node": ">= 0.8.0"
}
},
+ "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/punycode": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@@ -3549,6 +4000,24 @@
"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",
@@ -3584,6 +4053,14 @@
"url": "https://paulmillr.com/funding/"
}
},
+ "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/resolve": {
"version": "1.22.10",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
@@ -3776,6 +4253,17 @@
"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",
@@ -3786,6 +4274,18 @@
"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/strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
@@ -3808,6 +4308,17 @@
"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",
@@ -3956,6 +4467,103 @@
"@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",
@@ -4029,6 +4637,14 @@
"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.12",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.12.tgz",
@@ -4059,6 +4675,14 @@
"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",
@@ -4069,6 +4693,14 @@
"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",
@@ -4082,6 +4714,16 @@
"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",
@@ -4102,6 +4744,20 @@
"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",
@@ -4156,6 +4812,33 @@
"dev": true,
"license": "MIT"
},
+ "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.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.3.2.tgz",
@@ -4304,11 +4987,46 @@
"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.json
index 6b1fd09e6..bbc7ccd42 100644
--- a/package.json
+++ b/package.json
@@ -24,16 +24,19 @@
"clsx": "^2.1.1",
"eslint": "^9.18.0",
"eslint-plugin-svelte": "^3.0.0",
+ "formsnap": "^2.0.1",
"globals": "^16.0.0",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
+ "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.20.0",
- "vite": "^6.2.5"
+ "vite": "^6.2.5",
+ "zod": "^3.24.3"
},
"dependencies": {
"mode-watcher": "^1.0.2"
diff --git a/src/lib/components/docker/ImageRow.svelte b/src/lib/components/docker/ImageRow.svelte
new file mode 100644
index 000000000..e261c4fbc
--- /dev/null
+++ b/src/lib/components/docker/ImageRow.svelte
@@ -0,0 +1,29 @@
+<script lang="ts">
+ import { Button } from "$lib/components/ui/button/index.js";
+ import { Trash2, Info } from "@lucide/svelte";
+
+ export let image: {
+ id: string;
+ repo: string;
+ tag: string;
+ size: string;
+ created?: string;
+ };
+</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>
+</tr>
diff --git a/src/lib/components/ui/form/form-button.svelte b/src/lib/components/ui/form/form-button.svelte
new file mode 100644
index 000000000..cc0c590da
--- /dev/null
+++ b/src/lib/components/ui/form/form-button.svelte
@@ -0,0 +1,7 @@
+<script lang="ts">
+ import * as Button from "$lib/components/ui/button/index.js";
+
+ let { ref = $bindable(null), ...restProps }: Button.Props = $props();
+</script>
+
+<Button.Root bind:ref type="submit" {...restProps} />
diff --git a/src/lib/components/ui/form/form-description.svelte b/src/lib/components/ui/form/form-description.svelte
new file mode 100644
index 000000000..6c70187ae
--- /dev/null
+++ b/src/lib/components/ui/form/form-description.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ 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();
+</script>
+
+<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.svelte
new file mode 100644
index 000000000..278395c86
--- /dev/null
+++ b/src/lib/components/ui/form/form-element-field.svelte
@@ -0,0 +1,30 @@
+<script lang="ts" module>
+ 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";
+
+ 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}>
+ {@render childrenProp?.({ constraints, errors, tainted, value: value as T[U] })}
+ </div>
+ {/snippet}
+</FormPrimitive.ElementField>
diff --git a/src/lib/components/ui/form/form-field-errors.svelte b/src/lib/components/ui/form/form-field-errors.svelte
new file mode 100644
index 000000000..a5b52041a
--- /dev/null
+++ b/src/lib/components/ui/form/form-field-errors.svelte
@@ -0,0 +1,31 @@
+<script lang="ts">
+ import * as FormPrimitive from "formsnap";
+ import type { WithoutChild } from "bits-ui";
+ import { cn } from "$lib/utils.js";
+
+ let {
+ ref = $bindable(null),
+ class: className,
+ errorClasses,
+ children: childrenProp,
+ ...restProps
+ }: WithoutChild<FormPrimitive.FieldErrorsProps> & {
+ errorClasses?: string | undefined | null;
+ } = $props();
+</script>
+
+<FormPrimitive.FieldErrors
+ bind:ref
+ class={cn("text-destructive text-sm font-medium", className)}
+ {...restProps}
+>
+ {#snippet children({ errors, errorProps })}
+ {#if childrenProp}
+ {@render childrenProp({ errors, errorProps })}
+ {:else}
+ {#each errors as error (error)}
+ <div {...errorProps} class={cn(errorClasses)}>{error}</div>
+ {/each}
+ {/if}
+ {/snippet}
+</FormPrimitive.FieldErrors>
diff --git a/src/lib/components/ui/form/form-field.svelte b/src/lib/components/ui/form/form-field.svelte
new file mode 100644
index 000000000..6f7a766f2
--- /dev/null
+++ b/src/lib/components/ui/form/form-field.svelte
@@ -0,0 +1,30 @@
+<script lang="ts" module>
+ 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";
+
+ 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}>
+ {@render childrenProp?.({ constraints, errors, tainted, value: value as T[U] })}
+ </div>
+ {/snippet}
+</FormPrimitive.Field>
diff --git a/src/lib/components/ui/form/form-fieldset.svelte b/src/lib/components/ui/form/form-fieldset.svelte
new file mode 100644
index 000000000..bc40a2abd
--- /dev/null
+++ b/src/lib/components/ui/form/form-fieldset.svelte
@@ -0,0 +1,21 @@
+<script lang="ts" module>
+ 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";
+
+ 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} />
diff --git a/src/lib/components/ui/form/form-label.svelte b/src/lib/components/ui/form/form-label.svelte
new file mode 100644
index 000000000..dd252f46d
--- /dev/null
+++ b/src/lib/components/ui/form/form-label.svelte
@@ -0,0 +1,21 @@
+<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";
+
+ 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)}>
+ {@render children?.()}
+ </Label>
+ {/snippet}
+</FormPrimitive.Label>
diff --git a/src/lib/components/ui/form/form-legend.svelte b/src/lib/components/ui/form/form-legend.svelte
new file mode 100644
index 000000000..b493821a4
--- /dev/null
+++ b/src/lib/components/ui/form/form-legend.svelte
@@ -0,0 +1,17 @@
+<script lang="ts">
+ 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();
+</script>
+
+<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.ts
new file mode 100644
index 000000000..0713927c4
--- /dev/null
+++ b/src/lib/components/ui/form/index.ts
@@ -0,0 +1,33 @@
+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;
+
+export {
+ Field,
+ Control,
+ Label,
+ Button,
+ FieldErrors,
+ Description,
+ Fieldset,
+ Legend,
+ ElementField,
+ //
+ Field as FormField,
+ Control as FormControl,
+ Description as FormDescription,
+ Label as FormLabel,
+ FieldErrors as FormFieldErrors,
+ Fieldset as FormFieldset,
+ Legend as FormLegend,
+ ElementField as FormElementField,
+ Button as FormButton,
+};
diff --git a/src/lib/components/ui/input/index.ts b/src/lib/components/ui/input/index.ts
new file mode 100644
index 000000000..f47b6d3fb
--- /dev/null
+++ b/src/lib/components/ui/input/index.ts
@@ -0,0 +1,7 @@
+import Root from "./input.svelte";
+
+export {
+ Root,
+ //
+ Root as Input,
+};
diff --git a/src/lib/components/ui/input/input.svelte b/src/lib/components/ui/input/input.svelte
new file mode 100644
index 000000000..13fa116d3
--- /dev/null
+++ b/src/lib/components/ui/input/input.svelte
@@ -0,0 +1,46 @@
+<script lang="ts">
+ 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 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();
+</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}
+ />
+{: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}
+ />
+{/if}
diff --git a/src/lib/components/ui/switch/index.ts b/src/lib/components/ui/switch/index.ts
new file mode 100644
index 000000000..f5533db72
--- /dev/null
+++ b/src/lib/components/ui/switch/index.ts
@@ -0,0 +1,7 @@
+import Root from "./switch.svelte";
+
+export {
+ Root,
+ //
+ Root as Switch,
+};
diff --git a/src/lib/components/ui/switch/switch.svelte b/src/lib/components/ui/switch/switch.svelte
new file mode 100644
index 000000000..66b8b1eb3
--- /dev/null
+++ b/src/lib/components/ui/switch/switch.svelte
@@ -0,0 +1,27 @@
+<script lang="ts">
+ 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();
+</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>
diff --git a/src/routes/api/docker/+server.ts b/src/routes/api/docker/+server.ts
new file mode 100644
index 000000000..642fa797c
--- /dev/null
+++ b/src/routes/api/docker/+server.ts
@@ -0,0 +1,29 @@
+import { json } from "@sveltejs/kit";
+import type { RequestHandler } from "./$types";
+
+// Docker system info endpoint
+export 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",
+ };
+
+ 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/images/+page.server.ts b/src/routes/images/+page.server.ts
new file mode 100644
index 000000000..db05470f8
--- /dev/null
+++ b/src/routes/images/+page.server.ts
@@ -0,0 +1,31 @@
+import type { PageServerLoad } from "./$types";
+
+// This will be replaced with actual Docker API calls later
+export const load: PageServerLoad = async ({ fetch }) => {
+ // Mock data until API is ready
+ const images = [
+ {
+ id: "sha256:abc123",
+ repo: "nginx",
+ tag: "latest",
+ size: "133MB",
+ created: "2 days ago",
+ },
+ {
+ id: "sha256:def456",
+ repo: "postgres",
+ tag: "15",
+ size: "350MB",
+ created: "1 week ago",
+ },
+ {
+ id: "sha256:ghi789",
+ repo: "redis",
+ tag: "alpine",
+ size: "28MB",
+ created: "3 days ago",
+ },
+ ];
+
+ return { images };
+};
diff --git a/src/routes/images/+page.svelte b/src/routes/images/+page.svelte
new file mode 100644
index 000000000..be87593ed
--- /dev/null
+++ b/src/routes/images/+page.svelte
@@ -0,0 +1,44 @@
+<script lang="ts">
+ import * as Card from "$lib/components/ui/card/index.js";
+ import { Button } from "$lib/components/ui/button/index.js";
+ import { Image, Trash2, Download } from "@lucide/svelte";
+ import ImageRow from "$lib/components/docker/ImageRow.svelte";
+
+ export let data;
+ const { images } = data;
+</script>
+
+<div class="flex justify-between items-center mb-6">
+ <h1 class="text-2xl font-bold">Docker Images</h1>
+ <Button variant="default">
+ <Download class="w-4 h-4 mr-2" />
+ Pull Image
+ </Button>
+</div>
+
+<Card.Root>
+ <Card.Header>
+ <Card.Title>Images</Card.Title>
+ <Card.Description>Docker images available on this host</Card.Description>
+ </Card.Header>
+ <Card.Content>
+ <div class="overflow-x-auto">
+ <table class="w-full">
+ <thead>
+ <tr class="border-b">
+ <th class="text-left py-2">Repository</th>
+ <th class="text-left py-2">Tag</th>
+ <th class="text-left py-2">Image ID</th>
+ <th class="text-left py-2">Size</th>
+ <th class="text-left py-2">Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {#each images as image}
+ <ImageRow {image} />
+ {/each}
+ </tbody>
+ </table>
+ </div>
+ </Card.Content>
+</Card.Root>
diff --git a/src/routes/networks/+page.server.ts b/src/routes/networks/+page.server.ts
new file mode 100644
index 000000000..e0a932f4a
--- /dev/null
+++ b/src/routes/networks/+page.server.ts
@@ -0,0 +1,27 @@
+import type { PageServerLoad } from "./$types";
+
+export const load: PageServerLoad = async ({ fetch }) => {
+ // Mock data until API is ready
+ const networks = [
+ {
+ name: "bridge",
+ driver: "bridge",
+ scope: "local",
+ subnet: "172.17.0.0/16",
+ },
+ {
+ name: "host",
+ driver: "host",
+ scope: "local",
+ subnet: null,
+ },
+ {
+ name: "web_backend",
+ driver: "bridge",
+ scope: "local",
+ subnet: "172.18.0.0/16",
+ },
+ ];
+
+ return { networks };
+};
diff --git a/src/routes/networks/+page.svelte b/src/routes/networks/+page.svelte
new file mode 100644
index 000000000..9e21fc4c1
--- /dev/null
+++ b/src/routes/networks/+page.svelte
@@ -0,0 +1,53 @@
+<script lang="ts">
+ import * as Card from "$lib/components/ui/card/index.js";
+ import { Button } from "$lib/components/ui/button/index.js";
+ import { Network, Plus, Trash2 } from "@lucide/svelte";
+
+ export let data;
+ const { networks } = data;
+</script>
+
+<div class="flex justify-between items-center mb-6">
+ <h1 class="text-2xl font-bold">Networks</h1>
+ <Button variant="default">
+ <Plus class="w-4 h-4 mr-2" />
+ Create Network
+ </Button>
+</div>
+
+<Card.Root>
+ <Card.Header>
+ <Card.Title>Docker Networks</Card.Title>
+ <Card.Description>Manage container communication</Card.Description>
+ </Card.Header>
+ <Card.Content>
+ <div class="overflow-x-auto">
+ <table class="w-full">
+ <thead>
+ <tr class="border-b">
+ <th class="text-left py-2">Name</th>
+ <th class="text-left py-2">Driver</th>
+ <th class="text-left py-2">Scope</th>
+ <th class="text-left py-2">Subnet</th>
+ <th class="text-left py-2">Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {#each networks as network}
+ <tr class="border-b">
+ <td class="py-2 font-medium">{network.name}</td>
+ <td>{network.driver}</td>
+ <td>{network.scope}</td>
+ <td class="font-mono text-xs">{network.subnet || "N/A"}</td>
+ <td class="py-2">
+ <Button variant="destructive" size="sm">
+ <Trash2 class="w-4 h-4" />
+ </Button>
+ </td>
+ </tr>
+ {/each}
+ </tbody>
+ </table>
+ </div>
+ </Card.Content>
+</Card.Root>
diff --git a/src/routes/settings/+page.server.ts b/src/routes/settings/+page.server.ts
new file mode 100644
index 000000000..bc23fbf5b
--- /dev/null
+++ b/src/routes/settings/+page.server.ts
@@ -0,0 +1,63 @@
+import type { PageServerLoad, Actions } from "./$types";
+import { fail } from "@sveltejs/kit";
+
+// Define a type for settings (optional but good practice)
+type SettingsData = {
+ dockerHost: string;
+ autoRefresh: boolean;
+ refreshInterval: number;
+ darkMode: boolean;
+};
+
+export const load: PageServerLoad = async () => {
+ // TODO: Load actual saved settings here instead of defaults
+ const currentSettings: SettingsData = {
+ dockerHost: "unix:///var/run/docker.sock",
+ autoRefresh: true,
+ refreshInterval: 10,
+ darkMode: true,
+ };
+ // Return the raw settings data
+ return { settings: currentSettings };
+};
+
+export const actions: Actions = {
+ default: async ({ request }) => {
+ const formData = await request.formData();
+
+ // Manually get and parse form data
+ const dockerHost = formData.get("dockerHost") as string;
+ const autoRefresh = formData.get("autoRefresh") === "on"; // Checkbox/Switch value is 'on' or null
+ const refreshIntervalStr = formData.get("refreshInterval") as string;
+ const darkMode = formData.get("darkMode") === "on";
+
+ // Basic validation (optional)
+ if (!dockerHost) {
+ return fail(400, {
+ error: "Docker host cannot be empty.",
+ values: Object.fromEntries(formData),
+ });
+ }
+
+ let refreshInterval = parseInt(refreshIntervalStr, 10);
+ if (isNaN(refreshInterval) || refreshInterval < 5 || refreshInterval > 60) {
+ refreshInterval = 10; // Default or handle error
+ // Optionally return fail:
+ // return fail(400, { error: "Invalid refresh interval.", values: Object.fromEntries(formData) });
+ }
+
+ const updatedSettings: SettingsData = {
+ dockerHost,
+ autoRefresh,
+ refreshInterval,
+ darkMode,
+ };
+
+ // TODO: Persist the updated settings
+ console.log("Saving settings:", updatedSettings);
+
+ // You can return the updated settings or a success message
+ // Returning the settings allows the page to update if needed
+ return { success: true, settings: updatedSettings };
+ },
+};
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
new file mode 100644
index 000000000..829d25c29
--- /dev/null
+++ b/src/routes/settings/+page.svelte
@@ -0,0 +1,164 @@
+<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 { Input } from "$lib/components/ui/input/index.js";
+ import { Label } from "$lib/components/ui/label/index.js";
+ import { Settings, Save, RefreshCw } from "@lucide/svelte";
+ import * as Switch from "$lib/components/ui/switch/index.js";
+ import { enhance } from "$app/forms"; // Optional: for progressive enhancement
+
+ export let data: PageData;
+ export let form: ActionData; // To get data back from the form action
+
+ // Initialize state from loaded data or form action result
+ let settings = form?.settings ?? data.settings;
+
+ let dockerHost = settings.dockerHost;
+ let autoRefresh = settings.autoRefresh;
+ let refreshInterval = settings.refreshInterval;
+ let darkMode = settings.darkMode;
+
+ let isSubmitting = false; // Manual submission state
+
+ // Test connection function
+ function testConnection() {
+ console.log("Testing connection to", dockerHost);
+ // TODO: Implement actual connection test logic
+ }
+</script>
+
+<div class="flex justify-between items-center mb-6">
+ <h1 class="text-2xl font-bold">Settings</h1>
+ <!-- Button moved inside the form below -->
+</div>
+
+{#if form?.error}
+ <div
+ class="mb-4 p-4 bg-destructive/10 text-destructive border border-destructive rounded-md"
+ >
+ <p><strong>Error:</strong> {form.error}</p>
+ </div>
+{/if}
+{#if form?.success}
+ <div
+ class="mb-4 p-4 bg-primary/10 text-primary border border-primary rounded-md"
+ >
+ <p>Settings saved successfully!</p>
+ </div>
+{/if}
+
+<form
+ method="POST"
+ use:enhance={() => {
+ isSubmitting = true;
+ return async ({ update }) => {
+ await update(); // Update form data if action returns data
+ isSubmitting = false;
+ };
+ }}
+>
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
+ <!-- Docker Connection Settings -->
+ <Card.Root>
+ <Card.Header>
+ <Card.Title>Docker Connection</Card.Title>
+ <Card.Description>Configure Docker host connection</Card.Description>
+ </Card.Header>
+ <Card.Content class="space-y-4">
+ <div>
+ <Label for="dockerHost">Docker Host</Label>
+ <Input
+ id="dockerHost"
+ name="dockerHost"
+ bind:value={dockerHost}
+ placeholder="unix:///var/run/docker.sock"
+ class="mt-1"
+ />
+ <p class="text-sm text-muted-foreground mt-1">
+ Enter Docker host URL (e.g., unix:///var/run/docker.sock or
+ tcp://localhost:2375)
+ </p>
+ </div>
+
+ <Button
+ variant="secondary"
+ class="mt-2"
+ onclick={testConnection}
+ type="button"
+ >
+ <RefreshCw class="w-4 h-4 mr-2" />
+ Test Connection
+ </Button>
+ </Card.Content>
+ </Card.Root>
+
+ <!-- Application Settings -->
+ <Card.Root>
+ <Card.Header>
+ <Card.Title>Application Settings</Card.Title>
+ <Card.Description>Configure Arcane behavior</Card.Description>
+ </Card.Header>
+ <Card.Content>
+ <div class="space-y-6">
+ <div class="flex items-center justify-between rounded-lg border p-4">
+ <div class="space-y-0.5">
+ <Label for="autoRefreshSwitch" class="text-base"
+ >Auto Refresh</Label
+ >
+ <p class="text-sm text-muted-foreground">
+ Automatically refresh data periodically.
+ </p>
+ </div>
+ <Switch.Root
+ id="autoRefreshSwitch"
+ name="autoRefresh"
+ bind:checked={autoRefresh}
+ />
+ </div>
+
+ {#if autoRefresh}
+ <div class="space-y-1">
+ <Label for="refreshInterval">Refresh Interval (seconds)</Label>
+ <Input
+ id="refreshInterval"
+ name="refreshInterval"
+ type="number"
+ bind:value={refreshInterval}
+ min="5"
+ max="60"
+ />
+ {#if form?.error && form.values?.refreshInterval && typeof form.values.refreshInterval === "string" && (parseInt(form.values.refreshInterval, 10) < 5 || parseInt(form.values.refreshInterval, 10) > 60)}
+ <p class="text-sm text-destructive">
+ Must be between 5 and 60.
+ </p>
+ {/if}
+ </div>
+ {/if}
+
+ <div class="flex items-center justify-between rounded-lg border p-4">
+ <div class="space-y-0.5">
+ <Label for="darkModeSwitch" class="text-base">Dark Mode</Label>
+ <p class="text-sm text-muted-foreground">
+ Enable the dark color theme.
+ </p>
+ </div>
+ <Switch.Root
+ id="darkModeSwitch"
+ name="darkMode"
+ bind:checked={darkMode}
+ />
+ </div>
+ </div>
+ </Card.Content>
+ </Card.Root>
+ </div>
+
+ <!-- Submit Button inside the form -->
+ <div class="mt-6 flex justify-end">
+ <Button type="submit" disabled={isSubmitting}>
+ <Save class="w-4 h-4 mr-2" />
+ {isSubmitting ? "Saving..." : "Save Settings"}
+ </Button>
+ </div>
+</form>
diff --git a/src/routes/volumes/+page.server.ts b/src/routes/volumes/+page.server.ts
new file mode 100644
index 000000000..38e7332e0
--- /dev/null
+++ b/src/routes/volumes/+page.server.ts
@@ -0,0 +1,24 @@
+import type { PageServerLoad } from "./$types";
+
+export const load: PageServerLoad = async ({ fetch }) => {
+ // Mock data until API is ready
+ const volumes = [
+ {
+ name: "postgres_data",
+ driver: "local",
+ mountpoint: "/var/lib/docker/volumes/postgres_data/_data",
+ },
+ {
+ name: "nginx_config",
+ driver: "local",
+ mountpoint: "/var/lib/docker/volumes/nginx_config/_data",
+ },
+ {
+ name: "redis_data",
+ driver: "local",
+ mountpoint: "/var/lib/docker/volumes/redis_data/_data",
+ },
+ ];
+
+ return { volumes };
+};
diff --git a/src/routes/volumes/+page.svelte b/src/routes/volumes/+page.svelte
new file mode 100644
index 000000000..080f34ccd
--- /dev/null
+++ b/src/routes/volumes/+page.svelte
@@ -0,0 +1,51 @@
+<script lang="ts">
+ import * as Card from "$lib/components/ui/card/index.js";
+ import { Button } from "$lib/components/ui/button/index.js";
+ import { HardDrive, Plus, Trash2 } from "@lucide/svelte";
+
+ export let data;
+ const { volumes } = data;
+</script>
+
+<div class="flex justify-between items-center mb-6">
+ <h1 class="text-2xl font-bold">Volumes</h1>
+ <Button variant="default">
+ <Plus class="w-4 h-4 mr-2" />
+ Create Volume
+ </Button>
+</div>
+
+<Card.Root>
+ <Card.Header>
+ <Card.Title>Docker Volumes</Card.Title>
+ <Card.Description>Manage persistent data storage</Card.Description>
+ </Card.Header>
+ <Card.Content>
+ <div class="overflow-x-auto">
+ <table class="w-full">
+ <thead>
+ <tr class="border-b">
+ <th class="text-left py-2">Name</th>
+ <th class="text-left py-2">Driver</th>
+ <th class="text-left py-2">Mount Point</th>
+ <th class="text-left py-2">Actions</th>
+ </tr>
+ </thead>
+ <tbody>
+ {#each volumes as volume}
+ <tr class="border-b">
+ <td class="py-2 font-medium">{volume.name}</td>
+ <td>{volume.driver}</td>
+ <td class="font-mono text-xs">{volume.mountpoint}</td>
+ <td class="py-2">
+ <Button variant="destructive" size="sm">
+ <Trash2 class="w-4 h-4" />
+ </Button>
+ </td>
+ </tr>
+ {/each}
+ </tbody>
+ </table>
+ </div>
+ </Card.Content>
+</Card.Root>