Skip to content

Modern Docker Management, Designed for Everyone

refactor: frontend stack to project migration

Kyle Mendell9809d51c7421
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8aa5a63a..028e3e616 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,215 +2,234 @@
### Bug Fixes
-* compose network race condition ([#274](https://github.com/ofkm/arcane/issues/274)) ([2a4401b](https://github.com/ofkm/arcane/commit/2a4401ba931cf48978cb0b49b7e98048154ceae7))
-* layout of editors in compose details view ([c052902](https://github.com/ofkm/arcane/commit/c05290291f556ac3e45c3479fe6ff2d3c72db6da))
-* proper compose validation ([#272](https://github.com/ofkm/arcane/issues/272)) ([6f1eb03](https://github.com/ofkm/arcane/commit/6f1eb03e68133fd1f456503393d238fd68883a51))
-* remove oidc env and args from docker build ([e462e8b](https://github.com/ofkm/arcane/commit/e462e8bc271cf92f5b93c09c3d4fe8e87f5018bf))
+- compose network race condition ([#274](https://github.com/ofkm/arcane/issues/274)) ([2a4401b](https://github.com/ofkm/arcane/commit/2a4401ba931cf48978cb0b49b7e98048154ceae7))
+- layout of editors in compose details view ([c052902](https://github.com/ofkm/arcane/commit/c05290291f556ac3e45c3479fe6ff2d3c72db6da))
+- proper compose validation ([#272](https://github.com/ofkm/arcane/issues/272)) ([6f1eb03](https://github.com/ofkm/arcane/commit/6f1eb03e68133fd1f456503393d238fd68883a51))
+- remove oidc env and args from docker build ([e462e8b](https://github.com/ofkm/arcane/commit/e462e8bc271cf92f5b93c09c3d4fe8e87f5018bf))
+
## [0.15.0](https://github.com/ofkm/arcane/compare/v0.14.0...v0.15.0) (2025-06-04)
### Features
-* remote agents ([#239](https://github.com/ofkm/arcane/issues/239)) ([82cbab5](https://github.com/ofkm/arcane/commit/82cbab506083d6820611b68c3bafea36299a4f7c))
-* system usage meters ([64dde28](https://github.com/ofkm/arcane/commit/64dde28ef34d43ce2bc5fa3390d2db9e013098e0))
-* use drizzle as a database backend ([#248](https://github.com/ofkm/arcane/issues/248)) ([54061d3](https://github.com/ofkm/arcane/commit/54061d303945871bd998c3acf4cb331ce6eee560))
+- remote agents ([#239](https://github.com/ofkm/arcane/issues/239)) ([82cbab5](https://github.com/ofkm/arcane/commit/82cbab506083d6820611b68c3bafea36299a4f7c))
+- system usage meters ([64dde28](https://github.com/ofkm/arcane/commit/64dde28ef34d43ce2bc5fa3390d2db9e013098e0))
+- use drizzle as a database backend ([#248](https://github.com/ofkm/arcane/issues/248)) ([54061d3](https://github.com/ofkm/arcane/commit/54061d303945871bd998c3acf4cb331ce6eee560))
### Bug Fixes
-* agents not showing compose projects in table ([0ab2757](https://github.com/ofkm/arcane/commit/0ab2757c47b0dba5d839d6853467febb503243f5))
-* container creation type mismatches not allowing containers to be created ([e8aece6](https://github.com/ofkm/arcane/commit/e8aece65771c56d84360280835edc496130e88c9))
-* container status sorting incorrect ([#242](https://github.com/ofkm/arcane/issues/242)) ([64faad3](https://github.com/ofkm/arcane/commit/64faad3479b541b04addb8ac2d31e0148061ea0a))
-* cpu and ram usage bars not showing correct values ([01fbb16](https://github.com/ofkm/arcane/commit/01fbb166675d1ff34e0a63516014140feecec598))
-* create database in docker build ([24b33e8](https://github.com/ofkm/arcane/commit/24b33e8715faa0cff1d814df4427de8bd2d2415c))
-* deploy to agent dropdown button ([#244](https://github.com/ofkm/arcane/issues/244)) ([6092c4f](https://github.com/ofkm/arcane/commit/6092c4f67900f48ebc88d2463524669f8ad3c8f8))
-* implement main compose spec functionality ([#259](https://github.com/ofkm/arcane/issues/259)) ([e2fc0ac](https://github.com/ofkm/arcane/commit/e2fc0ac7d53d27bb4c03f5bb50b059dd90faf1e4))
-* incorrect github link on login page ([3205312](https://github.com/ofkm/arcane/commit/3205312997badc6e47069dae9ab422052aabb818))
-* missing ) in migrations ([635d932](https://github.com/ofkm/arcane/commit/635d932180395a0b8d2b1ec55f8ec0f0a382ab88))
-* parse ipam config correctly ([2585d69](https://github.com/ofkm/arcane/commit/2585d69e9ebb38fe44a0a71c4895455219a4c1a6))
-* pruning button not showing loading status ([419cd9e](https://github.com/ofkm/arcane/commit/419cd9ede5e905d4858b204e1228383ab8425037))
-* remove duplicate agent sidebar item ([6545794](https://github.com/ofkm/arcane/commit/6545794c47f11566803a1c8772169919471dc439))
-* rename stacks to compose projects ([#243](https://github.com/ofkm/arcane/issues/243)) ([b38b298](https://github.com/ofkm/arcane/commit/b38b29851882d4c3dd91b4385f1ad1fb30035b8c))
-* rework auto update service ([d88178a](https://github.com/ofkm/arcane/commit/d88178a2c2c9edc308cbedccd80b83fbdc0ba2c7))
-* store image maturity in database instead of cache ([#263](https://github.com/ofkm/arcane/issues/263)) ([1b29808](https://github.com/ofkm/arcane/commit/1b298088172b959ea38b8ab624a24c6a3af3b65e))
-* support removing agents ([c33a872](https://github.com/ofkm/arcane/commit/c33a872370ce82cc59839078f90448c6ce90daa1))
-* use new template root url ([55fdacd](https://github.com/ofkm/arcane/commit/55fdacd2bef3cebbba549fb90c2d27ae1ce2d4a8))
-* use system storage on dashboard ([6e7a83c](https://github.com/ofkm/arcane/commit/6e7a83c8cb230f032adeefe8326c57da301f001e))
-* volumes table truncate not being applied ([ce50de7](https://github.com/ofkm/arcane/commit/ce50de7b96ad40fc7ae221517e86a8cea35b1625))
+- agents not showing compose projects in table ([0ab2757](https://github.com/ofkm/arcane/commit/0ab2757c47b0dba5d839d6853467febb503243f5))
+- container creation type mismatches not allowing containers to be created ([e8aece6](https://github.com/ofkm/arcane/commit/e8aece65771c56d84360280835edc496130e88c9))
+- container status sorting incorrect ([#242](https://github.com/ofkm/arcane/issues/242)) ([64faad3](https://github.com/ofkm/arcane/commit/64faad3479b541b04addb8ac2d31e0148061ea0a))
+- cpu and ram usage bars not showing correct values ([01fbb16](https://github.com/ofkm/arcane/commit/01fbb166675d1ff34e0a63516014140feecec598))
+- create database in docker build ([24b33e8](https://github.com/ofkm/arcane/commit/24b33e8715faa0cff1d814df4427de8bd2d2415c))
+- deploy to agent dropdown button ([#244](https://github.com/ofkm/arcane/issues/244)) ([6092c4f](https://github.com/ofkm/arcane/commit/6092c4f67900f48ebc88d2463524669f8ad3c8f8))
+- implement main compose spec functionality ([#259](https://github.com/ofkm/arcane/issues/259)) ([e2fc0ac](https://github.com/ofkm/arcane/commit/e2fc0ac7d53d27bb4c03f5bb50b059dd90faf1e4))
+- incorrect github link on login page ([3205312](https://github.com/ofkm/arcane/commit/3205312997badc6e47069dae9ab422052aabb818))
+- missing ) in migrations ([635d932](https://github.com/ofkm/arcane/commit/635d932180395a0b8d2b1ec55f8ec0f0a382ab88))
+- parse ipam config correctly ([2585d69](https://github.com/ofkm/arcane/commit/2585d69e9ebb38fe44a0a71c4895455219a4c1a6))
+- pruning button not showing loading status ([419cd9e](https://github.com/ofkm/arcane/commit/419cd9ede5e905d4858b204e1228383ab8425037))
+- remove duplicate agent sidebar item ([6545794](https://github.com/ofkm/arcane/commit/6545794c47f11566803a1c8772169919471dc439))
+- rename stacks to compose projects ([#243](https://github.com/ofkm/arcane/issues/243)) ([b38b298](https://github.com/ofkm/arcane/commit/b38b29851882d4c3dd91b4385f1ad1fb30035b8c))
+- rework auto update service ([d88178a](https://github.com/ofkm/arcane/commit/d88178a2c2c9edc308cbedccd80b83fbdc0ba2c7))
+- store image maturity in database instead of cache ([#263](https://github.com/ofkm/arcane/issues/263)) ([1b29808](https://github.com/ofkm/arcane/commit/1b298088172b959ea38b8ab624a24c6a3af3b65e))
+- support removing agents ([c33a872](https://github.com/ofkm/arcane/commit/c33a872370ce82cc59839078f90448c6ce90daa1))
+- use new template root url ([55fdacd](https://github.com/ofkm/arcane/commit/55fdacd2bef3cebbba549fb90c2d27ae1ce2d4a8))
+- use system storage on dashboard ([6e7a83c](https://github.com/ofkm/arcane/commit/6e7a83c8cb230f032adeefe8326c57da301f001e))
+- volumes table truncate not being applied ([ce50de7](https://github.com/ofkm/arcane/commit/ce50de7b96ad40fc7ae221517e86a8cea35b1625))
+
## [0.14.0](https://github.com/ofkm/arcane/compare/v0.13.1...v0.14.0) (2025-05-29)
### Features
-* compose and .env template ([#231](https://github.com/ofkm/arcane/issues/231)) ([c47d15f](https://github.com/ofkm/arcane/commit/c47d15f928d5ca75ac2b9a4d945f94e5b8f3fd51))
+- compose and .env template ([#231](https://github.com/ofkm/arcane/issues/231)) ([c47d15f](https://github.com/ofkm/arcane/commit/c47d15f928d5ca75ac2b9a4d945f94e5b8f3fd51))
+
## [0.13.1](https://github.com/ofkm/arcane/compare/v0.13.0...v0.13.1) (2025-05-28)
### Bug Fixes
-* re-release 0.13.0 as 0.13.1 ([bc2e4a2](https://github.com/ofkm/arcane/commit/bc2e4a2edcfe225aee4df50e8d98b06e6b2de7c4))
+- re-release 0.13.0 as 0.13.1 ([bc2e4a2](https://github.com/ofkm/arcane/commit/bc2e4a2edcfe225aee4df50e8d98b06e6b2de7c4))
+
## [0.13.0](https://github.com/ofkm/arcane/compare/v0.12.0...v0.13.0) (2025-05-28)
### Features
-* allow changing user usernames ([74321b5](https://github.com/ofkm/arcane/commit/74321b52e891cb25c8d205caf4c451696fc3c200))
-* make compose editor widths resizeable ([64c33e6](https://github.com/ofkm/arcane/commit/64c33e65c87146d9cedc5647b2840b3ca6623a13))
-* simplify container and satck detail pages ([#227](https://github.com/ofkm/arcane/issues/227)) ([65dfa64](https://github.com/ofkm/arcane/commit/65dfa64da8e1ccf82ed6dcfd3292006c7faa26a5))
+- allow changing user usernames ([74321b5](https://github.com/ofkm/arcane/commit/74321b52e891cb25c8d205caf4c451696fc3c200))
+- make compose editor widths resizeable ([64c33e6](https://github.com/ofkm/arcane/commit/64c33e65c87146d9cedc5647b2840b3ca6623a13))
+- simplify container and satck detail pages ([#227](https://github.com/ofkm/arcane/issues/227)) ([65dfa64](https://github.com/ofkm/arcane/commit/65dfa64da8e1ccf82ed6dcfd3292006c7faa26a5))
### Bug Fixes
-* container log performance issues ([#222](https://github.com/ofkm/arcane/issues/222)) ([d337474](https://github.com/ofkm/arcane/commit/d337474870d45205d63063650a9d237b06862f70))
-* make font size more consistant in editors ([efbbe75](https://github.com/ofkm/arcane/commit/efbbe75217f292e8a38fb2b6b8985b7e6c79e264))
-* remove old references to app-settings.json ([65f20d1](https://github.com/ofkm/arcane/commit/65f20d1415b4f174172b212a425949356131d03a))
-* theming not applying correct values ([e0d125e](https://github.com/ofkm/arcane/commit/e0d125e5793f242efc787304664fe7166843dfa4))
-* update size classes for consistency across components ([3ceb93d](https://github.com/ofkm/arcane/commit/3ceb93df9bbf3bfce040ca2d277670786bf116db))
+- container log performance issues ([#222](https://github.com/ofkm/arcane/issues/222)) ([d337474](https://github.com/ofkm/arcane/commit/d337474870d45205d63063650a9d237b06862f70))
+- make font size more consistant in editors ([efbbe75](https://github.com/ofkm/arcane/commit/efbbe75217f292e8a38fb2b6b8985b7e6c79e264))
+- remove old references to app-settings.json ([65f20d1](https://github.com/ofkm/arcane/commit/65f20d1415b4f174172b212a425949356131d03a))
+- theming not applying correct values ([e0d125e](https://github.com/ofkm/arcane/commit/e0d125e5793f242efc787304664fe7166843dfa4))
+- update size classes for consistency across components ([3ceb93d](https://github.com/ofkm/arcane/commit/3ceb93df9bbf3bfce040ca2d277670786bf116db))
+
## [0.12.0](https://github.com/ofkm/arcane/compare/v0.11.1...v0.12.0) (2025-05-25)
### Features
-* convert docker run to docker compose ([#219](https://github.com/ofkm/arcane/issues/219)) ([3da1db7](https://github.com/ofkm/arcane/commit/3da1db7452de3aca6ef6ad78657f73f6a2b8bece))
-* stack logs tab ([696d74a](https://github.com/ofkm/arcane/commit/696d74a2391acae08c1fb306a6ae26463bf5bf50))
+- convert docker run to docker compose ([#219](https://github.com/ofkm/arcane/issues/219)) ([3da1db7](https://github.com/ofkm/arcane/commit/3da1db7452de3aca6ef6ad78657f73f6a2b8bece))
+- stack logs tab ([696d74a](https://github.com/ofkm/arcane/commit/696d74a2391acae08c1fb306a6ae26463bf5bf50))
### Bug Fixes
-* external networks names not being respected ([712fa00](https://github.com/ofkm/arcane/commit/712fa001b672212a98d61633dca96d3092b29a22))
+- external networks names not being respected ([712fa00](https://github.com/ofkm/arcane/commit/712fa001b672212a98d61633dca96d3092b29a22))
+
## [0.11.1](https://github.com/ofkm/arcane/compare/v0.11.0...v0.11.1) (2025-05-24)
### Bug Fixes
-* largest images differ on dashboard and container images ([9ffd0f6](https://github.com/ofkm/arcane/commit/9ffd0f68378518e2b717a078d4800578395228ba))
+- largest images differ on dashboard and container images ([9ffd0f6](https://github.com/ofkm/arcane/commit/9ffd0f68378518e2b717a078d4800578395228ba))
+
## [0.11.0](https://github.com/ofkm/arcane/compare/v0.10.0...v0.11.0) (2025-05-23)
### Features
-* save page sizes for all tables ([e01d7eb](https://github.com/ofkm/arcane/commit/e01d7ebd05d93f1b9a716ec8dae4535c8e0e1f2a))
+- save page sizes for all tables ([e01d7eb](https://github.com/ofkm/arcane/commit/e01d7ebd05d93f1b9a716ec8dae4535c8e0e1f2a))
### Bug Fixes
-* cleanup failed stack deployments if they fail ([6fa7bd7](https://github.com/ofkm/arcane/commit/6fa7bd71d511e1b0286e07e6165470c6abfdada0))
-* dashboard overview card arrangement ([#215](https://github.com/ofkm/arcane/issues/215)) ([da87f3b](https://github.com/ofkm/arcane/commit/da87f3b7eb8ebefbbb2cdce69e47d5cff82af5db))
-* stack deployments for external networks ([#199](https://github.com/ofkm/arcane/issues/199)) ([dfdf1e0](https://github.com/ofkm/arcane/commit/dfdf1e0fb824c8370e90cb3ec879db8e6da7d174))
-* use correct stack api endpoints ([4ea2c12](https://github.com/ofkm/arcane/commit/4ea2c125319df1b797842f649f43ae649414bbd4))
+- cleanup failed stack deployments if they fail ([6fa7bd7](https://github.com/ofkm/arcane/commit/6fa7bd71d511e1b0286e07e6165470c6abfdada0))
+- dashboard overview card arrangement ([#215](https://github.com/ofkm/arcane/issues/215)) ([da87f3b](https://github.com/ofkm/arcane/commit/da87f3b7eb8ebefbbb2cdce69e47d5cff82af5db))
+- stack deployments for external networks ([#199](https://github.com/ofkm/arcane/issues/199)) ([dfdf1e0](https://github.com/ofkm/arcane/commit/dfdf1e0fb824c8370e90cb3ec879db8e6da7d174))
+- use correct stack api endpoints ([4ea2c12](https://github.com/ofkm/arcane/commit/4ea2c125319df1b797842f649f43ae649414bbd4))
+
## [0.10.0](https://github.com/ofkm/arcane/compare/v0.9.2...v0.10.0) (2025-05-17)
### Features
-* environment variable support in compose files ([#195](https://github.com/ofkm/arcane/issues/195)) ([4612271](https://github.com/ofkm/arcane/commit/4612271a87f1064074fac0a2a22471a6720c8f53))
+- environment variable support in compose files ([#195](https://github.com/ofkm/arcane/issues/195)) ([4612271](https://github.com/ofkm/arcane/commit/4612271a87f1064074fac0a2a22471a6720c8f53))
### Bug Fixes
-* improve loading speed of stack and container pages ([#194](https://github.com/ofkm/arcane/issues/194)) ([ccbbdb4](https://github.com/ofkm/arcane/commit/ccbbdb425033635648102c11a5c2cd3ee6a41a05))
-* stacks not starting with more than one network ([#191](https://github.com/ofkm/arcane/issues/191)) ([77a32ee](https://github.com/ofkm/arcane/commit/77a32ee155520ae444c939d5f7fcdece414a7de2))
-* table selection states not getting invailidated ([d1ef3cb](https://github.com/ofkm/arcane/commit/d1ef3cb4a0656bfb95736dcd0fcaab11649d4e18))
+- improve loading speed of stack and container pages ([#194](https://github.com/ofkm/arcane/issues/194)) ([ccbbdb4](https://github.com/ofkm/arcane/commit/ccbbdb425033635648102c11a5c2cd3ee6a41a05))
+- stacks not starting with more than one network ([#191](https://github.com/ofkm/arcane/issues/191)) ([77a32ee](https://github.com/ofkm/arcane/commit/77a32ee155520ae444c939d5f7fcdece414a7de2))
+- table selection states not getting invailidated ([d1ef3cb](https://github.com/ofkm/arcane/commit/d1ef3cb4a0656bfb95736dcd0fcaab11649d4e18))
+
## [0.9.2](https://github.com/ofkm/arcane/compare/v0.9.1...v0.9.2) (2025-05-15)
### Bug Fixes
-* cache image maturity results to improve page loading ([ee6eb1e](https://github.com/ofkm/arcane/commit/ee6eb1e52d31aa319f8148bce902e2d5696b97d4))
+- cache image maturity results to improve page loading ([ee6eb1e](https://github.com/ofkm/arcane/commit/ee6eb1e52d31aa319f8148bce902e2d5696b97d4))
+
## [0.9.1](https://github.com/ofkm/arcane/compare/v0.9.0...v0.9.1) (2025-05-15)
### Bug Fixes
-* settings not loading values from json file ([ad65e80](https://github.com/ofkm/arcane/commit/ad65e803c53e5c9f8b639e0620b6e85a61b50941))
-* volumes cant be deleted from volume details page ([76bc5b8](https://github.com/ofkm/arcane/commit/76bc5b8e362b8e8de216d18d7f6acf9fd86d171b))
+- settings not loading values from json file ([ad65e80](https://github.com/ofkm/arcane/commit/ad65e803c53e5c9f8b639e0620b6e85a61b50941))
+- volumes cant be deleted from volume details page ([76bc5b8](https://github.com/ofkm/arcane/commit/76bc5b8e362b8e8de216d18d7f6acf9fd86d171b))
+
## [0.9.0](https://github.com/ofkm/arcane/compare/v0.8.0...v0.9.0) (2025-05-14)
### Features
-* add dark / light mode toggle ([f24cae1](https://github.com/ofkm/arcane/commit/f24cae1afcb26090005fe9fab4a9376a6725f749))
-* add logged in users name in sidebar ([e86659b](https://github.com/ofkm/arcane/commit/e86659bd94b3d4918ab17c3243d0e3c7a7512cf0))
-* image maturity indicator and image update indicators ([#181](https://github.com/ofkm/arcane/issues/181)) ([2eff068](https://github.com/ofkm/arcane/commit/2eff0689efece7c55779665f192223320e836fd4))
-* oidc login support ([#172](https://github.com/ofkm/arcane/issues/172)) ([43609a8](https://github.com/ofkm/arcane/commit/43609a85ca9c648d021b3f8291a7390163888db9))
+- add dark / light mode toggle ([f24cae1](https://github.com/ofkm/arcane/commit/f24cae1afcb26090005fe9fab4a9376a6725f749))
+- add logged in users name in sidebar ([e86659b](https://github.com/ofkm/arcane/commit/e86659bd94b3d4918ab17c3243d0e3c7a7512cf0))
+- image maturity indicator and image update indicators ([#181](https://github.com/ofkm/arcane/issues/181)) ([2eff068](https://github.com/ofkm/arcane/commit/2eff0689efece7c55779665f192223320e836fd4))
+- oidc login support ([#172](https://github.com/ofkm/arcane/issues/172)) ([43609a8](https://github.com/ofkm/arcane/commit/43609a85ca9c648d021b3f8291a7390163888db9))
### Bug Fixes
-* container logs duplicated and not formatted correctly ([5aa5f04](https://github.com/ofkm/arcane/commit/5aa5f048f6c4b4ca36183c682daf1d3418cc1737))
-* duplicated service badge links on stack start ([aca8932](https://github.com/ofkm/arcane/commit/aca8932a787703824c3f35c44851cc37407fabc7))
-* selectedIds persisting after api call is returned ([0c01485](https://github.com/ofkm/arcane/commit/0c0148504e29a165afef75b9d07c2794e4371335))
-* sort images and containers but uptime and size ([05cc599](https://github.com/ofkm/arcane/commit/05cc5992134040d76624b2e4525b071e0da1cc00))
-* stacks not deploying if a health check is defined ([664f330](https://github.com/ofkm/arcane/commit/664f330ac8fef08c71bc8f35b401978f4c9e44bd))
-* truncate long images names on dashboard table ([87556c9](https://github.com/ofkm/arcane/commit/87556c94e9f3449977a8f035c0597834c1d82675))
-* UI consistency and layout updates ([#185](https://github.com/ofkm/arcane/issues/185)) ([1b85225](https://github.com/ofkm/arcane/commit/1b852257b9e16276e6fc91a87442c375b069ab0f))
-* use svg icon over png ([da5a591](https://github.com/ofkm/arcane/commit/da5a591327b2ac78c7ca89a017e6bc7d24d40d6d))
+- container logs duplicated and not formatted correctly ([5aa5f04](https://github.com/ofkm/arcane/commit/5aa5f048f6c4b4ca36183c682daf1d3418cc1737))
+- duplicated service badge links on stack start ([aca8932](https://github.com/ofkm/arcane/commit/aca8932a787703824c3f35c44851cc37407fabc7))
+- selectedIds persisting after api call is returned ([0c01485](https://github.com/ofkm/arcane/commit/0c0148504e29a165afef75b9d07c2794e4371335))
+- sort images and containers but uptime and size ([05cc599](https://github.com/ofkm/arcane/commit/05cc5992134040d76624b2e4525b071e0da1cc00))
+- stacks not deploying if a health check is defined ([664f330](https://github.com/ofkm/arcane/commit/664f330ac8fef08c71bc8f35b401978f4c9e44bd))
+- truncate long images names on dashboard table ([87556c9](https://github.com/ofkm/arcane/commit/87556c94e9f3449977a8f035c0597834c1d82675))
+- UI consistency and layout updates ([#185](https://github.com/ofkm/arcane/issues/185)) ([1b85225](https://github.com/ofkm/arcane/commit/1b852257b9e16276e6fc91a87442c375b069ab0f))
+- use svg icon over png ([da5a591](https://github.com/ofkm/arcane/commit/da5a591327b2ac78c7ca89a017e6bc7d24d40d6d))
+
## [0.8.0](https://github.com/ofkm/arcane/compare/v0.7.1...v0.8.0) (2025-05-12)
### Features
-* private docker registries ([#162](https://github.com/ofkm/arcane/issues/162)) ([cfeffd2](https://github.com/ofkm/arcane/commit/cfeffd2698e07731ff943f9a816ad1c128e0e3a5))
-* remove delete button from actions dropdown menu for bulk removing ([#169](https://github.com/ofkm/arcane/issues/169)) ([cc15fae](https://github.com/ofkm/arcane/commit/cc15fae16b589f6a4fa7e2f09357c8ca9012f177))
-* used/unused filtering for images and volumes ([#170](https://github.com/ofkm/arcane/issues/170)) ([451abf8](https://github.com/ofkm/arcane/commit/451abf8a3811bedd6df0619263070273caae7389))
+- private docker registries ([#162](https://github.com/ofkm/arcane/issues/162)) ([cfeffd2](https://github.com/ofkm/arcane/commit/cfeffd2698e07731ff943f9a816ad1c128e0e3a5))
+- remove delete button from actions dropdown menu for bulk removing ([#169](https://github.com/ofkm/arcane/issues/169)) ([cc15fae](https://github.com/ofkm/arcane/commit/cc15fae16b589f6a4fa7e2f09357c8ca9012f177))
+- used/unused filtering for images and volumes ([#170](https://github.com/ofkm/arcane/issues/170)) ([451abf8](https://github.com/ofkm/arcane/commit/451abf8a3811bedd6df0619263070273caae7389))
### Bug Fixes
-* dockerhost from settings not being respected ([#171](https://github.com/ofkm/arcane/issues/171)) ([258c3f8](https://github.com/ofkm/arcane/commit/258c3f8db2e14572bc70c138dd7c75f19f6d1e12))
-* importing stacks if files are in the data/stacks directory ([#161](https://github.com/ofkm/arcane/issues/161)) ([9bfb479](https://github.com/ofkm/arcane/commit/9bfb4795ca57b90d6786200b2ab35b4d67d4b82d))
-* remove id columns from dashboard tables ([a414cbb](https://github.com/ofkm/arcane/commit/a414cbb5777468b0e2cd4346eac83ba709f03eaa))
-* use uid/gid 200 in container ([#156](https://github.com/ofkm/arcane/issues/156)) ([bae85ae](https://github.com/ofkm/arcane/commit/bae85aeb65059d50f4f1ab3f3bc33594e14f966a))
+- dockerhost from settings not being respected ([#171](https://github.com/ofkm/arcane/issues/171)) ([258c3f8](https://github.com/ofkm/arcane/commit/258c3f8db2e14572bc70c138dd7c75f19f6d1e12))
+- importing stacks if files are in the data/projects directory ([#161](https://github.com/ofkm/arcane/issues/161)) ([9bfb479](https://github.com/ofkm/arcane/commit/9bfb4795ca57b90d6786200b2ab35b4d67d4b82d))
+- remove id columns from dashboard tables ([a414cbb](https://github.com/ofkm/arcane/commit/a414cbb5777468b0e2cd4346eac83ba709f03eaa))
+- use uid/gid 200 in container ([#156](https://github.com/ofkm/arcane/issues/156)) ([bae85ae](https://github.com/ofkm/arcane/commit/bae85aeb65059d50f4f1ab3f3bc33594e14f966a))
+
## [0.7.1](https://github.com/ofkm/arcane/compare/v0.7.0...v0.7.1) (2025-05-10)
### Bug Fixes
-* compose stacks not starting from the stack directory ([7090c4e](https://github.com/ofkm/arcane/commit/7090c4e0950274e0334bc229e5c3b1435ee3e22d))
-* container permissions and removed the need for DOCKER_GID ([dde20c0](https://github.com/ofkm/arcane/commit/dde20c0cff5dea6812e29677dae8254ad41abaa1))
-* show error messages in toasts ([#148](https://github.com/ofkm/arcane/issues/148)) ([c5d6b90](https://github.com/ofkm/arcane/commit/c5d6b9069fc9d20f4781452bfe7cc4ead89c9cc9))
+- compose stacks not starting from the stack directory ([7090c4e](https://github.com/ofkm/arcane/commit/7090c4e0950274e0334bc229e5c3b1435ee3e22d))
+- container permissions and removed the need for DOCKER_GID ([dde20c0](https://github.com/ofkm/arcane/commit/dde20c0cff5dea6812e29677dae8254ad41abaa1))
+- show error messages in toasts ([#148](https://github.com/ofkm/arcane/issues/148)) ([c5d6b90](https://github.com/ofkm/arcane/commit/c5d6b9069fc9d20f4781452bfe7cc4ead89c9cc9))
+
## [0.7.0](https://github.com/ofkm/arcane/compare/v0.6.0...v0.7.0) (2025-05-09)
### Features
-* container service link for stacks ([#131](https://github.com/ofkm/arcane/issues/131)) ([420cf91](https://github.com/ofkm/arcane/commit/420cf918851b7530ad9c505f8d93b06277309f20))
-* use stack names as folder names ([#143](https://github.com/ofkm/arcane/issues/143)) ([537ea9f](https://github.com/ofkm/arcane/commit/537ea9f42f36becb2d5f70e1192cb47ca4c90deb))
+- container service link for stacks ([#131](https://github.com/ofkm/arcane/issues/131)) ([420cf91](https://github.com/ofkm/arcane/commit/420cf918851b7530ad9c505f8d93b06277309f20))
+- use stack names as folder names ([#143](https://github.com/ofkm/arcane/issues/143)) ([537ea9f](https://github.com/ofkm/arcane/commit/537ea9f42f36becb2d5f70e1192cb47ca4c90deb))
### Bug Fixes
-* container logs not streaming from server ([#138](https://github.com/ofkm/arcane/issues/138)) ([e5d9903](https://github.com/ofkm/arcane/commit/e5d990332e442c70b72ec6b88efabaaaa297d396))
-* container stats not live updating ([#139](https://github.com/ofkm/arcane/issues/139)) ([d4f773c](https://github.com/ofkm/arcane/commit/d4f773c6bf11e6f9e634d14cc623617a8da428f4))
-* onboarding errors and protections ([#142](https://github.com/ofkm/arcane/issues/142)) ([bceb0ec](https://github.com/ofkm/arcane/commit/bceb0ec49d4bae1a5d050262b00a8fe068a4c82f))
-* redirect to list view after removing a container or stack ([0fa0f03](https://github.com/ofkm/arcane/commit/0fa0f03aa36c6a4da482d06226c075921c232c1e))
-* remove stack name link when its external ([7499aee](https://github.com/ofkm/arcane/commit/7499aeeac6ebda4fa1fd5b24cb71b44a1aca30a2))
-* use data in relative path for base directory ([29ba132](https://github.com/ofkm/arcane/commit/29ba132eae64fc6eb3e1da57455623b9d3eeeab4))
-* use data in relative path for base directory ([7f8dd2c](https://github.com/ofkm/arcane/commit/7f8dd2cb213476ee30baac7faee990d41089d703))
+- container logs not streaming from server ([#138](https://github.com/ofkm/arcane/issues/138)) ([e5d9903](https://github.com/ofkm/arcane/commit/e5d990332e442c70b72ec6b88efabaaaa297d396))
+- container stats not live updating ([#139](https://github.com/ofkm/arcane/issues/139)) ([d4f773c](https://github.com/ofkm/arcane/commit/d4f773c6bf11e6f9e634d14cc623617a8da428f4))
+- onboarding errors and protections ([#142](https://github.com/ofkm/arcane/issues/142)) ([bceb0ec](https://github.com/ofkm/arcane/commit/bceb0ec49d4bae1a5d050262b00a8fe068a4c82f))
+- redirect to list view after removing a container or stack ([0fa0f03](https://github.com/ofkm/arcane/commit/0fa0f03aa36c6a4da482d06226c075921c232c1e))
+- remove stack name link when its external ([7499aee](https://github.com/ofkm/arcane/commit/7499aeeac6ebda4fa1fd5b24cb71b44a1aca30a2))
+- use data in relative path for base directory ([29ba132](https://github.com/ofkm/arcane/commit/29ba132eae64fc6eb3e1da57455623b9d3eeeab4))
+- use data in relative path for base directory ([7f8dd2c](https://github.com/ofkm/arcane/commit/7f8dd2cb213476ee30baac7faee990d41089d703))
+
## [0.6.0](https://github.com/ofkm/arcane/compare/v0.5.0...v0.6.0) (2025-05-06)
### Features
-* .env configuration support ([#128](https://github.com/ofkm/arcane/issues/128)) ([20e12df](https://github.com/ofkm/arcane/commit/20e12df66afc2ac9e3ef5dea3e1e019d4db7a30b))
+- .env configuration support ([#128](https://github.com/ofkm/arcane/issues/128)) ([20e12df](https://github.com/ofkm/arcane/commit/20e12df66afc2ac9e3ef5dea3e1e019d4db7a30b))
### Bug Fixes
-* password policy not able to be saved ([976cd83](https://github.com/ofkm/arcane/commit/976cd831bc064062a0329d0975dd1b64dd17bd32))
-* remove ping group and iputils from container so GID 999 is available ([4a9e619](https://github.com/ofkm/arcane/commit/4a9e6194cf38a00b4e3a8e71cabd72dd9c896e52))
-* user creation button not showing loading state ([d79b2ff](https://github.com/ofkm/arcane/commit/d79b2ff76825f88fbe0c833515a17458bdef5002))
+- password policy not able to be saved ([976cd83](https://github.com/ofkm/arcane/commit/976cd831bc064062a0329d0975dd1b64dd17bd32))
+- remove ping group and iputils from container so GID 999 is available ([4a9e619](https://github.com/ofkm/arcane/commit/4a9e6194cf38a00b4e3a8e71cabd72dd9c896e52))
+- user creation button not showing loading state ([d79b2ff](https://github.com/ofkm/arcane/commit/d79b2ff76825f88fbe0c833515a17458bdef5002))
+
## [0.5.0](https://github.com/ofkm/arcane/compare/v0.4.1...v0.5.0) (2025-05-06)
### Features
-* add confiramtion dialog before stopping all running containers ([1a696c0](https://github.com/ofkm/arcane/commit/1a696c08e7b15f13bfdf4b0542d444facbeeb851))
+- add confiramtion dialog before stopping all running containers ([1a696c0](https://github.com/ofkm/arcane/commit/1a696c08e7b15f13bfdf4b0542d444facbeeb851))
### Bug Fixes
-* loading states on action buttons not reflecting status ([8305078](https://github.com/ofkm/arcane/commit/8305078dcd1fd07a89976466d90350d5e05e0b3f))
-* session cookie not being created on http sites ([#112](https://github.com/ofkm/arcane/issues/112)) ([0ef6073](https://github.com/ofkm/arcane/commit/0ef6073ac8d5ed5886022199bdcee93837147665))
-* use correct cursor on all buttons ([50d4211](https://github.com/ofkm/arcane/commit/50d4211c23743c1e5fda6324be9220e7e367ae05))
+- loading states on action buttons not reflecting status ([8305078](https://github.com/ofkm/arcane/commit/8305078dcd1fd07a89976466d90350d5e05e0b3f))
+- session cookie not being created on http sites ([#112](https://github.com/ofkm/arcane/issues/112)) ([0ef6073](https://github.com/ofkm/arcane/commit/0ef6073ac8d5ed5886022199bdcee93837147665))
+- use correct cursor on all buttons ([50d4211](https://github.com/ofkm/arcane/commit/50d4211c23743c1e5fda6324be9220e7e367ae05))
+
## [0.4.1](https://github.com/ofkm/arcane/compare/v0.4.0...v0.4.1) (2025-05-05)
### Bug Fixes
-* adjust ownership handling in entrypoint script ([a3ec54a](https://github.com/ofkm/arcane/commit/a3ec54a058548a66ae9e637cdd6e34228c5e995b))
+- adjust ownership handling in entrypoint script ([a3ec54a](https://github.com/ofkm/arcane/commit/a3ec54a058548a66ae9e637cdd6e34228c5e995b))
+
## [0.4.0](https://github.com/ofkm/arcane/compare/v0.3.0...v0.4.0) (2025-05-05)
### Features
-* auto update containers and stacks ([#83](https://github.com/ofkm/arcane/issues/83)) ([0a5132f](https://github.com/ofkm/arcane/commit/0a5132fed65df2174b838ddf7e2b8b9ec5277e1f))
-* dashboard quick actions ([#77](https://github.com/ofkm/arcane/issues/77)) ([f82380b](https://github.com/ofkm/arcane/commit/f82380b1a483a74c45f5e9f2b3c6919fffe7c051))
-* image inspection page ([c3f5665](https://github.com/ofkm/arcane/commit/c3f5665bf5c67077a9d21d33dc23ec0a530ea041))
-* network inspection page ([#76](https://github.com/ofkm/arcane/issues/76)) ([89451f9](https://github.com/ofkm/arcane/commit/89451f915bfa38e4b1930fb45fe2d39ccc8815c2))
-* user authentication ([#86](https://github.com/ofkm/arcane/issues/86)) ([0ab0df3](https://github.com/ofkm/arcane/commit/0ab0df3638905b6d5714b1470903461fc0b5c3cb))
-* volume inspection page ([#75](https://github.com/ofkm/arcane/issues/75)) ([1e6da7d](https://github.com/ofkm/arcane/commit/1e6da7dd0889d0c88abbc8863c71800e0253f52b))
+- auto update containers and stacks ([#83](https://github.com/ofkm/arcane/issues/83)) ([0a5132f](https://github.com/ofkm/arcane/commit/0a5132fed65df2174b838ddf7e2b8b9ec5277e1f))
+- dashboard quick actions ([#77](https://github.com/ofkm/arcane/issues/77)) ([f82380b](https://github.com/ofkm/arcane/commit/f82380b1a483a74c45f5e9f2b3c6919fffe7c051))
+- image inspection page ([c3f5665](https://github.com/ofkm/arcane/commit/c3f5665bf5c67077a9d21d33dc23ec0a530ea041))
+- network inspection page ([#76](https://github.com/ofkm/arcane/issues/76)) ([89451f9](https://github.com/ofkm/arcane/commit/89451f915bfa38e4b1930fb45fe2d39ccc8815c2))
+- user authentication ([#86](https://github.com/ofkm/arcane/issues/86)) ([0ab0df3](https://github.com/ofkm/arcane/commit/0ab0df3638905b6d5714b1470903461fc0b5c3cb))
+- volume inspection page ([#75](https://github.com/ofkm/arcane/issues/75)) ([1e6da7d](https://github.com/ofkm/arcane/commit/1e6da7dd0889d0c88abbc8863c71800e0253f52b))
### Bug Fixes
-* container table showing when no containers found ([4f63742](https://github.com/ofkm/arcane/commit/4f63742dd584a5d598876497b46c6d6090503938))
-* disable autofill for input fields ([c7ff1c0](https://github.com/ofkm/arcane/commit/c7ff1c063161a1bca8aff4b426db0011e8b19f48))
-* make sure data is watched by effect ([cd89d48](https://github.com/ofkm/arcane/commit/cd89d48677c1ebb899979663e7ddaeba9410705d))
-* set default restart policy to unless-stopped ([4c578e4](https://github.com/ofkm/arcane/commit/4c578e4d9faca22333f15f011ed2c98c46c3ebb3))
-* show ipvaln/macvlan ip address on details page ([77495da](https://github.com/ofkm/arcane/commit/77495da4b40a7da02a50deea336ced9a7885abe5))
-* use for watching containers ([e99ec10](https://github.com/ofkm/arcane/commit/e99ec10787af07e4f4e27e7fb8195c45ccde00c7))
+- container table showing when no containers found ([4f63742](https://github.com/ofkm/arcane/commit/4f63742dd584a5d598876497b46c6d6090503938))
+- disable autofill for input fields ([c7ff1c0](https://github.com/ofkm/arcane/commit/c7ff1c063161a1bca8aff4b426db0011e8b19f48))
+- make sure data is watched by effect ([cd89d48](https://github.com/ofkm/arcane/commit/cd89d48677c1ebb899979663e7ddaeba9410705d))
+- set default restart policy to unless-stopped ([4c578e4](https://github.com/ofkm/arcane/commit/4c578e4d9faca22333f15f011ed2c98c46c3ebb3))
+- show ipvaln/macvlan ip address on details page ([77495da](https://github.com/ofkm/arcane/commit/77495da4b40a7da02a50deea336ced9a7885abe5))
+- use for watching containers ([e99ec10](https://github.com/ofkm/arcane/commit/e99ec10787af07e4f4e27e7fb8195c45ccde00c7))
+
## [0.3.0](https://github.com/ofkm/arcane/compare/v0.2.0...v0.3.0) (2025-04-27)
### Features
diff --git a/backend/internal/services/settings_service.go b/backend/internal/services/settings_service.go
index 5a92410d5..1b16697be 100644
--- a/backend/internal/services/settings_service.go
+++ b/backend/internal/services/settings_service.go
@@ -54,7 +54,7 @@ func (s *SettingsService) GetSettings(ctx context.Context) (*models.Settings, er
func (s *SettingsService) getDefaultSettings() *models.Settings {
return &models.Settings{
// Docker settings
- StacksDirectory: models.SettingVariable{Value: "data/stacks"},
+ StacksDirectory: models.SettingVariable{Value: "data/projects"},
AutoUpdate: models.SettingVariable{Value: "true"},
AutoUpdateInterval: models.SettingVariable{Value: "3600"},
PollingEnabled: models.SettingVariable{Value: "true"},
diff --git a/backend/internal/services/stack_service.go b/backend/internal/services/stack_service.go
index a616de4e8..6d465c8eb 100644
--- a/backend/internal/services/stack_service.go
+++ b/backend/internal/services/stack_service.go
@@ -1054,7 +1054,7 @@ func (s *StackService) sanitizeStackName(name string) string {
func (s *StackService) getStacksDirectory(ctx context.Context) (string, error) {
settings, err := s.settingsService.GetSettings(ctx)
if err != nil {
- return "data/stacks", fmt.Errorf("failed to get settings: %w", err)
+ return "data/projects", fmt.Errorf("failed to get settings: %w", err)
}
stacksDirectory := settings.StacksDirectory.Value
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index b5518d789..0346b13d1 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -65,7 +65,7 @@
result: await tryCatch(
type === 'container'
? environmentAPI.deleteContainer(id)
- : environmentAPI.destroyStack(id, removeVolumes, removeFiles)
+ : environmentAPI.destroyProject(id, removeVolumes, removeFiles)
),
message: `Failed to ${type === 'stack' ? 'Destroy' : 'Remove'} ${type}`,
setLoadingState: (value) => (isLoading.remove = value),
@@ -80,7 +80,7 @@
}
},
checkboxes: [
- { id: 'removeFiles', label: 'Remove stack files', initialState: false },
+ { id: 'removeFiles', label: 'Remove project files', initialState: false },
{
id: 'removeVolumes',
label: 'Remove volumes (Warning: Data will be lost)',
@@ -91,13 +91,13 @@
} else if (action === 'redeploy') {
openConfirmDialog({
title: `Confirm Redeploy`,
- message: `Are you sure you want to redeploy this stack? This will STOP, PULL, and START the Stack.`,
+ message: `Are you sure you want to redeploy this stack? This will STOP, PULL, and START the Project.`,
confirm: {
label: 'Redeploy',
action: async () => {
isLoading.redeploy = true;
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.redeployStack(id)),
+ result: await tryCatch(environmentAPI.redeployProject(id)),
message: `Failed to Redeploy ${type}`,
setLoadingState: (value) => (isLoading.redeploy = value),
onSuccess: async () => {
@@ -117,7 +117,7 @@
isLoading.start = true;
handleApiResultWithCallbacks({
result: await tryCatch(
- type === 'container' ? environmentAPI.startContainer(id) : environmentAPI.startStack(id)
+ type === 'container' ? environmentAPI.startContainer(id) : environmentAPI.startProject(id)
),
message: `Failed to Start ${type}`,
setLoadingState: (value) => (isLoading.start = value),
@@ -131,7 +131,7 @@
async function handleDeploy() {
isLoading.start = true;
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.startStack(id)),
+ result: await tryCatch(environmentAPI.startProject(id)),
message: `Failed to Start ${type}`,
setLoadingState: (value) => (isLoading.start = value),
onSuccess: async () => {
@@ -145,7 +145,7 @@
isLoading.stop = true;
handleApiResultWithCallbacks({
result: await tryCatch(
- type === 'container' ? environmentAPI.stopContainer(id) : environmentAPI.stopStack(id)
+ type === 'container' ? environmentAPI.stopContainer(id) : environmentAPI.stopProject(id)
),
message: `Failed to Stop ${type}`,
setLoadingState: (value) => (isLoading.stop = value),
@@ -160,7 +160,9 @@
isLoading.restart = true;
handleApiResultWithCallbacks({
result: await tryCatch(
- type === 'container' ? environmentAPI.restartContainer(id) : environmentAPI.restartStack(id)
+ type === 'container'
+ ? environmentAPI.restartContainer(id)
+ : environmentAPI.restartProject(id)
),
message: `Failed to Restart ${type}`,
setLoadingState: (value) => (isLoading.restart = value),
@@ -177,7 +179,7 @@
result: await tryCatch(
type === 'container'
? environmentAPI.pullContainerImage(id)
- : environmentAPI.pullStackImages(id)
+ : environmentAPI.pullProjectImages(id)
),
message: 'Failed to Pull Image(s)',
setLoadingState: (value) => (isLoading.pulling = value),
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index 2ec20f52b..663a7e2e1 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -1,62 +1,5 @@
<script lang="ts" module>
- import {
- FileStack,
- HardDrive,
- Home,
- Network,
- Container,
- ImageIcon,
- SettingsIcon,
- DatabaseIcon,
- LayoutTemplate,
- UserIcon,
- Shield,
- ComputerIcon,
- LockKeyholeIcon
- } from '@lucide/svelte';
-
- const staticData = {
- settingsItems: [
- {
- title: 'Settings',
- url: '/settings',
- icon: SettingsIcon,
- items: [
- { title: 'General', url: '/settings/general', icon: SettingsIcon },
- { title: 'Docker', url: '/settings/docker', icon: DatabaseIcon },
- { title: 'Users', url: '/settings/users', icon: UserIcon },
- { title: 'Security', url: '/settings/security', icon: Shield }
- ]
- }
- ],
- customizationItems: [
- {
- title: 'Templates',
- url: '/customize/templates',
- icon: LayoutTemplate
- },
- {
- title: 'Container Registries',
- url: '/customize/registries',
- icon: LockKeyholeIcon
- }
- ],
- environmentItems: [
- {
- title: 'Environments',
- url: '/environments',
- icon: ComputerIcon
- }
- ],
- managementItems: [
- { title: 'Dashboard', url: '/dashboard', icon: Home },
- { title: 'Containers', url: '/containers', icon: Container },
- { title: 'Compose Projects', url: '/compose', icon: FileStack },
- { title: 'Images', url: '/images', icon: ImageIcon },
- { title: 'Networks', url: '/networks', icon: Network },
- { title: 'Volumes', url: '/volumes', icon: HardDrive }
- ]
- };
+ import { sidebarItems } from '$lib/config/sidebar-config';
</script>
<script lang="ts">
@@ -93,10 +36,10 @@
<SidebarEnvSwitcher />
</Sidebar.Header>
<Sidebar.Content>
- <SidebarItemGroup label="Management" items={staticData.managementItems} />
- <SidebarItemGroup label="Customization" items={staticData.customizationItems} />
- <SidebarItemGroup label="Environments" items={staticData.environmentItems} />
- <SidebarItemGroup label="Administration" items={staticData.settingsItems} />
+ <SidebarItemGroup label="Management" items={sidebarItems.managementItems} />
+ <SidebarItemGroup label="Customization" items={sidebarItems.customizationItems} />
+ <SidebarItemGroup label="Environments" items={sidebarItems.environmentItems} />
+ <SidebarItemGroup label="Administration" items={sidebarItems.settingsItems} />
</Sidebar.Content>
<Sidebar.Footer>
<SidebarUpdatebanner
diff --git a/frontend/src/lib/config/sidebar-config.ts b/frontend/src/lib/config/sidebar-config.ts
new file mode 100644
index 000000000..7ac703a42
--- /dev/null
+++ b/frontend/src/lib/config/sidebar-config.ts
@@ -0,0 +1,66 @@
+import type { Icon as IconType } from '@lucide/svelte';
+import {
+ FileStack,
+ HardDrive,
+ Home,
+ Network,
+ Container,
+ ImageIcon,
+ SettingsIcon,
+ DatabaseIcon,
+ LayoutTemplate,
+ UserIcon,
+ Shield,
+ ComputerIcon,
+ LockKeyholeIcon
+} from '@lucide/svelte';
+
+export type SidebarItem = {
+ title: string;
+ url: string;
+ icon: typeof IconType;
+ items?: SidebarItem[];
+};
+
+export const sidebarItems: Record<string, SidebarItem[]> = {
+ managementItems: [
+ { title: 'Dashboard', url: '/dashboard', icon: Home },
+ { title: 'Containers', url: '/containers', icon: Container },
+ { title: 'Projects', url: '/compose', icon: FileStack },
+ { title: 'Images', url: '/images', icon: ImageIcon },
+ { title: 'Networks', url: '/networks', icon: Network },
+ { title: 'Volumes', url: '/volumes', icon: HardDrive }
+ ],
+ customizationItems: [
+ {
+ title: 'Templates',
+ url: '/customize/templates',
+ icon: LayoutTemplate
+ },
+ {
+ title: 'Container Registries',
+ url: '/customize/registries',
+ icon: LockKeyholeIcon
+ }
+ ],
+ environmentItems: [
+ {
+ title: 'Environments',
+ url: '/environments',
+ icon: ComputerIcon
+ }
+ ],
+ settingsItems: [
+ {
+ title: 'Settings',
+ url: '/settings',
+ icon: SettingsIcon,
+ items: [
+ { title: 'General', url: '/settings/general', icon: SettingsIcon },
+ { title: 'Docker', url: '/settings/docker', icon: DatabaseIcon },
+ { title: 'Users', url: '/settings/users', icon: UserIcon },
+ { title: 'Security', url: '/settings/security', icon: Shield }
+ ]
+ }
+ ]
+};
diff --git a/frontend/src/lib/services/api/environment-api-service.ts b/frontend/src/lib/services/api/environment-api-service.ts
index a75c1997f..a1250a22f 100644
--- a/frontend/src/lib/services/api/environment-api-service.ts
+++ b/frontend/src/lib/services/api/environment-api-service.ts
@@ -1,496 +1,523 @@
import BaseAPIService from './api-service';
import { get } from 'svelte/store';
import { environmentStore, LOCAL_DOCKER_ENVIRONMENT_ID } from '$lib/stores/environment.store';
-import type { ContainerCreateOptions, NetworkCreateOptions, VolumeCreateOptions, ContainerStats } from 'dockerode';
-import type { Stack, StackService } from '$lib/models/stack.type';
-import type { PaginationRequest, SortRequest, PaginatedApiResponse } from '$lib/types/pagination.type';
+import type {
+ ContainerCreateOptions,
+ NetworkCreateOptions,
+ VolumeCreateOptions,
+ ContainerStats
+} from 'dockerode';
+import type { Project, ProjectService } from '$lib/types/project.type';
+import type {
+ PaginationRequest,
+ SortRequest,
+ PaginatedApiResponse
+} from '$lib/types/pagination.type';
import { browser } from '$app/environment';
import type { EnhancedImageInfo } from '$lib/models/image.type';
import type { EnhancedContainerInfo } from '$lib/models/container-info';
export class EnvironmentAPIService extends BaseAPIService {
- private async getCurrentEnvironmentId(): Promise<string> {
- if (browser) {
- await environmentStore.ready;
- }
- const currentEnvironment = get(environmentStore.selected);
- if (!currentEnvironment) {
- return LOCAL_DOCKER_ENVIRONMENT_ID;
- }
- return currentEnvironment.id;
- }
-
- async getContainers(
- pagination?: PaginationRequest,
- sort?: SortRequest,
- search?: string,
- filters?: Record<string, string>
- ): Promise<any[] | PaginatedApiResponse<any>> {
- const envId = await this.getCurrentEnvironmentId();
-
- if (!pagination) {
- const response = await this.handleResponse<{ containers?: EnhancedContainerInfo[] }>(this.api.get(`/environments/${envId}/containers`));
- return Array.isArray(response.containers) ? response.containers : Array.isArray(response) ? response : [];
- }
-
- const params: any = {
- 'pagination[page]': pagination.page,
- 'pagination[limit]': pagination.limit
- };
-
- if (sort) {
- params['sort[column]'] = sort.column;
- params['sort[direction]'] = sort.direction;
- }
-
- if (search) {
- params.search = search;
- }
-
- if (filters) {
- Object.entries(filters).forEach(([key, value]) => {
- params[key] = value;
- });
- }
-
- return this.handleResponse(this.api.get(`/environments/${envId}/containers`, { params }));
- }
-
- async getContainer(containerId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/containers/${containerId}`));
- }
-
- async startContainer(containerId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/containers/${containerId}/start`));
- }
-
- async createContainer(options: ContainerCreateOptions): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/containers`, options));
- }
-
- async getContainerStats(containerId: string, stream: boolean = false): Promise<ContainerStats> {
- const envId = await this.getCurrentEnvironmentId();
- const url = `/environments/${envId}/containers/${containerId}/stats${stream ? '?stream=true' : ''}`;
- return this.handleResponse(this.api.get(url)) as Promise<ContainerStats>;
- }
-
- async stopContainer(containerId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/containers/${containerId}/stop`));
- }
-
- async restartContainer(containerId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/containers/${containerId}/restart`));
- }
-
- async deleteContainer(containerId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.delete(`/environments/${envId}/containers/${containerId}`));
- }
-
- async pullContainerImage(containerId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/containers/${containerId}/pull`));
- }
-
- async getImages(
- pagination?: PaginationRequest,
- sort?: SortRequest,
- search?: string,
- filters?: Record<string, string>
- ): Promise<any[] | PaginatedApiResponse<any>> {
- const envId = await this.getCurrentEnvironmentId();
-
- if (!pagination) {
- const response = await this.handleResponse<{ images?: EnhancedImageInfo[] }>(this.api.get(`/environments/${envId}/images`));
- return Array.isArray(response.images) ? response.images : Array.isArray(response) ? response : [];
- }
-
- const params: any = {
- 'pagination[page]': pagination.page,
- 'pagination[limit]': pagination.limit
- };
-
- if (sort) {
- params['sort[column]'] = sort.column;
- params['sort[direction]'] = sort.direction;
- }
-
- if (search) {
- params.search = search;
- }
-
- if (filters) {
- params.filters = filters;
- }
-
- return this.handleResponse(this.api.get(`/environments/${envId}/images`, { params }));
- }
-
- async getImage(imageId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}`));
- }
-
- async pullImage(imageName: string, tag: string = 'latest', auth?: any): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/images/pull`, { imageName, tag, auth }));
- }
-
- async deleteImage(imageId: string, options?: { force?: boolean; noprune?: boolean }): Promise<void> {
- const envId = await this.getCurrentEnvironmentId();
- await this.handleResponse(this.api.delete(`/environments/${envId}/images/${imageId}`, { params: options }));
- }
-
- async pruneImages(filters?: Record<string, string>): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/images/prune`, { filters }));
- }
-
- async inspectImage(imageId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}/inspect`));
- }
-
- async searchImages(term: string, limit?: number): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/images/search`, { params: { term, limit } }));
- }
-
- async tagImage(imageId: string, repo: string, tag: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/images/${imageId}/tag`, { repo, tag }));
- }
-
- async getImageHistory(imageId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}/history`));
- }
-
- async getNetworks(
- pagination?: PaginationRequest,
- sort?: SortRequest,
- search?: string,
- filters?: Record<string, string>
- ): Promise<any[] | PaginatedApiResponse<any>> {
- const envId = await this.getCurrentEnvironmentId();
-
- if (!pagination) {
- const response = await this.handleResponse<{ networks?: any[] }>(this.api.get(`/environments/${envId}/networks`));
- return Array.isArray(response.networks) ? response.networks : Array.isArray(response) ? response : [];
- }
-
- const params: any = {
- 'pagination[page]': pagination.page,
- 'pagination[limit]': pagination.limit
- };
-
- if (sort) {
- params['sort[column]'] = sort.column;
- params['sort[direction]'] = sort.direction;
- }
-
- if (search) {
- params.search = search;
- }
-
- if (filters) {
- Object.entries(filters).forEach(([key, value]) => {
- params[key] = value;
- });
- }
-
- return this.handleResponse(this.api.get(`/environments/${envId}/networks`, { params }));
- }
-
- async getNetwork(networkId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/networks/${networkId}`));
- }
-
- async createNetwork(options: NetworkCreateOptions): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/networks`, options));
- }
-
- async deleteNetwork(networkId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.delete(`/environments/${envId}/networks/${networkId}`));
- }
-
- async getVolumes(
- pagination?: PaginationRequest,
- sort?: SortRequest,
- search?: string,
- filters?: Record<string, string>
- ): Promise<any[] | PaginatedApiResponse<any>> {
- const envId = await this.getCurrentEnvironmentId();
-
- if (!pagination) {
- const response = await this.handleResponse<{ volumes?: any[] }>(this.api.get(`/environments/${envId}/volumes`));
- return Array.isArray(response.volumes) ? response.volumes : Array.isArray(response) ? response : [];
- }
-
- const params: any = {
- 'pagination[page]': pagination.page,
- 'pagination[limit]': pagination.limit
- };
-
- if (sort) {
- params['sort[column]'] = sort.column;
- params['sort[direction]'] = sort.direction;
- }
-
- if (search) {
- params.search = search;
- }
-
- if (filters) {
- Object.entries(filters).forEach(([key, value]) => {
- params[key] = value;
- });
- }
-
- return this.handleResponse(this.api.get(`/environments/${envId}/volumes`, { params }));
- }
-
- async getVolume(volumeName: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/volumes/${volumeName}`));
- }
-
- async getVolumeUsage(volumeName: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/volumes/${volumeName}/usage`));
- }
-
- async createVolume(options: VolumeCreateOptions): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/volumes`, options));
- }
-
- async deleteVolume(volumeName: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.delete(`/environments/${envId}/volumes/${volumeName}`));
- }
-
- async pruneVolumes(): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/volumes/prune`));
- }
-
- async getAllResources(): Promise<Record<string, any>> {
- const [containers, images, networks, volumes] = await Promise.all([this.getContainers(), this.getImages(), this.getNetworks(), this.getVolumes()]);
-
- return {
- containers,
- images,
- networks,
- volumes
- };
- }
-
- async syncResources(): Promise<void> {
- const envId = await this.getCurrentEnvironmentId();
- await this.handleResponse(this.api.post(`/environments/${envId}/sync`));
- }
-
- async executeDockerCommand(command: string, args: string[] = []): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/execute`, { command, args }));
- }
-
- async getStacks(
- pagination?: PaginationRequest,
- sort?: SortRequest,
- search?: string,
- filters?: Record<string, string>
- ): Promise<any[] | PaginatedApiResponse<any>> {
- const envId = await this.getCurrentEnvironmentId();
-
- if (!pagination) {
- const response = await this.handleResponse<{ stacks?: Stack[] }>(this.api.get(`/environments/${envId}/stacks`));
- return Array.isArray(response.stacks) ? response.stacks : Array.isArray(response) ? response : [];
- }
-
- const params: any = {
- 'pagination[page]': pagination.page,
- 'pagination[limit]': pagination.limit
- };
-
- if (sort) {
- params['sort[column]'] = sort.column;
- params['sort[direction]'] = sort.direction;
- }
-
- if (search) {
- params.search = search;
- }
-
- if (filters) {
- params.filters = filters;
- }
-
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks`, { params }));
- }
-
- async getStack(stackName: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- const response = await this.handleResponse<{ stack?: Stack; success?: boolean }>(this.api.get(`/environments/${envId}/stacks/${stackName}`));
-
- if (response.stack) {
- return response.stack;
- }
-
- return response as Stack;
- }
-
- async deployStack(stackName: string, composeContent: string, envContent?: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- const payload = {
- name: stackName,
- composeContent,
- envContent
- };
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks`, payload));
- }
-
- async updateStack(stackName: string, composeContent: string, envContent?: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- const payload = {
- composeContent,
- envContent
- };
- return this.handleResponse(this.api.put(`/environments/${envId}/stacks/${stackName}`, payload));
- }
-
- async deleteStack(stackName: string): Promise<void> {
- const envId = await this.getCurrentEnvironmentId();
- await this.handleResponse(this.api.delete(`/environments/${envId}/stacks/${stackName}`));
- }
-
- async startStack(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/start`));
- }
-
- async stopStack(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/stop`));
- }
-
- async restartStack(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/restart`));
- }
-
- async getStackLogs(stackId: string): Promise<string> {
- const envId = await this.getCurrentEnvironmentId();
- const response = await this.handleResponse<{ logs?: string }>(this.api.get(`/environments/${envId}/stacks/${stackId}/logs`));
- return response.logs || '';
- }
-
- async deployStackWithOptions(stackId: string, options?: { profiles?: string[]; envOverrides?: Record<string, string> }): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/deploy`, options || {}));
- }
-
- async downStack(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/down`));
- }
-
- async redeployStack(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/redeploy`));
- }
-
- async pullStackImages(stackId: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackId}/pull`));
- }
-
- async destroyStack(stackId: string, removeVolumes = false, removeFiles = false): Promise<void> {
- const envId = await this.getCurrentEnvironmentId();
- await this.handleResponse(
- this.api.delete(`/environments/${envId}/stacks/${stackId}/destroy`, {
- data: {
- removeVolumes,
- removeFiles
- }
- })
- );
- }
-
- async getStackServices(stackName: string): Promise<StackService[]> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/services`));
- }
-
- async getStackProfiles(stackName: string): Promise<string[]> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/profiles`));
- }
-
- async getStackChanges(stackName: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/changes`));
- }
-
- async getStackStats(stackName: string): Promise<ContainerStats[]> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/stats`)) as Promise<ContainerStats[]>;
- }
-
- async validateStack(stackName: string): Promise<{ valid: boolean; errors?: string[] }> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/validate`));
- }
-
- async convertDockerRun(command: string): Promise<{ composeContent: string }> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/convert`, { command }));
- }
-
- async discoverExternalStacks(): Promise<Stack[]> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/discover-external`));
- }
-
- async importStack(stackId: string, stackName?: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(
- this.api.post(`/environments/${envId}/stacks/import`, {
- stackId,
- stackName
- })
- );
- }
-
- async migrateStack(stackName: string): Promise<Stack> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${stackName}/migrate`));
- }
-
- async getStackLogsStream(stackName: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/stacks/${stackName}/logs/stream`));
- }
-
- async getImageMaturity(imageId: string): Promise<any> {
- const envId = await this.getCurrentEnvironmentId();
- return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}/maturity`));
- }
-
- async triggerMaturityCheck(imageIds?: string[]): Promise<{ success: boolean; message: string }> {
- const envId = await this.getCurrentEnvironmentId();
- const payload = imageIds && imageIds.length > 0 ? { imageIds } : {};
- return this.handleResponse(this.api.post(`/environments/${envId}/images/maturity/check`, payload));
- }
+ private async getCurrentEnvironmentId(): Promise<string> {
+ if (browser) {
+ await environmentStore.ready;
+ }
+ const currentEnvironment = get(environmentStore.selected);
+ if (!currentEnvironment) {
+ return LOCAL_DOCKER_ENVIRONMENT_ID;
+ }
+ return currentEnvironment.id;
+ }
+
+ async getContainers(
+ pagination?: PaginationRequest,
+ sort?: SortRequest,
+ search?: string,
+ filters?: Record<string, string>
+ ): Promise<any[] | PaginatedApiResponse<any>> {
+ const envId = await this.getCurrentEnvironmentId();
+
+ if (!pagination) {
+ const response = await this.handleResponse<{ containers?: EnhancedContainerInfo[] }>(
+ this.api.get(`/environments/${envId}/containers`)
+ );
+ return Array.isArray(response.containers)
+ ? response.containers
+ : Array.isArray(response)
+ ? response
+ : [];
+ }
+
+ const params: any = {
+ 'pagination[page]': pagination.page,
+ 'pagination[limit]': pagination.limit
+ };
+
+ if (sort) {
+ params['sort[column]'] = sort.column;
+ params['sort[direction]'] = sort.direction;
+ }
+
+ if (search) {
+ params.search = search;
+ }
+
+ if (filters) {
+ Object.entries(filters).forEach(([key, value]) => {
+ params[key] = value;
+ });
+ }
+
+ return this.handleResponse(this.api.get(`/environments/${envId}/containers`, { params }));
+ }
+
+ async getContainer(containerId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/containers/${containerId}`));
+ }
+
+ async startContainer(containerId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/containers/${containerId}/start`)
+ );
+ }
+
+ async createContainer(options: ContainerCreateOptions): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/containers`, options));
+ }
+
+ async getContainerStats(containerId: string, stream: boolean = false): Promise<ContainerStats> {
+ const envId = await this.getCurrentEnvironmentId();
+ const url = `/environments/${envId}/containers/${containerId}/stats${stream ? '?stream=true' : ''}`;
+ return this.handleResponse(this.api.get(url)) as Promise<ContainerStats>;
+ }
+
+ async stopContainer(containerId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/containers/${containerId}/stop`)
+ );
+ }
+
+ async restartContainer(containerId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/containers/${containerId}/restart`)
+ );
+ }
+
+ async deleteContainer(containerId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.delete(`/environments/${envId}/containers/${containerId}`));
+ }
+
+ async pullContainerImage(containerId: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/containers/${containerId}/pull`)
+ );
+ }
+
+ async getImages(
+ pagination?: PaginationRequest,
+ sort?: SortRequest,
+ search?: string,
+ filters?: Record<string, string>
+ ): Promise<any[] | PaginatedApiResponse<any>> {
+ const envId = await this.getCurrentEnvironmentId();
+
+ if (!pagination) {
+ const response = await this.handleResponse<{ images?: EnhancedImageInfo[] }>(
+ this.api.get(`/environments/${envId}/images`)
+ );
+ return Array.isArray(response.images)
+ ? response.images
+ : Array.isArray(response)
+ ? response
+ : [];
+ }
+
+ const params: any = {
+ 'pagination[page]': pagination.page,
+ 'pagination[limit]': pagination.limit
+ };
+
+ if (sort) {
+ params['sort[column]'] = sort.column;
+ params['sort[direction]'] = sort.direction;
+ }
+
+ if (search) {
+ params.search = search;
+ }
+
+ if (filters) {
+ params.filters = filters;
+ }
+
+ return this.handleResponse(this.api.get(`/environments/${envId}/images`, { params }));
+ }
+
+ async getImage(imageId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}`));
+ }
+
+ async pullImage(imageName: string, tag: string = 'latest', auth?: any): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/images/pull`, { imageName, tag, auth })
+ );
+ }
+
+ async deleteImage(
+ imageId: string,
+ options?: { force?: boolean; noprune?: boolean }
+ ): Promise<void> {
+ const envId = await this.getCurrentEnvironmentId();
+ await this.handleResponse(
+ this.api.delete(`/environments/${envId}/images/${imageId}`, { params: options })
+ );
+ }
+
+ async pruneImages(filters?: Record<string, string>): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/images/prune`, { filters }));
+ }
+
+ async inspectImage(imageId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}/inspect`));
+ }
+
+ async searchImages(term: string, limit?: number): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.get(`/environments/${envId}/images/search`, { params: { term, limit } })
+ );
+ }
+
+ async tagImage(imageId: string, repo: string, tag: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/images/${imageId}/tag`, { repo, tag })
+ );
+ }
+
+ async getImageHistory(imageId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/images/${imageId}/history`));
+ }
+
+ async getNetworks(
+ pagination?: PaginationRequest,
+ sort?: SortRequest,
+ search?: string,
+ filters?: Record<string, string>
+ ): Promise<any[] | PaginatedApiResponse<any>> {
+ const envId = await this.getCurrentEnvironmentId();
+
+ if (!pagination) {
+ const response = await this.handleResponse<{ networks?: any[] }>(
+ this.api.get(`/environments/${envId}/networks`)
+ );
+ return Array.isArray(response.networks)
+ ? response.networks
+ : Array.isArray(response)
+ ? response
+ : [];
+ }
+
+ const params: any = {
+ 'pagination[page]': pagination.page,
+ 'pagination[limit]': pagination.limit
+ };
+
+ if (sort) {
+ params['sort[column]'] = sort.column;
+ params['sort[direction]'] = sort.direction;
+ }
+
+ if (search) {
+ params.search = search;
+ }
+
+ if (filters) {
+ Object.entries(filters).forEach(([key, value]) => {
+ params[key] = value;
+ });
+ }
+
+ return this.handleResponse(this.api.get(`/environments/${envId}/networks`, { params }));
+ }
+
+ async getNetwork(networkId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/networks/${networkId}`));
+ }
+
+ async createNetwork(options: NetworkCreateOptions): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/networks`, options));
+ }
+
+ async deleteNetwork(networkId: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.delete(`/environments/${envId}/networks/${networkId}`));
+ }
+
+ async getVolumes(
+ pagination?: PaginationRequest,
+ sort?: SortRequest,
+ search?: string,
+ filters?: Record<string, string>
+ ): Promise<any[] | PaginatedApiResponse<any>> {
+ const envId = await this.getCurrentEnvironmentId();
+
+ if (!pagination) {
+ const response = await this.handleResponse<{ volumes?: any[] }>(
+ this.api.get(`/environments/${envId}/volumes`)
+ );
+ return Array.isArray(response.volumes)
+ ? response.volumes
+ : Array.isArray(response)
+ ? response
+ : [];
+ }
+
+ const params: any = {
+ 'pagination[page]': pagination.page,
+ 'pagination[limit]': pagination.limit
+ };
+
+ if (sort) {
+ params['sort[column]'] = sort.column;
+ params['sort[direction]'] = sort.direction;
+ }
+
+ if (search) {
+ params.search = search;
+ }
+
+ if (filters) {
+ Object.entries(filters).forEach(([key, value]) => {
+ params[key] = value;
+ });
+ }
+
+ return this.handleResponse(this.api.get(`/environments/${envId}/volumes`, { params }));
+ }
+
+ async getVolume(volumeName: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/volumes/${volumeName}`));
+ }
+
+ async getVolumeUsage(volumeName: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.get(`/environments/${envId}/volumes/${volumeName}/usage`));
+ }
+
+ async createVolume(options: VolumeCreateOptions): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/volumes`, options));
+ }
+
+ async deleteVolume(volumeName: string): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.delete(`/environments/${envId}/volumes/${volumeName}`));
+ }
+
+ async pruneVolumes(): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/volumes/prune`));
+ }
+
+ async getAllResources(): Promise<Record<string, any>> {
+ const [containers, images, networks, volumes] = await Promise.all([
+ this.getContainers(),
+ this.getImages(),
+ this.getNetworks(),
+ this.getVolumes()
+ ]);
+
+ return {
+ containers,
+ images,
+ networks,
+ volumes
+ };
+ }
+
+ async syncResources(): Promise<void> {
+ const envId = await this.getCurrentEnvironmentId();
+ await this.handleResponse(this.api.post(`/environments/${envId}/sync`));
+ }
+
+ async executeDockerCommand(command: string, args: string[] = []): Promise<any> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/execute`, { command, args }));
+ }
+
+ async getProjects(
+ pagination?: PaginationRequest,
+ sort?: SortRequest,
+ search?: string,
+ filters?: Record<string, string>
+ ): Promise<any[] | PaginatedApiResponse<any>> {
+ const envId = await this.getCurrentEnvironmentId();
+
+ if (!pagination) {
+ const response = await this.handleResponse<{ stacks?: Project[] }>(
+ this.api.get(`/environments/${envId}/stacks`)
+ );
+ return Array.isArray(response.stacks)
+ ? response.stacks
+ : Array.isArray(response)
+ ? response
+ : [];
+ }
+
+ const params: any = {
+ 'pagination[page]': pagination.page,
+ 'pagination[limit]': pagination.limit
+ };
+
+ if (sort) {
+ params['sort[column]'] = sort.column;
+ params['sort[direction]'] = sort.direction;
+ }
+
+ if (search) {
+ params.search = search;
+ }
+
+ if (filters) {
+ params.filters = filters;
+ }
+
+ return this.handleResponse(this.api.get(`/environments/${envId}/stacks`, { params }));
+ }
+
+ async getProject(projectName: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ const response = await this.handleResponse<{ stack?: Project; success?: boolean }>(
+ this.api.get(`/environments/${envId}/stacks/${projectName}`)
+ );
+
+ if (response.stack) {
+ return response.stack;
+ }
+
+ return response as Project;
+ }
+
+ async deployProject(
+ projectName: string,
+ composeContent: string,
+ envContent?: string
+ ): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ const payload = {
+ name: projectName,
+ composeContent,
+ envContent
+ };
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks`, payload));
+ }
+
+ async updateProject(
+ projectName: string,
+ composeContent: string,
+ envContent?: string
+ ): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ const payload = {
+ composeContent,
+ envContent
+ };
+ return this.handleResponse(
+ this.api.put(`/environments/${envId}/stacks/${projectName}`, payload)
+ );
+ }
+
+ async deleteProject(projectName: string): Promise<void> {
+ const envId = await this.getCurrentEnvironmentId();
+ await this.handleResponse(this.api.delete(`/environments/${envId}/stacks/${projectName}`));
+ }
+
+ async startProject(projectId: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${projectId}/start`));
+ }
+
+ async stopProject(projectId: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${projectId}/stop`));
+ }
+
+ async restartProject(projectId: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${projectId}/restart`));
+ }
+
+ async getProjectLogs(projectId: string): Promise<string> {
+ const envId = await this.getCurrentEnvironmentId();
+ const response = await this.handleResponse<{ logs?: string }>(
+ this.api.get(`/environments/${envId}/stacks/${projectId}/logs`)
+ );
+ return response.logs || '';
+ }
+
+ async deployProjectWithOptions(
+ projectName: string,
+ options?: { profiles?: string[]; envOverrides?: Record<string, string> }
+ ): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/stacks/${projectName}/deploy`, options || {})
+ );
+ }
+
+ async downProject(projectName: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${projectName}/down`));
+ }
+
+ async redeployProject(projectName: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(
+ this.api.post(`/environments/${envId}/stacks/${projectName}/redeploy`)
+ );
+ }
+
+ async pullProjectImages(projectName: string): Promise<Project> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/${projectName}/pull`));
+ }
+
+ async destroyProject(
+ projectName: string,
+ removeVolumes = false,
+ removeFiles = false
+ ): Promise<void> {
+ const envId = await this.getCurrentEnvironmentId();
+ await this.handleResponse(
+ this.api.delete(`/environments/${envId}/stacks/${projectName}/destroy`, {
+ data: {
+ removeVolumes,
+ removeFiles
+ }
+ })
+ );
+ }
+
+ async convertDockerRun(command: string): Promise<{ composeContent: string }> {
+ const envId = await this.getCurrentEnvironmentId();
+ return this.handleResponse(this.api.post(`/environments/${envId}/stacks/convert`, { command }));
+ }
}
export const environmentAPI = new EnvironmentAPIService();
diff --git a/frontend/src/lib/models/stack.type.ts b/frontend/src/lib/types/project.type.ts
similarity index 85%
rename from frontend/src/lib/models/stack.type.ts
rename to frontend/src/lib/types/project.type.ts
index 234fdf7fb..865117b08 100644
--- a/frontend/src/lib/models/stack.type.ts
+++ b/frontend/src/lib/types/project.type.ts
@@ -1,4 +1,4 @@
-export interface StackMeta {
+export interface ProjectMeta {
id: string;
name: string;
createdAt: string;
@@ -8,7 +8,7 @@ export interface StackMeta {
path: string;
}
-export interface StackPort {
+export interface ProjectPort {
PublicPort?: number;
PrivatePort?: number;
Type?: string;
@@ -26,7 +26,7 @@ export interface NetworkSettings {
>;
}
-export interface StackService {
+export interface ProjectService {
container_id: string;
name: string;
status: string;
@@ -40,10 +40,10 @@ export interface StackService {
networkSettings?: NetworkSettings;
}
-export interface Stack {
+export interface Project {
id: string;
name: string;
- services?: StackService[];
+ services?: ProjectService[];
serviceCount?: number;
runningCount?: number;
status: 'running' | 'stopped' | 'partially running' | 'unknown';
@@ -61,7 +61,7 @@ export interface Stack {
path?: string;
}
-export interface StackUpdate {
+export interface ProjectUpdate {
name?: string;
composeContent?: string;
envContent?: string;
diff --git a/frontend/src/routes/+layout.ts b/frontend/src/routes/+layout.ts
index eaeccd928..94acb89e5 100644
--- a/frontend/src/routes/+layout.ts
+++ b/frontend/src/routes/+layout.ts
@@ -4,39 +4,44 @@ import { settingsAPI, userAPI, environmentManagementAPI } from '$lib/services/ap
import { environmentStore } from '$lib/stores/environment.store';
import { versionService } from '$lib/services/app-version-service';
import { tryCatch } from '$lib/utils/try-catch';
+import { redirect } from '@sveltejs/kit';
export const ssr = false;
-export const load = async () => {
- const updateCheckDisabled = env.PUBLIC_UPDATE_CHECK_DISABLED === 'true';
-
- let arcaneSettings = await tryCatch(settingsAPI.getSettings());
- if (arcaneSettings.error) {
- arcaneSettings = await tryCatch(settingsAPI.getPublicSettings());
- }
-
- const arcaneUser = await tryCatch(userAPI.getCurrentUser());
- const user = arcaneUser.error ? null : arcaneUser.data;
-
- if (!environmentStore.isInitialized() && user) {
- const environments = await tryCatch(environmentManagementAPI.list());
- if (!environments.error) {
- await environmentStore.initialize(environments.data || [], true);
- }
- }
-
- let versionInformation: AppVersionInformation;
- if (updateCheckDisabled) {
- versionInformation = { currentVersion: versionService.getCurrentVersion() };
- } else {
- versionInformation = await versionService.getVersionInformation();
- }
-
- return {
- user,
- isAuthenticated: !!user,
- settings: arcaneSettings.data,
- versionInformation,
- updateCheckDisabled
- };
+export const load = async ({ url }) => {
+ const updateCheckDisabled = env.PUBLIC_UPDATE_CHECK_DISABLED === 'true';
+
+ let arcaneSettings = await tryCatch(settingsAPI.getSettings());
+ if (arcaneSettings.error) {
+ arcaneSettings = await tryCatch(settingsAPI.getPublicSettings());
+ }
+
+ const arcaneUser = await tryCatch(userAPI.getCurrentUser());
+ const user = arcaneUser.error ? null : arcaneUser.data;
+
+ if (!environmentStore.isInitialized() && user) {
+ const environments = await tryCatch(environmentManagementAPI.list());
+ if (!environments.error) {
+ await environmentStore.initialize(environments.data || [], true);
+ }
+ }
+
+ let versionInformation: AppVersionInformation;
+ if (updateCheckDisabled) {
+ versionInformation = { currentVersion: versionService.getCurrentVersion() };
+ } else {
+ versionInformation = await versionService.getVersionInformation();
+ }
+
+ if (url.pathname === '/') {
+ throw redirect(307, '/dashboard');
+ }
+
+ return {
+ user,
+ isAuthenticated: !!user,
+ settings: arcaneSettings.data,
+ versionInformation,
+ updateCheckDisabled
+ };
};
diff --git a/frontend/src/routes/compose/+page.svelte b/frontend/src/routes/compose/+page.svelte
index 9baf858e2..069139a9a 100644
--- a/frontend/src/routes/compose/+page.svelte
+++ b/frontend/src/routes/compose/+page.svelte
@@ -1,7 +1,6 @@
<script lang="ts">
import type { PageData } from './$types';
- import type { Stack } from '$lib/models/stack.type';
- import { Button } from '$lib/components/ui/button/index.js';
+ import type { Project } from '$lib/types/project.type';
import { AlertCircle, FileStack, Loader2, PlayCircle, StopCircle } from '@lucide/svelte';
import * as Alert from '$lib/components/ui/alert/index.js';
import * as Card from '$lib/components/ui/card/index.js';
@@ -18,11 +17,13 @@
let { data }: { data: PageData } = $props();
- let Compose = $state<Stack[]>(Array.isArray(data.stacks) ? data.stacks : data.stacks.data || []);
+ let Compose = $state<Project[]>(
+ Array.isArray(data.projects) ? data.projects : data.projects.data || []
+ );
let error = $state<string | null>(null);
let selectedIds = $state<string[]>([]);
let isLoadingCompose = $state(false);
- let requestOptions = $state<SearchPaginationSortRequest>(data.stackRequestOptions);
+ let requestOptions = $state<SearchPaginationSortRequest>(data.projectRequestOptions);
let isLoading = $state({
updating: false,
@@ -36,7 +37,7 @@
async function loadCompose() {
try {
isLoadingCompose = true;
- const response = await environmentAPI.getStacks(
+ const response = await environmentAPI.getProjects(
requestOptions.pagination,
requestOptions.sort,
requestOptions.search,
diff --git a/frontend/src/routes/compose/+page.ts b/frontend/src/routes/compose/+page.ts
index 67cd98eb3..fe9da25ee 100644
--- a/frontend/src/routes/compose/+page.ts
+++ b/frontend/src/routes/compose/+page.ts
@@ -3,23 +3,23 @@ import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { PageLoad } from './$types';
export const load: PageLoad = async () => {
- const stackRequestOptions: SearchPaginationSortRequest = {
- pagination: {
- page: 1,
- limit: 20
- },
- sort: {
- column: 'created_at',
- direction: 'desc' as const
- }
- };
+ const projectRequestOptions: SearchPaginationSortRequest = {
+ pagination: {
+ page: 1,
+ limit: 20
+ },
+ sort: {
+ column: 'created_at',
+ direction: 'desc' as const
+ }
+ };
- const stacks = await environmentAPI.getStacks(
- stackRequestOptions.pagination,
- stackRequestOptions.sort,
- stackRequestOptions.search,
- stackRequestOptions.filters
- );
+ const projects = await environmentAPI.getProjects(
+ projectRequestOptions.pagination,
+ projectRequestOptions.sort,
+ projectRequestOptions.search,
+ projectRequestOptions.filters
+ );
- return { stacks, stackRequestOptions };
-};
\ No newline at end of file
+ return { projects, projectRequestOptions };
+};
diff --git a/frontend/src/routes/compose/[composeId]/+page.svelte b/frontend/src/routes/compose/[projectId]/+page.svelte
similarity index 79%
rename from frontend/src/routes/compose/[composeId]/+page.svelte
rename to frontend/src/routes/compose/[projectId]/+page.svelte
index 75cbdb098..9f2b832c2 100644
--- a/frontend/src/routes/compose/[composeId]/+page.svelte
+++ b/frontend/src/routes/compose/[projectId]/+page.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import type { PageData } from './$types';
- import type { Stack, StackService, StackPort } from '$lib/models/stack.type';
+ import type { Project, ProjectService, ProjectPort } from '$lib/types/project.type';
import * as Card from '$lib/components/ui/card/index.js';
import { Button } from '$lib/components/ui/button/index.js';
import {
@@ -22,7 +22,7 @@
import StatusBadge from '$lib/components/badges/status-badge.svelte';
import { statusVariantMap } from '$lib/types/statuses';
import { capitalizeFirstLetter } from '$lib/utils/string.utils';
- import { invalidateAll, goto } from '$app/navigation';
+ import { invalidateAll } from '$app/navigation';
import { toast } from 'svelte-sonner';
import CodeEditor from '$lib/components/editor.svelte';
import { tryCatch } from '$lib/utils/try-catch';
@@ -31,9 +31,10 @@
import ArcaneButton from '$lib/components/arcane-button.svelte';
import LogViewer from '$lib/components/LogViewer.svelte';
import { browser } from '$app/environment';
+ import FormInput from '$lib/components/form/form-input.svelte';
let { data }: { data: PageData } = $props();
- let { stack, editorState, servicePorts, settings } = $derived(data);
+ let { project, editorState, servicePorts, settings } = $derived(data);
let isLoading = $state({
deploying: false,
@@ -67,7 +68,6 @@
let isStackLogsStreaming = $state(false);
let stackLogViewer = $state<LogViewer>();
let showFloatingHeader = $state(false);
- let mainContainer = $state<HTMLElement>();
$effect(() => {
if (browser) {
@@ -89,19 +89,14 @@
});
async function handleSaveChanges() {
- if (!stack || !hasChanges) return;
-
- const currentStackId = stack.id;
+ if (!project || !hasChanges) return;
handleApiResultWithCallbacks({
- result: await tryCatch(
- environmentAPI.updateStack(currentStackId, composeContent, envContent)
- ),
- message: 'Failed to Save Compose Project',
+ result: await tryCatch(environmentAPI.updateProject(project.id, composeContent, envContent)),
+ message: 'Failed to Save Project',
setLoadingState: (value) => (isLoading.saving = value),
- onSuccess: async (updatedStack: Stack) => {
- console.log('Compose Project save successful', updatedStack);
- toast.success('Compose Project updated successfully!');
+ onSuccess: async (updatedStack: Project) => {
+ toast.success('Project updated successfully!');
originalName = updatedStack.name;
originalComposeContent = composeContent;
@@ -109,10 +104,7 @@
await new Promise((resolve) => setTimeout(resolve, 200));
- if (updatedStack && updatedStack.id !== currentStackId) {
- console.log(
- `Stack ID changed from ${currentStackId} to ${updatedStack.id}. Navigating...`
- );
+ if (updatedStack && updatedStack.id !== project.id) {
await invalidateAll();
} else {
await invalidateAll();
@@ -121,7 +113,7 @@
});
}
- function getHostForService(service: StackService): string {
+ function getHostForService(service: ProjectService): string {
if (!service?.networkSettings?.Networks) return baseServerUrl;
const networks = service.networkSettings.Networks;
@@ -136,8 +128,8 @@
}
function getServicePortUrl(
- service: StackService,
- port: string | number | StackPort,
+ service: ProjectService,
+ port: string | number | ProjectPort,
protocol = 'http'
): string {
const host = getHostForService(service);
@@ -199,7 +191,7 @@
</script>
<div class="bg-background min-h-screen">
- {#if stack}
+ {#if project}
<div
class="bg-background/95 sticky top-0 z-20 border-b backdrop-blur transition-all duration-300"
style="opacity: {showFloatingHeader ? 0 : 1}; pointer-events: {showFloatingHeader
@@ -215,22 +207,22 @@
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
- <h1 class="max-w-[300px] truncate text-lg font-semibold" title={stack.name}>
- {stack.name}
+ <h1 class="max-w-[300px] truncate text-lg font-semibold" title={project.name}>
+ {project.name}
</h1>
- {#if stack.status}
+ {#if project.status}
<StatusBadge
- variant={statusVariantMap[stack.status.toLowerCase()] || 'gray'}
- text={capitalizeFirstLetter(stack.status)}
+ variant={statusVariantMap[project.status.toLowerCase()] || 'gray'}
+ text={capitalizeFirstLetter(project.status)}
/>
{/if}
</div>
</div>
<div class="flex items-center gap-2">
<ActionButtons
- id={stack.id}
+ id={project.id}
type="stack"
- itemState={stack.status}
+ itemState={project.status}
loading={{
start: isLoading.deploying,
stop: isLoading.stopping,
@@ -253,22 +245,22 @@
>
<div class="flex items-center gap-4">
<div class="flex items-center gap-2">
- <h2 class="text-sm font-medium truncate max-w-[150px]" title={stack.name}>
- {stack.name}
+ <h2 class="text-sm font-medium truncate max-w-[150px]" title={project.name}>
+ {project.name}
</h2>
- {#if stack.status}
+ {#if project.status}
<StatusBadge
- variant={statusVariantMap[stack.status.toLowerCase()] || 'gray'}
- text={capitalizeFirstLetter(stack.status)}
+ variant={statusVariantMap[project.status.toLowerCase()] || 'gray'}
+ text={capitalizeFirstLetter(project.status)}
class="text-xs"
/>
{/if}
</div>
<div class="bg-border h-4 w-px"></div>
<ActionButtons
- id={stack.id}
+ id={project.id}
type="stack"
- itemState={stack.status}
+ itemState={project.status}
loading={{
start: isLoading.deploying,
stop: isLoading.stopping,
@@ -307,11 +299,11 @@
title={section.label}
>
<IconComponent class="size-4" />
- {#if section.id === 'services' && stack.serviceCount}
+ {#if section.id === 'services' && project.serviceCount}
<span
class="bg-primary text-primary-foreground absolute -top-1 -right-1 rounded-full text-xs min-w-[18px] h-[18px] flex items-center justify-center px-1"
>
- {stack.serviceCount}
+ {project.serviceCount}
</span>
{/if}
</button>
@@ -334,7 +326,7 @@
<Card.Content class="flex items-center justify-between p-6">
<div>
<p class="text-muted-foreground text-sm font-medium">Services</p>
- <p class="text-2xl font-bold">{stack.serviceCount}</p>
+ <p class="text-2xl font-bold">{project.serviceCount}</p>
</div>
<div class="bg-primary/10 rounded-full p-3">
<Layers class="text-primary size-5" />
@@ -346,7 +338,7 @@
<Card.Content class="flex items-center justify-between p-6">
<div>
<p class="text-muted-foreground text-sm font-medium">Running</p>
- <p class="text-2xl font-bold">{stack.runningCount}</p>
+ <p class="text-2xl font-bold">{project.runningCount}</p>
</div>
<div class="rounded-full bg-green-500/10 p-3">
<Activity class="size-5 text-green-500" />
@@ -359,7 +351,7 @@
<div>
<p class="text-muted-foreground text-sm font-medium">Created</p>
<p class="text-lg font-medium">
- {new Date(stack.createdAt ?? '').toLocaleDateString()}
+ {new Date(project.createdAt ?? '').toLocaleDateString()}
</p>
</div>
<div class="rounded-full bg-blue-500/10 p-3">
@@ -383,7 +375,7 @@
(typeof port === 'object' && port !== null)
? port
: String(port)}
- {@const serviceWithPort = stack.services?.find((s) =>
+ {@const serviceWithPort = project.services?.find((s) =>
s.ports?.includes(String(port))
) || { container_id: '', name: '', status: '' }}
<a
@@ -417,7 +409,7 @@
(typeof port === 'object' && port !== null)
? port
: String(port)}
- {@const serviceWithPort = stack.services?.find((s) =>
+ {@const serviceWithPort = project.services?.find((s) =>
s.ports?.includes(String(port))
) || { container_id: '', name: '', status: '' }}
<a
@@ -439,13 +431,13 @@
<section id="services" class="scroll-mt-20">
<h2 class="mb-6 flex items-center gap-2 text-xl font-semibold">
<Layers class="size-5" />
- Services ({stack.serviceCount})
+ Services ({project.serviceCount})
</h2>
- {#if stack.services && stack.services.length > 0}
+ {#if project.services && project.services.length > 0}
<div class="rounded-lg border bg-card">
<div class="grid grid-cols-1 gap-2 p-4 sm:grid-cols-2 lg:grid-cols-3">
- {#each stack.services as service (service.container_id || service.name)}
+ {#each project.services as service (service.container_id || service.name)}
{@const status = service.status || 'unknown'}
{@const variant = statusVariantMap[status.toLowerCase()] || 'gray'}
@@ -512,7 +504,7 @@
>
<Layers class="text-muted-foreground size-6" />
</div>
- <div class="text-muted-foreground">No services found for this stack</div>
+ <div class="text-muted-foreground">No services found for this project</div>
</div>
{/if}
</section>
@@ -537,7 +529,7 @@
</div>
<div class="mb-6 space-y-2">
- <Label for="name" class="text-sm font-medium">Stack Name</Label>
+ <Label for="name" class="text-sm mb-10 font-medium">Project Name</Label>
<div class="max-w-md">
<Input
type="text"
@@ -545,13 +537,14 @@
name="name"
bind:value={name}
required
+ class="my-2"
disabled={isLoading.saving ||
- stack?.status === 'running' ||
- stack?.status === 'partially running'}
+ project?.status === 'running' ||
+ project?.status === 'partially running'}
/>
- {#if stack?.status === 'running' || stack?.status === 'partially running'}
+ {#if project?.status === 'running' || project?.status === 'partially running'}
<p class="text-muted-foreground mt-2 text-sm">
- Stack name cannot be changed while running. Please stop the stack first.
+ Project name cannot be changed while running. Please stop the project first.
</p>
{/if}
</div>
@@ -560,7 +553,7 @@
<div class="grid grid-cols-1 gap-6 lg:grid-cols-3 min-w-0 overflow-hidden">
<div class="lg:col-span-2 min-w-0 overflow-hidden">
<div class="space-y-4">
- <h3 class="text-lg font-semibold">Docker Compose File</h3>
+ <h3 class="text-lg">Compose File</h3>
<div class="h-[590px] w-full min-w-0 overflow-hidden rounded-md">
<CodeEditor
bind:value={composeContent}
@@ -586,71 +579,73 @@
</div>
</section>
- <section id="logs" class="scroll-mt-20">
- <div class="mb-6 flex items-center justify-between">
- <h2 class="flex items-center gap-2 text-xl font-semibold">
- <Terminal class="size-5" />
- Stack Logs
- </h2>
- <div class="flex items-center gap-3">
- <label class="flex items-center gap-2">
- <input type="checkbox" bind:checked={autoScrollStackLogs} class="size-4" />
- Auto-scroll
- </label>
- <Button variant="outline" size="sm" onclick={() => stackLogViewer?.clearLogs()}
- >Clear</Button
- >
- {#if isStackLogsStreaming}
- <div class="flex items-center gap-2">
- <div class="size-2 animate-pulse rounded-full bg-green-500"></div>
- <span class="text-sm font-medium text-green-600">Live</span>
- </div>
- <Button
- variant="outline"
- size="sm"
- onclick={() => stackLogViewer?.stopLogStream()}>Stop</Button
+ {#if project.status == 'running'}
+ <section id="logs" class="scroll-mt-20">
+ <div class="mb-6 flex items-center justify-between">
+ <h2 class="flex items-center gap-2 text-xl font-semibold">
+ <Terminal class="size-5" />
+ Project Logs
+ </h2>
+ <div class="flex items-center gap-3">
+ <label class="flex items-center gap-2">
+ <input type="checkbox" bind:checked={autoScrollStackLogs} class="size-4" />
+ Auto-scroll
+ </label>
+ <Button variant="outline" size="sm" onclick={() => stackLogViewer?.clearLogs()}
+ >Clear</Button
>
- {:else}
+ {#if isStackLogsStreaming}
+ <div class="flex items-center gap-2">
+ <div class="size-2 animate-pulse rounded-full bg-green-500"></div>
+ <span class="text-sm font-medium text-green-600">Live</span>
+ </div>
+ <Button
+ variant="outline"
+ size="sm"
+ onclick={() => stackLogViewer?.stopLogStream()}>Stop</Button
+ >
+ {:else}
+ <Button
+ variant="outline"
+ size="sm"
+ onclick={() => stackLogViewer?.startLogStream()}
+ disabled={!project?.id}>Start</Button
+ >
+ {/if}
<Button
variant="outline"
size="sm"
- onclick={() => stackLogViewer?.startLogStream()}
- disabled={!stack?.id}>Start</Button
+ onclick={() => {
+ stackLogViewer?.stopLogStream();
+ stackLogViewer?.startLogStream();
+ }}
>
- {/if}
- <Button
- variant="outline"
- size="sm"
- onclick={() => {
- stackLogViewer?.stopLogStream();
- stackLogViewer?.startLogStream();
- }}
- >
- <RefreshCw class="size-4" />
- </Button>
+ <RefreshCw class="size-4" />
+ </Button>
+ </div>
</div>
- </div>
- <Card.Root class="border min-w-0 overflow-hidden">
- <Card.Content class="p-0 min-w-0 overflow-hidden">
- <div class="w-full min-w-0 overflow-hidden">
- <LogViewer
- bind:this={stackLogViewer}
- bind:autoScroll={autoScrollStackLogs}
- stackId={stack?.id}
- type="stack"
- maxLines={500}
- showTimestamps={true}
- height="600px"
- onStart={handleStackLogStart}
- onStop={handleStackLogStop}
- onClear={handleStackLogClear}
- onToggleAutoScroll={handleToggleStackAutoScroll}
- />
- </div>
- </Card.Content>
- </Card.Root>
- </section>
+ <Card.Root class="border min-w-0 overflow-hidden">
+ <Card.Content class="p-0 min-w-0 overflow-hidden">
+ <div class="w-full min-w-0 overflow-hidden">
+ <LogViewer
+ bind:this={stackLogViewer}
+ bind:autoScroll={autoScrollStackLogs}
+ stackId={project?.id}
+ type="stack"
+ maxLines={500}
+ showTimestamps={true}
+ height="600px"
+ onStart={handleStackLogStart}
+ onStop={handleStackLogStop}
+ onClear={handleStackLogClear}
+ onToggleAutoScroll={handleToggleStackAutoScroll}
+ />
+ </div>
+ </Card.Content>
+ </Card.Root>
+ </section>
+ {/if}
</div>
</div>
</div>
@@ -661,14 +656,14 @@
<div class="bg-muted/50 mb-6 inline-flex rounded-full p-6">
<FileStack class="text-muted-foreground size-10" />
</div>
- <h2 class="mb-3 text-2xl font-medium">Stack Not Found</h2>
+ <h2 class="mb-3 text-2xl font-medium">Project Not Found</h2>
<p class="text-muted-foreground mb-8 max-w-md text-center">
- Could not load stack data. It may have been removed or the Docker engine is not
+ Could not load Project data. It may have been removed or the Docker engine is not
accessible.
</p>
<Button variant="outline" href="/compose">
<ArrowLeft class="mr-2 size-4" />
- Back to Stacks
+ Back to Projects
</Button>
</div>
</div>
diff --git a/frontend/src/routes/compose/[composeId]/+page.ts b/frontend/src/routes/compose/[projectId]/+page.ts
similarity index 64%
rename from frontend/src/routes/compose/[composeId]/+page.ts
rename to frontend/src/routes/compose/[projectId]/+page.ts
index dd6516fbe..8b8aef4c5 100644
--- a/frontend/src/routes/compose/[composeId]/+page.ts
+++ b/frontend/src/routes/compose/[projectId]/+page.ts
@@ -3,15 +3,14 @@ import type { PageLoad } from './$types';
export const load: PageLoad = async ({ params }) => {
try {
- const stackReponse = await environmentAPI.getStack(params.composeId);
+ const projectResponse = await environmentAPI.getProject(params.projectId);
- // Extract stack from the API response
- const stack = stackReponse;
+ const project = projectResponse;
- if (!stack) {
+ if (!project) {
return {
stack: null,
- error: 'Stack not found',
+ error: 'Project not found',
editorState: {
name: '',
composeContent: '',
@@ -26,20 +25,20 @@ export const load: PageLoad = async ({ params }) => {
};
}
- // Set up editor state with the stack data
+ // Set up editor state with the project data
const editorState = {
- name: stack.name || '',
- composeContent: stack.composeContent || '',
- envContent: stack.envContent || '',
- originalName: stack.name || '',
- originalComposeContent: stack.composeContent || '',
- originalEnvContent: stack.envContent || ''
+ name: project.name || '',
+ composeContent: project.composeContent || '',
+ envContent: project.envContent || '',
+ originalName: project.name || '',
+ originalComposeContent: project.composeContent || '',
+ originalEnvContent: project.envContent || ''
};
return {
- stack,
+ project,
editorState,
- servicePorts: {}, // TODO: Extract from stack services if needed
+ servicePorts: {}, // TODO: Extract from project services if needed
agents: [], // TODO: Implement if needed
settings: {
baseServerUrl: 'localhost'
diff --git a/frontend/src/routes/compose/compose-table.svelte b/frontend/src/routes/compose/compose-table.svelte
index 8cc7f8364..54a8374ce 100644
--- a/frontend/src/routes/compose/compose-table.svelte
+++ b/frontend/src/routes/compose/compose-table.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import type { Stack } from '$lib/models/stack.type';
+ import type { Project } from '$lib/types/project.type';
import ArcaneTable from '$lib/components/arcane-table.svelte';
import { Button } from '$lib/components/ui/button/index.js';
import {
@@ -28,7 +28,7 @@
import { capitalizeFirstLetter } from '$lib/utils/string.utils';
import { formatFriendlyDate } from '$lib/utils/date.utils';
- interface StackWithId extends Stack {
+ interface StackWithId extends Project {
id: string;
}
@@ -40,7 +40,7 @@
onComposeChanged,
onCheckForUpdates
}: {
- Compose: Stack[];
+ Compose: Project[];
selectedIds: string[];
requestOptions: SearchPaginationSortRequest;
onRefresh: (options: SearchPaginationSortRequest) => Promise<any>;
@@ -75,64 +75,64 @@
}
});
- async function performStackAction(action: string, id: string) {
+ async function performProjectAction(action: string, id: string) {
isLoading[action as keyof typeof isLoading] = true;
try {
if (action === 'start') {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.startStack(id)),
- message: 'Failed to Start Stack',
+ result: await tryCatch(environmentAPI.startProject(id)),
+ message: 'Failed to Start Project',
setLoadingState: (value) => (isLoading.start = value),
onSuccess: async () => {
- toast.success('Stack Started Successfully.');
+ toast.success('Project Started Successfully.');
await onComposeChanged();
}
});
} else if (action === 'stop') {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.downStack(id)),
- message: 'Failed to Stop Stack',
+ result: await tryCatch(environmentAPI.downProject(id)),
+ message: 'Failed to Stop Project',
setLoadingState: (value) => (isLoading.stop = value),
onSuccess: async () => {
- toast.success('Stack Stopped Successfully.');
+ toast.success('Project Stopped Successfully.');
await onComposeChanged();
}
});
} else if (action === 'restart') {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.restartStack(id)),
- message: 'Failed to Restart Stack',
+ result: await tryCatch(environmentAPI.restartProject(id)),
+ message: 'Failed to Restart Project',
setLoadingState: (value) => (isLoading.restart = value),
onSuccess: async () => {
- toast.success('Stack Restarted Successfully.');
+ toast.success('Project Restarted Successfully.');
await onComposeChanged();
}
});
} else if (action === 'pull') {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.pullStackImages(id)),
- message: 'Failed to pull Stack',
+ result: await tryCatch(environmentAPI.pullProjectImages(id)),
+ message: 'Failed to pull Project',
setLoadingState: (value) => (isLoading.pull = value),
onSuccess: async () => {
- toast.success('Stack Pulled successfully.');
+ toast.success('Project Pulled successfully.');
await onComposeChanged();
}
});
} else if (action === 'destroy') {
openConfirmDialog({
title: `Confirm Removal`,
- message: `Are you sure you want to remove this Stack? This action cannot be undone.`,
+ message: `Are you sure you want to remove this Project? This action cannot be undone.`,
confirm: {
label: 'Remove',
destructive: true,
action: async () => {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.destroyStack(id)),
- message: 'Failed to Remove Stack',
+ result: await tryCatch(environmentAPI.destroyProject(id)),
+ message: 'Failed to Remove Project',
setLoadingState: (value) => (isLoading.destroy = value),
onSuccess: async () => {
- toast.success('Stack Removed Successfully');
+ toast.success('Project Removed Successfully');
await onComposeChanged();
}
});
@@ -141,7 +141,7 @@
});
}
} catch (error) {
- console.error('Stack action failed:', error);
+ console.error('Project action failed:', error);
toast.error('An error occurred while performing the action');
isLoading[action as keyof typeof isLoading] = false;
}
@@ -155,12 +155,12 @@
<Card.Header class="px-6">
<div class="flex items-center justify-between">
<div>
- <Card.Title>Compose Projects List</Card.Title>
+ <Card.Title>Projects List</Card.Title>
</div>
<div class="flex items-center gap-2">
<ArcaneButton
action="inspect"
- label="Update Compose Projects"
+ label="Update Projects"
onClick={onCheckForUpdates}
loading={isLoading.updating}
loadingLabel="Updating..."
@@ -219,7 +219,7 @@
{#if item.status !== 'running'}
<DropdownMenu.Item
- onclick={() => performStackAction('start', item.id)}
+ onclick={() => performProjectAction('start', item.id)}
disabled={isLoading.start || isAnyLoading}
>
{#if isLoading.start}
@@ -231,7 +231,7 @@
</DropdownMenu.Item>
{:else}
<DropdownMenu.Item
- onclick={() => performStackAction('restart', item.id)}
+ onclick={() => performProjectAction('restart', item.id)}
disabled={isLoading.restart || isAnyLoading}
>
{#if isLoading.restart}
@@ -243,7 +243,7 @@
</DropdownMenu.Item>
<DropdownMenu.Item
- onclick={() => performStackAction('stop', item.id)}
+ onclick={() => performProjectAction('stop', item.id)}
disabled={isLoading.stop || isAnyLoading}
>
{#if isLoading.stop}
@@ -256,7 +256,7 @@
{/if}
<DropdownMenu.Item
- onclick={() => performStackAction('pull', item.id)}
+ onclick={() => performProjectAction('pull', item.id)}
disabled={isLoading.pull || isAnyLoading}
>
{#if isLoading.pull}
@@ -271,7 +271,7 @@
<DropdownMenu.Item
variant="destructive"
- onclick={() => performStackAction('destroy', item.id)}
+ onclick={() => performProjectAction('destroy', item.id)}
disabled={isLoading.remove || isAnyLoading}
>
{#if isLoading.remove}
diff --git a/frontend/src/routes/compose/new/+page.svelte b/frontend/src/routes/compose/new/+page.svelte
index c9103349a..099048086 100644
--- a/frontend/src/routes/compose/new/+page.svelte
+++ b/frontend/src/routes/compose/new/+page.svelte
@@ -32,18 +32,17 @@
let dockerRunCommand = $state('');
async function handleSubmit() {
- await handleCreateStack();
+ await handleCreateProject();
}
- async function handleCreateStack() {
+ async function handleCreateProject() {
handleApiResultWithCallbacks({
- result: await tryCatch(environmentAPI.deployStack(name, composeContent, envContent)),
- message: 'Failed to Create Stack',
+ result: await tryCatch(environmentAPI.deployProject(name, composeContent, envContent)),
+ message: 'Failed to Create Project',
setLoadingState: (value) => (saving = value),
- onSuccess: async (stack) => {
- toast.success(`Stack "${name}" created successfully.`);
- await invalidateAll();
- goto(`/compose/${stack.id}`);
+ onSuccess: async (project) => {
+ toast.success(`Project "${name}" created successfully.`);
+ goto(`/compose/${project.id}`, { invalidateAll: true });
}
});
}
@@ -108,7 +107,7 @@
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
- <h1 class="text-lg font-semibold">Create New Compose Project</h1>
+ <h1 class="text-lg font-semibold">Create New Project</h1>
</div>
</div>
<div class="flex items-center gap-2">
@@ -186,7 +185,7 @@
/>
<ArcaneButton
action="create"
- onClick={handleSubmit}
+ onClick={() => handleSubmit()}
loading={saving}
disabled={!name || !composeContent || saving || converting || isLoadingTemplateContent}
/>
diff --git a/frontend/src/routes/onboarding/docker/+page.svelte b/frontend/src/routes/onboarding/docker/+page.svelte
index 7b3d0f721..53f5ef3ea 100644
--- a/frontend/src/routes/onboarding/docker/+page.svelte
+++ b/frontend/src/routes/onboarding/docker/+page.svelte
@@ -17,7 +17,7 @@
let isLoading = $state(false);
let dockerSettings = $state({
- stacksDirectory: 'data/stacks',
+ stacksDirectory: 'data/projects',
pollingEnabled: true,
pollingInterval: '5'
});
@@ -68,11 +68,11 @@
</Card.Header>
<Card.Content class="space-y-4">
<div class="space-y-2">
- <Label for="stacks-directory">Stacks Directory</Label>
+ <Label for="project-directory">Project Directory</Label>
<Input
- id="stacks-directory"
+ id="project-directory"
bind:value={dockerSettings.stacksDirectory}
- placeholder="/opt/stacks"
+ placeholder="data/projects"
/>
<p class="text-xs text-muted-foreground">
Directory where Docker Compose files will be stored
diff --git a/frontend/src/routes/settings/general/+page.svelte b/frontend/src/routes/settings/general/+page.svelte
index 39adeb6a4..a7d787a02 100644
--- a/frontend/src/routes/settings/general/+page.svelte
+++ b/frontend/src/routes/settings/general/+page.svelte
@@ -108,7 +108,7 @@
<Card.Content>
<FormInput
label="Stacks Directory"
- placeholder="data/stacks"
+ placeholder="data/projects"
bind:input={stacksDirectoryInput}
helpText="Directory where Docker Compose stack files are stored"
/>