mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
* fix: fixes crash when names are not found. see #2386 * adds snapshots
This commit is contained in:
8
assets/components.d.ts
vendored
8
assets/components.d.ts
vendored
@@ -17,6 +17,7 @@ declare module 'vue' {
|
|||||||
'Cil:circle': typeof import('~icons/cil/circle')['default']
|
'Cil:circle': typeof import('~icons/cil/circle')['default']
|
||||||
'Cil:columns': typeof import('~icons/cil/columns')['default']
|
'Cil:columns': typeof import('~icons/cil/columns')['default']
|
||||||
'Cil:findInPage': typeof import('~icons/cil/find-in-page')['default']
|
'Cil:findInPage': typeof import('~icons/cil/find-in-page')['default']
|
||||||
|
'Cil:search': typeof import('~icons/cil/search')['default']
|
||||||
'Cil:xCircle': typeof import('~icons/cil/x-circle')['default']
|
'Cil:xCircle': typeof import('~icons/cil/x-circle')['default']
|
||||||
ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default']
|
ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default']
|
||||||
ContainerHealth: typeof import('./components/LogViewer/ContainerHealth.vue')['default']
|
ContainerHealth: typeof import('./components/LogViewer/ContainerHealth.vue')['default']
|
||||||
@@ -30,6 +31,8 @@ declare module 'vue' {
|
|||||||
DropdownMenu: typeof import('./components/DropdownMenu.vue')['default']
|
DropdownMenu: typeof import('./components/DropdownMenu.vue')['default']
|
||||||
FieldList: typeof import('./components/LogViewer/FieldList.vue')['default']
|
FieldList: typeof import('./components/LogViewer/FieldList.vue')['default']
|
||||||
FuzzySearchModal: typeof import('./components/FuzzySearchModal.vue')['default']
|
FuzzySearchModal: typeof import('./components/FuzzySearchModal.vue')['default']
|
||||||
|
'Ic:sharpFindInPage': typeof import('~icons/ic/sharp-find-in-page')['default']
|
||||||
|
'Ic:sharpKeyboardReturn': typeof import('~icons/ic/sharp-keyboard-return')['default']
|
||||||
InfiniteLoader: typeof import('./components/InfiniteLoader.vue')['default']
|
InfiniteLoader: typeof import('./components/InfiniteLoader.vue')['default']
|
||||||
KeyShortcut: typeof import('./components/KeyShortcut.vue')['default']
|
KeyShortcut: typeof import('./components/KeyShortcut.vue')['default']
|
||||||
LogActionsToolbar: typeof import('./components/LogViewer/LogActionsToolbar.vue')['default']
|
LogActionsToolbar: typeof import('./components/LogViewer/LogActionsToolbar.vue')['default']
|
||||||
@@ -41,18 +44,23 @@ declare module 'vue' {
|
|||||||
LogViewer: typeof import('./components/LogViewer/LogViewer.vue')['default']
|
LogViewer: typeof import('./components/LogViewer/LogViewer.vue')['default']
|
||||||
LogViewerWithSource: typeof import('./components/LogViewer/LogViewerWithSource.vue')['default']
|
LogViewerWithSource: typeof import('./components/LogViewer/LogViewerWithSource.vue')['default']
|
||||||
'Mdi:arrowUp': typeof import('~icons/mdi/arrow-up')['default']
|
'Mdi:arrowUp': typeof import('~icons/mdi/arrow-up')['default']
|
||||||
|
'Mdi:close': typeof import('~icons/mdi/close')['default']
|
||||||
'Mdi:dotsVertical': typeof import('~icons/mdi/dots-vertical')['default']
|
'Mdi:dotsVertical': typeof import('~icons/mdi/dots-vertical')['default']
|
||||||
|
'Mdi:hamburgerMenu': typeof import('~icons/mdi/hamburger-menu')['default']
|
||||||
|
'Mdi:keyboardEsc': typeof import('~icons/mdi/keyboard-esc')['default']
|
||||||
'Mdi:lightChevronDoubleDown': typeof import('~icons/mdi-light/chevron-double-down')['default']
|
'Mdi:lightChevronDoubleDown': typeof import('~icons/mdi-light/chevron-double-down')['default']
|
||||||
'Mdi:lightChevronLeft': typeof import('~icons/mdi-light/chevron-left')['default']
|
'Mdi:lightChevronLeft': typeof import('~icons/mdi-light/chevron-left')['default']
|
||||||
'Mdi:lightChevronRight': typeof import('~icons/mdi-light/chevron-right')['default']
|
'Mdi:lightChevronRight': typeof import('~icons/mdi-light/chevron-right')['default']
|
||||||
'Mdi:lightCog': typeof import('~icons/mdi-light/cog')['default']
|
'Mdi:lightCog': typeof import('~icons/mdi-light/cog')['default']
|
||||||
'Mdi:lightLogout': typeof import('~icons/mdi-light/logout')['default']
|
'Mdi:lightLogout': typeof import('~icons/mdi-light/logout')['default']
|
||||||
'Mdi:lightMagnify': typeof import('~icons/mdi-light/magnify')['default']
|
'Mdi:lightMagnify': typeof import('~icons/mdi-light/magnify')['default']
|
||||||
|
'MdiLight:check': typeof import('~icons/mdi-light/check')['default']
|
||||||
MobileMenu: typeof import('./components/common/MobileMenu.vue')['default']
|
MobileMenu: typeof import('./components/common/MobileMenu.vue')['default']
|
||||||
'Octicon:container24': typeof import('~icons/octicon/container24')['default']
|
'Octicon:container24': typeof import('~icons/octicon/container24')['default']
|
||||||
'Octicon:download24': typeof import('~icons/octicon/download24')['default']
|
'Octicon:download24': typeof import('~icons/octicon/download24')['default']
|
||||||
'Octicon:trash24': typeof import('~icons/octicon/trash24')['default']
|
'Octicon:trash24': typeof import('~icons/octicon/trash24')['default']
|
||||||
'Ph:command': typeof import('~icons/ph/command')['default']
|
'Ph:command': typeof import('~icons/ph/command')['default']
|
||||||
|
'Ph:computerTower': typeof import('~icons/ph/computer-tower')['default']
|
||||||
'Ph:controlBold': typeof import('~icons/ph/control-bold')['default']
|
'Ph:controlBold': typeof import('~icons/ph/control-bold')['default']
|
||||||
Popup: typeof import('./components/Popup.vue')['default']
|
Popup: typeof import('./components/Popup.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
|
|||||||
@@ -157,10 +157,14 @@ func (d *Client) ListContainers() ([]Container, error) {
|
|||||||
|
|
||||||
var containers = make([]Container, 0, len(list))
|
var containers = make([]Container, 0, len(list))
|
||||||
for _, c := range list {
|
for _, c := range list {
|
||||||
|
name := "no name"
|
||||||
|
if len(c.Names) > 0 {
|
||||||
|
name = strings.TrimPrefix(c.Names[0], "/")
|
||||||
|
}
|
||||||
container := Container{
|
container := Container{
|
||||||
ID: c.ID[:12],
|
ID: c.ID[:12],
|
||||||
Names: c.Names,
|
Names: c.Names,
|
||||||
Name: strings.TrimPrefix(c.Names[0], "/"),
|
Name: name,
|
||||||
Image: c.Image,
|
Image: c.Image,
|
||||||
ImageID: c.ImageID,
|
ImageID: c.ImageID,
|
||||||
Command: c.Command,
|
Command: c.Command,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user