1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 14:31:44 +01:00

feat: supports multiple hosts in parallel and update hosts menu (#2269)

* feat: updates host menu to be part of side menu

* updates routes to be host/id

* fixes go tests

* fixes js tests

* fixes typescheck

* fixes int tests

* fixes mobile

* fixes bug in merging containers

* fixed minor bug with menu
This commit is contained in:
Amir Raminfar
2023-06-24 12:13:39 -07:00
committed by GitHub
parent 9f90d1ccfa
commit 14fc1190a8
38 changed files with 456 additions and 400 deletions

View File

@@ -71,7 +71,7 @@ describe("<LogEventSource />", () => {
LogViewer,
},
provide: {
container: computed(() => ({ id: "abc", image: "test:v123" })),
container: computed(() => ({ id: "abc", image: "test:v123", host: "localhost" })),
"stream-config": reactive({ stdout: true, stderr: true }),
scrollingPaused: computed(() => false),
},
@@ -85,7 +85,7 @@ describe("<LogEventSource />", () => {
});
}
const sourceUrl = "/api/logs/stream?id=abc&lastEventId=&host=localhost&stdout=1&stderr=1";
const sourceUrl = "/api/logs/stream/localhost/abc?lastEventId=&stdout=1&stderr=1";
test("renders correctly", async () => {
const wrapper = createLogEventSource();